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

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

Issue 823633006: Remove dead enums from StyleResolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: typo. 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 | « no previous file | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/resolver/StyleResolver.h
diff --git a/sky/engine/core/css/resolver/StyleResolver.h b/sky/engine/core/css/resolver/StyleResolver.h
index 37f156c6f5dfb6dd2551b7f49eab1b81554af4fb..bb971c669d4a2a3682dab91f0cbbd7525456b9c1 100644
--- a/sky/engine/core/css/resolver/StyleResolver.h
+++ b/sky/engine/core/css/resolver/StyleResolver.h
@@ -64,16 +64,6 @@ class StyleRuleKeyframes;
class MatchResult;
-enum StyleSharingBehavior {
- AllowStyleSharing,
- DisallowStyleSharing,
-};
-
-enum RuleMatchingBehavior {
- MatchAllRules,
- MatchAllRulesExcludingSMIL
-};
-
const unsigned styleSharingListSize = 15;
const unsigned styleSharingMaxDepth = 32;
typedef Deque<RawPtr<Element>, styleSharingListSize> StyleSharingList;
@@ -96,8 +86,7 @@ public:
explicit StyleResolver(Document&);
virtual ~StyleResolver();
- PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle = 0, StyleSharingBehavior = AllowStyleSharing,
- RuleMatchingBehavior = MatchAllRules);
+ PassRefPtr<RenderStyle> styleForElement(Element*, RenderStyle* parentStyle = 0);
PassRefPtr<RenderStyle> styleForKeyframe(Element*, const RenderStyle&, RenderStyle* parentStyle, const StyleKeyframe*, const AtomicString& animationName);
static PassRefPtr<AnimatableValue> createAnimatableValueSnapshot(Element&, CSSPropertyID, CSSValue&);
@@ -166,7 +155,7 @@ private:
void matchUARules(ElementRuleCollector&, RuleSet*);
void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRules);
void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool includeEmptyRules, Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers, Vector<RawPtr<ScopedStyleResolver>, 8>& resolversInShadowTree);
- void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeSMILProperties);
+ void matchAllRules(StyleResolverState&, ElementRuleCollector&);
void matchUARules(ElementRuleCollector&);
void applyMatchedProperties(StyleResolverState&, const MatchResult&);
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698