Index: third_party/WebKit/Source/core/paint/DeprecatedPaintLayer.cpp |
diff --git a/third_party/WebKit/Source/core/paint/DeprecatedPaintLayer.cpp b/third_party/WebKit/Source/core/paint/DeprecatedPaintLayer.cpp |
index dbb7a96f043b03c69d120f701f0b22a8722d8b4f..af747f57a22e8f8b8991246de7d3153dd25ea28e 100644 |
--- a/third_party/WebKit/Source/core/paint/DeprecatedPaintLayer.cpp |
+++ b/third_party/WebKit/Source/core/paint/DeprecatedPaintLayer.cpp |
@@ -313,7 +313,8 @@ void DeprecatedPaintLayer::dirtyAncestorChainHasSelfPaintingLayerDescendantStatu |
bool DeprecatedPaintLayer::scrollsWithViewport() const |
{ |
- return layoutObject()->style()->position() == FixedPosition && layoutObject()->containerForFixedPosition() == layoutObject()->view(); |
+ return (layoutObject()->style()->position() == FixedPosition && layoutObject()->containerForFixedPosition() == layoutObject()->view()) |
+ || (layoutObject()->style()->position() == StickyPosition && !ancestorScrollingLayer()); |
} |
bool DeprecatedPaintLayer::scrollsWithRespectTo(const DeprecatedPaintLayer* other) const |