OLD | NEW |
---|---|
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
43 | 43 |
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 void dispose(); | |
haraken
2015/10/08 06:15:45
Ditto.
| |
53 | 54 |
54 const TreeScope& treeScope() const { return *m_scope; } | 55 const TreeScope& treeScope() const { return *m_scope; } |
55 ScopedStyleResolver* parent() const; | 56 ScopedStyleResolver* parent() const; |
56 | 57 |
57 StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* animationNa me); | 58 StyleRuleKeyframes* keyframeStylesForAnimation(const StringImpl* animationNa me); |
58 | 59 |
59 void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&); | 60 void appendCSSStyleSheet(CSSStyleSheet&, const MediaQueryEvaluator&); |
60 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule s, CascadeOrder = ignoreCascadeOrder); | 61 void collectMatchingAuthorRules(ElementRuleCollector&, bool includeEmptyRule s, CascadeOrder = ignoreCascadeOrder); |
61 void collectMatchingShadowHostRules(ElementRuleCollector&, bool includeEmpty Rules, CascadeOrder = ignoreCascadeOrder); | 62 void collectMatchingShadowHostRules(ElementRuleCollector&, bool includeEmpty Rules, CascadeOrder = ignoreCascadeOrder); |
62 void collectMatchingTreeBoundaryCrossingRules(ElementRuleCollector&, bool in cludeEmptyRules, CascadeOrder); | 63 void collectMatchingTreeBoundaryCrossingRules(ElementRuleCollector&, bool in cludeEmptyRules, CascadeOrder); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 } | 108 } |
108 }; | 109 }; |
109 using CSSStyleSheetRuleSubSet = WillBeHeapVector<OwnPtrWillBeMember<RuleSubS et>>; | 110 using CSSStyleSheetRuleSubSet = WillBeHeapVector<OwnPtrWillBeMember<RuleSubS et>>; |
110 | 111 |
111 OwnPtrWillBeMember<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; | 112 OwnPtrWillBeMember<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; |
112 }; | 113 }; |
113 | 114 |
114 } // namespace blink | 115 } // namespace blink |
115 | 116 |
116 #endif // ScopedStyleResolver_h | 117 #endif // ScopedStyleResolver_h |
OLD | NEW |