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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2873293002: Replace ASSERT with DCHECK_EQ as appropriate (Closed)
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 8494a860f4d09910b458768c54de89b22fd622f5..01f72561bc2073d77a86794e25bdf0ed6efcd392 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -718,7 +718,7 @@ void FrameView::AdjustViewSize() {
if (layout_view_item.IsNull())
return;
- ASSERT(frame_->View() == this);
+ DCHECK_EQ(frame_->View(), this);
const IntRect rect = layout_view_item.DocumentRect();
const IntSize& size = rect.Size();
@@ -1158,7 +1158,7 @@ void FrameView::ScheduleOrPerformPostLayoutTasks() {
void FrameView::UpdateLayout() {
// We should never layout a Document which is not in a LocalFrame.
DCHECK(frame_);
- DCHECK(frame_->View() == this);
+ DCHECK_EQ(frame_->View(), this);
DCHECK(frame_->GetPage());
ScriptForbiddenScope forbid_script;

Powered by Google App Engine
This is Rietveld 408576698