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

Unified Diff: Source/core/rendering/svg/SVGRenderTreeAsText.cpp

Issue 672613002: Move resourceType() method to RenderSVGResourceContainer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 | « Source/core/rendering/svg/RenderSVGResourceContainer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/SVGRenderTreeAsText.cpp
diff --git a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
index 61beb73cf7efe70656a8fbd6dddb3fa993c48eb1..9f39d43e8363b2a60202a1bbfba0b9c1426e4404 100644
--- a/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
+++ b/Source/core/rendering/svg/SVGRenderTreeAsText.cpp
@@ -259,11 +259,11 @@ static void writeSVGPaintingResource(TextStream& ts, const SVGPaintDescription&
SVGElement* element = container->element();
ASSERT(element);
- if (resource->resourceType() == PatternResourceType)
+ if (container->resourceType() == PatternResourceType)
ts << "[type=PATTERN]";
- else if (resource->resourceType() == LinearGradientResourceType)
+ else if (container->resourceType() == LinearGradientResourceType)
ts << "[type=LINEAR-GRADIENT]";
- else if (resource->resourceType() == RadialGradientResourceType)
+ else if (container->resourceType() == RadialGradientResourceType)
ts << "[type=RADIAL-GRADIENT]";
ts << " [id=\"" << element->getIdAttribute() << "\"]";
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourceContainer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698