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

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

Issue 407093010: Simplify compareDocumentPosition (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentOrderedList.cpp
diff --git a/Source/core/dom/DocumentOrderedList.cpp b/Source/core/dom/DocumentOrderedList.cpp
index 76955657f5a1c5e905d0882b9da375f4d9bb2f67..c575b2278fcf190f54bba77fdc3155e9e239878a 100644
--- a/Source/core/dom/DocumentOrderedList.cpp
+++ b/Source/core/dom/DocumentOrderedList.cpp
@@ -47,7 +47,7 @@ void DocumentOrderedList::add(Node* node)
do {
--it;
Node* n = *it;
- unsigned short position = n->compareDocumentPositionInternal(node, Node::TreatShadowTreesAsComposed);
+ unsigned short position = n->compareDocumentPosition(node, Node::TreatShadowTreesAsComposed);
if (position & Node::DOCUMENT_POSITION_FOLLOWING) {
m_nodes.insertBefore(followingNode, node);
return;
@@ -60,7 +60,7 @@ void DocumentOrderedList::add(Node* node)
void DocumentOrderedList::parserAdd(Node* node)
{
- ASSERT(m_nodes.isEmpty() || m_nodes.last()->compareDocumentPositionInternal(node, Node::TreatShadowTreesAsComposed) & Node::DOCUMENT_POSITION_FOLLOWING);
+ ASSERT(m_nodes.isEmpty() || m_nodes.last()->compareDocumentPosition(node, Node::TreatShadowTreesAsComposed) & Node::DOCUMENT_POSITION_FOLLOWING);
m_nodes.add(node);
}
« no previous file with comments | « no previous file | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698