| Index: third_party/WebKit/Source/core/frame/FrameView.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| index 4959e65cffdd86d3499cbe53c908e02024163cdf..76aceedf504d4195d643d94ee6111a9be5a80178 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -1744,7 +1744,8 @@ bool FrameView::invalidateViewportConstrainedObjects() {
|
| for (const auto& viewportConstrainedObject : *m_viewportConstrainedObjects) {
|
| LayoutObject* layoutObject = viewportConstrainedObject;
|
| LayoutItem layoutItem = LayoutItem(layoutObject);
|
| - ASSERT(layoutItem.style()->hasViewportConstrainedPosition());
|
| + DCHECK(layoutItem.style()->hasViewportConstrainedPosition() ||
|
| + layoutItem.style()->hasStickyConstrainedPosition());
|
| ASSERT(layoutItem.hasLayer());
|
| PaintLayer* layer = LayoutBoxModel(layoutItem).layer();
|
|
|
| @@ -5018,7 +5019,7 @@ bool FrameView::hasVisibleSlowRepaintViewportConstrainedObjects() const {
|
| // Whether the Layer sticks to the viewport is a tree-depenent
|
| // property and our viewportConstrainedObjects collection is maintained
|
| // with only LayoutObject-level information.
|
| - if (!layer->sticksToViewport())
|
| + if (!layer->fixedToViewport() && !layer->sticksToScroller())
|
| continue;
|
|
|
| // If the whole subtree is invisible, there's no reason to scroll on
|
|
|