| 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 21 matching lines...) Expand all Loading... |
| 32 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
| 33 #include "wtf/Allocator.h" | 33 #include "wtf/Allocator.h" |
| 34 #include "wtf/RefPtr.h" | 34 #include "wtf/RefPtr.h" |
| 35 #include "wtf/Vector.h" | 35 #include "wtf/Vector.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class CSSStyleSheet; | 39 class CSSStyleSheet; |
| 40 class StyleSheet; | 40 class StyleSheet; |
| 41 | 41 |
| 42 class CORE_EXPORT StyleSheetCollection : public NoBaseWillBeGarbageCollected<Sty
leSheetCollection> { | 42 class CORE_EXPORT StyleSheetCollection : public GarbageCollected<StyleSheetColle
ction> { |
| 43 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(StyleSheetCollection); | |
| 44 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); | 43 WTF_MAKE_NONCOPYABLE(StyleSheetCollection); |
| 45 USING_FAST_MALLOC_WILL_BE_REMOVED(StyleSheetCollection); | |
| 46 public: | 44 public: |
| 47 friend class ActiveDocumentStyleSheetCollector; | 45 friend class ActiveDocumentStyleSheetCollector; |
| 48 friend class ImportedDocumentStyleSheetCollector; | 46 friend class ImportedDocumentStyleSheetCollector; |
| 49 | 47 |
| 50 StyleSheetCollection(); | 48 StyleSheetCollection(); |
| 51 | 49 |
| 52 WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& activeAuthorStyleSheets
() { return m_activeAuthorStyleSheets; } | 50 HeapVector<Member<CSSStyleSheet>>& activeAuthorStyleSheets() { return m_acti
veAuthorStyleSheets; } |
| 53 WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>& styleSheetsForStyleSheetLi
st() { return m_styleSheetsForStyleSheetList; } | 51 HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList() { return m_st
yleSheetsForStyleSheetList; } |
| 54 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& activeAuthorStyle
Sheets() const { return m_activeAuthorStyleSheets; } | 52 const HeapVector<Member<CSSStyleSheet>>& activeAuthorStyleSheets() const { r
eturn m_activeAuthorStyleSheets; } |
| 55 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>& styleSheetsForStyleS
heetList() const { return m_styleSheetsForStyleSheetList; } | 53 const HeapVector<Member<StyleSheet>>& styleSheetsForStyleSheetList() const {
return m_styleSheetsForStyleSheetList; } |
| 56 | 54 |
| 57 void swap(StyleSheetCollection&); | 55 void swap(StyleSheetCollection&); |
| 58 void swapSheetsForSheetList(WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>
&); | 56 void swapSheetsForSheetList(HeapVector<Member<StyleSheet>>&); |
| 59 void appendActiveStyleSheet(CSSStyleSheet*); | 57 void appendActiveStyleSheet(CSSStyleSheet*); |
| 60 void appendSheetForList(StyleSheet*); | 58 void appendSheetForList(StyleSheet*); |
| 61 | 59 |
| 62 DECLARE_VIRTUAL_TRACE(); | 60 DECLARE_VIRTUAL_TRACE(); |
| 63 | 61 |
| 64 protected: | 62 protected: |
| 65 WillBeHeapVector<RefPtrWillBeMember<StyleSheet>> m_styleSheetsForStyleSheetL
ist; | 63 HeapVector<Member<StyleSheet>> m_styleSheetsForStyleSheetList; |
| 66 WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>> m_activeAuthorStyleSheet
s; | 64 HeapVector<Member<CSSStyleSheet>> m_activeAuthorStyleSheets; |
| 67 }; | 65 }; |
| 68 | 66 |
| 69 } // namespace blink | 67 } // namespace blink |
| 70 | 68 |
| 71 #endif // StyleSheetCollection_h | 69 #endif // StyleSheetCollection_h |
| OLD | NEW |