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

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

Issue 2170583003: Try to fix crash because of InlineBox deletion in a cached subsequence (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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