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

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

Issue 1134173002: Get rid of TreeBoundaryCrossingRules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing important UA rules. Created 5 years, 7 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/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.h
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h
index ffe7ae975ae10cf81d7b82192fab07cd3e2455f7..644e266bcd62654ee98154a658288799db3d7652 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -121,6 +121,10 @@ public:
bool usesRemUnits() const { return m_usesRemUnits; }
void setUsesRemUnit(bool b) { m_usesRemUnits = b; }
+ bool hasTreeBoundaryCrossingRules() const { return m_treeBoundaryCrossingScopeCount; }
+ void addTreeBoundaryCrossingScope() { ++m_treeBoundaryCrossingScopeCount; }
+ void removeTreeBoundaryCrossingScope() { --m_treeBoundaryCrossingScopeCount; }
+
void combineCSSFeatureFlags(const RuleFeatureSet&);
void resetCSSFeatureFlags(const RuleFeatureSet&);
@@ -289,7 +293,7 @@ private:
bool m_usesWindowInactiveSelector;
bool m_usesRemUnits;
unsigned m_maxDirectAdjacentSelectors;
-
+ unsigned m_treeBoundaryCrossingScopeCount;
bool m_ignorePendingStylesheets;
bool m_didCalculateResolver;
OwnPtrWillBeMember<StyleResolver> m_resolver;
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698