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

Unified Diff: sky/engine/core/css/ElementRuleCollector.h

Issue 772363002: Remove code to collect rules when matching. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « no previous file | sky/engine/core/css/ElementRuleCollector.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/ElementRuleCollector.h
diff --git a/sky/engine/core/css/ElementRuleCollector.h b/sky/engine/core/css/ElementRuleCollector.h
index 02053b2b926dc24fb5040fd083243beac0803da0..dca6847169ac0c9900dcf7b82caed13899163fdc 100644
--- a/sky/engine/core/css/ElementRuleCollector.h
+++ b/sky/engine/core/css/ElementRuleCollector.h
@@ -105,8 +105,6 @@ public:
bool hasAnyMatchingRules(RuleSet*);
MatchResult& matchedResult();
- PassRefPtr<StyleRuleList> matchedStyleRuleList();
- PassRefPtr<CSSRuleList> matchedCSSRuleList();
void collectMatchingRules(const MatchRequest&, RuleRange&, SelectorChecker::ContextFlags = SelectorChecker::DefaultBehavior, CascadeScope = ignoreCascadeScope, CascadeOrder = ignoreCascadeOrder);
void sortAndTransferMatchedRules();
@@ -128,17 +126,9 @@ private:
bool ruleMatches(const RuleData&, const ContainerNode* scope, SelectorChecker::ContextFlags);
- CSSRuleList* nestedRuleList(CSSRule*);
- template<class CSSRuleCollection>
- CSSRule* findStyleRule(CSSRuleCollection*, StyleRule*);
- void appendCSSOMWrapperForRule(CSSStyleSheet*, StyleRule*);
-
void sortMatchedRules();
void addMatchedRule(const RuleData*, CascadeScope, CascadeOrder, unsigned styleSheetIndex, const CSSStyleSheet* parentStyleSheet);
- StaticCSSRuleList* ensureRuleList();
- StyleRuleList* ensureStyleRuleList();
-
private:
const ElementResolveContext& m_context;
RefPtr<RenderStyle> m_style; // FIXME: This can be mutated during matching!
@@ -149,8 +139,6 @@ private:
OwnPtr<Vector<MatchedRule, 32> > m_matchedRules;
// Output.
- RefPtr<StaticCSSRuleList> m_cssRuleList;
- RefPtr<StyleRuleList> m_styleRuleList;
MatchResult m_result;
};
« no previous file with comments | « no previous file | sky/engine/core/css/ElementRuleCollector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698