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

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

Issue 2755493004: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in core/css/ (Closed)
Patch Set: All windows error are Resolved now. Created 3 years, 8 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
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 17 matching lines...) Expand all
28 public: 28 public:
29 CSSGlobalRuleSet() {} 29 CSSGlobalRuleSet() {}
30 30
31 void dispose(); 31 void dispose();
32 void initWatchedSelectorsRuleSet(Document&); 32 void initWatchedSelectorsRuleSet(Document&);
33 void markDirty() { m_isDirty = true; } 33 void markDirty() { m_isDirty = true; }
34 bool isDirty() const { return m_isDirty; } 34 bool isDirty() const { return m_isDirty; }
35 void update(Document&); 35 void update(Document&);
36 36
37 const RuleFeatureSet& ruleFeatureSet() const { 37 const RuleFeatureSet& ruleFeatureSet() const {
38 RELEASE_ASSERT(m_features.isAlive()); 38 CHECK(m_features.isAlive());
39 return m_features; 39 return m_features;
40 } 40 }
41 RuleSet* siblingRuleSet() const { return m_siblingRuleSet; } 41 RuleSet* siblingRuleSet() const { return m_siblingRuleSet; }
42 RuleSet* uncommonAttributeRuleSet() const { 42 RuleSet* uncommonAttributeRuleSet() const {
43 return m_uncommonAttributeRuleSet; 43 return m_uncommonAttributeRuleSet;
44 } 44 }
45 RuleSet* watchedSelectorsRuleSet() const { return m_watchedSelectorsRuleSet; } 45 RuleSet* watchedSelectorsRuleSet() const { return m_watchedSelectorsRuleSet; }
46 bool hasFullscreenUAStyle() const { return m_hasFullscreenUAStyle; } 46 bool hasFullscreenUAStyle() const { return m_hasFullscreenUAStyle; }
47 47
48 DECLARE_TRACE(); 48 DECLARE_TRACE();
49 49
50 private: 50 private:
51 // Constructed from rules in all TreeScopes including UA style and style 51 // Constructed from rules in all TreeScopes including UA style and style
52 // injected from extensions. 52 // injected from extensions.
53 RuleFeatureSet m_features; 53 RuleFeatureSet m_features;
54 Member<RuleSet> m_siblingRuleSet; 54 Member<RuleSet> m_siblingRuleSet;
55 Member<RuleSet> m_uncommonAttributeRuleSet; 55 Member<RuleSet> m_uncommonAttributeRuleSet;
56 56
57 // Rules injected from extensions. 57 // Rules injected from extensions.
58 Member<RuleSet> m_watchedSelectorsRuleSet; 58 Member<RuleSet> m_watchedSelectorsRuleSet;
59 59
60 bool m_hasFullscreenUAStyle = false; 60 bool m_hasFullscreenUAStyle = false;
61 bool m_isDirty = true; 61 bool m_isDirty = true;
62 }; 62 };
63 63
64 } // namespace blink 64 } // namespace blink
65 65
66 #endif // CSSGlobalRuleSet_h 66 #endif // CSSGlobalRuleSet_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSFontSelector.cpp ('k') | third_party/WebKit/Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698