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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 StyleEngine(Document&); | 196 StyleEngine(Document&); |
197 | 197 |
198 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 198 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
199 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); | 199 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); |
200 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); | 200 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); |
201 | 201 |
202 void markTreeScopeDirty(TreeScope&); | 202 void markTreeScopeDirty(TreeScope&); |
203 | 203 |
204 bool isMaster() const { return m_isMaster; } | 204 bool isMaster() const { return m_isMaster; } |
205 Document* master(); | 205 Document* master(); |
| 206 Document& document() const { return *m_document; } |
206 | 207 |
207 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; | 208 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; |
208 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); | 209 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); |
209 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes); | 210 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes); |
210 | 211 |
211 void createResolver(); | 212 void createResolver(); |
212 | 213 |
213 static PassRefPtrWillBeRawPtr<CSSStyleSheet> parseSheet(Element*, const Stri
ng& text, TextPosition startPosition, bool createdByParser); | 214 static PassRefPtrWillBeRawPtr<CSSStyleSheet> parseSheet(Element*, const Stri
ng& text, TextPosition startPosition, bool createdByParser); |
214 | 215 |
215 RawPtrWillBeMember<Document> m_document; | 216 RawPtrWillBeMember<Document> m_document; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 251 |
251 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; | 252 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; |
252 | 253 |
253 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; | 254 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; |
254 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; | 255 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; |
255 }; | 256 }; |
256 | 257 |
257 } | 258 } |
258 | 259 |
259 #endif | 260 #endif |
OLD | NEW |