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

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

Issue 66383005: Remove the concept of user stylesheets. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 // FIXME: This should probably go away, folded into FontBuilder. 287 // FIXME: This should probably go away, folded into FontBuilder.
288 void updateFont(StyleResolverState&); 288 void updateFont(StyleResolverState&);
289 289
290 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId, unsigned rulesToInclude); 290 void collectPseudoRulesForElement(Element*, ElementRuleCollector&, PseudoId, unsigned rulesToInclude);
291 void matchUARules(ElementRuleCollector&, RuleSet*); 291 void matchUARules(ElementRuleCollector&, RuleSet*);
292 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule s); 292 void matchAuthorRules(Element*, ElementRuleCollector&, bool includeEmptyRule s);
293 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc ludeEmptyRules, Vector<ScopedStyleResolver*, 8>& resolvers, Vector<ScopedStyleRe solver*, 8>& resolversInShadowTree); 293 void matchAuthorRulesForShadowHost(Element*, ElementRuleCollector&, bool inc ludeEmptyRules, Vector<ScopedStyleResolver*, 8>& resolvers, Vector<ScopedStyleRe solver*, 8>& resolversInShadowTree);
294 void matchHostRules(Element*, ScopedStyleResolver*, ElementRuleCollector&, b ool includeEmptyRules); 294 void matchHostRules(Element*, ScopedStyleResolver*, ElementRuleCollector&, b ool includeEmptyRules);
295 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool matchAut horAndUserStyles, bool includeSMILProperties); 295 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool matchAut horAndUserStyles, bool includeSMILProperties);
296 void matchUARules(ElementRuleCollector&); 296 void matchUARules(ElementRuleCollector&);
297 void matchUserRules(ElementRuleCollector&, bool includeEmptyRules);
298 void collectFeatures(); 297 void collectFeatures();
299 void collectTreeBoundaryCrossingRules(ElementRuleCollector&, bool includeEmp tyRules); 298 void collectTreeBoundaryCrossingRules(ElementRuleCollector&, bool includeEmp tyRules);
300 299
301 bool fastRejectSelector(const RuleData&) const; 300 bool fastRejectSelector(const RuleData&) const;
302 301
303 void applyMatchedProperties(StyleResolverState&, const MatchResult&, Element * animatingElement); 302 void applyMatchedProperties(StyleResolverState&, const MatchResult&, Element * animatingElement);
304 303
305 enum StyleApplicationPass { 304 enum StyleApplicationPass {
306 VariableDefinitions, 305 VariableDefinitions,
307 AnimationProperties, 306 AnimationProperties,
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 PseudoId ignoreDynamicPseudo = NOPSEUDO; 381 PseudoId ignoreDynamicPseudo = NOPSEUDO;
383 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 382 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
384 return true; 383 return true;
385 } 384 }
386 return false; 385 return false;
387 } 386 }
388 387
389 } // namespace WebCore 388 } // namespace WebCore
390 389
391 #endif // StyleResolver_h 390 #endif // StyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698