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

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

Issue 20560008: Don't assume so easily that RenderStyle data can be shared. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 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
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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 void matchShadowDistributedRules(ElementRuleCollector&, bool includeEmptyRul es); 281 void matchShadowDistributedRules(ElementRuleCollector&, bool includeEmptyRul es);
282 void matchHostRules(Element*, ScopedStyleResolver*, ElementRuleCollector&, b ool includeEmptyRules); 282 void matchHostRules(Element*, ScopedStyleResolver*, ElementRuleCollector&, b ool includeEmptyRules);
283 void matchScopedAuthorRules(Element*, ElementRuleCollector&, bool includeEmp tyRules); 283 void matchScopedAuthorRules(Element*, ElementRuleCollector&, bool includeEmp tyRules);
284 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool matchAut horAndUserStyles, bool includeSMILProperties); 284 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool matchAut horAndUserStyles, bool includeSMILProperties);
285 void matchUARules(ElementRuleCollector&); 285 void matchUARules(ElementRuleCollector&);
286 void matchUserRules(ElementRuleCollector&, bool includeEmptyRules); 286 void matchUserRules(ElementRuleCollector&, bool includeEmptyRules);
287 void collectFeatures(); 287 void collectFeatures();
288 288
289 bool fastRejectSelector(const RuleData&) const; 289 bool fastRejectSelector(const RuleData&) const;
290 290
291 void applyMatchedProperties(StyleResolverState&, const MatchResult&, const E lement*); 291 void applyMatchedProperties(StyleResolverState&, const MatchResult&);
292 292
293 enum StyleApplicationPass { 293 enum StyleApplicationPass {
294 VariableDefinitions, 294 VariableDefinitions,
295 AnimationProperties, 295 AnimationProperties,
296 HighPriorityProperties, 296 HighPriorityProperties,
297 LowPriorityProperties 297 LowPriorityProperties
298 }; 298 };
299 template <StyleResolver::StyleApplicationPass pass> 299 template <StyleResolver::StyleApplicationPass pass>
300 static inline bool isPropertyForPass(CSSPropertyID); 300 static inline bool isPropertyForPass(CSSPropertyID);
301 template <StyleApplicationPass pass> 301 template <StyleApplicationPass pass>
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 PseudoId ignoreDynamicPseudo = NOPSEUDO; 371 PseudoId ignoreDynamicPseudo = NOPSEUDO;
372 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 372 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
373 return true; 373 return true;
374 } 374 }
375 return false; 375 return false;
376 } 376 }
377 377
378 } // namespace WebCore 378 } // namespace WebCore
379 379
380 #endif // StyleResolver_h 380 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698