Implemet :lang() pseudo class support for the WebVTT ::cue pseudo element
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 21:00:26 +0000 (21:00 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 4 Feb 2013 21:00:26 +0000 (21:00 +0000)
commit74ba64226ae8c60b94dafb63c1b570eabe7ca73c
tree6e73b841def3ad42059e7c6a527985ec13b696e0
parent96a316e6b7b354e2d6adc241db253dbf34e52d50
Implemet :lang() pseudo class support for the WebVTT ::cue pseudo element
https://bugs.webkit.org/show_bug.cgi?id=105478

Patch by Dima Gorbik <dgorbik@apple.com> on 2013-02-04
Reviewed by Antti Koivisto.

Source/WebCore:

In WebVTT lang is preprocessed and stored in the lang attribute of the element,
so we access it instead of walking up the tree the way it is done in HTML.

Existing tests were modified to cover this case.

* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne):

LayoutTests:

* media/track/captions-webvtt/styling-lang.vtt:
* media/track/track-css-matching-lang-expected.txt:
* media/track/track-css-matching-lang.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@141795 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/track/captions-webvtt/styling-lang.vtt
LayoutTests/media/track/track-css-matching-lang-expected.txt
LayoutTests/media/track/track-css-matching-lang.html
Source/WebCore/ChangeLog
Source/WebCore/css/SelectorChecker.cpp