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 ActiveStyleSheets_h | 5 #ifndef ActiveStyleSheets_h |
6 #define ActiveStyleSheets_h | 6 #define ActiveStyleSheets_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/heap/HeapAllocator.h" | 9 #include "platform/heap/HeapAllocator.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class CSSStyleSheet; | 13 class CSSStyleSheet; |
14 class RuleSet; | 14 class RuleSet; |
15 class StyleEngine; | |
16 class TreeScope; | |
17 | 15 |
18 using ActiveStyleSheet = std::pair<Member<CSSStyleSheet>, Member<RuleSet>>; | 16 using ActiveStyleSheet = std::pair<Member<CSSStyleSheet>, Member<RuleSet>>; |
19 using ActiveStyleSheetVector = HeapVector<ActiveStyleSheet>; | 17 using ActiveStyleSheetVector = HeapVector<ActiveStyleSheet>; |
20 | 18 |
21 enum ActiveSheetsChange { | 19 enum ActiveSheetsChange { |
22 NoActiveSheetsChanged, // Nothing changed. | 20 NoActiveSheetsChanged, // Nothing changed. |
23 ActiveSheetsChanged, // Sheets were added and/or inserted. | 21 ActiveSheetsChanged, // Sheets were added and/or inserted. |
24 ActiveSheetsAppended // Only additions, and all appended. | 22 ActiveSheetsAppended // Only additions, and all appended. |
25 }; | 23 }; |
26 | 24 |
27 CORE_EXPORT ActiveSheetsChange | 25 CORE_EXPORT ActiveSheetsChange |
28 compareActiveStyleSheets(const ActiveStyleSheetVector& oldStyleSheets, | 26 compareActiveStyleSheets(const ActiveStyleSheetVector& oldStyleSheets, |
29 const ActiveStyleSheetVector& newStyleSheets, | 27 const ActiveStyleSheetVector& newStyleSheets, |
30 HeapVector<Member<RuleSet>>& changedRuleSets); | 28 HeapVector<Member<RuleSet>>& changedRuleSets); |
31 | 29 |
32 } // namespace blink | 30 } // namespace blink |
33 | 31 |
34 #endif // ActiveStyleSheets_h | 32 #endif // ActiveStyleSheets_h |
OLD | NEW |