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

Unified Diff: Source/core/svg/SVGFilterElement.cpp

Issue 143983016: Convert SVG <filter> and <fe*> to RenderObject::isChildAllowed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix typo. Created 6 years, 11 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/svg/SVGFilterElement.h ('k') | Source/core/svg/SVGFilterPrimitiveStandardAttributes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGFilterElement.cpp
diff --git a/Source/core/svg/SVGFilterElement.cpp b/Source/core/svg/SVGFilterElement.cpp
index dd8b3ab2234d63928dd7ae7d299dae60f66bf87b..ebad65dfeec54fe05974e8f40d90aab62796066a 100644
--- a/Source/core/svg/SVGFilterElement.cpp
+++ b/Source/core/svg/SVGFilterElement.cpp
@@ -193,45 +193,6 @@ RenderObject* SVGFilterElement::createRenderer(RenderStyle*)
return renderer;
}
-bool SVGFilterElement::childShouldCreateRenderer(const Node& child) const
-{
- if (!child.isSVGElement())
- return false;
-
- const SVGElement* svgElement = toSVGElement(&child);
-
- DEFINE_STATIC_LOCAL(HashSet<QualifiedName>, allowedChildElementTags, ());
- if (allowedChildElementTags.isEmpty()) {
- allowedChildElementTags.add(SVGNames::feBlendTag);
- allowedChildElementTags.add(SVGNames::feColorMatrixTag);
- allowedChildElementTags.add(SVGNames::feComponentTransferTag);
- allowedChildElementTags.add(SVGNames::feCompositeTag);
- allowedChildElementTags.add(SVGNames::feConvolveMatrixTag);
- allowedChildElementTags.add(SVGNames::feDiffuseLightingTag);
- allowedChildElementTags.add(SVGNames::feDisplacementMapTag);
- allowedChildElementTags.add(SVGNames::feDistantLightTag);
- allowedChildElementTags.add(SVGNames::feDropShadowTag);
- allowedChildElementTags.add(SVGNames::feFloodTag);
- allowedChildElementTags.add(SVGNames::feFuncATag);
- allowedChildElementTags.add(SVGNames::feFuncBTag);
- allowedChildElementTags.add(SVGNames::feFuncGTag);
- allowedChildElementTags.add(SVGNames::feFuncRTag);
- allowedChildElementTags.add(SVGNames::feGaussianBlurTag);
- allowedChildElementTags.add(SVGNames::feImageTag);
- allowedChildElementTags.add(SVGNames::feMergeTag);
- allowedChildElementTags.add(SVGNames::feMergeNodeTag);
- allowedChildElementTags.add(SVGNames::feMorphologyTag);
- allowedChildElementTags.add(SVGNames::feOffsetTag);
- allowedChildElementTags.add(SVGNames::fePointLightTag);
- allowedChildElementTags.add(SVGNames::feSpecularLightingTag);
- allowedChildElementTags.add(SVGNames::feSpotLightTag);
- allowedChildElementTags.add(SVGNames::feTileTag);
- allowedChildElementTags.add(SVGNames::feTurbulenceTag);
- }
-
- return allowedChildElementTags.contains<SVGAttributeHashTranslator>(svgElement->tagQName());
-}
-
bool SVGFilterElement::selfHasRelativeLengths() const
{
return m_x->currentValue()->isRelative()
« no previous file with comments | « Source/core/svg/SVGFilterElement.h ('k') | Source/core/svg/SVGFilterPrimitiveStandardAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698