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

Unified Diff: Source/core/editing/iterators/TextIterator.h

Issue 1213213004: Introduce use counters for shadow DOM handling in plainText() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2015-07-02T15:13:50 Add comment for |m_handleShadowRoot| Created 5 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
Index: Source/core/editing/iterators/TextIterator.h
diff --git a/Source/core/editing/iterators/TextIterator.h b/Source/core/editing/iterators/TextIterator.h
index 39a8d236e32344f30ba98157cc9b4027d011eda8..589181b675cfc00251ade54ab899b933a45c8682 100644
--- a/Source/core/editing/iterators/TextIterator.h
+++ b/Source/core/editing/iterators/TextIterator.h
@@ -178,6 +178,9 @@ private:
bool m_handledFirstLetter;
// Used when stopsOnFormControls() is true to determine if the iterator should keep advancing.
bool m_shouldStop;
+ // Used for use counter |InnerTextWithShadowTree| and
+ // |SelectionToStringWithShadowTree|, we should not use other purpose.
+ bool m_handleShadowRoot;
// Contains state of emitted text.
TextIteratorTextState m_textState;

Powered by Google App Engine
This is Rietveld 408576698