Chromium Code Reviews| Index: Source/core/rendering/RenderLayer.cpp |
| diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
| index 9c306c9dd320254c78ad2ed96a6a0be03fe7c60c..de7234cdb0d11680e679e78f1793bed94151fa49 100644 |
| --- a/Source/core/rendering/RenderLayer.cpp |
| +++ b/Source/core/rendering/RenderLayer.cpp |
| @@ -1491,7 +1491,14 @@ void RenderLayer::collectFragments(LayerFragments& fragments, const RenderLayer* |
| // Shift the dirty rect into flow thread coordinates. |
| LayoutPoint offsetOfPaginationLayerFromRoot; |
| - enclosingPaginationLayer()->convertToLayerCoords(rootLayer, offsetOfPaginationLayerFromRoot); |
| + if (rootLayer != enclosingPaginationLayer() && rootLayer->enclosingPaginationLayer() == enclosingPaginationLayer()) { |
| + // The root layer is inside our pagination layer. |
| + // FIXME: more work needed if there are nested pagination layers. |
| + rootLayer->convertToLayerCoords(enclosingPaginationLayer(), offsetOfPaginationLayerFromRoot); |
|
mstensho (USE GERRIT)
2014/10/06 14:52:58
This isn't really going to work right now (unless
mstensho (USE GERRIT)
2014/10/06 14:55:22
Done.
With the latest patch, where I remove a hac
Julien - ping for review
2014/10/06 22:12:32
Could we add some visual testing for the second co
mstensho (USE GERRIT)
2014/10/07 14:55:35
Done.
But then I had to fix even more. :-P It tur
|
| + offsetOfPaginationLayerFromRoot = -offsetOfPaginationLayerFromRoot; |
| + } else { |
| + enclosingPaginationLayer()->convertToLayerCoords(rootLayer, offsetOfPaginationLayerFromRoot); |
| + } |
| LayoutRect dirtyRectInFlowThread(dirtyRect); |
| dirtyRectInFlowThread.moveBy(-offsetOfPaginationLayerFromRoot); |