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

Side by Side Diff: sky/engine/core/dom/StyleEngine.h

Issue 807703003: Remove @media rules. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void detachFromDocument(); 73 void detachFromDocument();
74 #endif 74 #endif
75 75
76 const Vector<RefPtr<CSSStyleSheet>>& activeAuthorStyleSheetsFor(TreeScope&); 76 const Vector<RefPtr<CSSStyleSheet>>& activeAuthorStyleSheetsFor(TreeScope&);
77 const Vector<RefPtr<CSSStyleSheet> >& documentAuthorStyleSheets() const { re turn m_authorStyleSheets; } 77 const Vector<RefPtr<CSSStyleSheet> >& documentAuthorStyleSheets() const { re turn m_authorStyleSheets; }
78 78
79 void modifiedStyleSheet(CSSStyleSheet*); 79 void modifiedStyleSheet(CSSStyleSheet*);
80 void addStyleSheetCandidateNode(Node*, bool createdByParser); 80 void addStyleSheetCandidateNode(Node*, bool createdByParser);
81 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc ope&); 81 void removeStyleSheetCandidateNode(Node*, ContainerNode* scopingNode, TreeSc ope&);
82 82
83 void clearMediaQueryRuleSetStyleSheets();
84 void updateActiveStyleSheets(); 83 void updateActiveStyleSheets();
85 84
86 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets; } 85 bool ignoringPendingStylesheets() const { return m_ignorePendingStylesheets; }
87 86
88 // FIXME(sky): Remove this and ::first-line. 87 // FIXME(sky): Remove this and ::first-line.
89 bool usesFirstLineRules() const { return false; } 88 bool usesFirstLineRules() const { return false; }
90 89
91 void didRemoveShadowRoot(ShadowRoot*); 90 void didRemoveShadowRoot(ShadowRoot*);
92 void appendActiveAuthorStyleSheets(); 91 void appendActiveAuthorStyleSheets();
93 92
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&); 140 TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
142 141
143 void markTreeScopeDirty(TreeScope&); 142 void markTreeScopeDirty(TreeScope&);
144 143
145 bool isMaster() const { return m_isMaster; } 144 bool isMaster() const { return m_isMaster; }
146 Document* master(); 145 Document* master();
147 Document& document() const { return *m_document; } 146 Document& document() const { return *m_document; }
148 147
149 typedef ListHashSet<TreeScope*, 16> TreeScopeSet; 148 typedef ListHashSet<TreeScope*, 16> TreeScopeSet;
150 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*); 149 static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*);
151 void clearMediaQueryRuleSetOnTreeScopeStyleSheets(TreeScopeSet treeScopes);
152 150
153 void createResolver(); 151 void createResolver();
154 152
155 const DocumentStyleSheetCollection* documentStyleSheetCollection() const 153 const DocumentStyleSheetCollection* documentStyleSheetCollection() const
156 { 154 {
157 return m_documentStyleSheetCollection.get(); 155 return m_documentStyleSheetCollection.get();
158 } 156 }
159 157
160 DocumentStyleSheetCollection* documentStyleSheetCollection() 158 DocumentStyleSheetCollection* documentStyleSheetCollection()
161 { 159 {
(...skipping 21 matching lines...) Expand all
183 181
184 RefPtr<CSSFontSelector> m_fontSelector; 182 RefPtr<CSSFontSelector> m_fontSelector;
185 183
186 HashMap<AtomicString, RawPtr<StyleSheetContents> > m_textToSheetCache; 184 HashMap<AtomicString, RawPtr<StyleSheetContents> > m_textToSheetCache;
187 HashMap<RawPtr<StyleSheetContents>, AtomicString> m_sheetToTextCache; 185 HashMap<RawPtr<StyleSheetContents>, AtomicString> m_sheetToTextCache;
188 }; 186 };
189 187
190 } 188 }
191 189
192 #endif // SKY_ENGINE_CORE_DOM_STYLEENGINE_H_ 190 #endif // SKY_ENGINE_CORE_DOM_STYLEENGINE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698