Bug 1053986 - Fix comment referring to a GetBorder method that no longer exists. r?dholbert draft
authorL. David Baron <dbaron@dbaron.org>
Wed, 20 Apr 2016 12:16:57 -0700
changeset 354379 b7d010c35495a64d513c593861db652e8d2dba9f
parent 354378 f20f6bdad2b540643e4850b5215bca7e6d951ab4
child 354380 4090b9c4e5b8c8c3bfef09ca0522d5f9d8fc140c
push id16058
push userdbaron@mozilla.com
push dateWed, 20 Apr 2016 19:17:15 +0000
reviewersdholbert
bugs1053986
milestone48.0a1
Bug 1053986 - Fix comment referring to a GetBorder method that no longer exists. r?dholbert This fixes some of the substance of the comment as well. MozReview-Commit-ID: Hj94dV1qGFP
layout/generic/nsIFrame.h
--- a/layout/generic/nsIFrame.h
+++ b/layout/generic/nsIFrame.h
@@ -962,20 +962,21 @@ public:
     return mozilla::LogicalMargin(aWritingMode, GetUsedMargin());
   }
 
   /**
    * Return the distance between the border edge of the frame (which is
    * its rect) and the padding edge of the frame. Like GetRect(), returns
    * the dimensions as of the most recent reflow.
    *
-   * Note that this differs from StyleBorder()->GetBorder() in that
-   * this describes region of the frame's box, and
-   * StyleBorder()->GetBorder() describes a border.  They differ only
-   * for tables, particularly border-collapse tables.
+   * Note that this differs from StyleBorder()->GetComputedBorder() in
+   * that this describes region of the frame's box, and
+   * StyleBorder()->GetComputedBorder() describes a border.  They differ
+   * for tables (particularly border-collapse tables) and themed
+   * elements.
    */
   virtual nsMargin GetUsedBorder() const;
   virtual mozilla::LogicalMargin
   GetLogicalUsedBorder(mozilla::WritingMode aWritingMode) const {
     return mozilla::LogicalMargin(aWritingMode, GetUsedBorder());
   }
 
   /**