diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
commit | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (patch) | |
tree | cdca40d0353886b3ca52f33a2d7b8f1c0011aafc /Source/WebCore/html/HTMLTrackElement.cpp | |
parent | 1b914638db989aaa98631a1c1e02c7b2d44805d8 (diff) | |
download | qtwebkit-8d473cf9743f1d30a16a27114e93bd5af5648d23.tar.gz |
Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578)
Weekly snapshot
Diffstat (limited to 'Source/WebCore/html/HTMLTrackElement.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLTrackElement.cpp | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/Source/WebCore/html/HTMLTrackElement.cpp b/Source/WebCore/html/HTMLTrackElement.cpp index 767320a97..64b19a88b 100644 --- a/Source/WebCore/html/HTMLTrackElement.cpp +++ b/Source/WebCore/html/HTMLTrackElement.cpp @@ -94,27 +94,25 @@ void HTMLTrackElement::removedFrom(Node* insertionPoint) HTMLElement::removedFrom(insertionPoint); } -void HTMLTrackElement::parseAttribute(Attribute* attribute) +void HTMLTrackElement::parseAttribute(const Attribute& attribute) { - const QualifiedName& attrName = attribute->name(); - if (RuntimeEnabledFeatures::webkitVideoTrackEnabled()) { - if (attrName == srcAttr) { - if (!attribute->isEmpty() && mediaElement()) + if (attribute.name() == srcAttr) { + if (!attribute.isEmpty() && mediaElement()) scheduleLoad(); // 4.8.10.12.3 Sourcing out-of-band text tracks // As the kind, label, and srclang attributes are set, changed, or removed, the text track must update accordingly... - } else if (attrName == kindAttr) - track()->setKind(attribute->value()); - else if (attrName == labelAttr) - track()->setLabel(attribute->value()); - else if (attrName == srclangAttr) - track()->setLanguage(attribute->value()); + } else if (attribute.name() == kindAttr) + track()->setKind(attribute.value()); + else if (attribute.name() == labelAttr) + track()->setLabel(attribute.value()); + else if (attribute.name() == srclangAttr) + track()->setLanguage(attribute.value()); } - if (attrName == onloadAttr) + if (attribute.name() == onloadAttr) setAttributeEventListener(eventNames().loadEvent, createAttributeEventListener(this, attribute)); - else if (attrName == onerrorAttr) + else if (attribute.name() == onerrorAttr) setAttributeEventListener(eventNames().errorEvent, createAttributeEventListener(this, attribute)); else HTMLElement::parseAttribute(attribute); |