| Index: Source/WebCore/rendering/svg/SVGResources.cpp
|
| ===================================================================
|
| --- Source/WebCore/rendering/svg/SVGResources.cpp (revision 86165)
|
| +++ Source/WebCore/rendering/svg/SVGResources.cpp (working copy)
|
| @@ -152,12 +152,15 @@
|
| return SVGURIReference::getTarget(target);
|
| }
|
|
|
| -static inline RenderSVGResourceContainer* paintingResourceFromSVGPaint(Document* document, const SVGPaint::SVGPaintType& paintType, const String& paintUri, AtomicString& id, bool& hasPendingResource)
|
| +static inline RenderSVGResourceContainer* paintingResourceFromSVGPaint(Document* document, SVGPaint* paint, AtomicString& id, bool& hasPendingResource)
|
| {
|
| + ASSERT(paint);
|
| +
|
| + SVGPaint::SVGPaintType paintType = paint->paintType();
|
| if (paintType != SVGPaint::SVG_PAINTTYPE_URI && paintType != SVGPaint::SVG_PAINTTYPE_URI_RGBCOLOR)
|
| return 0;
|
|
|
| - id = SVGURIReference::getTarget(paintUri);
|
| + id = SVGURIReference::getTarget(paint->uri());
|
| RenderSVGResourceContainer* container = getRenderSVGResourceContainerById(document, id);
|
| if (!container) {
|
| hasPendingResource = true;
|
| @@ -256,7 +259,7 @@
|
| if (style->hasFill()) {
|
| bool hasPendingResource = false;
|
| AtomicString id;
|
| - if (setFill(paintingResourceFromSVGPaint(document, style->fillPaintType(), style->fillPaintUri(), id, hasPendingResource)))
|
| + if (setFill(paintingResourceFromSVGPaint(document, style->fillPaint(), id, hasPendingResource)))
|
| foundResources = true;
|
| else if (hasPendingResource)
|
| registerPendingResource(extensions, id, element);
|
| @@ -265,7 +268,7 @@
|
| if (style->hasStroke()) {
|
| bool hasPendingResource = false;
|
| AtomicString id;
|
| - if (setStroke(paintingResourceFromSVGPaint(document, style->strokePaintType(), style->strokePaintUri(), id, hasPendingResource)))
|
| + if (setStroke(paintingResourceFromSVGPaint(document, style->strokePaint(), id, hasPendingResource)))
|
| foundResources = true;
|
| else if (hasPendingResource)
|
| registerPendingResource(extensions, id, element);
|
|
|