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

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

Issue 2677843002: Change ComputedStyle::setUnique to take bool parameter. (Closed)
Patch Set: Created 3 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
Index: third_party/WebKit/Source/core/css/SelectorChecker.cpp
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
index da7b0ec8448154b902f39bd90eaddb3883185a1e..e63273807004df09b43bca3920d39fc2af4dd16e 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
@@ -884,7 +884,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context,
if (context.inRightmostCompound) {
m_elementStyle->setAffectedByDrag();
} else {
- m_elementStyle->setUnique();
+ m_elementStyle->setUnique(true);
element.setChildrenOrSiblingsAffectedByDrag();
}
}
@@ -896,7 +896,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context,
if (context.inRightmostCompound) {
m_elementStyle->setAffectedByFocus();
} else {
- m_elementStyle->setUnique();
+ m_elementStyle->setUnique(true);
element.setChildrenOrSiblingsAffectedByFocus();
}
}
@@ -908,7 +908,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context,
if (context.inRightmostCompound) {
m_elementStyle->setAffectedByHover();
} else {
- m_elementStyle->setUnique();
+ m_elementStyle->setUnique(true);
element.setChildrenOrSiblingsAffectedByHover();
}
}
@@ -925,7 +925,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context,
if (context.inRightmostCompound) {
m_elementStyle->setAffectedByActive();
} else {
- m_elementStyle->setUnique();
+ m_elementStyle->setUnique(true);
element.setChildrenOrSiblingsAffectedByActive();
}
}

Powered by Google App Engine
This is Rietveld 408576698