OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSGlobalRuleSet_h | 5 #ifndef CSSGlobalRuleSet_h |
6 #define CSSGlobalRuleSet_h | 6 #define CSSGlobalRuleSet_h |
7 | 7 |
8 #include "core/css/RuleFeature.h" | 8 #include "core/css/RuleFeature.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 10 matching lines...) Expand all Loading... |
21 // to the ScopedStyleResolver as possible to avoid full reconstruction of these | 21 // to the ScopedStyleResolver as possible to avoid full reconstruction of these |
22 // rulesets on shadow tree changes. See https://crbug.com/401359 | 22 // rulesets on shadow tree changes. See https://crbug.com/401359 |
23 | 23 |
24 class CSSGlobalRuleSet { | 24 class CSSGlobalRuleSet { |
25 DISALLOW_NEW(); | 25 DISALLOW_NEW(); |
26 WTF_MAKE_NONCOPYABLE(CSSGlobalRuleSet); | 26 WTF_MAKE_NONCOPYABLE(CSSGlobalRuleSet); |
27 | 27 |
28 public: | 28 public: |
29 CSSGlobalRuleSet() {} | 29 CSSGlobalRuleSet() {} |
30 | 30 |
| 31 void dispose(); |
31 void initWatchedSelectorsRuleSet(Document&); | 32 void initWatchedSelectorsRuleSet(Document&); |
32 void markDirty() { m_isDirty = true; } | 33 void markDirty() { m_isDirty = true; } |
33 bool isDirty() const { return m_isDirty; } | 34 bool isDirty() const { return m_isDirty; } |
34 void update(Document&); | 35 void update(Document&); |
35 | 36 |
36 const RuleFeatureSet& ruleFeatureSet() const { return m_features; } | 37 const RuleFeatureSet& ruleFeatureSet() const { return m_features; } |
37 RuleSet* siblingRuleSet() const { return m_siblingRuleSet; } | 38 RuleSet* siblingRuleSet() const { return m_siblingRuleSet; } |
38 RuleSet* uncommonAttributeRuleSet() const { | 39 RuleSet* uncommonAttributeRuleSet() const { |
39 return m_uncommonAttributeRuleSet; | 40 return m_uncommonAttributeRuleSet; |
40 } | 41 } |
(...skipping 12 matching lines...) Expand all Loading... |
53 // Rules injected from extensions. | 54 // Rules injected from extensions. |
54 Member<RuleSet> m_watchedSelectorsRuleSet; | 55 Member<RuleSet> m_watchedSelectorsRuleSet; |
55 | 56 |
56 bool m_hasFullscreenUAStyle = false; | 57 bool m_hasFullscreenUAStyle = false; |
57 bool m_isDirty = true; | 58 bool m_isDirty = true; |
58 }; | 59 }; |
59 | 60 |
60 } // namespace blink | 61 } // namespace blink |
61 | 62 |
62 #endif // CSSGlobalRuleSet_h | 63 #endif // CSSGlobalRuleSet_h |
OLD | NEW |