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

Side by Side Diff: third_party/WebKit/Source/core/frame/RemoteFrameView.cpp

Issue 2858963002: Replace ASSERT with DCHECK in core/ (Closed)
Patch Set: WorkerBackingThread Created 3 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame/RemoteFrameView.h" 5 #include "core/frame/RemoteFrameView.h"
6 6
7 #include "core/dom/IntersectionObserverEntry.h" 7 #include "core/dom/IntersectionObserverEntry.h"
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/LocalFrame.h" 9 #include "core/frame/LocalFrame.h"
10 #include "core/frame/RemoteFrame.h" 10 #include "core/frame/RemoteFrame.h"
11 #include "core/frame/RemoteFrameClient.h" 11 #include "core/frame/RemoteFrameClient.h"
12 #include "core/html/HTMLFrameOwnerElement.h" 12 #include "core/html/HTMLFrameOwnerElement.h"
13 #include "core/layout/LayoutView.h" 13 #include "core/layout/LayoutView.h"
14 #include "core/layout/api/LayoutPartItem.h" 14 #include "core/layout/api/LayoutPartItem.h"
15 15
16 namespace blink { 16 namespace blink {
17 17
18 RemoteFrameView::RemoteFrameView(RemoteFrame* remote_frame) 18 RemoteFrameView::RemoteFrameView(RemoteFrame* remote_frame)
19 : remote_frame_(remote_frame) { 19 : remote_frame_(remote_frame) {
20 ASSERT(remote_frame); 20 DCHECK(remote_frame);
21 } 21 }
22 22
23 RemoteFrameView::~RemoteFrameView() {} 23 RemoteFrameView::~RemoteFrameView() {}
24 24
25 void RemoteFrameView::SetParent(FrameViewBase* parent_frame_view_base) { 25 void RemoteFrameView::SetParent(FrameViewBase* parent_frame_view_base) {
26 FrameView* parent = ToFrameView(parent_frame_view_base); 26 FrameView* parent = ToFrameView(parent_frame_view_base);
27 if (parent == parent_) 27 if (parent == parent_)
28 return; 28 return;
29 29
30 DCHECK(!parent || !parent_); 30 DCHECK(!parent || !parent_);
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 return parent_rect; 150 return parent_rect;
151 } 151 }
152 152
153 DEFINE_TRACE(RemoteFrameView) { 153 DEFINE_TRACE(RemoteFrameView) {
154 visitor->Trace(remote_frame_); 154 visitor->Trace(remote_frame_);
155 visitor->Trace(parent_); 155 visitor->Trace(parent_);
156 } 156 }
157 157
158 } // namespace blink 158 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/RemoteFrameView.h ('k') | third_party/WebKit/Source/core/frame/RootFrameViewport.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698