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

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

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 9 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/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLTrackElement.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) 2007, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 2010 Apple 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 { 94 {
95 setAttribute(typeAttr, type); 95 setAttribute(typeAttr, type);
96 } 96 }
97 97
98 void HTMLSourceElement::scheduleErrorEvent() 98 void HTMLSourceElement::scheduleErrorEvent()
99 { 99 {
100 WTF_LOG(Media, "HTMLSourceElement::scheduleErrorEvent - %p", this); 100 WTF_LOG(Media, "HTMLSourceElement::scheduleErrorEvent - %p", this);
101 if (m_errorEventTimer.isActive()) 101 if (m_errorEventTimer.isActive())
102 return; 102 return;
103 103
104 m_errorEventTimer.startOneShot(0); 104 m_errorEventTimer.startOneShot(0, FROM_HERE);
105 } 105 }
106 106
107 void HTMLSourceElement::cancelPendingErrorEvent() 107 void HTMLSourceElement::cancelPendingErrorEvent()
108 { 108 {
109 WTF_LOG(Media, "HTMLSourceElement::cancelPendingErrorEvent - %p", this); 109 WTF_LOG(Media, "HTMLSourceElement::cancelPendingErrorEvent - %p", this);
110 m_errorEventTimer.stop(); 110 m_errorEventTimer.stop();
111 } 111 }
112 112
113 void HTMLSourceElement::errorEventTimerFired(Timer<HTMLSourceElement>*) 113 void HTMLSourceElement::errorEventTimerFired(Timer<HTMLSourceElement>*)
114 { 114 {
115 WTF_LOG(Media, "HTMLSourceElement::errorEventTimerFired - %p", this); 115 WTF_LOG(Media, "HTMLSourceElement::errorEventTimerFired - %p", this);
116 dispatchEvent(Event::createCancelable(EventTypeNames::error)); 116 dispatchEvent(Event::createCancelable(EventTypeNames::error));
117 } 117 }
118 118
119 bool HTMLSourceElement::isURLAttribute(const Attribute& attribute) const 119 bool HTMLSourceElement::isURLAttribute(const Attribute& attribute) const
120 { 120 {
121 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute) ; 121 return attribute.name() == srcAttr || HTMLElement::isURLAttribute(attribute) ;
122 } 122 }
123 123
124 } 124 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/HTMLTrackElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698