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

Side by Side Diff: sky/engine/core/css/resolver/StyleResolver.h

Issue 836193003: Combine match methods on StyleResolver. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void decreaseStyleSharingDepth() { --m_styleSharingDepth; } 145 void decreaseStyleSharingDepth() { --m_styleSharingDepth; }
146 146
147 private: 147 private:
148 // FIXME: This should probably go away, folded into FontBuilder. 148 // FIXME: This should probably go away, folded into FontBuilder.
149 void updateFont(StyleResolverState&); 149 void updateFont(StyleResolverState&);
150 150
151 void loadPendingResources(StyleResolverState&); 151 void loadPendingResources(StyleResolverState&);
152 152
153 void appendCSSStyleSheet(CSSStyleSheet*); 153 void appendCSSStyleSheet(CSSStyleSheet*);
154 154
155 void matchUARules(ElementRuleCollector&, RuleSet*); 155 void matchAuthorRules(Element*, ElementRuleCollector&);
156 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule s);
157 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc ludeEmptyRules, Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers, Vector<RawPtr <ScopedStyleResolver>, 8>& resolversInShadowTree);
158 void matchAllRules(StyleResolverState&, ElementRuleCollector&); 156 void matchAllRules(StyleResolverState&, ElementRuleCollector&);
159 void matchUARules(ElementRuleCollector&); 157 void matchUARules(ElementRuleCollector&);
160 158
161 void applyMatchedProperties(StyleResolverState&, const MatchResult&); 159 void applyMatchedProperties(StyleResolverState&, const MatchResult&);
162 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ; 160 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ;
163 161
164 void collectScopedResolversForHostedShadowTrees(const Element*, Vector<RawPt r<ScopedStyleResolver>, 8>&);
165
166 enum StyleApplicationPass { 162 enum StyleApplicationPass {
167 HighPriorityProperties, 163 HighPriorityProperties,
168 LowPriorityProperties 164 LowPriorityProperties
169 }; 165 };
170 template <StyleResolver::StyleApplicationPass pass> 166 template <StyleResolver::StyleApplicationPass pass>
171 static inline CSSPropertyID firstCSSPropertyId(); 167 static inline CSSPropertyID firstCSSPropertyId();
172 template <StyleResolver::StyleApplicationPass pass> 168 template <StyleResolver::StyleApplicationPass pass>
173 static inline CSSPropertyID lastCSSPropertyId(); 169 static inline CSSPropertyID lastCSSPropertyId();
174 template <StyleResolver::StyleApplicationPass pass> 170 template <StyleResolver::StyleApplicationPass pass>
175 static inline bool isPropertyForPass(CSSPropertyID); 171 static inline bool isPropertyForPass(CSSPropertyID);
(...skipping 26 matching lines...) Expand all
202 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 198 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
203 unsigned m_styleResolverStatsSequence; 199 unsigned m_styleResolverStatsSequence;
204 200
205 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 201 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
206 unsigned m_accessCount; 202 unsigned m_accessCount;
207 }; 203 };
208 204
209 } // namespace blink 205 } // namespace blink
210 206
211 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ 207 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_
OLDNEW
« 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