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 29 matching lines...) Expand all Loading... |
40 class StyleSheet; | 40 class StyleSheet; |
41 | 41 |
42 class CORE_EXPORT StyleSheetCollection : public GarbageCollected<StyleSheetColle
ction> { | 42 class CORE_EXPORT StyleSheetCollection : public GarbageCollected<StyleSheetColle
ction> { |
43 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); | 43 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); |
44 public: | 44 public: |
45 friend class ActiveDocumentStyleSheetCollector; | 45 friend class ActiveDocumentStyleSheetCollector; |
46 friend class ImportedDocumentStyleSheetCollector; | 46 friend class ImportedDocumentStyleSheetCollector; |
47 | 47 |
48 StyleSheetCollection(); | 48 StyleSheetCollection(); |
49 | 49 |
50 HeapVector<Member<CSSStyleSheet>>& activeAuthorStyleSheets() { return m_acti
veAuthorStyleSheets; } | |
51 HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList() { return m_st
yleSheetsForStyleSheetList; } | |
52 const HeapVector<Member<CSSStyleSheet>>& activeAuthorStyleSheets() const { r
eturn m_activeAuthorStyleSheets; } | 50 const HeapVector<Member<CSSStyleSheet>>& activeAuthorStyleSheets() const { r
eturn m_activeAuthorStyleSheets; } |
53 const HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList() const {
return m_styleSheetsForStyleSheetList; } | 51 const HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList() const {
return m_styleSheetsForStyleSheetList; } |
54 | 52 |
55 void swap(StyleSheetCollection&); | 53 void swap(StyleSheetCollection&); |
56 void swapSheetsForSheetList(HeapVector<Member<StyleSheet>>&); | 54 void swapSheetsForSheetList(HeapVector<Member<StyleSheet>>&); |
57 void appendActiveStyleSheet(CSSStyleSheet*); | 55 void appendActiveStyleSheet(CSSStyleSheet*); |
58 void appendSheetForList(StyleSheet*); | 56 void appendSheetForList(StyleSheet*); |
59 | 57 |
60 DECLARE_VIRTUAL_TRACE(); | 58 DECLARE_VIRTUAL_TRACE(); |
61 | 59 |
62 protected: | 60 protected: |
63 HeapVector<Member<StyleSheet>> m_styleSheetsForStyleSheetList; | 61 HeapVector<Member<StyleSheet>> m_styleSheetsForStyleSheetList; |
64 HeapVector<Member<CSSStyleSheet>> m_activeAuthorStyleSheets; | 62 HeapVector<Member<CSSStyleSheet>> m_activeAuthorStyleSheets; |
65 }; | 63 }; |
66 | 64 |
67 } // namespace blink | 65 } // namespace blink |
68 | 66 |
69 #endif // StyleSheetCollection_h | 67 #endif // StyleSheetCollection_h |
OLD | NEW |