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

Unified Diff: third_party/WebKit/Source/core/css/RuleSet.cpp

Issue 1706793002: Don't add to uncommonAttributeRules for non-sharable cases. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/RuleSet.cpp
diff --git a/third_party/WebKit/Source/core/css/RuleSet.cpp b/third_party/WebKit/Source/core/css/RuleSet.cpp
index 42962a163bd9683a5086e89d1dfbedfc6b8382d0..663371ae1e0e3f8130f6b1480ed4385491360480 100644
--- a/third_party/WebKit/Source/core/css/RuleSet.cpp
+++ b/third_party/WebKit/Source/core/css/RuleSet.cpp
@@ -78,6 +78,12 @@ static bool containsUncommonAttributeSelector(const CSSSelector& selector)
return true;
if (selectorListContainsUncommonAttributeSelector(current))
return true;
+ if (current->relationIsAffectedByPseudoContent()
+ || current->pseudoType() == CSSSelector::PseudoHost
+ || current->pseudoType() == CSSSelector::PseudoHostContext
+ || current->pseudoType() == CSSSelector::PseudoSlotted) {
+ return false;
+ }
if (current->relation() != CSSSelector::SubSelector) {
current = current->tagHistory();
break;
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeatureSetTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698