Bug 78706 - Renaming parameters for positioning a track cue
Summary: Renaming parameters for positioning a track cue
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks: 43668
  Show dependency treegraph
 
Reported: 2012-02-15 05:37 PST by Victor Carbune
Modified: 2012-04-02 10:10 PDT (History)
3 users (show)

See Also:


Attachments
Proposed patch (65.07 KB, patch)
2012-02-29 18:00 PST, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Victor Carbune 2012-02-15 05:37:34 PST
The positioning and size parameters (formerly D:, L:, T:, S:, A:) in the WebVTT spec have been renamed (vertical:, line:, position:, size:, align:)

The TextTrackCue::parseSettings method needs to be updated.
Comment 1 Radar WebKit Bug Importer 2012-02-29 15:39:28 PST
<rdar://problem/10958447>
Comment 2 Eric Carlson 2012-02-29 18:00:34 PST
Created attachment 129568 [details]
Proposed patch
Comment 3 Sam Weinig 2012-04-02 09:24:07 PDT
Comment on attachment 129568 [details]
Proposed patch

View in context: https://bugs.webkit.org/attachment.cgi?id=129568&action=review

> Source/WebCore/html/track/TextTrackCue.cpp:401
> +TextTrackCue::CueSetting TextTrackCue::settingName(const String& name)
> +{
> +    DEFINE_STATIC_LOCAL(const String, verticalKeyword, ("vertical"));
> +    DEFINE_STATIC_LOCAL(const String, lineKeyword, ("line"));
> +    DEFINE_STATIC_LOCAL(const String, positionKeyword, ("position"));
> +    DEFINE_STATIC_LOCAL(const String, sizeKeyword, ("size"));
> +    DEFINE_STATIC_LOCAL(const String, alignKeyword, ("align"));
> +
> +    if (name == verticalKeyword)
> +        return Vertical;
> +    else if (name == lineKeyword)
> +        return Line;
> +    else if (name == positionKeyword)
> +        return Position;
> +    else if (name == sizeKeyword)
> +        return Size;
> +    else if (name == alignKeyword)
> +        return Align;
> +
> +    return None;
> +}

Is this common enough that we should consider using AtomicString?
Comment 4 WebKit Review Bot 2012-04-02 10:10:53 PDT
Comment on attachment 129568 [details]
Proposed patch

Clearing flags on attachment: 129568

Committed r112898: <http://trac.webkit.org/changeset/112898>
Comment 5 WebKit Review Bot 2012-04-02 10:10:57 PDT
All reviewed patches have been landed.  Closing bug.