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

Issue 2478483003: Ignore the percentage value to calculate the logical height of input control

Created:
4 years, 1 month ago by joone
Modified:
3 years, 11 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, yosin, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ignore the percentage value to calculate the logical height of input control When the form doesn't have the height value, we should ignore the percentage value of the input control height to calculate the logical height properly. BUG=607526 TEST=fast/forms/input-height.html

Patch Set 1 #

Patch Set 2 : rebase #

Patch Set 3 : add test case result #

Patch Set 4 : new baseline for Win/Mac #

Patch Set 5 : Consider the percentage value fo the text control #

Patch Set 6 : height:30% and height:9.6px have the identical rendering #

Patch Set 7 : fix test fail #

Patch Set 8 : Use CSS variable #

Patch Set 9 : ignore the percentage height #

Total comments: 11

Patch Set 10 : update test case #

Patch Set 11 : fix test fails #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -2 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 1 comment Download
A third_party/WebKit/LayoutTests/fast/forms/input-height.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +51 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/forms/input-height-expected.html View 1 2 3 4 5 6 7 8 9 10 1 chunk +50 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextControl.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 90 (62 generated)
joone
Hi, tkent@ could you take a look at this CL?
4 years, 1 month ago (2016-11-04 21:19:40 UTC) #21
tkent
What happens if the percent-specified INPUT height is smaller than the line-height? Is it rendered ...
4 years, 1 month ago (2016-11-07 01:50:28 UTC) #24
joone
On 2016/11/07 at 01:50:28, tkent wrote: > What happens if the percent-specified INPUT height is ...
4 years, 1 month ago (2016-11-07 19:25:18 UTC) #25
tkent
On 2016/11/07 at 19:25:18, joone.hur wrote: > On 2016/11/07 at 01:50:28, tkent wrote: > > ...
4 years, 1 month ago (2016-11-08 08:29:15 UTC) #26
joone
On 2016/11/08 at 08:29:15, tkent wrote: > On 2016/11/07 at 19:25:18, joone.hur wrote: > > ...
4 years, 1 month ago (2016-11-08 18:35:19 UTC) #27
tkent
On 2016/11/08 at 18:35:19, joone.hur wrote: > On 2016/11/08 at 08:29:15, tkent wrote: > > ...
4 years, 1 month ago (2016-11-08 23:18:17 UTC) #28
joone
On 2016/11/08 at 23:18:17, tkent wrote: > On 2016/11/08 at 18:35:19, joone.hur wrote: > > ...
4 years, 1 month ago (2016-11-08 23:23:29 UTC) #29
joone
On 2016/11/08 at 23:23:29, joone wrote: > On 2016/11/08 at 23:18:17, tkent wrote: > > ...
4 years, 1 month ago (2016-11-08 23:38:22 UTC) #30
tkent
On 2016/11/08 at 23:23:29, joone.hur wrote: > > > Here is a screenshot with this ...
4 years, 1 month ago (2016-11-08 23:40:02 UTC) #31
tkent
> I understand you're trying to fix this. We should not reset line-height in this ...
4 years, 1 month ago (2016-11-08 23:41:08 UTC) #32
joone
On 2016/11/08 at 23:41:08, tkent wrote: > > I understand you're trying to fix this. ...
4 years, 1 month ago (2016-11-09 00:02:26 UTC) #33
joone
tkent@ could you take a look at the updated CL? Currently, the percentage value doesn't ...
4 years, 1 month ago (2016-11-15 01:32:57 UTC) #38
joone
On 2016/11/15 at 01:32:57, joone wrote: > tkent@ could you take a look at the ...
4 years, 1 month ago (2016-11-15 19:47:04 UTC) #44
tkent
On 2016/11/15 at 19:47:04, joone.hur wrote: > On 2016/11/15 at 01:32:57, joone wrote: > > ...
4 years, 1 month ago (2016-11-18 08:59:12 UTC) #48
joone
On 2016/11/18 08:59:12, tkent wrote: > On 2016/11/15 at 19:47:04, joone.hur wrote: > > On ...
4 years, 1 month ago (2016-11-19 01:41:35 UTC) #53
tkent
On 2016/11/19 at 01:41:35, joone.hur wrote: > > I haven't checked the code closely yet, ...
4 years ago (2016-11-29 08:51:36 UTC) #54
joone
On 2016/11/29 08:51:36, tkent wrote: > On 2016/11/19 at 01:41:35, joone.hur wrote: > > > ...
4 years ago (2016-11-30 01:55:25 UTC) #57
tkent
On 2016/11/30 at 01:55:25, joone.hur wrote: > > I'm afraid re-implement percent-length computation logic here ...
3 years, 11 months ago (2017-01-16 08:05:25 UTC) #60
tkent
I think the simplest solution is to compute intrinsic height with this->lineHeight() instead of innerEditorBox->lineHeight() ...
3 years, 11 months ago (2017-01-18 05:54:01 UTC) #61
joone
On 2017/01/18 05:54:01, tkent wrote: > I think the simplest solution is to compute intrinsic ...
3 years, 11 months ago (2017-01-18 23:06:56 UTC) #62
tkent
On 2017/01/18 at 23:06:56, joone.hur wrote: > On 2017/01/18 05:54:01, tkent wrote: > > I ...
3 years, 11 months ago (2017-01-18 23:15:24 UTC) #63
joone
On 2017/01/18 23:15:24, tkent wrote: > On 2017/01/18 at 23:06:56, joone.hur wrote: > > On ...
3 years, 11 months ago (2017-01-18 23:35:47 UTC) #64
tkent
On 2017/01/18 at 23:35:47, joone.hur wrote: > On 2017/01/18 23:15:24, tkent wrote: > > On ...
3 years, 11 months ago (2017-01-18 23:42:45 UTC) #65
joone
On 2017/01/18 23:42:45, tkent wrote: > On 2017/01/18 at 23:35:47, joone.hur wrote: > > On ...
3 years, 11 months ago (2017-01-18 23:49:40 UTC) #66
joone
tkent@ can you review the updated CL?
3 years, 11 months ago (2017-01-19 01:54:44 UTC) #76
tkent
https://codereview.chromium.org/2478483003/diff/180001/third_party/WebKit/LayoutTests/fast/forms/input-height.html File third_party/WebKit/LayoutTests/fast/forms/input-height.html (right): https://codereview.chromium.org/2478483003/diff/180001/third_party/WebKit/LayoutTests/fast/forms/input-height.html#newcode1 third_party/WebKit/LayoutTests/fast/forms/input-height.html:1: <!DOCTYPE html> I recommend to make this a reference ...
3 years, 11 months ago (2017-01-19 02:13:04 UTC) #77
joone
tkent@ thanks for review. https://codereview.chromium.org/2478483003/diff/180001/third_party/WebKit/LayoutTests/fast/forms/input-height.html File third_party/WebKit/LayoutTests/fast/forms/input-height.html (right): https://codereview.chromium.org/2478483003/diff/180001/third_party/WebKit/LayoutTests/fast/forms/input-height.html#newcode1 third_party/WebKit/LayoutTests/fast/forms/input-height.html:1: <!DOCTYPE html> On 2017/01/19 02:13:03, ...
3 years, 11 months ago (2017-01-23 01:07:08 UTC) #89
tkent
3 years, 11 months ago (2017-01-23 04:15:50 UTC) #90
https://codereview.chromium.org/2478483003/diff/240001/third_party/WebKit/Lay...
File third_party/WebKit/LayoutTests/TestExpectations (right):

https://codereview.chromium.org/2478483003/diff/240001/third_party/WebKit/Lay...
third_party/WebKit/LayoutTests/TestExpectations:2202: crbug.com/607526
fast/css/line-height.html [ NeedsRebaseline ]
These behavior change don't look acceptable.

My wild guess is we need to port the first condition to clear line-height in
LayoutTextControlSingleLine::createInnerEditorStyle() to
LayoutTextControl(SingleLine?)::computeLogicalHeight().

Powered by Google App Engine
This is Rietveld 408576698