Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 6fd7c24921906d5ed4687b8b90ae673073959d90..56f8cdbc63155fe4f964387ff0f29494fd0badaa 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -1967,8 +1967,9 @@ static inline const RenderLayer* accumulateOffsetTowardsAncestor(const RenderLay |
ancestorLayer->convertToLayerCoords(fixedPositionContainerLayer, ancestorCoords); |
location += (fixedContainerCoords - ancestorCoords); |
- return ancestorLayer; |
- } |
+ } else |
+ location += toSize(layer->location()); |
+ return ancestorLayer; |
} |
RenderLayer* parentLayer; |