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

Unified Diff: Source/core/rendering/svg/RenderSVGResource.h

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 | « no previous file | Source/core/rendering/svg/RenderSVGResourceContainer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/svg/RenderSVGResource.h
diff --git a/Source/core/rendering/svg/RenderSVGResource.h b/Source/core/rendering/svg/RenderSVGResource.h
index 7a0189e31ae9dc25c18fd134b7821eac27c6b472..f887fba5d5b860975ac81aa55ab508d7710b1371 100644
--- a/Source/core/rendering/svg/RenderSVGResource.h
+++ b/Source/core/rendering/svg/RenderSVGResource.h
@@ -26,16 +26,6 @@
namespace blink {
-enum RenderSVGResourceType {
- MaskerResourceType,
- MarkerResourceType,
- PatternResourceType,
- LinearGradientResourceType,
- RadialGradientResourceType,
- FilterResourceType,
- ClipperResourceType
-};
-
enum RenderSVGResourceMode {
ApplyToFillMode,
ApplyToStrokeMode,
@@ -90,17 +80,12 @@ public:
virtual SVGPaintServer preparePaintServer(const RenderObject&);
- virtual RenderSVGResourceType resourceType() const = 0;
-
// Helper utilities used in to access the underlying resources for DRT.
static SVGPaintDescription requestPaintDescription(const RenderObject&, const RenderStyle*, RenderSVGResourceMode);
static void markForLayoutAndParentResourceInvalidation(RenderObject*, bool needsLayout = true);
};
-#define DEFINE_RENDER_SVG_RESOURCE_TYPE_CASTS(thisType, typeName) \
- DEFINE_TYPE_CASTS(thisType, RenderSVGResource, resource, resource->resourceType() == typeName, resource.resourceType() == typeName)
-
}
#endif
« no previous file with comments | « no previous file | Source/core/rendering/svg/RenderSVGResourceContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698