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

Issue 870013003: Div having contentEditable and display:grid cannot be edited if it is empty. (Closed)

Created:
5 years, 10 months ago by changseok
Modified:
5 years, 10 months ago
CC:
blink-reviews, jfernandez, pdr+renderingwatchlist_chromium.org, zoltan1, svillar, Manuel Rego, sof, eae+blinkwatch, leviw+renderwatch, Dominik Röttsches, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-rendering, jchaffraix+rendering, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Div having contentEditable and display:grid cannot be edited if it is empty. This bug is quite similar to https://codereview.chromium.org/897633002/. RenderGrid should be also treated as a candidate for visible position as like RenderFlexibleBox. The only different situation between them is that RenderGrid has a bug setting "0px" for logicalHeight when it is empty. RenderGrid should also have a minimum height of a single line if it is editable as well as RenderFlexibleBox does. This is the same patch applied to webkit. http://webkit.org/b/141465 BUG=79180 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190936

Patch Set 1 #

Patch Set 2 : Updated patch #

Total comments: 1

Patch Set 3 : Add minimumLogicalHeightForEmptyLine #

Total comments: 6

Patch Set 4 : UpdatedPatch #

Patch Set 5 : DoctypeAdded #

Patch Set 6 : RebasedPatch #

Patch Set 7 : ResolveConflict #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -9 lines) Patch
A LayoutTests/fast/events/key-events-in-editable-gridbox.html View 1 2 3 4 1 chunk +28 lines, -0 lines 0 comments Download
A + LayoutTests/fast/events/key-events-in-editable-gridbox-expected.txt View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/dom/Position.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutBox.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/layout/LayoutGrid.cpp View 1 2 3 4 5 6 1 chunk +5 lines, -2 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 2 3 4 5 6 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 34 (12 generated)
changseok
Please have a look.
5 years, 10 months ago (2015-02-13 15:53:59 UTC) #2
Manuel Rego
Adding @jchaffraix as reviewer, as he's usually reviewing the grid patches.
5 years, 10 months ago (2015-02-16 09:18:40 UTC) #4
changseok
Please review this. I think this chance is reliable.
5 years, 10 months ago (2015-02-20 08:07:36 UTC) #5
changseok
On 2015/02/20 08:07:36, changseok wrote: > Please review this. I think this chance is reliable. ...
5 years, 10 months ago (2015-02-20 08:08:22 UTC) #6
changseok
+cbiesinger as a reviewer.
5 years, 10 months ago (2015-02-24 17:00:57 UTC) #8
cbiesinger
lgtm but I'm not an OWNER
5 years, 10 months ago (2015-02-24 17:37:01 UTC) #9
rune
A general comment about adding height for to elements with contentEditable: Currently, the mere presence ...
5 years, 10 months ago (2015-02-25 11:34:53 UTC) #11
changseok
On 2015/02/25 11:34:53, rune wrote: > A general comment about adding height for to elements ...
5 years, 10 months ago (2015-02-25 17:24:16 UTC) #12
rune
On 2015/02/25 17:24:16, changseok wrote: > On 2015/02/25 11:34:53, rune wrote: > > A general ...
5 years, 10 months ago (2015-02-25 21:01:35 UTC) #13
cbiesinger
On 2015/02/25 21:01:35, rune wrote: > On 2015/02/25 17:24:16, changseok wrote: > > > https://codereview.chromium.org/870013003/diff/20001/Source/core/rendering/RenderGrid.cpp#newcode1158 ...
5 years, 10 months ago (2015-02-26 01:12:29 UTC) #14
changseok
On 2015/02/26 01:12:29, cbiesinger wrote: > I was wondering, should the function add the empty ...
5 years, 10 months ago (2015-02-26 06:11:07 UTC) #15
changseok
On 2015/02/26 06:11:07, changseok wrote: > if (hasLineIfEmpty() { > LayoutUnit emptyLineHeight = emptyLineHeight(); > ...
5 years, 10 months ago (2015-02-26 06:17:15 UTC) #16
changseok
>> How about addEmptyLineIfNeeded? =) >sgtm I rethought the name of addEmptyLineIfNeeded though, it's not ...
5 years, 10 months ago (2015-02-26 09:30:25 UTC) #17
rune
https://codereview.chromium.org/870013003/diff/40001/LayoutTests/fast/events/key-events-in-editable-gridbox.html File LayoutTests/fast/events/key-events-in-editable-gridbox.html (right): https://codereview.chromium.org/870013003/diff/40001/LayoutTests/fast/events/key-events-in-editable-gridbox.html#newcode3 LayoutTests/fast/events/key-events-in-editable-gridbox.html:3: <head> html, head, and body should be left out ...
5 years, 10 months ago (2015-02-26 10:38:50 UTC) #18
changseok
Thanks for the comments. Updated patch is coming. https://codereview.chromium.org/870013003/diff/40001/LayoutTests/fast/events/key-events-in-editable-gridbox.html File LayoutTests/fast/events/key-events-in-editable-gridbox.html (right): https://codereview.chromium.org/870013003/diff/40001/LayoutTests/fast/events/key-events-in-editable-gridbox.html#newcode3 LayoutTests/fast/events/key-events-in-editable-gridbox.html:3: <head> ...
5 years, 10 months ago (2015-02-26 11:28:54 UTC) #19
rune
lgtm if you re-add <!DOCTYPE html> to the test.
5 years, 10 months ago (2015-02-26 11:42:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870013003/80001
5 years, 10 months ago (2015-02-26 15:31:36 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_rel/builds/29745)
5 years, 10 months ago (2015-02-26 15:36:06 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870013003/100001
5 years, 10 months ago (2015-02-26 16:05:56 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: android_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/android_blink_compile_dbg/builds/29702) android_blink_compile_rel on tryserver.blink (JOB_FAILED, ...
5 years, 10 months ago (2015-02-26 16:10:45 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/870013003/120001
5 years, 10 months ago (2015-02-26 16:23:01 UTC) #33
commit-bot: I haz the power
5 years, 10 months ago (2015-02-26 17:34:45 UTC) #34
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190936

Powered by Google App Engine
This is Rietveld 408576698