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

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

Issue 1209263003: Find in Page should not consider transparent texts. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/iterators/TextIterator.cpp
diff --git a/Source/core/editing/iterators/TextIterator.cpp b/Source/core/editing/iterators/TextIterator.cpp
index 79cd9300c05fb4be633219a2f2e968dc9c1b2f6d..f9a8ee021ba31e07b36943287024f52bbc63c0db 100644
--- a/Source/core/editing/iterators/TextIterator.cpp
+++ b/Source/core/editing/iterators/TextIterator.cpp
@@ -450,6 +450,9 @@ bool TextIteratorAlgorithm<Strategy>::handleTextNode()
return true;
}
+ if (layoutObject->style()->visitedDependentColor(CSSPropertyColor) == Color::transparent)
+ return false;
+
if (layoutObject->firstTextBox())
m_textBox = layoutObject->firstTextBox();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698