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. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * Copyright (C) 2012 Google Inc. All rights reserved. | 5 * Copyright (C) 2012 Google Inc. All rights reserved. |
6 * | 6 * |
7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
9 * are met: | 9 * are met: |
10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
37 #include "wtf/HashSet.h" | 37 #include "wtf/HashSet.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
41 class PageRuleCollector; | 41 class PageRuleCollector; |
42 class StyleSheetContents; | 42 class StyleSheetContents; |
43 | 43 |
44 // This class selects a ComputedStyle for a given element based on a collection | 44 // This class selects a ComputedStyle for a given element based on a collection |
45 // of stylesheets. | 45 // of stylesheets. |
46 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { | 46 class ScopedStyleResolver final |
| 47 : public GarbageCollectedFinalized<ScopedStyleResolver> { |
47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); | 48 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); |
48 | 49 |
49 public: | 50 public: |
50 static ScopedStyleResolver* create(TreeScope& scope) { | 51 static ScopedStyleResolver* create(TreeScope& scope) { |
51 return new ScopedStyleResolver(scope); | 52 return new ScopedStyleResolver(scope); |
52 } | 53 } |
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 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 | 124 |
124 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; | 125 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; |
125 bool m_hasDeepOrShadowSelector = false; | 126 bool m_hasDeepOrShadowSelector = false; |
126 bool m_hasUnresolvedKeyframesRule = false; | 127 bool m_hasUnresolvedKeyframesRule = false; |
127 bool m_needsAppendAllSheets = false; | 128 bool m_needsAppendAllSheets = false; |
128 }; | 129 }; |
129 | 130 |
130 } // namespace blink | 131 } // namespace blink |
131 | 132 |
132 #endif // ScopedStyleResolver_h | 133 #endif // ScopedStyleResolver_h |
OLD | NEW |