| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 LineLayoutItem_h | 5 #ifndef LineLayoutItem_h |
| 6 #define LineLayoutItem_h | 6 #define LineLayoutItem_h |
| 7 | 7 |
| 8 #include "core/layout/LayoutObject.h" | 8 #include "core/layout/LayoutObject.h" |
| 9 #include "core/layout/LayoutObjectInlines.h" | 9 #include "core/layout/LayoutObjectInlines.h" |
| 10 | 10 |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 #endif | 457 #endif |
| 458 | 458 |
| 459 protected: | 459 protected: |
| 460 LayoutObject* layoutObject() { return m_layoutObject; } | 460 LayoutObject* layoutObject() { return m_layoutObject; } |
| 461 const LayoutObject* layoutObject() const { return m_layoutObject; } | 461 const LayoutObject* layoutObject() const { return m_layoutObject; } |
| 462 | 462 |
| 463 private: | 463 private: |
| 464 LayoutObject* m_layoutObject; | 464 LayoutObject* m_layoutObject; |
| 465 | 465 |
| 466 friend class LayoutBlockFlow; | 466 friend class LayoutBlockFlow; |
| 467 friend class LayoutPosition; |
| 467 friend class LineLayoutAPIShim; | 468 friend class LineLayoutAPIShim; |
| 468 friend class LineLayoutBlockFlow; | 469 friend class LineLayoutBlockFlow; |
| 469 friend class LineLayoutBox; | 470 friend class LineLayoutBox; |
| 470 friend class LineLayoutRubyRun; | 471 friend class LineLayoutRubyRun; |
| 471 }; | 472 }; |
| 472 | 473 |
| 473 } // namespace blink | 474 } // namespace blink |
| 474 | 475 |
| 475 namespace WTF { | 476 namespace WTF { |
| 476 | 477 |
| 477 template <> | 478 template <> |
| 478 struct DefaultHash<blink::LineLayoutItem> { | 479 struct DefaultHash<blink::LineLayoutItem> { |
| 479 using Hash = blink::LineLayoutItem::LineLayoutItemHash; | 480 using Hash = blink::LineLayoutItem::LineLayoutItemHash; |
| 480 }; | 481 }; |
| 481 | 482 |
| 482 template <> | 483 template <> |
| 483 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { | 484 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { |
| 484 STATIC_ONLY(HashTraits); | 485 STATIC_ONLY(HashTraits); |
| 485 }; | 486 }; |
| 486 | 487 |
| 487 } // namespace WTF | 488 } // namespace WTF |
| 488 | 489 |
| 489 | 490 |
| 490 #endif // LineLayoutItem_h | 491 #endif // LineLayoutItem_h |
| OLD | NEW |