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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp

Issue 2508033004: Reduce unnecessary usage of TextCaseSensitivity::TextCaseInsensitive. (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
index f3c2ad11de4d576cf9475b1ee7cdd4704c6d184e..a6c65de5f67bf1ac3eb98b83382695aaf6d2dbc2 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp
@@ -994,9 +994,10 @@ Response InspectorDOMAgent::performSearch(
equalIgnoringCase(node->nodeName(), tagNameQuery)) ||
(startTagFound && !endTagFound &&
node->nodeName().startsWith(tagNameQuery,
- TextCaseInsensitive)) ||
+ TextCaseUnicodeInsensitive)) ||
(!startTagFound && endTagFound &&
- node->nodeName().endsWith(tagNameQuery, TextCaseInsensitive))) {
+ node->nodeName().endsWith(tagNameQuery,
+ TextCaseUnicodeInsensitive))) {
resultCollector.add(node);
break;
}
@@ -1006,12 +1007,13 @@ Response InspectorDOMAgent::performSearch(
for (auto& attribute : attributes) {
// Add attribute pair
if (attribute.localName().find(whitespaceTrimmedQuery, 0,
- TextCaseInsensitive) != kNotFound) {
+ TextCaseUnicodeInsensitive) !=
+ kNotFound) {
resultCollector.add(node);
break;
}
- size_t foundPosition =
- attribute.value().find(attributeQuery, 0, TextCaseInsensitive);
+ size_t foundPosition = attribute.value().find(
+ attributeQuery, 0, TextCaseUnicodeInsensitive);
if (foundPosition != kNotFound) {
if (!exactAttributeMatch ||
(!foundPosition &&

Powered by Google App Engine
This is Rietveld 408576698