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

Unified Diff: sky/engine/core/dom/Element.cpp

Issue 732203004: Clean up child checks in ContainerNode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: dry Created 6 years, 1 month 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
Index: sky/engine/core/dom/Element.cpp
diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
index 2ff0dcc665f22b84e341c5040914005cf3aa8f54..e331e32556621f5f20c0faf7d6629c86a81bd35e 100644
--- a/sky/engine/core/dom/Element.cpp
+++ b/sky/engine/core/dom/Element.cpp
@@ -1064,18 +1064,6 @@ ShadowRoot* Element::shadowRoot() const
return elementShadow->youngestShadowRoot();
}
-bool Element::childTypeAllowed(NodeType type) const
-{
- switch (type) {
- case ELEMENT_NODE:
- case TEXT_NODE:
- return true;
- default:
- break;
- }
- return false;
-}
-
void Element::childrenChanged(const ChildrenChange& change)
{
ContainerNode::childrenChanged(change);

Powered by Google App Engine
This is Rietveld 408576698