Index: third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
index e5786867d951b11da91c7987d16be5b9d494bc38..2e11e8669e8e96f4bdf927c48b5d7fc379168125 100644 |
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp |
@@ -285,7 +285,7 @@ void TextIteratorAlgorithm<Strategy>::advance() |
if (m_iterationProgress < HandledOpenShadowRoots) { |
if (entersOpenShadowRoots() && m_node->isElementNode() && toElement(m_node)->openShadowRoot()) { |
ShadowRoot* youngestShadowRoot = toElement(m_node)->openShadowRoot(); |
- ASSERT(youngestShadowRoot->type() == ShadowRootType::OpenByDefault || youngestShadowRoot->type() == ShadowRootType::Open); |
+ ASSERT(youngestShadowRoot->type() == ShadowRootType::V0 || youngestShadowRoot->type() == ShadowRootType::Open); |
m_node = youngestShadowRoot; |
m_iterationProgress = HandledNone; |
++m_shadowDepth; |
@@ -374,9 +374,9 @@ void TextIteratorAlgorithm<Strategy>::advance() |
return; |
} |
ShadowRoot* shadowRoot = toShadowRoot(m_node); |
- if (shadowRoot->type() == ShadowRootType::OpenByDefault || shadowRoot->type() == ShadowRootType::Open) { |
+ if (shadowRoot->type() == ShadowRootType::V0 || shadowRoot->type() == ShadowRootType::Open) { |
ShadowRoot* nextShadowRoot = shadowRoot->olderShadowRoot(); |
- if (nextShadowRoot && nextShadowRoot->type() == ShadowRootType::OpenByDefault) { |
+ if (nextShadowRoot && nextShadowRoot->type() == ShadowRootType::V0) { |
m_fullyClippedStack.pop(); |
m_node = nextShadowRoot; |
m_iterationProgress = HandledNone; |