Changeset 142538 in webkit


Ignore:
Timestamp:
Feb 11, 2013 4:01:36 PM (11 years ago)
Author:
yoli@rim.com
Message:

XMLHttpRequestProgressEventThrottle::resume() always schedules timer even when unnecessary
https://bugs.webkit.org/show_bug.cgi?id=105348

Reviewed by Alexey Proskuryakov.

Let resume() clear the defer flag and return if there is deferred events to dispatch.

No new tests as this should not affect existing cross-platform behavior. It should be
OK as long as it doesn't break anything.

  • xml/XMLHttpRequestProgressEventThrottle.cpp:

(WebCore::XMLHttpRequestProgressEventThrottle::resume):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r142535 r142538  
     12013-02-11  Yong Li  <yoli@rim.com>
     2
     3        XMLHttpRequestProgressEventThrottle::resume() always schedules timer even when unnecessary
     4        https://bugs.webkit.org/show_bug.cgi?id=105348
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Let resume() clear the defer flag and return if there is deferred events to dispatch.
     9
     10        No new tests as this should not affect existing cross-platform behavior. It should be
     11        OK as long as it doesn't break anything.
     12
     13        * xml/XMLHttpRequestProgressEventThrottle.cpp:
     14        (WebCore::XMLHttpRequestProgressEventThrottle::resume):
     15
    1162013-02-11  Eric Seidel  <eric@webkit.org>
    217
  • trunk/Source/WebCore/xml/XMLHttpRequestProgressEventThrottle.cpp

    r114374 r142538  
    199199    ASSERT(!m_total);
    200200
     201    if (m_deferredEvents.isEmpty() && !m_deferredProgressEvent) {
     202        m_deferEvents = false;
     203        return;
     204    }
     205
    201206    // Do not dispatch events inline here, since ScriptExecutionContext is iterating over
    202207    // the list of active DOM objects to resume them, and any activated JS event-handler
Note: See TracChangeset for help on using the changeset viewer.