Changeset 172257 in webkit


Ignore:
Timestamp:
Aug 7, 2014, 2:01:20 PM (11 years ago)
Author:
eric.carlson@apple.com
Message:

Create UTF-8 string from in-band VTT cues
https://bugs.webkit.org/show_bug.cgi?id=135716

Reviewed by Brent Fulgham.

Tests will be added in https://bugs.webkit.org/show_bug.cgi?id=135717.

  • platform/graphics/ISOVTTCue.cpp:

(WebCore::ISOBox::peekString): Call String::fromUTF8 because we know that VTT is always

UTF-8.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r172244 r172257  
     12014-08-07  Eric Carlson  <eric.carlson@apple.com>
     2
     3        Create UTF-8 string from in-band VTT cues
     4        https://bugs.webkit.org/show_bug.cgi?id=135716
     5
     6        Reviewed by Brent Fulgham.
     7
     8        Tests will be added in https://bugs.webkit.org/show_bug.cgi?id=135717.
     9
     10        * platform/graphics/ISOVTTCue.cpp:
     11        (WebCore::ISOBox::peekString): Call String::fromUTF8 because we know that VTT is always
     12            UTF-8.
     13
    1142014-08-06  Jeremy Jones  <jeremyj@apple.com>
    215
  • trunk/Source/WebCore/platform/graphics/ISOVTTCue.cpp

    r170379 r172257  
    7676        return emptyString();
    7777
    78     return String(JSC::Uint8Array::create(data, offset, length)->data(), length);
     78    return String::fromUTF8(JSC::Uint8Array::create(data, offset, length)->data(), length);
    7979}
    8080
Note: See TracChangeset for help on using the changeset viewer.