Bug 1660166 followup: Mark nsPageFrame::GetPageNum as 'const'. r=TYLin
authorDaniel Holbert <dholbert@cs.stanford.edu>
Thu, 20 Aug 2020 15:05:54 +0000
changeset 610156 00693a1768762d0199817ac1b929ef67c5519809
parent 610155 500009648a7cfe02b1534f092d5e148782c8b768
child 610157 6c04e5bc049576e8a5e1f02fa9c1674a8cf84e9d
push id13553
push userffxbld-merge
push dateMon, 24 Aug 2020 12:51:36 +0000
treeherdermozilla-beta@a54f8b5d0977 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersTYLin
bugs1660166
milestone81.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 1660166 followup: Mark nsPageFrame::GetPageNum as 'const'. r=TYLin Differential Revision: https://phabricator.services.mozilla.com/D87753
layout/generic/nsPageFrame.h
--- a/layout/generic/nsPageFrame.h
+++ b/layout/generic/nsPageFrame.h
@@ -39,17 +39,17 @@ class nsPageFrame final : public nsConta
 
   //////////////////
   // For Printing
   //////////////////
 
   // Determine this page's page-number, based on its previous continuation
   // (whose page number is presumed to already be known).
   void DeterminePageNum();
-  int32_t GetPageNum() { return mPageNum; }
+  int32_t GetPageNum() const { return mPageNum; }
 
   void SetSharedPageData(nsSharedPageData* aPD);
   nsSharedPageData* GetSharedPageData() const { return mPD; }
 
   // We must allow Print Preview UI to have a background, no matter what the
   // user's settings
   bool HonorPrintBackgroundSettings() override { return false; }