| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 return url.string(); | 47 return url.string(); |
| 48 return url.string().substring(0, maximumURLLengthForLogging) + "..."; | 48 return url.string().substring(0, maximumURLLengthForLogging) + "..."; |
| 49 } | 49 } |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 inline HTMLTrackElement::HTMLTrackElement(Document& document) | 52 inline HTMLTrackElement::HTMLTrackElement(Document& document) |
| 53 : HTMLElement(trackTag, document) | 53 : HTMLElement(trackTag, document) |
| 54 , m_loadTimer(this, &HTMLTrackElement::loadTimerFired) | 54 , m_loadTimer(this, &HTMLTrackElement::loadTimerFired) |
| 55 { | 55 { |
| 56 WTF_LOG(Media, "HTMLTrackElement::HTMLTrackElement - %p", this); | 56 WTF_LOG(Media, "HTMLTrackElement::HTMLTrackElement - %p", this); |
| 57 ScriptWrappable::init(this); | |
| 58 } | 57 } |
| 59 | 58 |
| 60 DEFINE_NODE_FACTORY(HTMLTrackElement) | 59 DEFINE_NODE_FACTORY(HTMLTrackElement) |
| 61 | 60 |
| 62 HTMLTrackElement::~HTMLTrackElement() | 61 HTMLTrackElement::~HTMLTrackElement() |
| 63 { | 62 { |
| 64 #if !ENABLE(OILPAN) | 63 #if !ENABLE(OILPAN) |
| 65 if (m_track) | 64 if (m_track) |
| 66 m_track->clearTrackElement(); | 65 m_track->clearTrackElement(); |
| 67 #endif | 66 #endif |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 return 0; | 269 return 0; |
| 271 } | 270 } |
| 272 | 271 |
| 273 void HTMLTrackElement::trace(Visitor* visitor) | 272 void HTMLTrackElement::trace(Visitor* visitor) |
| 274 { | 273 { |
| 275 visitor->trace(m_track); | 274 visitor->trace(m_track); |
| 276 HTMLElement::trace(visitor); | 275 HTMLElement::trace(visitor); |
| 277 } | 276 } |
| 278 | 277 |
| 279 } | 278 } |
| OLD | NEW |