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

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

Issue 146833003: Convert remaining RenderSVG* nodes to RenderObject::isChildAllowed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix 'switch' condition. 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/SVGAElement.h ('k') | Source/core/svg/SVGElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGAElement.cpp
diff --git a/Source/core/svg/SVGAElement.cpp b/Source/core/svg/SVGAElement.cpp
index 7d4ec31312e0199a591873016007c36ad862abd2..2e7d55fa67c7e16c98b3fc8a0acb45a186eb6528 100644
--- a/Source/core/svg/SVGAElement.cpp
+++ b/Source/core/svg/SVGAElement.cpp
@@ -220,18 +220,6 @@ bool SVGAElement::isKeyboardFocusable() const
return false;
}
-bool SVGAElement::childShouldCreateRenderer(const Node& child) const
-{
- // http://www.w3.org/2003/01/REC-SVG11-20030114-errata#linking-text-environment
- // The 'a' element may contain any element that its parent may contain, except itself.
- if (child.hasTagName(SVGNames::aTag))
- return false;
- if (parentNode() && parentNode()->isSVGElement())
- return toSVGElement(parentNode())->childShouldCreateRenderer(child);
-
- return SVGGraphicsElement::childShouldCreateRenderer(child);
-}
-
bool SVGAElement::willRespondToMouseClickEvents()
{
return isLink() || SVGGraphicsElement::willRespondToMouseClickEvents();
« no previous file with comments | « Source/core/svg/SVGAElement.h ('k') | Source/core/svg/SVGElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698