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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LayoutBoxItem.h

Issue 1989383002: [Layout API] Use FrameView::layoutViewItem() in WebFrameTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef LayoutBoxItem_h 5 #ifndef LayoutBoxItem_h
6 #define LayoutBoxItem_h 6 #define LayoutBoxItem_h
7 7
8 #include "core/layout/LayoutBox.h" 8 #include "core/layout/LayoutBox.h"
9 #include "core/layout/api/LayoutBoxModel.h" 9 #include "core/layout/api/LayoutBoxModel.h"
10 #include "platform/scroll/ScrollTypes.h" 10 #include "platform/scroll/ScrollTypes.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 LayoutSize size() const 45 LayoutSize size() const
46 { 46 {
47 return toBox()->size(); 47 return toBox()->size();
48 } 48 }
49 49
50 LayoutPoint location() const 50 LayoutPoint location() const
51 { 51 {
52 return toBox()->location(); 52 return toBox()->location();
53 } 53 }
54 54
55 LayoutUnit logicalWidth() const
56 {
57 return toBox()->logicalWidth();
58 }
59
60 LayoutUnit logicalHeight() const
61 {
62 return toBox()->logicalHeight();
63 }
64
55 LayoutUnit minPreferredLogicalWidth() const 65 LayoutUnit minPreferredLogicalWidth() const
56 { 66 {
57 return toBox()->minPreferredLogicalWidth(); 67 return toBox()->minPreferredLogicalWidth();
58 } 68 }
59 69
60 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli pBehavior behavior = IgnoreOverlayScrollbarSize) const 70 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli pBehavior behavior = IgnoreOverlayScrollbarSize) const
61 { 71 {
62 return toBox()->overflowClipRect(location, behavior); 72 return toBox()->overflowClipRect(location, behavior);
63 } 73 }
64 74
65 private: 75 private:
66 LayoutBox* toBox() 76 LayoutBox* toBox()
67 { 77 {
68 return toLayoutBox(layoutObject()); 78 return toLayoutBox(layoutObject());
69 } 79 }
70 80
71 const LayoutBox* toBox() const 81 const LayoutBox* toBox() const
72 { 82 {
73 return toLayoutBox(layoutObject()); 83 return toLayoutBox(layoutObject());
74 } 84 }
75 }; 85 };
76 86
77 } // namespace blink 87 } // namespace blink
78 88
79 #endif // LayoutBoxItem_h 89 #endif // LayoutBoxItem_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698