Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: Source/core/dom/StyleEngine.h

Issue 703193004: XSLT-in-PrivateScript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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*, TreeScope&); 88 void removeStyleSheetCandidateNode(Node*, TreeScope&);
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 compatibilityModeChanged(); 95 void compatibilityModeChanged();
98 96
99 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet); 97 void addAuthorSheet(PassRefPtrWillBeRawPtr<StyleSheetContents> authorSheet);
100 98
101 void clearMediaQueryRuleSetStyleSheets(); 99 void clearMediaQueryRuleSetStyleSheets();
102 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ; 100 void updateStyleSheetsInImport(DocumentStyleSheetCollector& parentCollector) ;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // CSSFontSelectorClient implementation. 179 // CSSFontSelectorClient implementation.
182 virtual void fontsNeedUpdate(CSSFontSelector*) override; 180 virtual void fontsNeedUpdate(CSSFontSelector*) override;
183 181
184 private: 182 private:
185 StyleEngine(Document&); 183 StyleEngine(Document&);
186 184
187 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&); 185 TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
188 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); 186 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
189 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const ; 187 bool shouldUpdateDocumentStyleSheetCollection(StyleResolverUpdateMode) const ;
190 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con st; 188 bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode) con st;
191 bool shouldApplyXSLTransform() const;
192 189
193 void markTreeScopeDirty(TreeScope&); 190 void markTreeScopeDirty(TreeScope&);
194 191
195 bool isMaster() const { return m_isMaster; } 192 bool isMaster() const { return m_isMaster; }
196 Document* master(); 193 Document* master();
197 Document& document() const { return *m_document; } 194 Document& document() const { return *m_document; }
198 195
199 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; 196 typedef ListHashSet<TreeScope*, 16> TreeScopeSet;
200 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); 197 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*);
201 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes); 198 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 unsigned m_maxDirectAdjacentSelectors; 247 unsigned m_maxDirectAdjacentSelectors;
251 248
252 bool m_ignorePendingStylesheets; 249 bool m_ignorePendingStylesheets;
253 bool m_didCalculateResolver; 250 bool m_didCalculateResolver;
254 OwnPtrWillBeMember<StyleResolver> m_resolver; 251 OwnPtrWillBeMember<StyleResolver> m_resolver;
255 252
256 RefPtrWillBeMember<CSSFontSelector> m_fontSelector; 253 RefPtrWillBeMember<CSSFontSelector> m_fontSelector;
257 254
258 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache; 255 WillBeHeapHashMap<AtomicString, RawPtrWillBeMember<StyleSheetContents> > m_t extToSheetCache;
259 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache; 256 WillBeHeapHashMap<RawPtrWillBeMember<StyleSheetContents>, AtomicString> m_sh eetToTextCache;
260
261 RefPtrWillBeMember<ProcessingInstruction> m_xslStyleSheet;
262 }; 257 };
263 258
264 } 259 }
265 260
266 #endif 261 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698