| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |