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