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

Unified Diff: Source/core/dom/Element.cpp

Issue 17512006: Remove unused attachChildrenLazily method and make attach/detachChildren private (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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/dom/ContainerNode.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 1528687e33dca215197c7352a68b8ab1e43089a9..316d18138c52a07d38e37ba929ce345936c26abb 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1351,11 +1351,8 @@ void Element::detach(const AttachContext& context)
data->resetComputedStyle();
data->resetDynamicRestyleObservations();
}
-
- if (ElementShadow* shadow = this->shadow()) {
- detachChildrenIfNeeded(context);
+ if (ElementShadow* shadow = this->shadow())
shadow->detach(context);
- }
ContainerNode::detach(context);
}
« no previous file with comments | « Source/core/dom/ContainerNode.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698