| 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 d36b46bdf321ddeb49160399dbc4ad3b18f0d130..6c4f7906a3218b9eecc58d52fd157663539a0c4b 100644
|
| --- a/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp
|
| @@ -2365,8 +2365,10 @@ 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()) {
|
| - DoubleSize adjustedScrollOffset = m_owningLayer.getScrollableArea()->adjustedScrollOffset();
|
| - offset.expand(-adjustedScrollOffset.width(), -adjustedScrollOffset.height());
|
| + if (m_owningLayer.getScrollableArea()) {
|
| + DoubleSize adjustedScrollOffset = m_owningLayer.getScrollableArea()->adjustedScrollOffset();
|
| + offset.expand(-adjustedScrollOffset.width(), -adjustedScrollOffset.height());
|
| + }
|
| }
|
| }
|
|
|
|
|