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

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

Issue 2334313002: [Layout API] Use ownerLayoutItem() in scrollableAreaBoundingBox() (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/frame/FrameView.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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 LayoutSize contentBoxOffset() const 75 LayoutSize contentBoxOffset() const
76 { 76 {
77 return toBox()->contentBoxOffset(); 77 return toBox()->contentBoxOffset();
78 } 78 }
79 79
80 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState & state, MapCoordinatesFlags flags = ApplyContainerFlip) const 80 void mapLocalToAncestor(const LayoutBoxModelObject* ancestor, TransformState & state, MapCoordinatesFlags flags = ApplyContainerFlip) const
81 { 81 {
82 toBox()->mapLocalToAncestor(ancestor, state, flags); 82 toBox()->mapLocalToAncestor(ancestor, state, flags);
83 } 83 }
84 84
85 FloatQuad absoluteContentQuad() const
86 {
87 return toBox()->absoluteContentQuad();
88 }
89
85 private: 90 private:
86 LayoutBox* toBox() 91 LayoutBox* toBox()
87 { 92 {
88 return toLayoutBox(layoutObject()); 93 return toLayoutBox(layoutObject());
89 } 94 }
90 95
91 const LayoutBox* toBox() const 96 const LayoutBox* toBox() const
92 { 97 {
93 return toLayoutBox(layoutObject()); 98 return toLayoutBox(layoutObject());
94 } 99 }
95 }; 100 };
96 101
97 } // namespace blink 102 } // namespace blink
98 103
99 #endif // LayoutBoxItem_h 104 #endif // LayoutBoxItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698