Bug 771874 - Make nsTextFrame::TrimmedOffsets::GetEnd const. r=roc
authorCameron McCormack <cam@mcc.id.au>
Mon, 09 Jul 2012 11:09:51 +1000
changeset 98671 e76664c1c80fa98f2f7b8d44d7571ee74223838d
parent 98670 116d44996f48604975e577b575e8a345eb105f9b
child 98672 3af3e1615bfc01f81622eb631e1c3116cd22ab1d
push id23070
push useremorley@mozilla.com
push dateMon, 09 Jul 2012 11:38:56 +0000
treeherdermozilla-central@78e058c75a38 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs771874
milestone16.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 771874 - Make nsTextFrame::TrimmedOffsets::GetEnd const. r=roc
layout/generic/nsTextFrame.h
--- a/layout/generic/nsTextFrame.h
+++ b/layout/generic/nsTextFrame.h
@@ -391,17 +391,17 @@ public:
   }
 
   // Get the DOM content range mapped by this frame after excluding
   // whitespace subject to start-of-line and end-of-line trimming.
   // The textrun must have been created before calling this.
   struct TrimmedOffsets {
     PRInt32 mStart;
     PRInt32 mLength;
-    PRInt32 GetEnd() { return mStart + mLength; }
+    PRInt32 GetEnd() const { return mStart + mLength; }
   };
   TrimmedOffsets GetTrimmedOffsets(const nsTextFragment* aFrag,
                                    bool aTrimAfter);
 
   // Similar to Reflow(), but for use from nsLineLayout
   void ReflowText(nsLineLayout& aLineLayout, nscoord aAvailableWidth,
                   nsRenderingContext* aRenderingContext, bool aShouldBlink,
                   nsHTMLReflowMetrics& aMetrics, nsReflowStatus& aStatus);