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

Unified Diff: Source/core/rendering/svg/RenderSVGEllipse.cpp

Issue 599103005: Make sure m_usePathFallback is always updated when updating shape (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/rendering/svg/RenderSVGEllipse.cpp
diff --git a/Source/core/rendering/svg/RenderSVGEllipse.cpp b/Source/core/rendering/svg/RenderSVGEllipse.cpp
index 447314d634a27385b706db50c15f5851ffe5bdd4..8b350bad1100c70b5353cfc7659559cc26247dbe 100644
--- a/Source/core/rendering/svg/RenderSVGEllipse.cpp
+++ b/Source/core/rendering/svg/RenderSVGEllipse.cpp
@@ -52,6 +52,7 @@ void RenderSVGEllipse::updateShapeFromElement()
m_strokeBoundingBox = FloatRect();
m_center = FloatPoint();
m_radii = FloatSize();
+ m_usePathFallback = false;
calculateRadiiAndCenter();
@@ -66,7 +67,6 @@ void RenderSVGEllipse::updateShapeFromElement()
m_usePathFallback = true;
return;
}
- m_usePathFallback = false;
}
m_fillBoundingBox = FloatRect(m_center.x() - m_radii.width(), m_center.y() - m_radii.height(), 2 * m_radii.width(), 2 * m_radii.height());
« no previous file with comments | « LayoutTests/svg/custom/rounded-rect-update-to-empty-expected.html ('k') | Source/core/rendering/svg/RenderSVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698