Bug 1400421 part 1: Annotate class 'nsPageBreakFrame' as final, to reflect reality. r?mats draft
authorDaniel Holbert <dholbert@cs.stanford.edu>
Fri, 15 Sep 2017 15:53:31 -0700
changeset 665775 2d49cb14757348ce6277c6a87c8e20a7f7e815ad
parent 665648 6be5c7d30d2def62a762ac187252eba626b23a92
child 665776 ec8acbca400aa12df66960f6342800c438bb7111
child 665777 633a8fef7b05bd0326415f8dbaae2408da3b02b7
push id80171
push userdholbert@mozilla.com
push dateFri, 15 Sep 2017 22:53:44 +0000
reviewersmats
bugs1400421
milestone57.0a1
Bug 1400421 part 1: Annotate class 'nsPageBreakFrame' as final, to reflect reality. r?mats (This was the only concrete nsLeafBoxFrame subclass that was missing this annotation. So, after this patch, all concrete nsLeafBoxFrame subclasses will have this annotation. Nice!) MozReview-Commit-ID: Iu1LaLTTqzu
layout/generic/nsPageFrame.h
--- a/layout/generic/nsPageFrame.h
+++ b/layout/generic/nsPageFrame.h
@@ -95,17 +95,17 @@ protected:
   int32_t     mPageNum;
   int32_t     mTotNumPages;
 
   nsSharedPageData* mPD;
   nsMargin mPageContentMargin;
 };
 
 
-class nsPageBreakFrame : public nsLeafFrame
+class nsPageBreakFrame final : public nsLeafFrame
 {
   NS_DECL_FRAMEARENA_HELPERS(nsPageBreakFrame)
 
   explicit nsPageBreakFrame(nsStyleContext* aContext);
   ~nsPageBreakFrame();
 
   virtual void Reflow(nsPresContext* aPresContext,
                       ReflowOutput& aDesiredSize,