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

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

Issue 421293004: Move Node::enclosingBlockFlowElement() to htmlediting.h (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nits Created 6 years, 5 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/Node.h ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index dad59a8555c06933c6fb76ae84ec546c98e8d15e..071f3e571de4f37f3e6d306e1cfc1b9a1443a629 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -1180,22 +1180,6 @@ bool Node::isBlockFlowElement() const
return isElementNode() && renderer() && renderer()->isRenderBlockFlow();
}
-Element *Node::enclosingBlockFlowElement() const
-{
- Node *n = const_cast<Node *>(this);
- if (isBlockFlowElement())
- return toElement(n);
-
- while (1) {
- n = n->parentNode();
- if (!n)
- break;
- if (n->isBlockFlowElement() || isHTMLBodyElement(*n))
- return toElement(n);
- }
- return 0;
-}
-
bool Node::isRootEditableElement() const
{
return hasEditableStyle() && isElementNode() && (!parentNode() || !parentNode()->hasEditableStyle()
@@ -1224,11 +1208,6 @@ Element* Node::rootEditableElement() const
return result;
}
-bool Node::inSameContainingBlockFlowElement(Node *n)
-{
- return n ? enclosingBlockFlowElement() == n->enclosingBlockFlowElement() : false;
-}
-
// FIXME: End of obviously misplaced HTML editing functions. Try to move these out of Node.
Document* Node::ownerDocument() const
« no previous file with comments | « Source/core/dom/Node.h ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698