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

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

Issue 17038004: Remove needsShadowTreeWalker flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase 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/NodeRenderingTraversal.h ('k') | Source/core/dom/shadow/ElementShadow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/NodeRenderingTraversal.cpp
diff --git a/Source/core/dom/NodeRenderingTraversal.cpp b/Source/core/dom/NodeRenderingTraversal.cpp
index 1b23181f832898e94239b6e00a8f895c2815490b..fa67f825e242ba68373c4cbb2d617e8105731054 100644
--- a/Source/core/dom/NodeRenderingTraversal.cpp
+++ b/Source/core/dom/NodeRenderingTraversal.cpp
@@ -47,14 +47,14 @@ void ParentDetails::didTraverseShadowRoot(const ShadowRoot* root)
m_resetStyleInheritance = m_resetStyleInheritance || root->resetStyleInheritance();
}
-ContainerNode* parentSlow(const Node* node, ParentDetails* details)
+ContainerNode* parent(const Node* node, ParentDetails* details)
{
ComposedShadowTreeWalker walker(node, ComposedShadowTreeWalker::CrossUpperBoundary, ComposedShadowTreeWalker::CanStartFromShadowBoundary);
ContainerNode* found = toContainerNode(walker.traverseParent(walker.get(), details));
return details->outOfComposition() ? 0 : found;
}
-Node* nextSiblingSlow(const Node* node)
+Node* nextSibling(const Node* node)
{
ComposedShadowTreeWalker walker(node);
if (node->isBeforePseudoElement()) {
@@ -73,7 +73,7 @@ Node* nextSiblingSlow(const Node* node)
return 0;
}
-Node* previousSiblingSlow(const Node* node)
+Node* previousSibling(const Node* node)
{
ComposedShadowTreeWalker walker(node);
if (node->isAfterPseudoElement()) {
« no previous file with comments | « Source/core/dom/NodeRenderingTraversal.h ('k') | Source/core/dom/shadow/ElementShadow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698