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

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

Issue 2469143002: Make siblingRules and uncommonAttributeRules private. (Closed)
Patch Set: Compile fixes Created 4 years, 1 month 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 #include "core/css/CSSGlobalRuleSet.h" 5 #include "core/css/CSSGlobalRuleSet.h"
6 6
7 #include "core/css/CSSDefaultStyleSheets.h" 7 #include "core/css/CSSDefaultStyleSheets.h"
8 #include "core/css/RuleSet.h" 8 #include "core/css/RuleSet.h"
9 #include "core/dom/CSSSelectorWatch.h" 9 #include "core/dom/CSSSelectorWatch.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 if (document.isViewSource()) 60 if (document.isViewSource())
61 m_features.add(defaultStyleSheets.defaultViewSourceStyle()->features()); 61 m_features.add(defaultStyleSheets.defaultViewSourceStyle()->features());
62 62
63 if (m_watchedSelectorsRuleSet) 63 if (m_watchedSelectorsRuleSet)
64 m_features.add(m_watchedSelectorsRuleSet->features()); 64 m_features.add(m_watchedSelectorsRuleSet->features());
65 65
66 document.styleEngine().collectScopedStyleFeaturesTo(m_features); 66 document.styleEngine().collectScopedStyleFeaturesTo(m_features);
67 67
68 m_siblingRuleSet = makeRuleSet(m_features.siblingRules); 68 m_siblingRuleSet = makeRuleSet(m_features.siblingRules());
69 m_uncommonAttributeRuleSet = makeRuleSet(m_features.uncommonAttributeRules); 69 m_uncommonAttributeRuleSet = makeRuleSet(m_features.uncommonAttributeRules());
70 } 70 }
71 71
72 DEFINE_TRACE(CSSGlobalRuleSet) { 72 DEFINE_TRACE(CSSGlobalRuleSet) {
73 visitor->trace(m_features); 73 visitor->trace(m_features);
74 visitor->trace(m_siblingRuleSet); 74 visitor->trace(m_siblingRuleSet);
75 visitor->trace(m_uncommonAttributeRuleSet); 75 visitor->trace(m_uncommonAttributeRuleSet);
76 visitor->trace(m_watchedSelectorsRuleSet); 76 visitor->trace(m_watchedSelectorsRuleSet);
77 } 77 }
78 78
79 } // namespace blink 79 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp ('k') | third_party/WebKit/Source/core/css/RuleFeature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698