Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Issue 747363003: Ignore <rt> children when determining WebVTT text direction (LTR/RTL) (Closed)

Created:
6 years ago by philipj_slow
Modified:
6 years ago
Reviewers:
fs
CC:
blink-reviews, nessy, philipj_slow, gasubic, fs, eric.carlson_apple.com, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews-html_chromium.org, vcarbune.chromium
Project:
blink
Visibility:
Public.

Description

Ignore <rt> children when determining WebVTT text direction (LTR/RTL) In the previous implementation of determineTextDirection the node.localName() == rtTag check would always be false, because the isTextNode() check would guarantee that localName() was a null String. Even if it had worked, it would only have skipped the <rt> elements themselves, not its descendant text nodes. Rewrite the traversal to skip the children of <rt>. The two cases added to captions-rtl.vtt would previously detect the wrong text direction. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185878

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -10 lines) Patch
M LayoutTests/media/track/captions-webvtt/captions-rtl.vtt View 1 chunk +8 lines, -0 lines 0 comments Download
M LayoutTests/media/track/track-cue-rendering-rtl.html View 2 chunks +4 lines, -2 lines 0 comments Download
M LayoutTests/media/track/track-cue-rendering-rtl-expected.txt View 1 chunk +26 lines, -0 lines 0 comments Download
M Source/core/html/track/vtt/VTTCue.cpp View 2 chunks +16 lines, -8 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
philipj_slow
PTAL
6 years ago (2014-11-24 14:08:41 UTC) #2
fs
lgtm
6 years ago (2014-11-24 15:48:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/747363003/1
6 years ago (2014-11-24 16:00:03 UTC) #5
commit-bot: I haz the power
6 years ago (2014-11-24 16:05:26 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=185878

Powered by Google App Engine
This is Rietveld 408576698