Use HTMLElementFactory to create equivalent elements in WebVTTElement
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jun 2013 21:18:55 +0000 (21:18 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Jun 2013 21:18:55 +0000 (21:18 +0000)
commit6a79edbe6252cd1d5a391c69183908272fee93c5
tree8657f275e2603b7627bcc5584acea70436d5f622
parent5c8a48d5a2b89c06f5f523ce5931a57c43f330f4
Use HTMLElementFactory to create equivalent elements in WebVTTElement
https://bugs.webkit.org/show_bug.cgi?id=117423

Reviewed by Eric Carlson.

Source/WebCore:

Merge https://chromium.googlesource.com/chromium/blink/+/3d60bec8e5dabfe877c482797d9ef430bfde31

This change forces the calls through the factory so that we create appropriate sub-classes based upon the passed tag name,
rather than just creating a concrete HTMLElement class with an inappropriate tag name.

Test: media/track/getCueAsHTMLCrash.html

* html/track/WebVTTElement.cpp:
(WebCore::WebVTTElement::createEquivalentHTMLElement):

LayoutTests:

* media/track/getCueAsHTMLCrash-expected.txt: Added.
* media/track/getCueAsHTMLCrash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@151471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/media/track/getCueAsHTMLCrash-expected.txt [new file with mode: 0644]
LayoutTests/media/track/getCueAsHTMLCrash.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/html/track/WebVTTElement.cpp