| Index: Source/core/dom/Document.cpp
|
| diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
|
| index c03d58941f1ad1279c7ad74b8881fd7ea3139834..bcc496cc7cf158ea2abc1e367e6375413eb2e030 100644
|
| --- a/Source/core/dom/Document.cpp
|
| +++ b/Source/core/dom/Document.cpp
|
| @@ -1248,11 +1248,20 @@ Element* Document::elementFromPoint(int x, int y) const
|
| return TreeScope::elementFromPoint(x, y);
|
| }
|
|
|
| +Vector<Element*> Document::elementsFromPoint(int x, int y) const
|
| +{
|
| + if (!renderView())
|
| + return Vector<Element*>();
|
| +
|
| + return TreeScope::elementsFromPoint(x, y);
|
| +}
|
| +
|
| PassRefPtrWillBeRawPtr<Range> Document::caretRangeFromPoint(int x, int y)
|
| {
|
| if (!renderView())
|
| return nullptr;
|
| - HitTestResult result = hitTestInDocument(this, x, y);
|
| + HitTestRequest request(HitTestRequest::ReadOnly | HitTestRequest::Active);
|
| + HitTestResult result = hitTestInDocument(this, x, y, request);
|
| RenderObject* renderer = result.renderer();
|
| if (!renderer)
|
| return nullptr;
|
|
|