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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h

Issue 2589243002: Clear CSSGlobalRuleSet on StyleEngine::didDetach(). (Closed)
Patch Set: reset() -> dispose(). Created 4 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSGlobalRuleSet.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 // 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
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
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
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSGlobalRuleSet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698