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

Unified Diff: sky/engine/core/css/resolver/SharedStyleFinder.h

Issue 837883002: Store features in the ScopedStyleResoolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Simpler even. 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: sky/engine/core/css/resolver/SharedStyleFinder.h
diff --git a/sky/engine/core/css/resolver/SharedStyleFinder.h b/sky/engine/core/css/resolver/SharedStyleFinder.h
index 46602619e11fb35ae8aeeacfc8f8861c2b862c0a..585ee020361a378ccc8ec30ef76970aa48a4a5f9 100644
--- a/sky/engine/core/css/resolver/SharedStyleFinder.h
+++ b/sky/engine/core/css/resolver/SharedStyleFinder.h
@@ -27,12 +27,9 @@
namespace blink {
+class ContainerNode;
class Element;
-class Node;
class RenderStyle;
-class RuleFeatureSet;
-class RuleSet;
-class SpaceSplitString;
class StyleResolver;
class SharedStyleFinder {
@@ -40,10 +37,8 @@ class SharedStyleFinder {
public:
// RuleSets are passed non-const as the act of matching against them can cause them
// to be compacted. :(
- SharedStyleFinder(const ElementResolveContext& context,
- const RuleFeatureSet& features, StyleResolver& styleResolver)
+ SharedStyleFinder(const ElementResolveContext& context, StyleResolver& styleResolver)
: m_elementAffectedByClassRules(false)
- , m_features(features)
, m_styleResolver(styleResolver)
, m_context(context)
, m_renderingParent(nullptr)
@@ -69,7 +64,6 @@ private:
Document& document() const { return element().document(); }
bool m_elementAffectedByClassRules;
- const RuleFeatureSet& m_features;
StyleResolver& m_styleResolver;
const ElementResolveContext& m_context;
ContainerNode* m_renderingParent;

Powered by Google App Engine
This is Rietveld 408576698