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

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

Issue 1285293003: Remove ScopedStyleResolver::treeScopeFor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Apply sheets for html imports to the main document. Created 5 years, 4 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 | « no previous file | Source/core/css/resolver/ScopedStyleResolver.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 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 // This class selects a ComputedStyle for a given element based on a collection of stylesheets. 44 // This class selects a ComputedStyle for a given element based on a collection of stylesheets.
45 class ScopedStyleResolver final : public NoBaseWillBeGarbageCollected<ScopedStyl eResolver> { 45 class ScopedStyleResolver final : public NoBaseWillBeGarbageCollected<ScopedStyl eResolver> {
46 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); 46 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver);
47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScopedStyleResolver); 47 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(ScopedStyleResolver);
48 public: 48 public:
49 static PassOwnPtrWillBeRawPtr<ScopedStyleResolver> create(TreeScope& scope) 49 static PassOwnPtrWillBeRawPtr<ScopedStyleResolver> create(TreeScope& scope)
50 { 50 {
51 return adoptPtrWillBeNoop(new ScopedStyleResolver(scope)); 51 return adoptPtrWillBeNoop(new ScopedStyleResolver(scope));
52 } 52 }
53 53
54 static TreeScope* treeScopeFor(Document&, const CSSStyleSheet*);
55
56 const TreeScope& treeScope() const { return *m_scope; } 54 const TreeScope& treeScope() const { return *m_scope; }
57 ScopedStyleResolver* parent() const; 55 ScopedStyleResolver* parent() const;
58 56
59 StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* animationNa me); 57 StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* animationNa me);
60 58
61 void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&); 59 void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&);
62 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule s, CascadeOrder = ignoreCascadeOrder); 60 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule s, CascadeOrder = ignoreCascadeOrder);
63 void collectMatchingShadowHostRules(ElementRuleCollector&, bool includeEmpty Rules, CascadeOrder = ignoreCascadeOrder); 61 void collectMatchingShadowHostRules(ElementRuleCollector&, bool includeEmpty Rules, CascadeOrder = ignoreCascadeOrder);
64 void collectMatchingTreeBoundaryCrossingRules(ElementRuleCollector&, bool in cludeEmptyRules, CascadeOrder); 62 void collectMatchingTreeBoundaryCrossingRules(ElementRuleCollector&, bool in cludeEmptyRules, CascadeOrder);
65 void matchPageRules(PageRuleCollector&); 63 void matchPageRules(PageRuleCollector&);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 } 107 }
110 }; 108 };
111 typedef WillBeHeapVector<OwnPtrWillBeMember<RuleSubSet>> CSSStyleSheetRuleSu bSet; 109 typedef WillBeHeapVector<OwnPtrWillBeMember<RuleSubSet>> CSSStyleSheetRuleSu bSet;
112 110
113 OwnPtrWillBeMember<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; 111 OwnPtrWillBeMember<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet;
114 }; 112 };
115 113
116 } // namespace blink 114 } // namespace blink
117 115
118 #endif // ScopedStyleResolver_h 116 #endif // ScopedStyleResolver_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/resolver/ScopedStyleResolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698