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

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

Issue 2573653003: Remove LayoutSVGViewportContainer's calcViewport and pointIsInsideViewportClip (Closed)
Patch Set: Actually revert SVGSVGElement changes Created 4 years 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/layout/svg/LayoutSVGViewportContainer.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/SVGSVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
index 1f85592c1822a16924f7609ad33c997bd092c3ec..edc04ae0daef736c314722248dbef901642aa65f 100644
--- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
@@ -288,8 +288,8 @@ void SVGSVGElement::svgAttributeChanged(const QualifiedName& attrName) {
if (updateRelativeLengthsOrViewBox ||
SVGZoomAndPan::isKnownAttribute(attrName)) {
SVGElement::InvalidationGuard invalidationGuard(this);
- if (layoutObject())
- markForLayoutAndParentResourceInvalidation(layoutObject());
+ if (auto* layoutObject = this->layoutObject())
+ markForLayoutAndParentResourceInvalidation(layoutObject);
return;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGViewportContainer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698