Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
index 87a2f7d19ded9ab6783cb4204caba738a1f3e77e..7cb6d36b018fd419aa2ed2dbed6f79b3387db280 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
@@ -2342,22 +2342,6 @@ void LayoutBlock::addOutlineRects(Vector<LayoutRect>& rects, const LayoutPoint& |
inlineElementContinuation->addOutlineRects(rects, additionalOffset + (inlineElementContinuation->containingBlock()->location() - location()), includeBlockOverflows); |
} |
-void LayoutBlock::computeSelfHitTestRects(Vector<LayoutRect>& rects, const LayoutPoint& layerOffset) const |
-{ |
- LayoutBox::computeSelfHitTestRects(rects, layerOffset); |
- |
- if (hasHorizontalLayoutOverflow() || hasVerticalLayoutOverflow()) { |
- for (RootInlineBox* curr = firstRootBox(); curr; curr = curr->nextRootBox()) { |
- LayoutUnit top = std::max<LayoutUnit>(curr->lineTop(), curr->top()); |
- LayoutUnit bottom = std::min<LayoutUnit>(curr->lineBottom(), curr->top() + curr->height()); |
- LayoutRect rect(layerOffset.x() + curr->x(), layerOffset.y() + top, curr->width(), bottom - top); |
- // It's common for this rect to be entirely contained in our box, so exclude that simple case. |
- if (!rect.isEmpty() && (rects.isEmpty() || !rects[0].contains(rect))) |
- rects.append(rect); |
- } |
- } |
-} |
- |
LayoutBox* LayoutBlock::createAnonymousBoxWithSameTypeAs(const LayoutObject* parent) const |
{ |
return createAnonymousWithParentAndDisplay(parent, style()->display()); |