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

Side by Side Diff: Source/core/css/resolver/StyleResolver.h

Issue 585683002: Stop traversing up the tree looking for ScopedStyleResolvers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/ElementRuleCollector.h ('k') | Source/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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 void updateFont(StyleResolverState&); 213 void updateFont(StyleResolverState&);
214 214
215 void loadPendingResources(StyleResolverState&); 215 void loadPendingResources(StyleResolverState&);
216 void adjustRenderStyle(StyleResolverState&, Element*); 216 void adjustRenderStyle(StyleResolverState&, Element*);
217 217
218 void appendCSSStyleSheet(CSSStyleSheet*); 218 void appendCSSStyleSheet(CSSStyleSheet*);
219 219
220 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId, unsigned rulesToInclude); 220 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId, unsigned rulesToInclude);
221 void matchUARules(ElementRuleCollector&, RuleSet*); 221 void matchUARules(ElementRuleCollector&, RuleSet*);
222 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule s); 222 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule s);
223 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc ludeEmptyRules, WillBeHeapVector<RawPtrWillBeMember<ScopedStyleResolver>, 8>& re solvers, WillBeHeapVector<RawPtrWillBeMember<ScopedStyleResolver>, 8>& resolvers InShadowTree);
224 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS MILProperties); 223 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS MILProperties);
225 void matchUARules(ElementRuleCollector&); 224 void matchUARules(ElementRuleCollector&);
226 void collectFeatures(); 225 void collectFeatures();
227 void resetRuleFeatures(); 226 void resetRuleFeatures();
228 227
229 bool fastRejectSelector(const RuleData&) const; 228 bool fastRejectSelector(const RuleData&) const;
230 229
231 void applyMatchedProperties(StyleResolverState&, const MatchResult&); 230 void applyMatchedProperties(StyleResolverState&, const MatchResult&);
232 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl ement); 231 bool applyAnimatedProperties(StyleResolverState&, const Element* animatingEl ement);
233 void applyCallbackSelectors(StyleResolverState&); 232 void applyCallbackSelectors(StyleResolverState&);
234 233
235 void resolveScopedStyles(const Element*, WillBeHeapVector<RawPtrWillBeMember <ScopedStyleResolver>, 8>&);
236 void collectScopedResolversForHostedShadowTrees(const Element*, WillBeHeapVe ctor<RawPtrWillBeMember<ScopedStyleResolver>, 8>&); 234 void collectScopedResolversForHostedShadowTrees(const Element*, WillBeHeapVe ctor<RawPtrWillBeMember<ScopedStyleResolver>, 8>&);
237 235
238 enum StyleApplicationPass { 236 enum StyleApplicationPass {
239 HighPriorityProperties, 237 HighPriorityProperties,
240 LowPriorityProperties 238 LowPriorityProperties
241 }; 239 };
242 template <StyleResolver::StyleApplicationPass pass> 240 template <StyleResolver::StyleApplicationPass pass>
243 static inline CSSPropertyID firstCSSPropertyId(); 241 static inline CSSPropertyID firstCSSPropertyId();
244 template <StyleResolver::StyleApplicationPass pass> 242 template <StyleResolver::StyleApplicationPass pass>
245 static inline CSSPropertyID lastCSSPropertyId(); 243 static inline CSSPropertyID lastCSSPropertyId();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
305 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals; 303 OwnPtr<StyleResolverStats> m_styleResolverStatsTotals;
306 unsigned m_styleResolverStatsSequence; 304 unsigned m_styleResolverStatsSequence;
307 305
308 // Use only for Internals::updateStyleAndReturnAffectedElementCount. 306 // Use only for Internals::updateStyleAndReturnAffectedElementCount.
309 unsigned m_accessCount; 307 unsigned m_accessCount;
310 }; 308 };
311 309
312 } // namespace blink 310 } // namespace blink
313 311
314 #endif // StyleResolver_h 312 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/ElementRuleCollector.h ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698