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

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

Issue 2053113003: [Layout API] Use Document::layoutViewItem in WebFrameTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 void updateStyleAndLayout() 170 void updateStyleAndLayout()
171 { 171 {
172 return m_layoutObject->document().updateStyleAndLayout(); 172 return m_layoutObject->document().updateStyleAndLayout();
173 } 173 }
174 174
175 const ComputedStyle& styleRef() const 175 const ComputedStyle& styleRef() const
176 { 176 {
177 return m_layoutObject->styleRef(); 177 return m_layoutObject->styleRef();
178 } 178 }
179 179
180 ComputedStyle& mutableStyleRef() const
181 {
182 return m_layoutObject->mutableStyleRef();
183 }
184
180 LayoutSize offsetFromContainer(const LayoutItem& item) const 185 LayoutSize offsetFromContainer(const LayoutItem& item) const
181 { 186 {
182 return m_layoutObject->offsetFromContainer(item.layoutObject()); 187 return m_layoutObject->offsetFromContainer(item.layoutObject());
183 } 188 }
184 189
185 FrameView* frameView() const 190 FrameView* frameView() const
186 { 191 {
187 return m_layoutObject->document().view(); 192 return m_layoutObject->document().view();
188 } 193 }
189 194
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 273
269 private: 274 private:
270 LayoutObject* m_layoutObject; 275 LayoutObject* m_layoutObject;
271 276
272 friend class LayoutAPIShim; 277 friend class LayoutAPIShim;
273 }; 278 };
274 279
275 } // namespace blink 280 } // namespace blink
276 281
277 #endif // LayoutItem_h 282 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698