⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 243129 in webkit


Ignore:
Timestamp:
Mar 18, 2019, 9:13:37 PM (8 years ago)
Author:
Simon Fraser
Message:

Unreviewed followup to r243126.

LayerRepresentation operator=() needs to copy m_graphicsLayer now that it doesn't
share a pointer with m_typelessPlatformLayer. Also make the LayerRepresentation construction
from a GraphiscLayer* explicit.

  • page/scrolling/ScrollingStateNode.h:

(WebCore::LayerRepresentation::operator=):
(WebCore::LayerRepresentation::toRepresentation const):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r243126 r243129  
     12019-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
    1132019-03-18  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebCore/page/scrolling/ScrollingStateNode.h

    r243126 r243129  
    120120    LayerRepresentation& operator=(const LayerRepresentation& other)
    121121    {
     122        m_graphicsLayer = other.m_graphicsLayer;
    122123        m_typelessPlatformLayer = other.m_typelessPlatformLayer;
    123124        m_layerID = other.m_layerID;
    … …  
    156157        case GraphicsLayerRepresentation:
    157158            ASSERT(m_representation == GraphicsLayerRepresentation);
    158             return *this;
     159            return LayerRepresentation(m_graphicsLayer.get());
    159160        case PlatformLayerRepresentation:
    160161            return m_graphicsLayer ? m_graphicsLayer->platformLayer() : nullptr;
Note: See TracChangeset for help on using the changeset viewer.