OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 return url.string().substring(0, maximumURLLengthForLogging) + "..."; | 52 return url.string().substring(0, maximumURLLengthForLogging) + "..."; |
53 } | 53 } |
54 #endif | 54 #endif |
55 | 55 |
56 inline HTMLTrackElement::HTMLTrackElement(const QualifiedName& tagName, Document
* document) | 56 inline HTMLTrackElement::HTMLTrackElement(const QualifiedName& tagName, Document
* document) |
57 : HTMLElement(tagName, document) | 57 : HTMLElement(tagName, document) |
58 , m_loadTimer(this, &HTMLTrackElement::loadTimerFired) | 58 , m_loadTimer(this, &HTMLTrackElement::loadTimerFired) |
59 { | 59 { |
60 LOG(Media, "HTMLTrackElement::HTMLTrackElement - %p", this); | 60 LOG(Media, "HTMLTrackElement::HTMLTrackElement - %p", this); |
61 ASSERT(hasTagName(trackTag)); | 61 ASSERT(hasTagName(trackTag)); |
| 62 ScriptWrappable::init(this); |
62 } | 63 } |
63 | 64 |
64 HTMLTrackElement::~HTMLTrackElement() | 65 HTMLTrackElement::~HTMLTrackElement() |
65 { | 66 { |
66 if (m_track) | 67 if (m_track) |
67 m_track->clearClient(); | 68 m_track->clearClient(); |
68 } | 69 } |
69 | 70 |
70 PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(const QualifiedName& tagNa
me, Document* document) | 71 PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(const QualifiedName& tagNa
me, Document* document) |
71 { | 72 { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 | 367 |
367 void HTMLTrackElement::setItemValueText(const String& value, ExceptionCode&) | 368 void HTMLTrackElement::setItemValueText(const String& value, ExceptionCode&) |
368 { | 369 { |
369 setAttribute(srcAttr, value); | 370 setAttribute(srcAttr, value); |
370 } | 371 } |
371 #endif | 372 #endif |
372 | 373 |
373 } | 374 } |
374 | 375 |
375 #endif | 376 #endif |
OLD | NEW |