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

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

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLTitleElement.cpp ('k') | Source/core/html/HTMLUListElement.cpp » ('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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLTitleElement.cpp ('k') | Source/core/html/HTMLUListElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698