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

Side by Side Diff: sky/engine/core/dom/StyleElement.cpp

Issue 778743003: Merge StyleSheet into CSSStyleSheet. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: sort headers. 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Rob Buis 2 * Copyright (C) 2006, 2007 Rob Buis
3 * Copyright (C) 2008 Apple, Inc. All rights reserved. 3 * Copyright (C) 2008 Apple, Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void StyleElement::removedFromDocument(Document& document, Element* element, Con tainerNode* scopingNode, TreeScope& treeScope) 81 void StyleElement::removedFromDocument(Document& document, Element* element, Con tainerNode* scopingNode, TreeScope& treeScope)
82 { 82 {
83 ASSERT(element); 83 ASSERT(element);
84 84
85 if (m_registeredAsCandidate) { 85 if (m_registeredAsCandidate) {
86 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNo de, treeScope); 86 document.styleEngine()->removeStyleSheetCandidateNode(element, scopingNo de, treeScope);
87 m_registeredAsCandidate = false; 87 m_registeredAsCandidate = false;
88 } 88 }
89 89
90 RefPtr<StyleSheet> removedSheet = m_sheet.get(); 90 RefPtr<CSSStyleSheet> removedSheet = m_sheet.get();
91 91
92 if (m_sheet) 92 if (m_sheet)
93 clearSheet(element); 93 clearSheet(element);
94 if (removedSheet) 94 if (removedSheet)
95 document.removedStyleSheet(removedSheet.get()); 95 document.removedStyleSheet(removedSheet.get());
96 } 96 }
97 97
98 void StyleElement::clearDocumentData(Document& document, Element* element) 98 void StyleElement::clearDocumentData(Document& document, Element* element)
99 { 99 {
100 if (m_sheet) 100 if (m_sheet)
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 m_sheet->setMediaQueries(mediaQueries.release()); 158 m_sheet->setMediaQueries(mediaQueries.release());
159 m_loading = false; 159 m_loading = false;
160 } 160 }
161 } 161 }
162 162
163 163
164 document.styleResolverChanged(); 164 document.styleResolverChanged();
165 } 165 }
166 166
167 } 167 }
OLDNEW
« no previous file with comments | « sky/engine/core/dom/ShadowTreeStyleSheetCollection.cpp ('k') | sky/engine/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698