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

Side by Side Diff: Source/core/html/HTMLTrackElement.cpp

Issue 244493002: Oilpan: add transition types to track interface objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing tracing to HTMLTrackElement. Created 6 years, 8 months 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 unified diff | Download patch
OLDNEW
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
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 (m_track)
Mads Ager (chromium) 2014/04/22 13:07:15 We should probably be careful and wrap this in #if
sof 2014/04/22 14:02:48 I don't mind putting it back in (even if I risk ge
Mads Ager (chromium) 2014/04/22 14:17:59 What if it has a JavaScript wrapper which also kee
64 m_track->clearTrackElement();
65 } 63 }
66 64
67 PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(Document& document) 65 PassRefPtr<HTMLTrackElement> HTMLTrackElement::create(Document& document)
68 { 66 {
69 return adoptRef(new HTMLTrackElement(document)); 67 return adoptRef(new HTMLTrackElement(document));
70 } 68 }
71 69
72 Node::InsertionNotificationRequest HTMLTrackElement::insertedInto(ContainerNode* insertionPoint) 70 Node::InsertionNotificationRequest HTMLTrackElement::insertedInto(ContainerNode* insertionPoint)
73 { 71 {
74 WTF_LOG(Media, "HTMLTrackElement::insertedInto"); 72 WTF_LOG(Media, "HTMLTrackElement::insertedInto");
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 } 263 }
266 264
267 HTMLMediaElement* HTMLTrackElement::mediaElement() const 265 HTMLMediaElement* HTMLTrackElement::mediaElement() const
268 { 266 {
269 Element* parent = parentElement(); 267 Element* parent = parentElement();
270 if (isHTMLMediaElement(parent)) 268 if (isHTMLMediaElement(parent))
271 return toHTMLMediaElement(parent); 269 return toHTMLMediaElement(parent);
272 return 0; 270 return 0;
273 } 271 }
274 272
273 void HTMLTrackElement::trace(Visitor* visitor)
274 {
275 visitor->trace(m_track);
276 HTMLElement::trace(visitor);
275 } 277 }
278
279 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698