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

Issue 1584683002: INPUT text field: Fix a chopped editing text issue. (Closed)

Created:
4 years, 11 months ago by tkent
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

INPUT text field: Fix a chopped editing text issue. This CL fixes crbug.com/576589. The editing text looked to be chopped because: - the selected font height is taller than the specified |line-height|. - the specified |height| is taller than the |line-height|. - So, the inner-editor element is shorter though the INPUT box has enough space. This CL fixes the problem by the following changes: * Resetting CSS line-height if CSS height is specified. In such case line-height makes no sense, and we don't need to clip the inner-editor element with it. However, this change causes a regression for crbug.com/519331. So we need the change below. It's an alternative fix for crbug.com/519331 rather than crbug.com/576589. * Always center the inner-editor element vertically regardless of its height, don't override the height, and clip editing text with controlClipRect(). Before this change, if the inner-editor height was taller than the INPUT box height, we put the inner-editor element on the top edge of the INPUT box, and overrode its height to clip the text. Instead of it, we always center the inner-editor element vertically like Firefox does. Also, this change also removes the quirky behavior such that editing text poked INPUT padding and border. BUG=576589, 461117, 361728 TEST=automated Committed: https://crrev.com/3c65391ef8b927a5f72e77e3879076bd22a8f908 Cr-Commit-Position: refs/heads/master@{#369975}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : Update input-textarea-padding-match.html #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -81 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 3 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match.html View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match-expected.html View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/forms/text/text-font-height-mismatch.html View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/search/search-vertical-alignment-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/search/search-vertical-alignment-expected.txt View 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/text/text-font-height-mismatch-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/text/text-font-height-mismatch-expected.txt View 2 chunks +5 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/text/textfield-overflow-by-value-update-expected.txt View 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/forms/text/textfield-overflow-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/repaint/change-text-content-and-background-color-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/repaint/multi-layout-one-frame-expected.txt View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/repaint/subtree-root-skipped-expected.txt View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/text/international/mixed-directionality-selection-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/text/international/mixed-directionality-selection-expected.txt View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutTextControlSingleLine.cpp View 1 6 chunks +7 lines, -51 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
tkent
jchaffraix, would you review this please? - I don't land this before M49 branch. - ...
4 years, 11 months ago (2016-01-13 09:31:29 UTC) #8
Julien - ping for review
Glad to see a lot of this code removed. lgtm ! https://codereview.chromium.org/1584683002/diff/60001/third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match-expected.html File third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match-expected.html (right): ...
4 years, 11 months ago (2016-01-14 16:46:18 UTC) #9
tkent
https://codereview.chromium.org/1584683002/diff/60001/third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match-expected.html File third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match-expected.html (right): https://codereview.chromium.org/1584683002/diff/60001/third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match-expected.html#newcode9 third_party/WebKit/LayoutTests/fast/forms/input-textarea-padding-match-expected.html:9: font-size: 0px; On 2016/01/14 at 16:46:18, Julien - leaving ...
4 years, 11 months ago (2016-01-15 02:09:49 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1584683002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1584683002/100001
4 years, 11 months ago (2016-01-18 01:19:06 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:100001)
4 years, 11 months ago (2016-01-18 01:45:48 UTC) #16
commit-bot: I haz the power
4 years, 11 months ago (2016-01-18 01:46:52 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/3c65391ef8b927a5f72e77e3879076bd22a8f908
Cr-Commit-Position: refs/heads/master@{#369975}

Powered by Google App Engine
This is Rietveld 408576698