| 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 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 return m_layoutObject->hasOverflowClip(); | 413 return m_layoutObject->hasOverflowClip(); |
| 414 } | 414 } |
| 415 | 415 |
| 416 // TODO(dgrogan/eae): Can we instead add a TearDown method to the API | 416 // TODO(dgrogan/eae): Can we instead add a TearDown method to the API |
| 417 // instead of exposing this and other shutdown code to line layout? | 417 // instead of exposing this and other shutdown code to line layout? |
| 418 bool documentBeingDestroyed() const | 418 bool documentBeingDestroyed() const |
| 419 { | 419 { |
| 420 return m_layoutObject->documentBeingDestroyed(); | 420 return m_layoutObject->documentBeingDestroyed(); |
| 421 } | 421 } |
| 422 | 422 |
| 423 void slowSetPaintingLayerNeedsRepaintAndInvalidateDisplayItemClient(const Di
splayItemClient& displayItemClient, PaintInvalidationReason reason) | |
| 424 { | |
| 425 return m_layoutObject->slowSetPaintingLayerNeedsRepaintAndInvalidateDisp
layItemClient(displayItemClient, reason); | |
| 426 } | |
| 427 | |
| 428 LayoutRect visualRect() const | 423 LayoutRect visualRect() const |
| 429 { | 424 { |
| 430 return m_layoutObject->visualRect(); | 425 return m_layoutObject->visualRect(); |
| 431 } | 426 } |
| 432 | 427 |
| 433 bool isHashTableDeletedValue() const | 428 bool isHashTableDeletedValue() const |
| 434 { | 429 { |
| 435 return m_layoutObject == kHashTableDeletedValue; | 430 return m_layoutObject == kHashTableDeletedValue; |
| 436 } | 431 } |
| 437 | 432 |
| 433 void setShouldDoFullPaintInvalidation() |
| 434 { |
| 435 m_layoutObject->setShouldDoFullPaintInvalidation(); |
| 436 } |
| 437 |
| 438 struct LineLayoutItemHash { | 438 struct LineLayoutItemHash { |
| 439 STATIC_ONLY(LineLayoutItemHash); | 439 STATIC_ONLY(LineLayoutItemHash); |
| 440 static unsigned hash(const LineLayoutItem& key) { return WTF::PtrHash<La
youtObject>::hash(key.m_layoutObject); } | 440 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) | 441 static bool equal(const LineLayoutItem& a, const LineLayoutItem& b) |
| 442 { | 442 { |
| 443 return WTF::PtrHash<LayoutObject>::equal(a.m_layoutObject, b.m_layou
tObject); | 443 return WTF::PtrHash<LayoutObject>::equal(a.m_layoutObject, b.m_layou
tObject); |
| 444 } | 444 } |
| 445 static const bool safeToCompareToEmptyOrDeleted = true; | 445 static const bool safeToCompareToEmptyOrDeleted = true; |
| 446 }; | 446 }; |
| 447 | 447 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 | 496 |
| 497 template <> | 497 template <> |
| 498 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { | 498 struct HashTraits<blink::LineLayoutItem> : SimpleClassHashTraits<blink::LineLayo
utItem> { |
| 499 STATIC_ONLY(HashTraits); | 499 STATIC_ONLY(HashTraits); |
| 500 }; | 500 }; |
| 501 | 501 |
| 502 } // namespace WTF | 502 } // namespace WTF |
| 503 | 503 |
| 504 | 504 |
| 505 #endif // LineLayoutItem_h | 505 #endif // LineLayoutItem_h |
| OLD | NEW |