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

Unified Diff: Source/core/editing/iterators/CharacterIterator.cpp

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-03T14:40:27 Rebase 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
« no previous file with comments | « Source/core/editing/FindOptions.h ('k') | Source/core/editing/iterators/TextIterator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/CharacterIterator.cpp
diff --git a/Source/core/editing/iterators/CharacterIterator.cpp b/Source/core/editing/iterators/CharacterIterator.cpp
index 232ab7095924a20a7fd9dc3f7084350db2c5cc32..2d9776204e2f5ff11f8abd6206a1eb42708d7681 100644
--- a/Source/core/editing/iterators/CharacterIterator.cpp
+++ b/Source/core/editing/iterators/CharacterIterator.cpp
@@ -628,7 +628,10 @@ void findPlainText(const Position& inputStart, const Position& inputEnd, const S
size_t matchStart;
size_t matchLength;
{
- CharacterIterator findIterator(inputStart, inputEnd, iteratorFlagsForFindPlainText);
+ TextIteratorBehaviorFlags behavior = iteratorFlagsForFindPlainText;
+ if (options & FindAPICall)
+ behavior |= TextIteratorForWindowFind;
+ CharacterIterator findIterator(inputStart, inputEnd, behavior);
matchLength = findPlainTextInternal(findIterator, target, options, matchStart);
if (!matchLength) {
const Position& collapseTo = options & Backwards ? inputStart : inputEnd;
« no previous file with comments | « Source/core/editing/FindOptions.h ('k') | Source/core/editing/iterators/TextIterator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698