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

Unified Diff: Source/core/layout/shapes/PolygonShape.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/shapes/BoxShape.h ('k') | Source/core/layout/shapes/RasterShape.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/shapes/PolygonShape.h
diff --git a/Source/core/layout/shapes/PolygonShape.h b/Source/core/layout/shapes/PolygonShape.h
index 1ad286b1fa947470e8f86815b72a30e160958245..9c9036b3b1d7ae7dcb1fe28423b63acc507ea723 100644
--- a/Source/core/layout/shapes/PolygonShape.h
+++ b/Source/core/layout/shapes/PolygonShape.h
@@ -44,8 +44,8 @@ public:
{
}
- virtual const FloatPoint& vertex1() const override { return m_vertex1; }
- virtual const FloatPoint& vertex2() const override { return m_vertex2; }
+ const FloatPoint& vertex1() const override { return m_vertex1; }
+ const FloatPoint& vertex2() const override { return m_vertex2; }
bool isWithinYRange(float y1, float y2) const { return y1 <= minY() && y2 >= maxY(); }
bool overlapsYRange(float y1, float y2) const { return y2 >= minY() && y1 <= maxY(); }
@@ -66,10 +66,10 @@ public:
{
}
- virtual LayoutRect shapeMarginLogicalBoundingBox() const override;
- virtual bool isEmpty() const override { return m_polygon.isEmpty(); }
- virtual LineSegment getExcludedInterval(LayoutUnit logicalTop, LayoutUnit logicalHeight) const override;
- virtual void buildDisplayPaths(DisplayPaths&) const override;
+ LayoutRect shapeMarginLogicalBoundingBox() const override;
+ bool isEmpty() const override { return m_polygon.isEmpty(); }
+ LineSegment getExcludedInterval(LayoutUnit logicalTop, LayoutUnit logicalHeight) const override;
+ void buildDisplayPaths(DisplayPaths&) const override;
private:
FloatPolygon m_polygon;
« no previous file with comments | « Source/core/layout/shapes/BoxShape.h ('k') | Source/core/layout/shapes/RasterShape.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698