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

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

Issue 1820483002: Untangle multicol coordinate space conversion from offsetFromContainer(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address code review comment. Created 4 years, 9 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/LayoutTableCell.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 LayoutItem_h 5 #ifndef LayoutItem_h
6 #define LayoutItem_h 6 #define LayoutItem_h
7 7
8 #include "core/inspector/InspectorTraceEvents.h" 8 #include "core/inspector/InspectorTraceEvents.h"
9 #include "core/layout/LayoutObject.h" 9 #include "core/layout/LayoutObject.h"
10 #include "wtf/Allocator.h" 10 #include "wtf/Allocator.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 LayoutItem container() const 132 LayoutItem container() const
133 { 133 {
134 return LayoutItem(m_layoutObject->container()); 134 return LayoutItem(m_layoutObject->container());
135 } 135 }
136 136
137 const ComputedStyle& styleRef() const 137 const ComputedStyle& styleRef() const
138 { 138 {
139 return m_layoutObject->styleRef(); 139 return m_layoutObject->styleRef();
140 } 140 }
141 141
142 LayoutSize offsetFromContainer(const LayoutItem& item, const LayoutPoint& po int, bool* offsetDependsOnPoint = nullptr) const 142 LayoutSize offsetFromContainer(const LayoutItem& item) const
143 { 143 {
144 return m_layoutObject->offsetFromContainer(item.layoutObject(), point, o ffsetDependsOnPoint); 144 return m_layoutObject->offsetFromContainer(item.layoutObject());
145 }
146
147 LayoutSize columnOffset(const LayoutPoint& point) const
148 {
149 return m_layoutObject->columnOffset(point);
145 } 150 }
146 151
147 FrameView* frameView() const 152 FrameView* frameView() const
148 { 153 {
149 return m_layoutObject->document().view(); 154 return m_layoutObject->document().view();
150 } 155 }
151 156
152 void setMayNeedPaintInvalidation() 157 void setMayNeedPaintInvalidation()
153 { 158 {
154 m_layoutObject->setMayNeedPaintInvalidation(); 159 m_layoutObject->setMayNeedPaintInvalidation();
(...skipping 23 matching lines...) Expand all
178 LayoutObject* layoutObject() { return m_layoutObject; } 183 LayoutObject* layoutObject() { return m_layoutObject; }
179 const LayoutObject* layoutObject() const { return m_layoutObject; } 184 const LayoutObject* layoutObject() const { return m_layoutObject; }
180 185
181 private: 186 private:
182 LayoutObject* m_layoutObject; 187 LayoutObject* m_layoutObject;
183 }; 188 };
184 189
185 } // namespace blink 190 } // namespace blink
186 191
187 #endif // LayoutItem_h 192 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableCell.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698