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

Unified Diff: Source/WebCore/dom/DocumentStyleSheetCollection.h

Issue 11412176: Merge 135082 - REGRESSION(r129644): User StyleSheet not applying (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/DocumentStyleSheetCollection.h
===================================================================
--- Source/WebCore/dom/DocumentStyleSheetCollection.h (revision 135771)
+++ Source/WebCore/dom/DocumentStyleSheetCollection.h (working copy)
@@ -55,16 +55,17 @@
const Vector<RefPtr<CSSStyleSheet> >& activeAuthorStyleSheets() const { return m_activeAuthorStyleSheets; }
CSSStyleSheet* pageUserSheet();
- const Vector<RefPtr<CSSStyleSheet> >* pageGroupUserSheets() const;
- const Vector<RefPtr<CSSStyleSheet> >* documentUserSheets() const { return m_userSheets.get(); }
+ const Vector<RefPtr<CSSStyleSheet> >& documentUserStyleSheets() const { return m_userStyleSheets; }
+ const Vector<RefPtr<CSSStyleSheet> >& injectedUserStyleSheets() const;
+ const Vector<RefPtr<CSSStyleSheet> >& injectedAuthorStyleSheets() const;
void addStyleSheetCandidateNode(Node*, bool createdByParser);
void removeStyleSheetCandidateNode(Node*);
void clearPageUserSheet();
void updatePageUserSheet();
- void clearPageGroupUserSheets();
- void updatePageGroupUserSheets();
+ void invalidateInjectedStyleSheetCache();
+ void updateInjectedStyleSheetCache() const;
void addUserSheet(PassRefPtr<StyleSheetContents> userSheet);
@@ -125,10 +126,13 @@
int m_pendingStylesheets;
RefPtr<CSSStyleSheet> m_pageUserSheet;
- mutable OwnPtr<Vector<RefPtr<CSSStyleSheet> > > m_pageGroupUserSheets;
- OwnPtr<Vector<RefPtr<CSSStyleSheet> > > m_userSheets;
- mutable bool m_pageGroupUserSheetCacheValid;
+ mutable Vector<RefPtr<CSSStyleSheet> > m_injectedUserStyleSheets;
+ mutable Vector<RefPtr<CSSStyleSheet> > m_injectedAuthorStyleSheets;
+ mutable bool m_injectedStyleSheetCacheValid;
+
+ Vector<RefPtr<CSSStyleSheet> > m_userStyleSheets;
+
bool m_hadActiveLoadingStylesheet;
bool m_needsUpdateActiveStylesheetsOnStyleRecalc;
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/dom/DocumentStyleSheetCollection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698