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

Unified Diff: sky/engine/core/css/SelectorChecker.cpp

Issue 815613002: Fix attribute selectors. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | sky/engine/core/css/parser/CSSGrammar.y » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/SelectorChecker.cpp
diff --git a/sky/engine/core/css/SelectorChecker.cpp b/sky/engine/core/css/SelectorChecker.cpp
index 8050254cd6f45b01d4e61acf80b5a4fb96c18aea..aa2cc793e396b9a396c1bf0d6d00fdf556712f95 100644
--- a/sky/engine/core/css/SelectorChecker.cpp
+++ b/sky/engine/core/css/SelectorChecker.cpp
@@ -211,6 +211,7 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context) const
if (anyAttributeMatches(element, selector.match(), selector)) {
if (m_mode == ResolvingStyle && context.elementStyle)
context.elementStyle->setUnique();
+ return true;
}
return false;
case CSSSelector::PseudoClass:
« no previous file with comments | « no previous file | sky/engine/core/css/parser/CSSGrammar.y » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698