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

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

Issue 2258033002: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace ASSERT()s with DCHECK*() in core/html/*.{cpp,h}. Created 4 years, 4 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) 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 142 }
143 143
144 void HTMLSourceElement::cancelPendingErrorEvent() 144 void HTMLSourceElement::cancelPendingErrorEvent()
145 { 145 {
146 DVLOG(SOURCE_LOG_LEVEL) << "cancelPendingErrorEvent - " << (void*)this; 146 DVLOG(SOURCE_LOG_LEVEL) << "cancelPendingErrorEvent - " << (void*)this;
147 sourceErrorEventSender().cancelEvent(this); 147 sourceErrorEventSender().cancelEvent(this);
148 } 148 }
149 149
150 void HTMLSourceElement::dispatchPendingEvent(SourceEventSender* eventSender) 150 void HTMLSourceElement::dispatchPendingEvent(SourceEventSender* eventSender)
151 { 151 {
152 ASSERT_UNUSED(eventSender, eventSender == &sourceErrorEventSender()); 152 DCHECK_EQ(eventSender, &sourceErrorEventSender());
153 DVLOG(SOURCE_LOG_LEVEL) << "dispatchPendingEvent - " << (void*)this; 153 DVLOG(SOURCE_LOG_LEVEL) << "dispatchPendingEvent - " << (void*)this;
154 dispatchEvent(Event::createCancelable(EventTypeNames::error)); 154 dispatchEvent(Event::createCancelable(EventTypeNames::error));
155 } 155 }
156 156
157 bool HTMLSourceElement::mediaQueryMatches() const 157 bool HTMLSourceElement::mediaQueryMatches() const
158 { 158 {
159 if (!m_mediaQueryList) 159 if (!m_mediaQueryList)
160 return true; 160 return true;
161 161
162 return m_mediaQueryList->matches(); 162 return m_mediaQueryList->matches();
(...skipping 24 matching lines...) Expand all
187 } 187 }
188 188
189 DEFINE_TRACE(HTMLSourceElement) 189 DEFINE_TRACE(HTMLSourceElement)
190 { 190 {
191 visitor->trace(m_mediaQueryList); 191 visitor->trace(m_mediaQueryList);
192 visitor->trace(m_listener); 192 visitor->trace(m_listener);
193 HTMLElement::trace(visitor); 193 HTMLElement::trace(visitor);
194 } 194 }
195 195
196 } // namespace blink 196 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLShadowElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLStyleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698