Chromium Code Reviews| Index: Source/core/frame/FrameView.cpp |
| diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
| index 04c1c28aa2015b31187252cfe1648fa47d30b9f4..19bfd555f4cc5e0ba3a61be3171147485f9590a8 100644 |
| --- a/Source/core/frame/FrameView.cpp |
| +++ b/Source/core/frame/FrameView.cpp |
| @@ -1319,20 +1319,6 @@ void FrameView::scrollContentsIfNeededRecursive() |
| } |
| } |
| -// FIXME: If we had a flag to force invalidations in a whole subtree, we could get rid of this function (crbug.com/410097). |
| -static void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(const DeprecatedPaintLayer* layer) |
| -{ |
| - layer->layoutObject()->setShouldDoFullPaintInvalidation(); |
| - |
| - for (DeprecatedPaintLayer* child = layer->firstChild(); child; child = child->nextSibling()) { |
| - // Don't include paint invalidation rects for composited child layers; they will paint themselves and have a different origin. |
| - if (child->isPaintInvalidationContainer()) |
| - continue; |
| - |
| - setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(child); |
| - } |
| -} |
| - |
| bool FrameView::invalidateViewportConstrainedObjects() |
| { |
| for (const auto& viewportConstrainedObject : *m_viewportConstrainedObjects) { |
| @@ -1359,7 +1345,7 @@ bool FrameView::invalidateViewportConstrainedObjects() |
| "data", |
| InspectorScrollInvalidationTrackingEvent::data(*layoutObject)); |
| - setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(layer); |
| + layoutObject->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
|
trchen
2015/06/04 00:59:36
I'm not certain if this is needed. The fixed-posit
Xianzhu
2015/06/04 01:49:56
For now there seems simple way to implement this.
chrishtr
2015/06/04 17:41:09
Please write this down in a bug so we don't forget
Xianzhu
2015/06/04 18:04:39
crbug.com/451090#c17
|
| } |
| return true; |
| } |
| @@ -1392,7 +1378,7 @@ void FrameView::scrollContentsSlowPath(const IntRect& updateRect) |
| if (contentsInCompositedLayer()) |
| layoutView()->layer()->compositedDeprecatedPaintLayerMapping()->setContentsNeedDisplay(); |
| else |
| - setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(layoutView()->layer()); |
| + layoutView()->setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants(); |
| } |
| if (contentsInCompositedLayer()) { |