Index: third_party/WebKit/Source/core/editing/SelectionController.cpp |
diff --git a/third_party/WebKit/Source/core/editing/SelectionController.cpp b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
index ef28dcf60498451a8d8fe22ea842de0e731d32df..f0efc8647377abcc6146ddeec405df94300d33db 100644 |
--- a/third_party/WebKit/Source/core/editing/SelectionController.cpp |
+++ b/third_party/WebKit/Source/core/editing/SelectionController.cpp |
@@ -652,7 +652,7 @@ void SelectionController::setNonDirectionalSelectionIfNeeded( |
bool SelectionController::setCaretAtHitTestResult( |
const HitTestResult& hitTestResult) { |
Node* innerNode = hitTestResult.innerNode(); |
- if (!innerNode) |
+ if (!innerNode || !innerNode->layoutObject()) |
yosin_UTC9
2016/11/30 02:01:48
It is strange that HitTestResult picks up "display
amaralp
2016/12/01 01:25:34
I didn't think it was possible for the HitTestResu
yosin_UTC9
2016/12/01 01:51:09
We need to find where we call HitTestResult::setIn
|
return false; |
const VisiblePositionInFlatTree& visibleHitPos = |