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

Unified Diff: Source/core/dom/StyleEngine.cpp

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
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.cpp
diff --git a/Source/core/dom/StyleEngine.cpp b/Source/core/dom/StyleEngine.cpp
index 49708dcd1b16befc79881cde65483bba7dfc6c0d..a557562c8e6134ba755f14b94977e0ee012bc708 100644
--- a/Source/core/dom/StyleEngine.cpp
+++ b/Source/core/dom/StyleEngine.cpp
@@ -61,6 +61,7 @@ StyleEngine::StyleEngine(Document& document)
, m_documentScopeDirty(true)
, m_usesSiblingRules(false)
, m_usesFirstLineRules(false)
+ , m_usesWindowInactiveSelector(false)
, m_usesFirstLetterRules(false)
, m_usesRemUnits(false)
, m_maxDirectAdjacentSelectors(0)
@@ -217,6 +218,7 @@ void StyleEngine::combineCSSFeatureFlags(const RuleFeatureSet& features)
// Delay resetting the flags until after next style recalc since unapplying the style may not work without these set (this is true at least with before/after).
m_usesSiblingRules = m_usesSiblingRules || features.usesSiblingRules();
m_usesFirstLineRules = m_usesFirstLineRules || features.usesFirstLineRules();
+ m_usesWindowInactiveSelector = m_usesWindowInactiveSelector || features.usesWindowInactiveSelector();
m_maxDirectAdjacentSelectors = max(m_maxDirectAdjacentSelectors, features.maxDirectAdjacentSelectors());
}
@@ -224,6 +226,7 @@ void StyleEngine::resetCSSFeatureFlags(const RuleFeatureSet& features)
{
m_usesSiblingRules = features.usesSiblingRules();
m_usesFirstLineRules = features.usesFirstLineRules();
+ m_usesWindowInactiveSelector = features.usesWindowInactiveSelector();
m_maxDirectAdjacentSelectors = features.maxDirectAdjacentSelectors();
}
« no previous file with comments | « Source/core/dom/StyleEngine.h ('k') | Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698