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

Unified Diff: Source/core/css/RuleFeature.h

Issue 861553003: Invalidate CustomScrollbars on having window-inactive selector. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed review comments Created 5 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
Index: Source/core/css/RuleFeature.h
diff --git a/Source/core/css/RuleFeature.h b/Source/core/css/RuleFeature.h
index 004d01615b93e22398773eb7383a058de9eb97c6..fa203a487bcbcda8eac414e6574e72ddd854b5ea 100644
--- a/Source/core/css/RuleFeature.h
+++ b/Source/core/css/RuleFeature.h
@@ -61,6 +61,7 @@ public:
bool usesSiblingRules() const { return !siblingRules.isEmpty(); }
bool usesFirstLineRules() const { return m_metadata.usesFirstLineRules; }
+ bool usesWindowInactiveSelector() const { return m_metadata.usesWindowInactiveSelector; }
unsigned maxDirectAdjacentSelectors() const { return m_metadata.maxDirectAdjacentSelectors; }
void setMaxDirectAdjacentSelectors(unsigned value) { m_metadata.maxDirectAdjacentSelectors = std::max(value, m_metadata.maxDirectAdjacentSelectors); }
@@ -108,6 +109,7 @@ private:
struct FeatureMetadata {
FeatureMetadata()
: usesFirstLineRules(false)
+ , usesWindowInactiveSelector(false)
, foundSiblingSelector(false)
, maxDirectAdjacentSelectors(0)
{ }
@@ -115,6 +117,7 @@ private:
void clear();
bool usesFirstLineRules;
+ bool usesWindowInactiveSelector;
bool foundSiblingSelector;
unsigned maxDirectAdjacentSelectors;
};
« no previous file with comments | « LayoutTests/scrollbars/resources/scrollable-subiframe-nowindowinactive-expected.html ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698