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

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

Issue 673753004: Move RenderSVGResource into the inheritance hierarchy (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Non-move changes. 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
Index: Source/core/rendering/svg/RenderSVGResourcePaintServer.cpp
diff --git a/Source/core/rendering/svg/RenderSVGResource.cpp b/Source/core/rendering/svg/RenderSVGResourcePaintServer.cpp
similarity index 93%
rename from Source/core/rendering/svg/RenderSVGResource.cpp
rename to Source/core/rendering/svg/RenderSVGResourcePaintServer.cpp
index 450bb9ec8a88109f6358fa537f556637a36ef0d4..9feff75bff1f687567e51c42f89eb64a0ddc3146 100644
--- a/Source/core/rendering/svg/RenderSVGResource.cpp
+++ b/Source/core/rendering/svg/RenderSVGResourcePaintServer.cpp
@@ -21,10 +21,9 @@
*/
#include "config.h"
-#include "core/rendering/svg/RenderSVGResource.h"
+#include "core/rendering/svg/RenderSVGResourcePaintServer.h"
#include "core/rendering/style/RenderStyle.h"
-#include "core/rendering/svg/RenderSVGResourceContainer.h"
#include "core/rendering/svg/SVGResources.h"
#include "core/rendering/svg/SVGResourcesCache.h"
#include "platform/graphics/GraphicsContext.h"
@@ -133,7 +132,7 @@ static SVGPaintDescription requestPaint(const RenderObject& object, const Render
return SVGPaintDescription(color);
}
- RenderSVGResource* uriResource = 0;
+ RenderSVGResourcePaintServer* uriResource = 0;
if (SVGResources* resources = SVGResourcesCache::cachedResourcesForRenderObject(&object))
uriResource = applyToFill ? resources->fill() : resources->stroke();
@@ -178,13 +177,16 @@ bool SVGPaintServer::existsForRenderer(const RenderObject& renderer, const Rende
return requestPaint(renderer, style, resourceMode).isValid;
}
-SVGPaintServer RenderSVGResource::preparePaintServer(const RenderObject&)
+RenderSVGResourcePaintServer::RenderSVGResourcePaintServer(SVGElement* element)
+ : RenderSVGResourceContainer(element)
{
- ASSERT_NOT_REACHED();
- return SVGPaintServer::invalid();
}
-SVGPaintDescription RenderSVGResource::requestPaintDescription(const RenderObject& renderer, const RenderStyle* style, RenderSVGResourceMode resourceMode)
+RenderSVGResourcePaintServer::~RenderSVGResourcePaintServer()
+{
+}
+
+SVGPaintDescription RenderSVGResourcePaintServer::requestPaintDescription(const RenderObject& renderer, const RenderStyle* style, RenderSVGResourceMode resourceMode)
{
return requestPaint(renderer, style, resourceMode);
}
« no previous file with comments | « Source/core/rendering/svg/RenderSVGResourcePaintServer.h ('k') | Source/core/rendering/svg/RenderSVGResourcePattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698