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

Side by Side Diff: Source/core/html/imports/HTMLImportLoader.cpp

Issue 975933002: Return reference from styleEngine() accessor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 months 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 170
171 void HTMLImportLoader::didRemoveAllPendingStylesheet() 171 void HTMLImportLoader::didRemoveAllPendingStylesheet()
172 { 172 {
173 if (m_state == StateParsed) 173 if (m_state == StateParsed)
174 setState(finishLoading()); 174 setState(finishLoading());
175 } 175 }
176 176
177 bool HTMLImportLoader::hasPendingResources() const 177 bool HTMLImportLoader::hasPendingResources() const
178 { 178 {
179 return m_document && m_document->styleEngine()->hasPendingSheets(); 179 return m_document && m_document->styleEngine().hasPendingSheets();
180 } 180 }
181 181
182 void HTMLImportLoader::didFinishLoading() 182 void HTMLImportLoader::didFinishLoading()
183 { 183 {
184 for (size_t i = 0; i < m_imports.size(); ++i) 184 for (size_t i = 0; i < m_imports.size(); ++i)
185 m_imports[i]->didFinishLoading(); 185 m_imports[i]->didFinishLoading();
186 186
187 clearResource(); 187 clearResource();
188 188
189 ASSERT(!m_document || !m_document->parsing()); 189 ASSERT(!m_document || !m_document->parsing());
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 #if ENABLE(OILPAN) 231 #if ENABLE(OILPAN)
232 visitor->trace(m_imports); 232 visitor->trace(m_imports);
233 #endif 233 #endif
234 visitor->trace(m_document); 234 visitor->trace(m_document);
235 visitor->trace(m_writer); 235 visitor->trace(m_writer);
236 visitor->trace(m_microtaskQueue); 236 visitor->trace(m_microtaskQueue);
237 DocumentParserClient::trace(visitor); 237 DocumentParserClient::trace(visitor);
238 } 238 }
239 239
240 } // namespace blink 240 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasRenderingContext2D.cpp ('k') | Source/core/html/imports/HTMLImportTreeRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698