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

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: Fix WebFrameCSSCallbackTest tests 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
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('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 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 includeS MILProperties); 295 void matchAllRules(StyleResolverState&, ElementRuleCollector&, bool includeS MILProperties);
296 void matchUARules(ElementRuleCollector&); 296 void matchUARules(ElementRuleCollector&);
297 void matchUserRules(ElementRuleCollector&, bool includeEmptyRules); 297 // FIXME: watched selectors should be implemented using injected author styl esheets: http://crbug.com/316960
298 void matchWatchSelectorRules(ElementRuleCollector&);
298 void collectFeatures(); 299 void collectFeatures();
299 void collectTreeBoundaryCrossingRules(ElementRuleCollector&, bool includeEmp tyRules); 300 void collectTreeBoundaryCrossingRules(ElementRuleCollector&, bool includeEmp tyRules);
300 301
301 bool fastRejectSelector(const RuleData&) const; 302 bool fastRejectSelector(const RuleData&) const;
302 303
303 void applyMatchedProperties(StyleResolverState&, const MatchResult&, Element * animatingElement); 304 void applyMatchedProperties(StyleResolverState&, const MatchResult&, Element * animatingElement);
304 305
305 enum StyleApplicationPass { 306 enum StyleApplicationPass {
306 VariableDefinitions, 307 VariableDefinitions,
307 AnimationProperties, 308 AnimationProperties,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 PseudoId ignoreDynamicPseudo = NOPSEUDO; 381 PseudoId ignoreDynamicPseudo = NOPSEUDO;
381 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches) 382 if (selectorChecker.match(selectorCheckingContext, ignoreDynamicPseudo, DOMSiblingTraversalStrategy()) == SelectorChecker::SelectorMatches)
382 return true; 383 return true;
383 } 384 }
384 return false; 385 return false;
385 } 386 }
386 387
387 } // namespace WebCore 388 } // namespace WebCore
388 389
389 #endif // StyleResolver_h 390 #endif // StyleResolver_h
OLDNEW
« no previous file with comments | « Source/core/css/StyleSheetContents.cpp ('k') | Source/core/css/resolver/StyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698