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

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

Issue 767273003: Remove parent() concept from ScopedStyleResolver. (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 unified diff | Download patch
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule s); 202 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule s);
203 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc ludeEmptyRules, Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers, Vector<RawPtr <ScopedStyleResolver>, 8>& resolversInShadowTree); 203 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc ludeEmptyRules, Vector<RawPtr<ScopedStyleResolver>, 8>& resolvers, Vector<RawPtr <ScopedStyleResolver>, 8>& resolversInShadowTree);
204 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS MILProperties); 204 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS MILProperties);
205 void matchUARules(ElementRuleCollector&); 205 void matchUARules(ElementRuleCollector&);
206 void collectFeatures(); 206 void collectFeatures();
207 void resetRuleFeatures(); 207 void resetRuleFeatures();
208 208
209 void applyMatchedProperties(StyleResolverState&, const MatchResult&); 209 void applyMatchedProperties(StyleResolverState&, const MatchResult&);
210 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ; 210 bool applyAnimatedProperties(StyleResolverState&, Element* animatingElement) ;
211 211
212 void resolveScopedStyles(const Element*, Vector<RawPtr<ScopedStyleResolver>, 8>&);
213 void collectScopedResolversForHostedShadowTrees(const Element*, Vector<RawPt r<ScopedStyleResolver>, 8>&); 212 void collectScopedResolversForHostedShadowTrees(const Element*, Vector<RawPt r<ScopedStyleResolver>, 8>&);
214 213
215 enum StyleApplicationPass { 214 enum StyleApplicationPass {
216 HighPriorityProperties, 215 HighPriorityProperties,
217 LowPriorityProperties 216 LowPriorityProperties
218 }; 217 };
219 template <StyleResolver::StyleApplicationPass pass> 218 template <StyleResolver::StyleApplicationPass pass>
220 static inline CSSPropertyID firstCSSPropertyId(); 219 static inline CSSPropertyID firstCSSPropertyId();
221 template <StyleResolver::StyleApplicationPass pass> 220 template <StyleResolver::StyleApplicationPass pass>
222 static inline CSSPropertyID lastCSSPropertyId(); 221 static inline CSSPropertyID lastCSSPropertyId();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 262 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
264 unsigned m_styleResolverStatsSequence; 263 unsigned m_styleResolverStatsSequence;
265 264
266 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 265 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
267 unsigned m_accessCount; 266 unsigned m_accessCount;
268 }; 267 };
269 268
270 } // namespace blink 269 } // namespace blink
271 270
272 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_ 271 #endif // SKY_ENGINE_CORE_CSS_RESOLVER_STYLERESOLVER_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/resolver/ScopedStyleResolver.cpp ('k') | sky/engine/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698