Changeset 147801 in webkit


Ignore:
Timestamp:
Apr 5, 2013 2:54:22 PM (11 years ago)
Author:
Chris Fleizach
Message:

WebSpeech: event.elapsedTime is always 1364484608
https://bugs.webkit.org/show_bug.cgi?id=114045

Reviewed by Tim Horton.

Source/WebCore:

We were calculating elapsed time incorrectly.

Test: platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html

  • Modules/speech/SpeechSynthesis.cpp:

(WebCore::SpeechSynthesis::fireEvent):

LayoutTests:

  • platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time-expected.txt: Added.
  • platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r147800 r147801  
     12013-04-05  Chris Fleizach  <cfleizach@apple.com>
     2
     3        WebSpeech: event.elapsedTime is always 1364484608
     4        https://bugs.webkit.org/show_bug.cgi?id=114045
     5
     6        Reviewed by Tim Horton.
     7
     8        * platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time-expected.txt: Added.
     9        * platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html: Added.
     10
    1112013-04-05  Chris Fleizach  <cfleizach@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r147800 r147801  
     12013-04-05  Chris Fleizach  <cfleizach@apple.com>
     2
     3        WebSpeech: event.elapsedTime is always 1364484608
     4        https://bugs.webkit.org/show_bug.cgi?id=114045
     5
     6        Reviewed by Tim Horton.
     7
     8        We were calculating elapsed time incorrectly.
     9
     10        Test: platform/mac/fast/speechsynthesis/speech-synthesis-elapsed-time.html
     11
     12        * Modules/speech/SpeechSynthesis.cpp:
     13        (WebCore::SpeechSynthesis::fireEvent):
     14
    1152013-04-05  Chris Fleizach  <cfleizach@apple.com>
    216
  • trunk/Source/WebCore/Modules/speech/SpeechSynthesis.cpp

    r147800 r147801  
    141141void SpeechSynthesis::fireEvent(const AtomicString& type, SpeechSynthesisUtterance* utterance, unsigned long charIndex, const String& name)
    142142{
    143     utterance->dispatchEvent(SpeechSynthesisEvent::create(type, charIndex, (currentTime() - utterance->startTime()), name));
     143    utterance->dispatchEvent(SpeechSynthesisEvent::create(type, charIndex, (monotonicallyIncreasingTime() - utterance->startTime()), name));
    144144}
    145145   
Note: See TracChangeset for help on using the changeset viewer.