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 #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 Loading... |
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 |
OLD | NEW |