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

Unified Diff: third_party/WebKit/Source/core/svg/SVGUseElement.cpp

Issue 2854123004: Hoist layout update out of SVGGraphicsElement::GetBBox and overrides (Closed)
Patch Set: Created 3 years, 8 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 | « third_party/WebKit/Source/core/svg/SVGPathElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGUseElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
index 06e448330609ba9b84ea94f31c58c18b53731136..8577d27b879bb731073368583540b5c9d901e0e3 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
@@ -676,11 +676,7 @@ bool SVGUseElement::SelfHasRelativeLengths() const {
}
FloatRect SVGUseElement::GetBBox() {
- GetDocument().UpdateStyleAndLayoutIgnorePendingStylesheets();
-
- if (!GetLayoutObject())
- return FloatRect();
-
+ DCHECK(GetLayoutObject());
LayoutSVGTransformableContainer& transformable_container =
ToLayoutSVGTransformableContainer(*GetLayoutObject());
// Don't apply the additional translation if the oBB is invalid.
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPathElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698