Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(785)

Unified Diff: Source/core/dom/Position.cpp

Issue 870013003: Div having contentEditable and display:grid cannot be edited if it is empty. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated patch Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/Position.cpp
diff --git a/Source/core/dom/Position.cpp b/Source/core/dom/Position.cpp
index f20b7a0ff36a66fe4bfbfce41f3b746cd53de9c2..d4773b3bdafb4041a0c45d8fecc3325601128768 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->isRenderBlockFlow() || renderer->isFlexibleBox()) {
+ if (renderer->isRenderBlockFlow() || renderer->isFlexibleBox() || renderer->isRenderGrid()) {
if (toRenderBlock(renderer)->logicalHeight() || isHTMLBodyElement(*m_anchorNode)) {
if (!Position::hasRenderedNonAnonymousDescendantsWithHeight(renderer))
return atFirstEditingPositionForNode() && !Position::nodeIsUserSelectNone(deprecatedNode());

Powered by Google App Engine
This is Rietveld 408576698