OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 9 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 10 * |
(...skipping 11 matching lines...) Expand all Loading... |
22 * along with this library; see the file COPYING.LIB. If not, write to | 22 * along with this library; see the file COPYING.LIB. If not, write to |
23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
25 * | 25 * |
26 */ | 26 */ |
27 | 27 |
28 #ifndef StyleSheetCollection_h | 28 #ifndef StyleSheetCollection_h |
29 #define StyleSheetCollection_h | 29 #define StyleSheetCollection_h |
30 | 30 |
31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 32 #include "core/css/ActiveStyleSheets.h" |
32 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
33 #include "wtf/Allocator.h" | 34 #include "wtf/Allocator.h" |
34 #include "wtf/Vector.h" | 35 #include "wtf/Vector.h" |
35 | 36 |
36 namespace blink { | 37 namespace blink { |
37 | 38 |
38 class CSSStyleSheet; | 39 class CSSStyleSheet; |
39 class StyleSheet; | 40 class StyleSheet; |
40 | 41 |
41 class CORE_EXPORT StyleSheetCollection : public GarbageCollected<StyleSheetColle
ction> { | 42 class CORE_EXPORT StyleSheetCollection : public GarbageCollected<StyleSheetColle
ction> { |
42 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); | 43 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); |
43 public: | 44 public: |
44 friend class ActiveDocumentStyleSheetCollector; | 45 friend class ActiveDocumentStyleSheetCollector; |
45 friend class ImportedDocumentStyleSheetCollector; | 46 friend class ImportedDocumentStyleSheetCollector; |
46 | 47 |
47 StyleSheetCollection(); | 48 StyleSheetCollection(); |
48 | 49 |
49 const HeapVector<Member<CSSStyleSheet>>& activeAuthorStyleSheets() const { r
eturn m_activeAuthorStyleSheets; } | 50 const ActiveStyleSheetVector& activeAuthorStyleSheets() const { return m_act
iveAuthorStyleSheets; } |
50 const HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList() const {
return m_styleSheetsForStyleSheetList; } | 51 const HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList() const {
return m_styleSheetsForStyleSheetList; } |
51 | 52 |
52 void swap(StyleSheetCollection&); | 53 void swap(StyleSheetCollection&); |
53 void swapSheetsForSheetList(HeapVector<Member<StyleSheet>>&); | 54 void swapSheetsForSheetList(HeapVector<Member<StyleSheet>>&); |
54 void appendActiveStyleSheet(CSSStyleSheet*); | 55 void appendActiveStyleSheet(const ActiveStyleSheet&); |
55 void appendSheetForList(StyleSheet*); | 56 void appendSheetForList(StyleSheet*); |
56 | 57 |
57 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
58 | 59 |
59 protected: | 60 protected: |
60 HeapVector<Member<StyleSheet>> m_styleSheetsForStyleSheetList; | 61 HeapVector<Member<StyleSheet>> m_styleSheetsForStyleSheetList; |
61 HeapVector<Member<CSSStyleSheet>> m_activeAuthorStyleSheets; | 62 ActiveStyleSheetVector m_activeAuthorStyleSheets; |
62 }; | 63 }; |
63 | 64 |
64 } // namespace blink | 65 } // namespace blink |
65 | 66 |
66 #endif // StyleSheetCollection_h | 67 #endif // StyleSheetCollection_h |
OLD | NEW |