OLD | NEW |
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 Loading... |
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 |
OLD | NEW |