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

Unified Diff: Source/core/layout/svg/LayoutSVGRect.h

Issue 1158583003: Reduce how often LayoutSVGShape::updateShapeFromElement is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix marker regression Created 5 years, 6 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
Index: Source/core/layout/svg/LayoutSVGRect.h
diff --git a/Source/core/layout/svg/LayoutSVGRect.h b/Source/core/layout/svg/LayoutSVGRect.h
index 184aea0a717e24c43b205af5962812bb3910e8b1..2d5545279f68ebe27dd7a8a6baa4085528c10e8a 100644
--- a/Source/core/layout/svg/LayoutSVGRect.h
+++ b/Source/core/layout/svg/LayoutSVGRect.h
@@ -42,7 +42,8 @@ public:
virtual const char* name() const override { return "LayoutSVGRect"; }
private:
- virtual void updateShapeFromElement() override;
+ void updateShapeFromElement() override final;
fs 2015/06/16 10:54:02 Nit: final
pdr. 2015/06/17 03:50:49 Done
+ void updateStrokeAndFillBoundingBoxes() override final;
virtual bool isShapeEmpty() const override { return m_usePathFallback ? LayoutSVGShape::isShapeEmpty() : m_fillBoundingBox.isEmpty(); }
virtual bool shapeDependentStrokeContains(const FloatPoint&) override;
virtual bool shapeDependentFillContains(const FloatPoint&, const WindRule) const override;

Powered by Google App Engine
This is Rietveld 408576698