Changeset 243129 in webkit
- Timestamp:
- Mar 18, 2019, 9:13:37 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
page/scrolling/ScrollingStateNode.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r243126 r243129 1 2019-03-18 Simon Fraser <simon.fraser@apple.com> 2 3 Unreviewed followup to r243126. 4 5 LayerRepresentation operator=() needs to copy m_graphicsLayer now that it doesn't 6 share a pointer with m_typelessPlatformLayer. Also make the LayerRepresentation construction 7 from a GraphiscLayer* explicit. 8 9 * page/scrolling/ScrollingStateNode.h: 10 (WebCore::LayerRepresentation::operator=): 11 (WebCore::LayerRepresentation::toRepresentation const): 12 1 13 2019-03-18 Simon Fraser <simon.fraser@apple.com> 2 14 -
trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h
r243126 r243129 120 120 LayerRepresentation& operator=(const LayerRepresentation& other) 121 121 { 122 m_graphicsLayer = other.m_graphicsLayer; 122 123 m_typelessPlatformLayer = other.m_typelessPlatformLayer; 123 124 m_layerID = other.m_layerID; … … 156 157 case GraphicsLayerRepresentation: 157 158 ASSERT(m_representation == GraphicsLayerRepresentation); 158 return *this;159 return LayerRepresentation(m_graphicsLayer.get()); 159 160 case PlatformLayerRepresentation: 160 161 return m_graphicsLayer ? m_graphicsLayer->platformLayer() : nullptr;
Note:
See TracChangeset
for help on using the changeset viewer.