Index: Source/core/rendering/RenderBox.cpp |
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp |
index 30e8eb901e26a172d38dff8df9eab70e52d0d328..8337838e6bec690ab022ade4e626c9baaf821dfe 100644 |
--- a/Source/core/rendering/RenderBox.cpp |
+++ b/Source/core/rendering/RenderBox.cpp |
@@ -580,6 +580,18 @@ void RenderBox::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& add |
rects.append(pixelSnappedIntRect(additionalOffset, size())); |
} |
+void RenderBox::addLayerHitTestRects(LayerHitTestRects& layerRects, const RenderLayer* currentLayer, const LayoutPoint& layerOffset) const |
+{ |
+ LayoutPoint adjustedLayerOffset = layerOffset + locationOffset(); |
+ RenderBoxModelObject::addLayerHitTestRects(layerRects, currentLayer, adjustedLayerOffset); |
+} |
+ |
+void RenderBox::computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutPoint& layerOffset) const |
+{ |
+ if (!size().isEmpty()) |
+ rects.append(LayoutRect(layerOffset, size())); |
+} |
+ |
LayoutRect RenderBox::reflectionBox() const |
{ |
LayoutRect result; |