Chromium Code Reviews| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& documentAuthorSt yleSheets() const { return m_authorStyleSheets; } | 98 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& documentAuthorSt yleSheets() const { return m_authorStyleSheets; } |
| 99 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& injectedAuthorSt yleSheets() const; | 99 const WillBeHeapVector<RefPtrWillBeMember<CSSStyleSheet> >& injectedAuthorSt yleSheets() const; |
| 100 | 100 |
| 101 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > activeStyleSheetsFor Inspector() const; | 101 const WillBeHeapVector<RefPtrWillBeMember<StyleSheet> > activeStyleSheetsFor Inspector() const; |
| 102 | 102 |
| 103 void modifiedStyleSheet(StyleSheet*); | 103 void modifiedStyleSheet(StyleSheet*); |
| 104 void addStyleSheetCandidateNode(Node*, bool createdByParser); | 104 void addStyleSheetCandidateNode(Node*, bool createdByParser); |
| 105 void removeStyleSheetCandidateNode(Node*); | 105 void removeStyleSheetCandidateNode(Node*); |
| 106 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc ope&); | 106 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc ope&); |
| 107 void modifiedStyleSheetCandidateNode(Node*); | 107 void modifiedStyleSheetCandidateNode(Node*); |
| 108 void addXSLStyleSheet(Node*, bool createdByParser); | |
| 109 void removeXSLStyleSheet(Node*); | |
| 108 | 110 |
| 109 void invalidateInjectedStyleSheetCache(); | 111 void invalidateInjectedStyleSheetCache(); |
| 110 void updateInjectedStyleSheetCache() const; | 112 void updateInjectedStyleSheetCache() const; |
| 111 | 113 |
| 112 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); | 114 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); |
| 113 | 115 |
| 114 void clearMediaQueryRuleSetStyleSheets(); | 116 void clearMediaQueryRuleSetStyleSheets(); |
| 115 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ; | 117 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ; |
| 116 bool updateActiveStyleSheets(StyleResolverUpdateMode); | 118 bool updateActiveStyleSheets(StyleResolverUpdateMode); |
| 117 | 119 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 void removeSheet(StyleSheetContents*); | 191 void removeSheet(StyleSheetContents*); |
| 190 | 192 |
| 191 void trace(Visitor*); | 193 void trace(Visitor*); |
| 192 | 194 |
| 193 private: | 195 private: |
| 194 StyleEngine(Document&); | 196 StyleEngine(Document&); |
| 195 | 197 |
| 196 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); | 198 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); |
| 197 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); | 199 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); |
| 198 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); | 200 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode); |
| 201 bool shouldApplyXSLTransform() const; | |
| 199 | 202 |
| 200 void markTreeScopeDirty(TreeScope&); | 203 void markTreeScopeDirty(TreeScope&); |
| 201 | 204 |
| 202 bool isMaster() const { return m_isMaster; } | 205 bool isMaster() const { return m_isMaster; } |
| 203 Document* master(); | 206 Document* master(); |
| 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); |
| 208 | 211 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 243 unsigned m_maxDirectAdjacentSelectors; | 246 unsigned m_maxDirectAdjacentSelectors; |
| 244 | 247 |
| 245 bool m_ignorePendingStylesheets; | 248 bool m_ignorePendingStylesheets; |
| 246 bool m_didCalculateResolver; | 249 bool m_didCalculateResolver; |
| 247 OwnPtrWillBeMember<StyleResolver> m_resolver; | 250 OwnPtrWillBeMember<StyleResolver> m_resolver; |
| 248 | 251 |
| 249 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; | 252 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; |
| 250 | 253 |
| 251 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; | 254 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; |
| 252 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; | 255 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; |
| 256 | |
| 257 ProcessingInstruction* m_xslStyleSheet; | |
|
esprehn
2014/05/22 18:32:20
This looks really scary, can this be a RefPtr inst
tasak
2014/05/27 06:17:30
Done.
| |
| 253 }; | 258 }; |
| 254 | 259 |
| 255 } | 260 } |
| 256 | 261 |
| 257 #endif | 262 #endif |
| OLD | NEW |