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

Unified Diff: Source/core/svg/SVGPathElement.cpp

Issue 132233010: [SVG] SVGAnimatedRect migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebsaed Created 6 years, 11 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/svg/SVGPathElement.h ('k') | Source/core/svg/SVGPatternElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGPathElement.cpp
diff --git a/Source/core/svg/SVGPathElement.cpp b/Source/core/svg/SVGPathElement.cpp
index 909bdfe7561b03a940569b96c4f031b8e21c871e..ffb67cf9fa6e87f5110b0d7e1b98bc6b0cf69426 100644
--- a/Source/core/svg/SVGPathElement.cpp
+++ b/Source/core/svg/SVGPathElement.cpp
@@ -376,7 +376,7 @@ void SVGPathElement::pathSegListChanged(SVGPathSegRole role, ListModification li
RenderSVGResource::markForLayoutAndParentResourceInvalidation(renderer);
}
-SVGRect SVGPathElement::getBBox()
+FloatRect SVGPathElement::getBBox()
{
// By default, getBBox() returns objectBoundingBox but that will include
// markers so we override it to return just the path's bounding rect.
@@ -385,7 +385,7 @@ SVGRect SVGPathElement::getBBox()
// FIXME: Eventually we should support getBBox for detached elements.
if (!renderer())
- return SVGRect();
+ return FloatRect();
RenderSVGPath* renderer = toRenderSVGPath(this->renderer());
return renderer->path().boundingRect();
« no previous file with comments | « Source/core/svg/SVGPathElement.h ('k') | Source/core/svg/SVGPatternElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698