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

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

Issue 1945353002: [Layout API] Start converting ScrollAnchor to new layout API (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 | « third_party/WebKit/Source/core/layout/ScrollAnchor.cpp ('k') | no next file » | 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 LayoutPoint location() const 50 LayoutPoint location() const
51 { 51 {
52 return toBox()->location(); 52 return toBox()->location();
53 } 53 }
54 54
55 LayoutUnit minPreferredLogicalWidth() const 55 LayoutUnit minPreferredLogicalWidth() const
56 { 56 {
57 return toBox()->minPreferredLogicalWidth(); 57 return toBox()->minPreferredLogicalWidth();
58 } 58 }
59 59
60 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli pBehavior behavior = IgnoreOverlayScrollbarSize) const
61 {
62 return toBox()->overflowClipRect(location, behavior);
63 }
64
60 private: 65 private:
61 LayoutBox* toBox() 66 LayoutBox* toBox()
62 { 67 {
63 return toLayoutBox(layoutObject()); 68 return toLayoutBox(layoutObject());
64 } 69 }
65 70
66 const LayoutBox* toBox() const 71 const LayoutBox* toBox() const
67 { 72 {
68 return toLayoutBox(layoutObject()); 73 return toLayoutBox(layoutObject());
69 } 74 }
70 }; 75 };
71 76
72 } // namespace blink 77 } // namespace blink
73 78
74 #endif // LayoutBoxItem_h 79 #endif // LayoutBoxItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ScrollAnchor.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698