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

Unified Diff: sky/engine/core/dom/ContainerNode.h

Issue 722313002: Remove some unused methods from Node and ContainerNode. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « no previous file | sky/engine/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/ContainerNode.h
diff --git a/sky/engine/core/dom/ContainerNode.h b/sky/engine/core/dom/ContainerNode.h
index 73a2afea2bc7936427169b28515b2bb1596ee4c7..e14510fa94511cdf4db96755ce635c480b07d036 100644
--- a/sky/engine/core/dom/ContainerNode.h
+++ b/sky/engine/core/dom/ContainerNode.h
@@ -214,18 +214,6 @@ inline Node* Node::lastChild() const
return toContainerNode(this)->lastChild();
}
-inline ContainerNode* Node::parentElementOrShadowRoot() const
-{
- ContainerNode* parent = parentNode();
- return parent && (parent->isElementNode() || parent->isShadowRoot()) ? parent : 0;
-}
-
-inline ContainerNode* Node::parentElementOrDocumentFragment() const
-{
- ContainerNode* parent = parentNode();
- return parent && (parent->isElementNode() || parent->isDocumentFragment()) ? parent : 0;
-}
-
inline bool Node::isTreeScope() const
{
return &treeScope().rootNode() == this;
« no previous file with comments | « no previous file | sky/engine/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698