OLD | NEW |
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 Loading... |
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::hasLoader() const |
| 147 { |
| 148 return true; |
| 149 } |
| 150 |
146 bool HTMLImportsController::isDone() const | 151 bool HTMLImportsController::isDone() const |
147 { | 152 { |
148 return !m_master->parsing(); | 153 return !m_master->parsing(); |
149 } | 154 } |
150 | 155 |
151 void HTMLImportsController::blockerGone() | 156 void HTMLImportsController::blockerGone() |
152 { | 157 { |
153 scheduleUnblock(); | 158 scheduleUnblock(); |
154 } | 159 } |
155 | 160 |
156 void HTMLImportsController::scheduleUnblock() | 161 void HTMLImportsController::scheduleUnblock() |
157 { | 162 { |
158 if (m_unblockTimer.isActive()) | 163 if (m_unblockTimer.isActive()) |
159 return; | 164 return; |
160 m_unblockTimer.startOneShot(0); | 165 m_unblockTimer.startOneShot(0); |
161 } | 166 } |
162 | 167 |
163 void HTMLImportsController::unblockTimerFired(Timer<HTMLImportsController>*) | 168 void HTMLImportsController::unblockTimerFired(Timer<HTMLImportsController>*) |
164 { | 169 { |
165 do { | 170 do { |
166 m_unblockTimer.stop(); | 171 m_unblockTimer.stop(); |
167 HTMLImport::unblock(this); | 172 HTMLImport::unblock(this); |
168 } while (m_unblockTimer.isActive()); | 173 } while (m_unblockTimer.isActive()); |
169 } | 174 } |
170 | 175 |
171 } // namespace WebCore | 176 } // namespace WebCore |
OLD | NEW |