OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Julien Chaffraix <jchaffraix@webkit.org> All right | 2 * Copyright (C) 2010 Julien Chaffraix <jchaffraix@webkit.org> All right |
3 * reserved. | 3 * reserved. |
4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) | 4 * Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies) |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 void XMLHttpRequestProgressEventThrottle::suspend() { | 179 void XMLHttpRequestProgressEventThrottle::suspend() { |
180 stop(); | 180 stop(); |
181 } | 181 } |
182 | 182 |
183 void XMLHttpRequestProgressEventThrottle::resume() { | 183 void XMLHttpRequestProgressEventThrottle::resume() { |
184 if (!m_deferred.isSet()) | 184 if (!m_deferred.isSet()) |
185 return; | 185 return; |
186 | 186 |
187 // Do not dispatch events inline here, since ExecutionContext is iterating | 187 // Do not dispatch events inline here, since ExecutionContext is iterating |
188 // over the list of active DOM objects to resume them, and any activated JS | 188 // over the list of SuspendableObjects to resume them, and any activated JS |
189 // event-handler could insert new active DOM objects to the list. | 189 // event-handler could insert new SuspendableObjects to the list. |
190 startOneShot(0, BLINK_FROM_HERE); | 190 startOneShot(0, BLINK_FROM_HERE); |
191 } | 191 } |
192 | 192 |
193 DEFINE_TRACE(XMLHttpRequestProgressEventThrottle) { | 193 DEFINE_TRACE(XMLHttpRequestProgressEventThrottle) { |
194 visitor->trace(m_target); | 194 visitor->trace(m_target); |
195 } | 195 } |
196 | 196 |
197 } // namespace blink | 197 } // namespace blink |
OLD | NEW |