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

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

Issue 2110893002: [Layout API] Use LayoutViewItem in PaintPropertyTreeBuilderTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/core/paint/PaintPropertyTreeBuilderTest.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
11 #include "wtf/Allocator.h" 11 #include "wtf/Allocator.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class FrameView; 15 class FrameView;
16 class LayoutAPIShim; 16 class LayoutAPIShim;
17 class Node; 17 class Node;
18 class ObjectPaintProperties;
18 19
19 class LayoutItem { 20 class LayoutItem {
20 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 21 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
21 public: 22 public:
22 explicit LayoutItem(LayoutObject* layoutObject) 23 explicit LayoutItem(LayoutObject* layoutObject)
23 : m_layoutObject(layoutObject) 24 : m_layoutObject(layoutObject)
24 { 25 {
25 } 26 }
26 27
27 LayoutItem(std::nullptr_t) 28 LayoutItem(std::nullptr_t)
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect& layoutRect, VisualRectFlags flags = DefaultVisualRectFlags) const 261 bool mapToVisualRectInAncestorSpace(const LayoutBoxModelObject* ancestor, La youtRect& layoutRect, VisualRectFlags flags = DefaultVisualRectFlags) const
261 { 262 {
262 return m_layoutObject->mapToVisualRectInAncestorSpace(ancestor, layoutRe ct, flags); 263 return m_layoutObject->mapToVisualRectInAncestorSpace(ancestor, layoutRe ct, flags);
263 } 264 }
264 265
265 Color resolveColor(int colorProperty) const 266 Color resolveColor(int colorProperty) const
266 { 267 {
267 return m_layoutObject->resolveColor(colorProperty); 268 return m_layoutObject->resolveColor(colorProperty);
268 } 269 }
269 270
271 ObjectPaintProperties* objectPaintProperties() const
272 {
273 return m_layoutObject->objectPaintProperties();
274 }
275
270 protected: 276 protected:
271 LayoutObject* layoutObject() { return m_layoutObject; } 277 LayoutObject* layoutObject() { return m_layoutObject; }
272 const LayoutObject* layoutObject() const { return m_layoutObject; } 278 const LayoutObject* layoutObject() const { return m_layoutObject; }
273 279
274 private: 280 private:
275 LayoutObject* m_layoutObject; 281 LayoutObject* m_layoutObject;
276 282
277 friend class LayoutAPIShim; 283 friend class LayoutAPIShim;
278 }; 284 };
279 285
280 } // namespace blink 286 } // namespace blink
281 287
282 #endif // LayoutItem_h 288 #endif // LayoutItem_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698