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

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

Issue 2036213002: [Layout API] Introduce Layout API shim and use in LayerClipRecorderTest.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 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 Node; 17 class Node;
17 18
18 class LayoutItem { 19 class LayoutItem {
19 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); 20 DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
20 public: 21 public:
21 explicit LayoutItem(LayoutObject* layoutObject) 22 explicit LayoutItem(LayoutObject* layoutObject)
22 : m_layoutObject(layoutObject) 23 : m_layoutObject(layoutObject)
23 { 24 {
24 } 25 }
25 26
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 { 251 {
251 return m_layoutObject->resolveColor(colorProperty); 252 return m_layoutObject->resolveColor(colorProperty);
252 } 253 }
253 254
254 protected: 255 protected:
255 LayoutObject* layoutObject() { return m_layoutObject; } 256 LayoutObject* layoutObject() { return m_layoutObject; }
256 const LayoutObject* layoutObject() const { return m_layoutObject; } 257 const LayoutObject* layoutObject() const { return m_layoutObject; }
257 258
258 private: 259 private:
259 LayoutObject* m_layoutObject; 260 LayoutObject* m_layoutObject;
261
262 friend class LayoutAPIShim;
260 }; 263 };
261 264
262 } // namespace blink 265 } // namespace blink
263 266
264 #endif // LayoutItem_h 267 #endif // LayoutItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698