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

Side by Side Diff: Source/core/html/HTMLImportsController.cpp

Issue 131043003: [import] Refactoring: Get rid of HTMLImport::isProcessing() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed an extra blank line Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLImportsController.h ('k') | no next file » | 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) 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 void HTMLImportsController::wasDetachedFromDocument() 137 void HTMLImportsController::wasDetachedFromDocument()
138 { 138 {
139 clear(); 139 clear();
140 } 140 }
141 141
142 void HTMLImportsController::didFinishParsing() 142 void HTMLImportsController::didFinishParsing()
143 { 143 {
144 } 144 }
145 145
146 bool HTMLImportsController::isProcessing() const
147 {
148 return m_master->parsing();
149 }
150
151 bool HTMLImportsController::isDone() const 146 bool HTMLImportsController::isDone() const
152 { 147 {
153 return !m_master->parsing(); 148 return !m_master->parsing();
154 } 149 }
155 150
156 void HTMLImportsController::blockerGone() 151 void HTMLImportsController::blockerGone()
157 { 152 {
158 scheduleUnblock(); 153 scheduleUnblock();
159 } 154 }
160 155
161 void HTMLImportsController::scheduleUnblock() 156 void HTMLImportsController::scheduleUnblock()
162 { 157 {
163 if (m_unblockTimer.isActive()) 158 if (m_unblockTimer.isActive())
164 return; 159 return;
165 m_unblockTimer.startOneShot(0); 160 m_unblockTimer.startOneShot(0);
166 } 161 }
167 162
168 void HTMLImportsController::unblockTimerFired(Timer<HTMLImportsController>*) 163 void HTMLImportsController::unblockTimerFired(Timer<HTMLImportsController>*)
169 { 164 {
170 do { 165 do {
171 m_unblockTimer.stop(); 166 m_unblockTimer.stop();
172 HTMLImport::unblock(this); 167 HTMLImport::unblock(this);
173 } while (m_unblockTimer.isActive()); 168 } while (m_unblockTimer.isActive());
174 } 169 }
175 170
176 } // namespace WebCore 171 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImportsController.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698