| Index: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| index dd5482ad94cc93a58e6090690bb4f2fc61ddb89f..0a464d9aed50c228f3486a8a5967195c9555e0ca 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| @@ -2393,8 +2393,8 @@ bool CompositedLayerMapping::needsRepaint(const GraphicsLayer& graphicsLayer) co
|
| void CompositedLayerMapping::adjustForCompositedScrolling(const GraphicsLayer* graphicsLayer, IntSize& offset) const
|
| {
|
| if (graphicsLayer == m_scrollingContentsLayer.get() || graphicsLayer == m_foregroundLayer.get()) {
|
| - if (m_owningLayer.getScrollableArea()) {
|
| - DoubleSize adjustedScrollOffset = m_owningLayer.getScrollableArea()->adjustedScrollOffset();
|
| + if (PaintLayerScrollableArea* scrollableArea = m_owningLayer.getScrollableArea()) {
|
| + DoubleSize adjustedScrollOffset = scrollableArea->adjustedScrollOffset();
|
| offset.expand(-adjustedScrollOffset.width(), -adjustedScrollOffset.height());
|
| }
|
| }
|
|
|