Index: third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp b/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp |
index 5ef2cf0c0a9fa703becd1b86be94bf253685f167..ba63b5c7f5ad49d11f1b67d254ef622a75d96aa7 100644 |
--- a/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/svg/line/SVGRootInlineBox.cpp |
@@ -231,4 +231,16 @@ void SVGRootInlineBox::reorderValueLists(Vector<SVGTextLayoutAttributes*>& attri |
collectLeafBoxesInLogicalOrder(leafBoxesInLogicalOrder, reverseInlineBoxRangeAndValueListsIfNeeded, &attributes); |
} |
+bool SVGRootInlineBox::nodeAtPoint(HitTestResult& result, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) |
+{ |
+ for (InlineBox* leaf = firstLeafChild(); leaf; leaf = leaf->nextLeafChild()) { |
+ if (!leaf->isSVGInlineTextBox()) |
+ continue; |
+ if (leaf->nodeAtPoint(result, locationInContainer, accumulatedOffset, lineTop, lineBottom)) |
+ return true; |
+ } |
+ |
+ return false; |
+} |
+ |
} // namespace blink |