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

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

Issue 147213004: Revert of Convert remaining RenderSVG* nodes to RenderObject::isChildAllowed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase; Include r166238. 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/SVGElement.h ('k') | Source/core/svg/SVGSwitchElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGElement.cpp
diff --git a/Source/core/svg/SVGElement.cpp b/Source/core/svg/SVGElement.cpp
index 5e5638a29aa28af1b4792f42334b14faa1760776..2d6d693961d68ff5131d7dbad0684ca47b81990c 100644
--- a/Source/core/svg/SVGElement.cpp
+++ b/Source/core/svg/SVGElement.cpp
@@ -950,6 +950,17 @@ void SVGElement::finishParsingChildren()
sendSVGLoadEventIfPossible();
}
+bool SVGElement::childShouldCreateRenderer(const Node& child) const
+{
+ if (child.hasTagName(SVGNames::textPathTag)
+#if ENABLE(SVG_FONTS)
+ || child.hasTagName(SVGNames::altGlyphTag)
+#endif
+ || child.hasTagName(SVGNames::tspanTag))
+ return false;
+ return child.isSVGElement();
+}
+
void SVGElement::attributeChanged(const QualifiedName& name, const AtomicString& newValue, AttributeModificationReason)
{
Element::attributeChanged(name, newValue);
« no previous file with comments | « Source/core/svg/SVGElement.h ('k') | Source/core/svg/SVGSwitchElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698