Chromium Code Reviews| Index: Source/web/WebLocalFrameImpl.cpp |
| diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp |
| index 27e87b7c9cf9ec7a98cfa0b16bda313a0f96ed76..25f9f9d640cd46be1af48b391e32dbb50597bb47 100644 |
| --- a/Source/web/WebLocalFrameImpl.cpp |
| +++ b/Source/web/WebLocalFrameImpl.cpp |
| @@ -1302,7 +1302,7 @@ VisiblePosition WebLocalFrameImpl::visiblePositionForWindowPoint(const WebPoint& |
| HitTestRequest request = HitTestRequest::Move | HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::IgnoreClipping; |
| HitTestResult result(frame()->view()->windowToContents(roundedIntPoint(unscaledPoint))); |
| - frame()->document()->layoutView()->layer()->hitTest(request, result); |
| + frame()->document()->layoutView()->hitTest(request, result); |
|
qiankun
2015/03/20 07:50:22
Also advance to CompositingClean state here.
|
| if (Node* node = result.innerNode()) |
| return frame()->selection().selection().visiblePositionRespectingEditingBoundary(result.localPoint(), node); |