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

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

Issue 1819603003: Shift flowthread-to-visual coordinate space conversion one level up in the tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit tests. 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/MapCoordinatesTest.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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const ComputedStyle& styleRef() const 142 const ComputedStyle& styleRef() const
143 { 143 {
144 return m_layoutObject->styleRef(); 144 return m_layoutObject->styleRef();
145 } 145 }
146 146
147 LayoutSize offsetFromContainer(const LayoutItem& item) const 147 LayoutSize offsetFromContainer(const LayoutItem& item) const
148 { 148 {
149 return m_layoutObject->offsetFromContainer(item.layoutObject()); 149 return m_layoutObject->offsetFromContainer(item.layoutObject());
150 } 150 }
151 151
152 LayoutSize columnOffset(const LayoutPoint& point) const
153 {
154 return m_layoutObject->columnOffset(point);
155 }
156
157 FrameView* frameView() const 152 FrameView* frameView() const
158 { 153 {
159 return m_layoutObject->document().view(); 154 return m_layoutObject->document().view();
160 } 155 }
161 156
162 void setMayNeedPaintInvalidation() 157 void setMayNeedPaintInvalidation()
163 { 158 {
164 m_layoutObject->setMayNeedPaintInvalidation(); 159 m_layoutObject->setMayNeedPaintInvalidation();
165 } 160 }
166 161
(...skipping 21 matching lines...) Expand all
188 LayoutObject* layoutObject() { return m_layoutObject; } 183 LayoutObject* layoutObject() { return m_layoutObject; }
189 const LayoutObject* layoutObject() const { return m_layoutObject; } 184 const LayoutObject* layoutObject() const { return m_layoutObject; }
190 185
191 private: 186 private:
192 LayoutObject* m_layoutObject; 187 LayoutObject* m_layoutObject;
193 }; 188 };
194 189
195 } // namespace blink 190 } // namespace blink
196 191
197 #endif // LayoutItem_h 192 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/MapCoordinatesTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698