Changeset 262028 in webkit
- Timestamp:
- May 21, 2020 2:20:53 PM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r262026 r262028 1 2020-05-21 Simon Fraser <simon.fraser@apple.com> 2 3 Fix rare crash in TileGrid::platformCALayerShowRepaintCounter() 4 https://bugs.webkit.org/show_bug.cgi?id=212182 5 <rdar://problem/55618414> 6 7 Reviewed by Darin Adler. 8 9 Crash data suggest that owner() can be null in platformCALayerShowRepaintCounter(), 10 so null-check in these functions. 11 12 * platform/graphics/ca/TileGrid.cpp: 13 (WebCore::TileGrid::platformCALayerDeviceScaleFactor const): 14 (WebCore::TileGrid::platformCALayerShowDebugBorders const): 15 (WebCore::TileGrid::platformCALayerShowRepaintCounter const): 16 (WebCore::TileGrid::isUsingDisplayListDrawing const): 17 1 18 2020-05-21 Youenn Fablet <youenn@apple.com> 2 19 -
trunk/Source/WebCore/platform/graphics/ca/TileGrid.cpp
r252962 r262028 749 749 float TileGrid::platformCALayerDeviceScaleFactor() const 750 750 { 751 return m_controller.rootLayer().owner()->platformCALayerDeviceScaleFactor(); 751 if (auto* layerOwner = m_controller.rootLayer().owner()) 752 return layerOwner->platformCALayerDeviceScaleFactor(); 753 return 1.0f; 752 754 } 753 755 754 756 bool TileGrid::platformCALayerShowDebugBorders() const 755 757 { 756 return m_controller.rootLayer().owner()->platformCALayerShowDebugBorders(); 758 if (auto* layerOwner = m_controller.rootLayer().owner()) 759 return layerOwner->platformCALayerShowDebugBorders(); 760 return false; 757 761 } 758 762 759 763 bool TileGrid::platformCALayerShowRepaintCounter(PlatformCALayer*) const 760 764 { 761 return m_controller.rootLayer().owner()->platformCALayerShowRepaintCounter(nullptr); 765 if (auto* layerOwner = m_controller.rootLayer().owner()) 766 return layerOwner->platformCALayerShowRepaintCounter(nullptr); 767 return false; 762 768 } 763 769 764 770 bool TileGrid::isUsingDisplayListDrawing(PlatformCALayer*) const 765 771 { 766 return m_controller.rootLayer().owner()->isUsingDisplayListDrawing(nullptr); 772 if (auto* layerOwner = m_controller.rootLayer().owner()) 773 return layerOwner->isUsingDisplayListDrawing(nullptr); 774 return false; 767 775 } 768 776
Note: See TracChangeset
for help on using the changeset viewer.