Index: Source/core/dom/Position.cpp |
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp |
index c8394477a865f0e02c933b9951c704ddbe171fc9..2cd26a4e3b4c6dde8833ad678dcc9a810b2f3df7 100644 |
--- a/Source/core/dom/Position.cpp |
+++ b/Source/core/dom/Position.cpp |
@@ -855,7 +855,7 @@ bool Position::isCandidate() const |
if (isHTMLHtmlElement(*m_anchorNode)) |
return false; |
- if (renderer->isLayoutBlockFlow() || renderer->isFlexibleBox()) { |
+ if (renderer->isLayoutBlockFlow() || renderer->isFlexibleBox() || renderer->isLayoutGrid()) { |
if (toLayoutBlock(renderer)->logicalHeight() || isHTMLBodyElement(*m_anchorNode)) { |
if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer)) |
return atFirstEditingPositionForNode() && !Position::nodeIsUserSelectNone(deprecatedNode()); |