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

Unified Diff: third_party/WebKit/Source/core/layout/svg/SVGResources.cpp

Issue 1749423005: Don't use a SubtreeLayoutScope object for SVG resource layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify the test Created 4 years, 10 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/layout/svg/SVGLayoutSupport.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/layout/svg/SVGResources.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
index 93374026fc2edab23a740efe57b994870d5c520f..309b51310cdc3d36f5cd90c13d7ddcf626597f7e 100644
--- a/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/SVGResources.cpp
@@ -260,18 +260,16 @@ PassOwnPtr<SVGResources> SVGResources::buildResources(const LayoutObject* object
bool hasPendingResource = false;
AtomicString id;
LayoutSVGResourcePaintServer* resource = paintingResourceFromSVGPaint(treeScope, style.fillPaintType(), style.fillPaintUri(), id, hasPendingResource);
- if (!ensureResources(resources).setFill(resource) && hasPendingResource) {
+ if (!ensureResources(resources).setFill(resource) && hasPendingResource)
registerPendingResource(extensions, id, element);
- }
}
if (style.hasStroke()) {
bool hasPendingResource = false;
AtomicString id;
LayoutSVGResourcePaintServer* resource = paintingResourceFromSVGPaint(treeScope, style.strokePaintType(), style.strokePaintUri(), id, hasPendingResource);
- if (!ensureResources(resources).setStroke(resource) && hasPendingResource) {
+ if (!ensureResources(resources).setStroke(resource) && hasPendingResource)
registerPendingResource(extensions, id, element);
- }
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/SVGLayoutSupport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698