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

Side by Side Diff: third_party/WebKit/Source/core/dom/IntersectionObserver.cpp

Issue 2401523002: Replace ASSERT family with DCHECK and so on in core/dom/. (Closed)
Patch Set: Created 4 years, 2 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/IntersectionObserver.h" 5 #include "core/dom/IntersectionObserver.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "core/css/parser/CSSParserTokenRange.h" 8 #include "core/css/parser/CSSParserTokenRange.h"
9 #include "core/css/parser/CSSTokenizer.h" 9 #include "core/css/parser/CSSTokenizer.h"
10 #include "core/dom/Element.h" 10 #include "core/dom/Element.h"
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 m_rightMargin = m_leftMargin = rootMargin[1]; 220 m_rightMargin = m_leftMargin = rootMargin[1];
221 m_bottomMargin = rootMargin[2]; 221 m_bottomMargin = rootMargin[2];
222 break; 222 break;
223 case 4: 223 case 4:
224 m_topMargin = rootMargin[0]; 224 m_topMargin = rootMargin[0];
225 m_rightMargin = rootMargin[1]; 225 m_rightMargin = rootMargin[1];
226 m_bottomMargin = rootMargin[2]; 226 m_bottomMargin = rootMargin[2];
227 m_leftMargin = rootMargin[3]; 227 m_leftMargin = rootMargin[3];
228 break; 228 break;
229 default: 229 default:
230 ASSERT_NOT_REACHED(); 230 NOTREACHED();
231 break; 231 break;
232 } 232 }
233 root.document().ensureIntersectionObserverController().addTrackedObserver( 233 root.document().ensureIntersectionObserverController().addTrackedObserver(
234 *this); 234 *this);
235 } 235 }
236 236
237 void IntersectionObserver::clearWeakMembers(Visitor* visitor) { 237 void IntersectionObserver::clearWeakMembers(Visitor* visitor) {
238 if (ThreadHeap::isHeapObjectAlive(m_root)) 238 if (ThreadHeap::isHeapObjectAlive(m_root))
239 return; 239 return;
240 IgnorableExceptionState exceptionState; 240 IgnorableExceptionState exceptionState;
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 436
437 DEFINE_TRACE(IntersectionObserver) { 437 DEFINE_TRACE(IntersectionObserver) {
438 visitor->template registerWeakMembers< 438 visitor->template registerWeakMembers<
439 IntersectionObserver, &IntersectionObserver::clearWeakMembers>(this); 439 IntersectionObserver, &IntersectionObserver::clearWeakMembers>(this);
440 visitor->trace(m_callback); 440 visitor->trace(m_callback);
441 visitor->trace(m_observations); 441 visitor->trace(m_observations);
442 visitor->trace(m_entries); 442 visitor->trace(m_entries);
443 } 443 }
444 444
445 } // namespace blink 445 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IconURL.cpp ('k') | third_party/WebKit/Source/core/dom/NameNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698