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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 | 74 |
75 ~StyleEngine(); | 75 ~StyleEngine(); |
76 | 76 |
77 #if !ENABLE(OILPAN) | 77 #if !ENABLE(OILPAN) |
78 void detachFromDocument(); | 78 void detachFromDocument(); |
79 #endif | 79 #endif |
80 | 80 |
81 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>& styleSheetsForStyleS
heetList(TreeScope&); | 81 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet>>& styleSheetsForStyleS
heetList(TreeScope&); |
82 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& activeAuthorStyle
Sheets() const; | 82 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& activeAuthorStyle
Sheets() const; |
83 | 83 |
84 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& documentAuthorSty
leSheets() const { return m_authorStyleSheets; } | 84 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>>& injectedAuthorSty
leSheets() const { return m_injectedAuthorStyleSheets; } |
85 | 85 |
86 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>> activeStyleSheetsF
orInspector() const; | 86 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>> activeStyleSheetsF
orInspector() const; |
87 | 87 |
88 void modifiedStyleSheet(StyleSheet*); | 88 void modifiedStyleSheet(StyleSheet*); |
89 void addStyleSheetCandidateNode(Node*, bool createdByParser); | 89 void addStyleSheetCandidateNode(Node*, bool createdByParser); |
90 void removeStyleSheetCandidateNode(Node*); | 90 void removeStyleSheetCandidateNode(Node*); |
91 void removeStyleSheetCandidateNode(Node*, TreeScope&); | 91 void removeStyleSheetCandidateNode(Node*, TreeScope&); |
92 void modifiedStyleSheetCandidateNode(Node*); | 92 void modifiedStyleSheetCandidateNode(Node*); |
93 | 93 |
94 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); | 94 void injectAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorShee
t); |
95 | 95 |
96 void clearMediaQueryRuleSetStyleSheets(); | 96 void clearMediaQueryRuleSetStyleSheets(); |
97 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector)
; | 97 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector)
; |
98 void updateActiveStyleSheets(StyleResolverUpdateMode); | 98 void updateActiveStyleSheets(StyleResolverUpdateMode); |
99 | 99 |
100 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN
ame; } | 100 String preferredStylesheetSetName() const { return m_preferredStylesheetSetN
ame; } |
101 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam
e; } | 101 String selectedStylesheetSetName() const { return m_selectedStylesheetSetNam
e; } |
102 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe
etSetName = name; } | 102 void setPreferredStylesheetSetName(const String& name) { m_preferredStyleshe
etSetName = name; } |
103 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet
SetName = name; } | 103 void setSelectedStylesheetSetName(const String& name) { m_selectedStylesheet
SetName = name; } |
104 | 104 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 | 221 |
222 RawPtrWillBeMember<Document> m_document; | 222 RawPtrWillBeMember<Document> m_document; |
223 bool m_isMaster; | 223 bool m_isMaster; |
224 | 224 |
225 // Track the number of currently loading top-level stylesheets needed for la
yout. | 225 // Track the number of currently loading top-level stylesheets needed for la
yout. |
226 // Sheets loaded using the @import directive are not included in this count. | 226 // Sheets loaded using the @import directive are not included in this count. |
227 // We use this count of pending sheets to detect when we can begin attaching | 227 // We use this count of pending sheets to detect when we can begin attaching |
228 // elements and when it is safe to execute scripts. | 228 // elements and when it is safe to execute scripts. |
229 int m_pendingStylesheets; | 229 int m_pendingStylesheets; |
230 | 230 |
231 WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>> m_authorStyleSheets; | 231 WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet>> m_injectedAuthorStyleShe
ets; |
232 | 232 |
233 OwnPtrWillBeMember<DocumentStyleSheetCollection> m_documentStyleSheetCollect
ion; | 233 OwnPtrWillBeMember<DocumentStyleSheetCollection> m_documentStyleSheetCollect
ion; |
234 | 234 |
235 typedef WillBeHeapHashMap<RawPtrWillBeWeakMember<TreeScope>, OwnPtrWillBeMem
ber<ShadowTreeStyleSheetCollection>> StyleSheetCollectionMap; | 235 typedef WillBeHeapHashMap<RawPtrWillBeWeakMember<TreeScope>, OwnPtrWillBeMem
ber<ShadowTreeStyleSheetCollection>> StyleSheetCollectionMap; |
236 StyleSheetCollectionMap m_styleSheetCollectionMap; | 236 StyleSheetCollectionMap m_styleSheetCollectionMap; |
237 | 237 |
238 bool m_documentScopeDirty; | 238 bool m_documentScopeDirty; |
239 UnorderedTreeScopeSet m_dirtyTreeScopes; | 239 UnorderedTreeScopeSet m_dirtyTreeScopes; |
240 UnorderedTreeScopeSet m_activeTreeScopes; | 240 UnorderedTreeScopeSet m_activeTreeScopes; |
241 | 241 |
(...skipping 13 matching lines...) Expand all Loading... |
255 | 255 |
256 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; | 256 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; |
257 | 257 |
258 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te
xtToSheetCache; | 258 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents>> m_te
xtToSheetCache; |
259 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; | 259 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; |
260 }; | 260 }; |
261 | 261 |
262 } | 262 } |
263 | 263 |
264 #endif | 264 #endif |
OLD | NEW |