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); |
- } |
} |
} |