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

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 crbug.com/365260 crashing test + expectation 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
« no previous file with comments | « Source/core/html/HTMLTrackElement.h ('k') | Source/core/html/track/InbandTextTrack.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 !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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTrackElement.h ('k') | Source/core/html/track/InbandTextTrack.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698