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

Unified Diff: Source/core/html/HTMLTrackElement.cpp

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/HTMLTrackElement.cpp
diff --git a/Source/core/html/HTMLTrackElement.cpp b/Source/core/html/HTMLTrackElement.cpp
index 8f7eb8e3df403ecc4552a6f69283ce20e61aac70..06ba4793698d9d53a4008ef81c3f68131cec736e 100644
--- a/Source/core/html/HTMLTrackElement.cpp
+++ b/Source/core/html/HTMLTrackElement.cpp
@@ -50,12 +50,11 @@ static String urlForLoggingTrack(const KURL& url)
}
#endif
-inline HTMLTrackElement::HTMLTrackElement(const QualifiedName& tagName, Document& document)
- : HTMLElement(tagName, document)
+inline HTMLTrackElement::HTMLTrackElement(Document& document)
+ : HTMLElement(trackTag, document)
, m_loadTimer(this, &HTMLTrackElement::loadTimerFired)
{
LOG(Media, "HTMLTrackElement::HTMLTrackElement - %p", this);
- ASSERT(hasTagName(trackTag));
ScriptWrappable::init(this);
}
@@ -65,9 +64,9 @@ HTMLTrackElement::~HTMLTrackElement()
m_track->clearClient();
}
-PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(const QualifiedName& tagName, Document& document)
+PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(Document& document)
{
- return adoptRef(new HTMLTrackElement(tagName, document));
+ return adoptRef(new HTMLTrackElement(document));
}
Node::InsertionNotificationRequest HTMLTrackElement::insertedInto(ContainerNode* insertionPoint)

Powered by Google App Engine
This is Rietveld 408576698