| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& injectedAuthorSt
yleSheets() const; | 101 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& injectedAuthorSt
yleSheets() const; |
| 102 | 102 |
| 103 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > activeStyleSheetsFor
Inspector() const; | 103 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > activeStyleSheetsFor
Inspector() const; |
| 104 | 104 |
| 105 void modifiedStyleSheet(StyleSheet*); | 105 void modifiedStyleSheet(StyleSheet*); |
| 106 void addStyleSheetCandidateNode(Node*, bool createdByParser); | 106 void addStyleSheetCandidateNode(Node*, bool createdByParser); |
| 107 void removeStyleSheetCandidateNode(Node*); | 107 void removeStyleSheetCandidateNode(Node*); |
| 108 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc
ope&); | 108 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc
ope&); |
| 109 void modifiedStyleSheetCandidateNode(Node*); | 109 void modifiedStyleSheetCandidateNode(Node*); |
| 110 void enableExitTransitionStylesheets(); | 110 void enableExitTransitionStylesheets(); |
| 111 void addXSLStyleSheet(ProcessingInstruction*, bool createdByParser); |
| 112 void removeXSLStyleSheet(ProcessingInstruction*); |
| 111 | 113 |
| 112 void invalidateInjectedStyleSheetCache(); | 114 void invalidateInjectedStyleSheetCache(); |
| 113 void updateInjectedStyleSheetCache() const; | 115 void updateInjectedStyleSheetCache() const; |
| 114 | 116 |
| 115 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); | 117 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); |
| 116 | 118 |
| 117 void clearMediaQueryRuleSetStyleSheets(); | 119 void clearMediaQueryRuleSetStyleSheets(); |
| 118 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector)
; | 120 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector)
; |
| 119 bool updateActiveStyleSheets(StyleResolverUpdateMode); | 121 bool updateActiveStyleSheets(StyleResolverUpdateMode); |
| 120 | 122 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 void removeSheet(StyleSheetContents*); | 190 void removeSheet(StyleSheetContents*); |
| 189 | 191 |
| 190 void trace(Visitor*); | 192 void trace(Visitor*); |
| 191 | 193 |
| 192 private: | 194 private: |
| 193 StyleEngine(Document&); | 195 StyleEngine(Document&); |
| 194 | 196 |
| 195 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 197 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
| 196 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); | 198 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); |
| 197 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); | 199 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); |
| 200 bool shouldApplyXSLTransform() const; |
| 198 | 201 |
| 199 void markTreeScopeDirty(TreeScope&); | 202 void markTreeScopeDirty(TreeScope&); |
| 200 | 203 |
| 201 bool isMaster() const { return m_isMaster; } | 204 bool isMaster() const { return m_isMaster; } |
| 202 Document* master(); | 205 Document* master(); |
| 203 Document& document() const { return *m_document; } | 206 Document& document() const { return *m_document; } |
| 204 | 207 |
| 205 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; | 208 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; |
| 206 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); | 209 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); |
| 207 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes); | 210 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 unsigned m_maxDirectAdjacentSelectors; | 269 unsigned m_maxDirectAdjacentSelectors; |
| 267 | 270 |
| 268 bool m_ignorePendingStylesheets; | 271 bool m_ignorePendingStylesheets; |
| 269 bool m_didCalculateResolver; | 272 bool m_didCalculateResolver; |
| 270 OwnPtrWillBeMember<StyleResolver> m_resolver; | 273 OwnPtrWillBeMember<StyleResolver> m_resolver; |
| 271 | 274 |
| 272 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; | 275 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; |
| 273 | 276 |
| 274 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; | 277 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; |
| 275 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; | 278 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; |
| 279 |
| 280 RefPtr<ProcessingInstruction> m_xslStyleSheet; |
| 276 }; | 281 }; |
| 277 | 282 |
| 278 } | 283 } |
| 279 | 284 |
| 280 #endif | 285 #endif |
| OLD | NEW |