From e1e171c84e8c6771b798d37d44143813d23c4a01 Mon Sep 17 00:00:00 2001 From: Ting-Yu Lin Date: Mon, 18 Apr 2016 14:12:52 +0800 Subject: [PATCH] Bug 1264837 Part 12 - Remove nsRubyTextContainerFrameSuper. r=dholbert MozReview-Commit-ID: K3n3gsEkP5f --HG-- extra : rebase_source : f7f227616ee4f07752a2450381a743613eafaa56 --- layout/generic/nsRubyTextContainerFrame.cpp | 10 +++++----- layout/generic/nsRubyTextContainerFrame.h | 6 ++---- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/layout/generic/nsRubyTextContainerFrame.cpp b/layout/generic/nsRubyTextContainerFrame.cpp index 3c8bd80075e5..1630c3203dd7 100644 --- a/layout/generic/nsRubyTextContainerFrame.cpp +++ b/layout/generic/nsRubyTextContainerFrame.cpp @@ -60,14 +60,14 @@ nsRubyTextContainerFrame::IsFrameOfType(uint32_t aFlags) const if (aFlags & eSupportsCSSTransforms) { return false; } - return nsRubyTextContainerFrameSuper::IsFrameOfType(aFlags); + return nsContainerFrame::IsFrameOfType(aFlags); } /* virtual */ void nsRubyTextContainerFrame::SetInitialChildList(ChildListID aListID, nsFrameList& aChildList) { - nsRubyTextContainerFrameSuper::SetInitialChildList(aListID, aChildList); + nsContainerFrame::SetInitialChildList(aListID, aChildList); if (aListID == kPrincipalList) { UpdateSpanFlag(); } @@ -77,7 +77,7 @@ nsRubyTextContainerFrame::SetInitialChildList(ChildListID aListID, nsRubyTextContainerFrame::AppendFrames(ChildListID aListID, nsFrameList& aFrameList) { - nsRubyTextContainerFrameSuper::AppendFrames(aListID, aFrameList); + nsContainerFrame::AppendFrames(aListID, aFrameList); UpdateSpanFlag(); } @@ -86,7 +86,7 @@ nsRubyTextContainerFrame::InsertFrames(ChildListID aListID, nsIFrame* aPrevFrame, nsFrameList& aFrameList) { - nsRubyTextContainerFrameSuper::InsertFrames(aListID, aPrevFrame, aFrameList); + nsContainerFrame::InsertFrames(aListID, aPrevFrame, aFrameList); UpdateSpanFlag(); } @@ -94,7 +94,7 @@ nsRubyTextContainerFrame::InsertFrames(ChildListID aListID, nsRubyTextContainerFrame::RemoveFrame(ChildListID aListID, nsIFrame* aOldFrame) { - nsRubyTextContainerFrameSuper::RemoveFrame(aListID, aOldFrame); + nsContainerFrame::RemoveFrame(aListID, aOldFrame); UpdateSpanFlag(); } diff --git a/layout/generic/nsRubyTextContainerFrame.h b/layout/generic/nsRubyTextContainerFrame.h index c738d79d6029..08ffab9e0e52 100644 --- a/layout/generic/nsRubyTextContainerFrame.h +++ b/layout/generic/nsRubyTextContainerFrame.h @@ -11,8 +11,6 @@ #include "nsBlockFrame.h" -typedef nsContainerFrame nsRubyTextContainerFrameSuper; - /** * Factory function. * @return a newly allocated nsRubyTextContainerFrame (infallible) @@ -20,7 +18,7 @@ typedef nsContainerFrame nsRubyTextContainerFrameSuper; nsContainerFrame* NS_NewRubyTextContainerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); -class nsRubyTextContainerFrame final : public nsRubyTextContainerFrameSuper +class nsRubyTextContainerFrame final : public nsContainerFrame { public: NS_DECL_FRAMEARENA_HELPERS @@ -59,7 +57,7 @@ protected: NS_NewRubyTextContainerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); explicit nsRubyTextContainerFrame(nsStyleContext* aContext) - : nsRubyTextContainerFrameSuper(aContext) + : nsContainerFrame(aContext) , mISize(0) {} void UpdateSpanFlag();