| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& injectedAuthorSt
yleSheets() const; | 81 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& injectedAuthorSt
yleSheets() const; |
| 82 | 82 |
| 83 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> > activeStyleSheets
ForInspector() const; | 83 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> > activeStyleSheets
ForInspector() const; |
| 84 | 84 |
| 85 void modifiedStyleSheet(StyleSheet*); | 85 void modifiedStyleSheet(StyleSheet*); |
| 86 void addStyleSheetCandidateNode(Node*, bool createdByParser); | 86 void addStyleSheetCandidateNode(Node*, bool createdByParser); |
| 87 void removeStyleSheetCandidateNode(Node*); | 87 void removeStyleSheetCandidateNode(Node*); |
| 88 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc
ope&); | 88 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc
ope&); |
| 89 void modifiedStyleSheetCandidateNode(Node*); | 89 void modifiedStyleSheetCandidateNode(Node*); |
| 90 void enableExitTransitionStylesheets(); | 90 void enableExitTransitionStylesheets(); |
| 91 void addXSLStyleSheet(ProcessingInstruction*, bool createdByParser); | |
| 92 void removeXSLStyleSheet(ProcessingInstruction*); | |
| 93 | 91 |
| 94 void invalidateInjectedStyleSheetCache(); | 92 void invalidateInjectedStyleSheetCache(); |
| 95 void updateInjectedStyleSheetCache() const; | 93 void updateInjectedStyleSheetCache() const; |
| 96 | 94 |
| 97 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); | 95 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); |
| 98 | 96 |
| 99 void clearMediaQueryRuleSetStyleSheets(); | 97 void clearMediaQueryRuleSetStyleSheets(); |
| 100 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector)
; | 98 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector)
; |
| 101 void updateActiveStyleSheets(StyleResolverUpdateMode); | 99 void updateActiveStyleSheets(StyleResolverUpdateMode); |
| 102 | 100 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // CSSFontSelectorClient implementation. | 177 // CSSFontSelectorClient implementation. |
| 180 virtual void fontsNeedUpdate(CSSFontSelector*) OVERRIDE; | 178 virtual void fontsNeedUpdate(CSSFontSelector*) OVERRIDE; |
| 181 | 179 |
| 182 private: | 180 private: |
| 183 StyleEngine(Document&); | 181 StyleEngine(Document&); |
| 184 | 182 |
| 185 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 183 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
| 186 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); | 184 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); |
| 187 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const
; | 185 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const
; |
| 188 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con
st; | 186 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con
st; |
| 189 bool shouldApplyXSLTransform() const; | |
| 190 | 187 |
| 191 void markTreeScopeDirty(TreeScope&); | 188 void markTreeScopeDirty(TreeScope&); |
| 192 | 189 |
| 193 bool isMaster() const { return m_isMaster; } | 190 bool isMaster() const { return m_isMaster; } |
| 194 Document* master(); | 191 Document* master(); |
| 195 Document& document() const { return *m_document; } | 192 Document& document() const { return *m_document; } |
| 196 | 193 |
| 197 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; | 194 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; |
| 198 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); | 195 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); |
| 199 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes); | 196 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 unsigned m_maxDirectAdjacentSelectors; | 245 unsigned m_maxDirectAdjacentSelectors; |
| 249 | 246 |
| 250 bool m_ignorePendingStylesheets; | 247 bool m_ignorePendingStylesheets; |
| 251 bool m_didCalculateResolver; | 248 bool m_didCalculateResolver; |
| 252 OwnPtrWillBeMember<StyleResolver> m_resolver; | 249 OwnPtrWillBeMember<StyleResolver> m_resolver; |
| 253 | 250 |
| 254 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; | 251 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; |
| 255 | 252 |
| 256 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; | 253 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t
extToSheetCache; |
| 257 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; | 254 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh
eetToTextCache; |
| 258 | |
| 259 RefPtrWillBeMember<ProcessingInstruction> m_xslStyleSheet; | |
| 260 }; | 255 }; |
| 261 | 256 |
| 262 } | 257 } |
| 263 | 258 |
| 264 #endif | 259 #endif |
| OLD | NEW |