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

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

Issue 622653003: Gradients should restrict possible content (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing 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/RenderSVGResourceGradient.h
diff --git a/Source/core/rendering/svg/RenderSVGResourceGradient.h b/Source/core/rendering/svg/RenderSVGResourceGradient.h
index 2c9a8d8d102b76a23c0ab3c4b96aab4d6ed8f356..f3e02e31c41ca680c34d967568f3794cdcd5f0a1 100644
--- a/Source/core/rendering/svg/RenderSVGResourceGradient.h
+++ b/Source/core/rendering/svg/RenderSVGResourceGradient.h
@@ -51,6 +51,8 @@ public:
virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*, RenderSVGResourceModeFlags) override final;
virtual void postApplyResource(GraphicsContext*) override final;
+ virtual bool isChildAllowed(RenderObject* child, RenderStyle*) const override final;
+
protected:
void addStops(GradientData*, const Vector<Gradient::ColorStop>&) const;

Powered by Google App Engine
This is Rietveld 408576698