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

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

Issue 1158583003: Reduce how often LayoutSVGShape::updateShapeFromElement is called (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Put selfHasRelativeLengths back 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
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGEllipse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGEllipse.h
diff --git a/Source/core/layout/svg/LayoutSVGEllipse.h b/Source/core/layout/svg/LayoutSVGEllipse.h
index 2b0377bb667346e7f35b27ba5f846dc133889baa..96a5f746f347ea4900c26198c9cf122920e9363c 100644
--- a/Source/core/layout/svg/LayoutSVGEllipse.h
+++ b/Source/core/layout/svg/LayoutSVGEllipse.h
@@ -41,12 +41,14 @@ public:
virtual const char* name() const override { return "LayoutSVGEllipse"; }
private:
- virtual void updateShapeFromElement() override;
+ void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
+ void updateShapeFromElement() override;
+ void updateStrokeAndFillBoundingBoxes() override;
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;
void calculateRadiiAndCenter();
- bool hasContinuousStroke() const;
+ bool hasContinuousStroke(const SVGComputedStyle&) const;
private:
FloatPoint m_center;
« no previous file with comments | « no previous file | Source/core/layout/svg/LayoutSVGEllipse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698