[EFL] vibration/cancelVibration-during-pattern-vibrating.html is failing after r165598
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2014 09:16:47 +0000 (09:16 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 19 Mar 2014 09:16:47 +0000 (09:16 +0000)
https://bugs.webkit.org/show_bug.cgi?id=130333

Patch by Krzysztof Wolanski <k.wolanski@samsung.com> on 2014-03-19
Reviewed by Gyuyoung Kim.

Added setting m_state when calling Vibration::vibrate. It was missing after
refactoring Vibration (r165598).

* Modules/vibration/Vibration.cpp:
(WebCore::Vibration::vibrate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@165882 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/Modules/vibration/Vibration.cpp

index c718694..35e96be 100644 (file)
@@ -1,3 +1,16 @@
+2014-03-19  Krzysztof Wolanski  <k.wolanski@samsung.com>
+
+        [EFL] vibration/cancelVibration-during-pattern-vibrating.html is failing after r165598
+        https://bugs.webkit.org/show_bug.cgi?id=130333
+
+        Reviewed by Gyuyoung Kim.
+
+        Added setting m_state when calling Vibration::vibrate. It was missing after
+        refactoring Vibration (r165598).
+
+        * Modules/vibration/Vibration.cpp:
+        (WebCore::Vibration::vibrate):
+
 2014-03-19  Sam Weinig  <sam@webkit.org>
 
         Rewrite WebHTMLConverter::_colorForNode in C++
index 650b04b..d68c80d 100644 (file)
@@ -82,6 +82,7 @@ bool Vibration::vibrate(const VibrationPattern& pattern)
     m_pattern = sanitized;
 
     m_timer.startOneShot(0);
+    m_state = State::Waiting;
     return true;
 }