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

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

Issue 1995853003: [Layout API] Use FrameView::layoutViewItem() in LayoutTreeAsText.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/LayoutTreeAsText.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 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 LayoutItem container() const 139 LayoutItem container() const
140 { 140 {
141 return LayoutItem(m_layoutObject->container()); 141 return LayoutItem(m_layoutObject->container());
142 } 142 }
143 143
144 Node* node() const 144 Node* node() const
145 { 145 {
146 return m_layoutObject->node(); 146 return m_layoutObject->node();
147 } 147 }
148 148
149 void updateStyleAndLayout()
150 {
151 return m_layoutObject->document().updateStyleAndLayout();
152 }
153
149 const ComputedStyle& styleRef() const 154 const ComputedStyle& styleRef() const
150 { 155 {
151 return m_layoutObject->styleRef(); 156 return m_layoutObject->styleRef();
152 } 157 }
153 158
154 LayoutSize offsetFromContainer(const LayoutItem& item) const 159 LayoutSize offsetFromContainer(const LayoutItem& item) const
155 { 160 {
156 return m_layoutObject->offsetFromContainer(item.layoutObject()); 161 return m_layoutObject->offsetFromContainer(item.layoutObject());
157 } 162 }
158 163
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 LayoutObject* layoutObject() { return m_layoutObject; } 205 LayoutObject* layoutObject() { return m_layoutObject; }
201 const LayoutObject* layoutObject() const { return m_layoutObject; } 206 const LayoutObject* layoutObject() const { return m_layoutObject; }
202 207
203 private: 208 private:
204 LayoutObject* m_layoutObject; 209 LayoutObject* m_layoutObject;
205 }; 210 };
206 211
207 } // namespace blink 212 } // namespace blink
208 213
209 #endif // LayoutItem_h 214 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698