Index: Source/core/rendering/RenderLayer.h |
diff --git a/Source/core/rendering/RenderLayer.h b/Source/core/rendering/RenderLayer.h |
index 287b8ce1c6116161270941688e5e7a12434a6392..7aa9dab2644fa57ab642d3e96861fedaaaaa5d2b 100644 |
--- a/Source/core/rendering/RenderLayer.h |
+++ b/Source/core/rendering/RenderLayer.h |
@@ -228,8 +228,7 @@ public: |
LayoutRect physicalBoundingBoxIncludingReflectionAndStackingChildren(const RenderLayer* ancestorLayer, const LayoutPoint& offsetFromRoot) const; |
LayoutRect fragmentsBoundingBox(const RenderLayer* ancestorLayer) const; |
- // FIXME: This function is inconsistent as to whether the returned rect has been flipped for writing mode. |
- LayoutRect boundingBoxForCompositingOverlapTest() const { return overlapBoundsIncludeChildren() ? boundingBoxForCompositing() : logicalBoundingBox(); } |
+ LayoutRect boundingBoxForCompositingOverlapTest() const { return overlapBoundsIncludeChildren() ? boundingBoxForCompositing() : flippedLogicalBoundingBox(); } |
// If true, this layer's children are included in its bounds for overlap testing. |
// We can't rely on the children's positions if this layer has a filter that could have moved the children's pixels around. |