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

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

Issue 257033002: Do not implement EventTarget on SVGElementInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Try to fix TestExpectations Created 6 years, 7 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/SVGUseElement.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGUseElement.cpp
diff --git a/Source/core/svg/SVGUseElement.cpp b/Source/core/svg/SVGUseElement.cpp
index 5f5da38c454b276677a232b8b6e195221b2a9120..e2bee4cb6647b1a18122ccfd4e208efd0895877f 100644
--- a/Source/core/svg/SVGUseElement.cpp
+++ b/Source/core/svg/SVGUseElement.cpp
@@ -774,37 +774,6 @@ void SVGUseElement::associateInstancesWithShadowTreeElements(Node* target, SVGEl
}
}
-SVGElementInstance* SVGUseElement::instanceForShadowTreeElement(Node* element) const
-{
- if (!m_targetElementInstance) {
- ASSERT(!inDocument());
- return 0;
- }
-
- return instanceForShadowTreeElement(element, m_targetElementInstance.get());
-}
-
-SVGElementInstance* SVGUseElement::instanceForShadowTreeElement(Node* element, SVGElementInstance* instance) const
-{
- ASSERT(element);
- ASSERT(instance);
-
- // We're dispatching a mutation event during shadow tree construction
- // this instance hasn't yet been associated to a shadowTree element.
- if (!instance->shadowTreeElement())
- return 0;
-
- if (element == instance->shadowTreeElement())
- return instance;
-
- for (SVGElementInstance* current = instance->firstChild(); current; current = current->nextSibling()) {
- if (SVGElementInstance* search = instanceForShadowTreeElement(element, current))
- return search;
- }
-
- return 0;
-}
-
void SVGUseElement::invalidateShadowTree()
{
if (!inActiveDocument() || m_needsShadowTreeRecreation)
« no previous file with comments | « Source/core/svg/SVGUseElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698