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

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

Issue 2268823006: [Layout API] Use ownerLayoutItem() in LayoutView (part 2) (Closed)
Patch Set: Created 4 years, 3 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/LayoutView.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 LayoutUnit minPreferredLogicalWidth() const 65 LayoutUnit minPreferredLogicalWidth() const
66 { 66 {
67 return toBox()->minPreferredLogicalWidth(); 67 return toBox()->minPreferredLogicalWidth();
68 } 68 }
69 69
70 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli pBehavior behavior = IgnoreOverlayScrollbarSize) const 70 LayoutRect overflowClipRect(const LayoutPoint& location, OverlayScrollbarCli pBehavior behavior = IgnoreOverlayScrollbarSize) const
71 { 71 {
72 return toBox()->overflowClipRect(location, behavior); 72 return toBox()->overflowClipRect(location, behavior);
73 } 73 }
74 74
75 LayoutSize contentBoxOffset() const
76 {
77 return toBox()->contentBoxOffset();
78 }
79
80 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState & state, MapCoordinatesFlags flags = ApplyContainerFlip) const
81 {
82 toBox()->mapLocalToAncestor(ancestor, state, flags);
83 }
84
75 private: 85 private:
76 LayoutBox* toBox() 86 LayoutBox* toBox()
77 { 87 {
78 return toLayoutBox(layoutObject()); 88 return toLayoutBox(layoutObject());
79 } 89 }
80 90
81 const LayoutBox* toBox() const 91 const LayoutBox* toBox() const
82 { 92 {
83 return toLayoutBox(layoutObject()); 93 return toLayoutBox(layoutObject());
84 } 94 }
85 }; 95 };
86 96
87 } // namespace blink 97 } // namespace blink
88 98
89 #endif // LayoutBoxItem_h 99 #endif // LayoutBoxItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698