Bug 1360241: Devirtualize nsIFrame::GetType. r=heycam

MozReview-Commit-ID: 5Nzhyta5Hle
This commit is contained in:
Emilio Cobos Álvarez
2017-04-30 17:30:08 +02:00
parent dd2cb6525c
commit 3731858edf
243 changed files with 1742 additions and 2624 deletions

View File

@@ -15,10 +15,13 @@ class nsRenderingContext;
class nsPresContext;
class nsHTMLButtonControlFrame : public nsContainerFrame,
public nsIFormControlFrame
public nsIFormControlFrame
{
public:
explicit nsHTMLButtonControlFrame(nsStyleContext* aContext);
explicit nsHTMLButtonControlFrame(nsStyleContext* aContext)
: nsHTMLButtonControlFrame(aContext, mozilla::FrameType::HTMLButtonControl)
{}
~nsHTMLButtonControlFrame();
virtual void DestroyFrom(nsIFrame* aDestructRoot) override;
@@ -72,8 +75,6 @@ public:
virtual mozilla::a11y::AccType AccessibleType() override;
#endif
virtual nsIAtom* GetType() const override;
#ifdef DEBUG_FRAME_DUMP
virtual nsresult GetFrameName(nsAString& aResult) const override {
return MakeFrameName(NS_LITERAL_STRING("HTMLButtonControl"), aResult);
@@ -104,6 +105,8 @@ public:
nsStyleChangeList& aChangeList,
nsChangeHint aHintForThisFrame) override;
protected:
nsHTMLButtonControlFrame(nsStyleContext* aContext, mozilla::FrameType aType);
virtual bool IsInput() { return false; }
// Indicates whether we should clip our children's painting to our