Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1033)

Unified Diff: Source/core/layout/LayoutPart.h

Issue 1231363003: Fix virtual/override/final usage in Source/core/layout/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/layout/LayoutPagedFlowThread.h ('k') | Source/core/layout/LayoutPartTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutPart.h
diff --git a/Source/core/layout/LayoutPart.h b/Source/core/layout/LayoutPart.h
index cfa1eec6875f38f85139da8358dedd9871ec2bb3..fc4acaba6590b89f62054bd53091f1d5254790dc 100644
--- a/Source/core/layout/LayoutPart.h
+++ b/Source/core/layout/LayoutPart.h
@@ -33,13 +33,13 @@ namespace blink {
class CORE_EXPORT LayoutPart : public LayoutReplaced {
public:
explicit LayoutPart(Element*);
- virtual ~LayoutPart();
+ ~LayoutPart() override;
bool requiresAcceleratedCompositing() const;
- virtual bool needsPreferredWidthsRecalculation() const override final;
+ bool needsPreferredWidthsRecalculation() const final;
- virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
+ bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) override;
void ref() { ++m_refCount; }
void deref();
@@ -51,25 +51,25 @@ public:
void widgetPositionsUpdated();
bool updateWidgetGeometry();
- virtual bool isLayoutPart() const override final { return true; }
+ bool isLayoutPart() const final { return true; }
virtual void paintContents(const PaintInfo&, const LayoutPoint&);
protected:
- virtual DeprecatedPaintLayerType layerTypeRequired() const override;
+ DeprecatedPaintLayerType layerTypeRequired() const override;
- virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override final;
- virtual void layout() override;
- virtual void paint(const PaintInfo&, const LayoutPoint&) override;
- virtual CursorDirective getCursor(const LayoutPoint&, Cursor&) const override final;
+ void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
+ void layout() override;
+ void paint(const PaintInfo&, const LayoutPoint&) override;
+ CursorDirective getCursor(const LayoutPoint&, Cursor&) const final;
// Overridden to invalidate the child frame if any.
- virtual void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override;
+ void invalidatePaintOfSubtreesIfNeeded(PaintInvalidationState&) override;
private:
- virtual CompositingReasons additionalCompositingReasons() const override;
+ CompositingReasons additionalCompositingReasons() const override;
- virtual void willBeDestroyed() override final;
- virtual void destroy() override final;
+ void willBeDestroyed() final;
+ void destroy() final;
bool setWidgetGeometry(const LayoutRect&);
« no previous file with comments | « Source/core/layout/LayoutPagedFlowThread.h ('k') | Source/core/layout/LayoutPartTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698