| 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 417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 bool isHashTableDeletedValue() const | 428 bool isHashTableDeletedValue() const |
| 429 { | 429 { |
| 430 return m_layoutObject == kHashTableDeletedValue; | 430 return m_layoutObject == kHashTableDeletedValue; |
| 431 } | 431 } |
| 432 | 432 |
| 433 void setShouldDoFullPaintInvalidation() | 433 void setShouldDoFullPaintInvalidation() |
| 434 { | 434 { |
| 435 m_layoutObject->setShouldDoFullPaintInvalidation(); | 435 m_layoutObject->setShouldDoFullPaintInvalidation(); |
| 436 } | 436 } |
| 437 | 437 |
| 438 void slowSetPaintingLayerNeedsRepaint() |
| 439 { |
| 440 m_layoutObject->slowSetPaintingLayerNeedsRepaint(); |
| 441 } |
| 442 |
| 438 struct LineLayoutItemHash { | 443 struct LineLayoutItemHash { |
| 439 STATIC_ONLY(LineLayoutItemHash); | 444 STATIC_ONLY(LineLayoutItemHash); |
| 440 static unsigned hash(const LineLayoutItem& key) { return WTF::PtrHash<La
youtObject>::hash(key.m_layoutObject); } | 445 static unsigned hash(const LineLayoutItem& key) { return WTF::PtrHash<La
youtObject>::hash(key.m_layoutObject); } |
| 441 static bool equal(const LineLayoutItem& a, const LineLayoutItem& b) | 446 static bool equal(const LineLayoutItem& a, const LineLayoutItem& b) |
| 442 { | 447 { |
| 443 return WTF::PtrHash<LayoutObject>::equal(a.m_layoutObject, b.m_layou
tObject); | 448 return WTF::PtrHash<LayoutObject>::equal(a.m_layoutObject, b.m_layou
tObject); |
| 444 } | 449 } |
| 445 static const bool safeToCompareToEmptyOrDeleted = true; | 450 static const bool safeToCompareToEmptyOrDeleted = true; |
| 446 }; | 451 }; |
| 447 | 452 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 501 |
| 497 template <> | 502 template <> |
| 498 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { | 503 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { |
| 499 STATIC_ONLY(HashTraits); | 504 STATIC_ONLY(HashTraits); |
| 500 }; | 505 }; |
| 501 | 506 |
| 502 } // namespace WTF | 507 } // namespace WTF |
| 503 | 508 |
| 504 | 509 |
| 505 #endif // LineLayoutItem_h | 510 #endif // LineLayoutItem_h |
| OLD | NEW |