Changeset 125624 in webkit


Ignore:
Timestamp:
Aug 14, 2012 5:10:36 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Clear pattern to prevent timing problem between cancelVibration and vibrate
https://bugs.webkit.org/show_bug.cgi?id=93957

Patch by Kihong Kwon <kihong.kwon@samsung.com> on 2012-08-14
Reviewed by Kentaro Hara.

There is a timing issue in the cancelVibration.
Since vibrate works based on timer, cancelVibration might be called
eariler than vibrate when cancelVibration is called just after vibrate call.
It can be prevented from clearing m_pattern in the cancelVibration.

  • Modules/vibration/Vibration.cpp:

(WebCore::Vibration::cancelVibration):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r125617 r125624  
     12012-08-14  Kihong Kwon  <kihong.kwon@samsung.com>
     2
     3        Clear pattern to prevent timing problem between cancelVibration and vibrate
     4        https://bugs.webkit.org/show_bug.cgi?id=93957
     5
     6        Reviewed by Kentaro Hara.
     7
     8        There is a timing issue in the cancelVibration.
     9        Since vibrate works based on timer, cancelVibration might be called
     10        eariler than vibrate when cancelVibration is called just after vibrate call.
     11        It can be prevented from clearing m_pattern in the cancelVibration.
     12
     13        * Modules/vibration/Vibration.cpp:
     14        (WebCore::Vibration::cancelVibration):
     15
    1162012-08-14  Alexandru Chiculita  <achicu@adobe.com>
    217
  • trunk/Source/WebCore/Modules/vibration/Vibration.cpp

    r108958 r125624  
    7474void Vibration::cancelVibration()
    7575{
     76    m_pattern.clear();
    7677    if (m_isVibrating) {
    7778        m_vibrationClient->cancelVibration();
Note: See TracChangeset for help on using the changeset viewer.