Bug 1264837 Part 10 - Remove nsRubyContentFrameSuper.
MozReview-Commit-ID: GYsrtHwKfXk
--- a/layout/generic/nsRubyContentFrame.cpp
+++ b/layout/generic/nsRubyContentFrame.cpp
@@ -19,17 +19,17 @@ using namespace mozilla;
// ======================================
/* virtual */ bool
nsRubyContentFrame::IsFrameOfType(uint32_t aFlags) const
{
if (aFlags & eBidiInlineContainer) {
return false;
}
- return nsRubyContentFrameSuper::IsFrameOfType(aFlags);
+ return nsInlineFrame::IsFrameOfType(aFlags);
}
bool
nsRubyContentFrame::IsIntraLevelWhitespace() const
{
nsIAtom* pseudoType = StyleContext()->GetPseudo();
if (pseudoType != nsCSSAnonBoxes::rubyBase &&
pseudoType != nsCSSAnonBoxes::rubyText) {
--- a/layout/generic/nsRubyContentFrame.h
+++ b/layout/generic/nsRubyContentFrame.h
@@ -6,31 +6,29 @@
/* base class for ruby rendering objects that directly contain content */
#ifndef nsRubyContentFrame_h___
#define nsRubyContentFrame_h___
#include "nsInlineFrame.h"
-typedef nsInlineFrame nsRubyContentFrameSuper;
-
-class nsRubyContentFrame : public nsRubyContentFrameSuper
+class nsRubyContentFrame : public nsInlineFrame
{
public:
NS_DECL_ABSTRACT_FRAME(nsRubyContentFrame)
// nsIFrame overrides
virtual bool IsFrameOfType(uint32_t aFlags) const override;
// Indicates whether this is an "intra-level whitespace" frame, i.e.
// an anonymous frame that was created to contain non-droppable
// whitespaces directly inside a ruby level container. This impacts
// ruby pairing behavior.
// See http://dev.w3.org/csswg/css-ruby/#anon-gen-interpret-space
bool IsIntraLevelWhitespace() const;
protected:
explicit nsRubyContentFrame(nsStyleContext* aContext)
- : nsRubyContentFrameSuper(aContext) {}
+ : nsInlineFrame(aContext) {}
};
#endif /* nsRubyContentFrame_h___ */