| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 inline HTMLTrackElement::HTMLTrackElement(Document& document) | 53 inline HTMLTrackElement::HTMLTrackElement(Document& document) |
| 54 : HTMLElement(trackTag, document) | 54 : HTMLElement(trackTag, document) |
| 55 , m_loadTimer(this, &HTMLTrackElement::loadTimerFired) | 55 , m_loadTimer(this, &HTMLTrackElement::loadTimerFired) |
| 56 { | 56 { |
| 57 WTF_LOG(Media, "HTMLTrackElement::HTMLTrackElement - %p", this); | 57 WTF_LOG(Media, "HTMLTrackElement::HTMLTrackElement - %p", this); |
| 58 ScriptWrappable::init(this); | 58 ScriptWrappable::init(this); |
| 59 } | 59 } |
| 60 | 60 |
| 61 HTMLTrackElement::~HTMLTrackElement() | 61 HTMLTrackElement::~HTMLTrackElement() |
| 62 { | 62 { |
| 63 #if !ENABLE(OILPAN) |
| 63 if (m_track) | 64 if (m_track) |
| 64 m_track->clearTrackElement(); | 65 m_track->clearTrackElement(); |
| 66 #endif |
| 65 } | 67 } |
| 66 | 68 |
| 67 PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(Document& document) | 69 PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(Document& document) |
| 68 { | 70 { |
| 69 return adoptRef(new HTMLTrackElement(document)); | 71 return adoptRef(new HTMLTrackElement(document)); |
| 70 } | 72 } |
| 71 | 73 |
| 72 Node::InsertionNotificationRequest HTMLTrackElement::insertedInto(ContainerNode*
insertionPoint) | 74 Node::InsertionNotificationRequest HTMLTrackElement::insertedInto(ContainerNode*
insertionPoint) |
| 73 { | 75 { |
| 74 WTF_LOG(Media, "HTMLTrackElement::insertedInto"); | 76 WTF_LOG(Media, "HTMLTrackElement::insertedInto"); |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 } | 267 } |
| 266 | 268 |
| 267 HTMLMediaElement* HTMLTrackElement::mediaElement() const | 269 HTMLMediaElement* HTMLTrackElement::mediaElement() const |
| 268 { | 270 { |
| 269 Element* parent = parentElement(); | 271 Element* parent = parentElement(); |
| 270 if (isHTMLMediaElement(parent)) | 272 if (isHTMLMediaElement(parent)) |
| 271 return toHTMLMediaElement(parent); | 273 return toHTMLMediaElement(parent); |
| 272 return 0; | 274 return 0; |
| 273 } | 275 } |
| 274 | 276 |
| 277 void HTMLTrackElement::trace(Visitor* visitor) |
| 278 { |
| 279 visitor->trace(m_track); |
| 280 HTMLElement::trace(visitor); |
| 275 } | 281 } |
| 282 |
| 283 } |
| OLD | NEW |