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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.h

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 /* 1 /*
2 Copyright (C) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 int Width() const { return frame_rect_.Width(); } 127 int Width() const { return frame_rect_.Width(); }
128 int Height() const { return frame_rect_.Height(); } 128 int Height() const { return frame_rect_.Height(); }
129 IntSize Size() const { return frame_rect_.Size(); } 129 IntSize Size() const { return frame_rect_.Size(); }
130 IntPoint Location() const override { return frame_rect_.Location(); } 130 IntPoint Location() const override { return frame_rect_.Location(); }
131 void Resize(int width, int height) { 131 void Resize(int width, int height) {
132 SetFrameRect(IntRect(frame_rect_.X(), frame_rect_.Y(), width, height)); 132 SetFrameRect(IntRect(frame_rect_.X(), frame_rect_.Y(), width, height));
133 } 133 }
134 void Resize(const IntSize& size) { SetFrameRect(IntRect(Location(), size)); } 134 void Resize(const IntSize& size) { SetFrameRect(IntRect(Location(), size)); }
135 135
136 LocalFrame& GetFrame() const { 136 LocalFrame& GetFrame() const {
137 ASSERT(frame_); 137 DCHECK(frame_);
138 return *frame_; 138 return *frame_;
139 } 139 }
140 140
141 Page* GetPage() const; 141 Page* GetPage() const;
142 142
143 // TODO(pilgrim) replace all instances of layoutView() with layoutViewItem() 143 // TODO(pilgrim) replace all instances of layoutView() with layoutViewItem()
144 // https://crbug.com/499321 144 // https://crbug.com/499321
145 LayoutView* GetLayoutView() const; 145 LayoutView* GetLayoutView() const;
146 LayoutViewItem GetLayoutViewItem() const; 146 LayoutViewItem GetLayoutViewItem() const;
147 147
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 frameViewBase.IsFrameView()); 1274 frameViewBase.IsFrameView());
1275 DEFINE_TYPE_CASTS(FrameView, 1275 DEFINE_TYPE_CASTS(FrameView,
1276 ScrollableArea, 1276 ScrollableArea,
1277 scrollableArea, 1277 scrollableArea,
1278 scrollableArea->IsFrameView(), 1278 scrollableArea->IsFrameView(),
1279 scrollableArea.IsFrameView()); 1279 scrollableArea.IsFrameView());
1280 1280
1281 } // namespace blink 1281 } // namespace blink
1282 1282
1283 #endif // FrameView_h 1283 #endif // FrameView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameSerializer.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698