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