Changeset 111717 in webkit for trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp
- Timestamp:
- Mar 22, 2012, 10:01:48 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp
r103502 r111717 70 70 } 71 71 72 void XMLHttpRequestProgressEventThrottle::dispatchEvent(PassRefPtr<Event> event, ProgressEventAction progressEventAction) 72 void XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent(PassRefPtr<Event> event, ProgressEventAction progressEventAction) 73 { 74 if (progressEventAction == FlushProgressEvent) 75 flushProgressEvent(); 76 77 dispatchEvent(event); 78 } 79 80 void XMLHttpRequestProgressEventThrottle::dispatchEvent(PassRefPtr<Event> event) 73 81 { 74 82 ASSERT(!suspended()); 75 83 // We should not have any pending events from a previous resume. 76 84 ASSERT(!m_pausedEvent); 77 78 if (progressEventAction == FlushProgressEvent)79 flushProgressEvent();80 85 81 86 m_target->dispatchEvent(event); … … 102 107 stop(); 103 108 104 m_target->dispatchEvent(event);109 dispatchEvent(event); 105 110 } 106 111 … … 111 116 return; 112 117 113 m_target->dispatchEvent(m_pausedEvent);118 dispatchEvent(m_pausedEvent); 114 119 m_pausedEvent = 0; 115 120 } … … 126 131 } 127 132 128 m_target->dispatchEvent(XMLHttpRequestProgressEvent::create(eventNames().progressEvent, m_lengthComputable, m_loaded, m_total));133 dispatchEvent(XMLHttpRequestProgressEvent::create(eventNames().progressEvent, m_lengthComputable, m_loaded, m_total)); 129 134 m_total = 0; 130 135 m_loaded = 0;
Note:
See TracChangeset
for help on using the changeset viewer.