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

Unified Diff: Source/web/WebSelector.cpp

Issue 149513011: Pass around CSSSelector by reference instead of pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/inspector/InspectorStyleSheet.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSelector.cpp
diff --git a/Source/web/WebSelector.cpp b/Source/web/WebSelector.cpp
index 90efbdb3a4f689608f8bc18bb91aa8d687d8e364..99ea21a7419476f2eff9f9fd0d97b27f665f141b 100644
--- a/Source/web/WebSelector.cpp
+++ b/Source/web/WebSelector.cpp
@@ -47,7 +47,7 @@ WebString canonicalizeSelector(WebString webSelector, WebSelectorType restrictio
parser.parseSelector(webSelector, selectorList);
if (restriction == WebSelectorTypeCompound) {
- for (const CSSSelector* selector = selectorList.first(); selector; selector = selectorList.next(selector)) {
+ for (const CSSSelector* selector = selectorList.first(); selector; selector = selectorList.next(*selector)) {
if (!selector->isCompound())
return WebString();
}
« no previous file with comments | « Source/core/inspector/InspectorStyleSheet.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698