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

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: 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
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 } 145 }
146 146
147 FrameView* frameView() const 147 FrameView* frameView() const
148 { 148 {
149 return m_layoutObject->document().view(); 149 return m_layoutObject->document().view();
150 } 150 }
151 151
152 void setMayNeedPaintInvalidation() 152 void setMayNeedPaintInvalidation()
153 { 153 {
154 m_layoutObject->setMayNeedPaintInvalidation(); 154 m_layoutObject->setMayNeedPaintInvalidation();
(...skipping 23 matching lines...) Expand all
178 LayoutObject* layoutObject() { return m_layoutObject; } 178 LayoutObject* layoutObject() { return m_layoutObject; }
179 const LayoutObject* layoutObject() const { return m_layoutObject; } 179 const LayoutObject* layoutObject() const { return m_layoutObject; }
180 180
181 private: 181 private:
182 LayoutObject* m_layoutObject; 182 LayoutObject* m_layoutObject;
183 }; 183 };
184 184
185 } // namespace blink 185 } // namespace blink
186 186
187 #endif // LayoutItem_h 187 #endif // LayoutItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698