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

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

Issue 1315983012: Drop getBBox() override on SVGPathElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « Source/core/svg/SVGPathElement.h ('k') | no next file » | 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 7d85563538e484a2ae5a7829a43a94d3f5f1dd49..a59e280b41d634f58b3d0468ad9afd61544a92e5 100644
--- a/Source/core/svg/SVGPathElement.cpp
+++ b/Source/core/svg/SVGPathElement.cpp
@@ -270,19 +270,4 @@ void SVGPathElement::pathSegListChanged(ListModification listModification)
markForLayoutAndParentResourceInvalidation(layoutObject);
}
-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.
-
- document().updateLayoutIgnorePendingStylesheets();
-
- // FIXME: Eventually we should support getBBox for detached elements.
- if (!layoutObject())
- return FloatRect();
-
- LayoutSVGShape* layoutObject = toLayoutSVGShape(this->layoutObject());
- return layoutObject->path().boundingRect();
-}
-
} // namespace blink
« no previous file with comments | « Source/core/svg/SVGPathElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698