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 25 matching lines...) Expand all Loading... |
36 #include "wtf/HashMap.h" | 36 #include "wtf/HashMap.h" |
37 #include "wtf/ListHashSet.h" | 37 #include "wtf/ListHashSet.h" |
38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
40 #include "wtf/text/WTFString.h" | 40 #include "wtf/text/WTFString.h" |
41 | 41 |
42 namespace WebCore { | 42 namespace WebCore { |
43 | 43 |
44 class ContainerNode; | 44 class ContainerNode; |
45 class CSSStyleSheet; | 45 class CSSStyleSheet; |
| 46 class DocumentStyleSheetCollector; |
46 class StyleEngine; | 47 class StyleEngine; |
47 class Node; | 48 class Node; |
48 class StyleSheet; | 49 class StyleSheet; |
49 class StyleSheetContents; | 50 class StyleSheetContents; |
50 class StyleSheetList; | 51 class StyleSheetList; |
51 | 52 |
52 // FIXME: Should be in separate file and be renamed like: | 53 // FIXME: Should be in separate file and be renamed like: |
53 // - StyleSheetCollectionBase -> StyleSheetCollection | 54 // - StyleSheetCollectionBase -> StyleSheetCollection |
54 // - StyleSheetCollection -> ScopeStyleSheetCollection | 55 // - StyleSheetCollection -> ScopeStyleSheetCollection |
55 // | 56 // |
56 class StyleSheetCollectionBase { | 57 class StyleSheetCollectionBase { |
57 WTF_MAKE_NONCOPYABLE(StyleSheetCollectionBase); WTF_MAKE_FAST_ALLOCATED; | 58 WTF_MAKE_NONCOPYABLE(StyleSheetCollectionBase); WTF_MAKE_FAST_ALLOCATED; |
58 public: | 59 public: |
| 60 friend class ActiveDocumentStyleSheetCollector; |
| 61 friend class ImportedDocumentStyleSheetCollector; |
| 62 |
59 StyleSheetCollectionBase(); | 63 StyleSheetCollectionBase(); |
60 ~StyleSheetCollectionBase(); | 64 ~StyleSheetCollectionBase(); |
61 | 65 |
62 Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() { return m_activeA
uthorStyleSheets; } | 66 Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() { return m_activeA
uthorStyleSheets; } |
63 Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() { return m_style
SheetsForStyleSheetList; } | 67 Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() { return m_style
SheetsForStyleSheetList; } |
64 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu
rn m_activeAuthorStyleSheets; } | 68 const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { retu
rn m_activeAuthorStyleSheets; } |
65 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() const { re
turn m_styleSheetsForStyleSheetList; } | 69 const Vector<RefPtr<StyleSheet> >& styleSheetsForStyleSheetList() const { re
turn m_styleSheetsForStyleSheetList; } |
66 | 70 |
67 void swap(StyleSheetCollectionBase&); | 71 void swap(StyleSheetCollectionBase&); |
| 72 void swapSheetsForSheetList(Vector<RefPtr<StyleSheet> >&); |
68 void appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&); | 73 void appendActiveStyleSheets(const Vector<RefPtr<CSSStyleSheet> >&); |
69 void appendActiveStyleSheet(CSSStyleSheet*); | 74 void appendActiveStyleSheet(CSSStyleSheet*); |
70 void appendSheetForList(StyleSheet*); | 75 void appendSheetForList(StyleSheet*); |
71 | 76 |
72 protected: | 77 protected: |
73 Vector<RefPtr<StyleSheet> > m_styleSheetsForStyleSheetList; | 78 Vector<RefPtr<StyleSheet> > m_styleSheetsForStyleSheetList; |
74 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets; | 79 Vector<RefPtr<CSSStyleSheet> > m_activeAuthorStyleSheets; |
75 }; | 80 }; |
76 | 81 |
77 | 82 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 bool m_usesRemUnits; | 131 bool m_usesRemUnits; |
127 | 132 |
128 DocumentOrderedList m_styleSheetCandidateNodes; | 133 DocumentOrderedList m_styleSheetCandidateNodes; |
129 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; | 134 StyleSheetScopingNodeList m_scopingNodesForStyleScoped; |
130 }; | 135 }; |
131 | 136 |
132 } | 137 } |
133 | 138 |
134 #endif | 139 #endif |
135 | 140 |
OLD | NEW |