| Index: Source/core/layout/LayoutButton.h
|
| diff --git a/Source/core/layout/LayoutButton.h b/Source/core/layout/LayoutButton.h
|
| index 2102a4b8c68f299c7238beeb8bc0a2b72e13327e..bd22f834d915c1e2cf691a6fa43e5c1d87736b0d 100644
|
| --- a/Source/core/layout/LayoutButton.h
|
| +++ b/Source/core/layout/LayoutButton.h
|
| @@ -32,28 +32,28 @@ namespace blink {
|
| class LayoutButton final : public LayoutFlexibleBox {
|
| public:
|
| explicit LayoutButton(Element*);
|
| - virtual ~LayoutButton();
|
| + ~LayoutButton() override;
|
|
|
| - virtual const char* name() const override { return "LayoutButton"; }
|
| - virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutButton || LayoutFlexibleBox::isOfType(type); }
|
| + const char* name() const override { return "LayoutButton"; }
|
| + bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectLayoutButton || LayoutFlexibleBox::isOfType(type); }
|
|
|
| - virtual bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
|
| - virtual bool canCollapseAnonymousBlockChild() const override { return true; }
|
| + bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
|
| + bool canCollapseAnonymousBlockChild() const override { return true; }
|
|
|
| - virtual void addChild(LayoutObject* newChild, LayoutObject *beforeChild = nullptr) override;
|
| - virtual void removeChild(LayoutObject*) override;
|
| - virtual void removeLeftoverAnonymousBlock(LayoutBlock*) override { }
|
| - virtual bool createsAnonymousWrapper() const override { return true; }
|
| + void addChild(LayoutObject* newChild, LayoutObject *beforeChild = nullptr) override;
|
| + void removeChild(LayoutObject*) override;
|
| + void removeLeftoverAnonymousBlock(LayoutBlock*) override { }
|
| + bool createsAnonymousWrapper() const override { return true; }
|
|
|
| - virtual bool hasControlClip() const override;
|
| - virtual LayoutRect controlClipRect(const LayoutPoint&) const override;
|
| + bool hasControlClip() const override;
|
| + LayoutRect controlClipRect(const LayoutPoint&) const override;
|
|
|
| - virtual int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode) const override;
|
| + int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePositionMode) const override;
|
|
|
| private:
|
| - virtual void updateAnonymousChildStyle(const LayoutObject& child, ComputedStyle& childStyle) const override;
|
| + void updateAnonymousChildStyle(const LayoutObject& child, ComputedStyle& childStyle) const override;
|
|
|
| - virtual bool hasLineIfEmpty() const override { return isHTMLInputElement(node()); }
|
| + bool hasLineIfEmpty() const override { return isHTMLInputElement(node()); }
|
|
|
| LayoutBlock* m_inner;
|
| };
|
|
|