Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutItem.h

Issue 2180573002: Try to fix crash because of InlineBox deletion in a cached subsequence (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/line/InlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698