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