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

Issue 1499063002: input's placeholder is inconsistently laid out (Closed)

Created:
5 years ago by Julien - ping for review
Modified:
5 years 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's placeholder is inconsistently laid out The issue was that the code relies on overriding the placeholder's style's logical height. However the logic wasn't tight and we would miss some cases (where styleDidChange cleared the overriden style and layout would not know about it), thus not relaying out the placeholder when we should have. This situation turned layout into a 2-states state machine. This fix removes the hackish style's logical height override and use the override logical height machinery for fun and profit. BUG=529252 Committed: https://crrev.com/2036c7d6d5438beefe656aa67d1d90af166f0960 Cr-Commit-Position: refs/heads/master@{#363324}

Patch Set 1 #

Total comments: 9

Patch Set 2 : Updated after Morten's review! #

Patch Set 3 : Added some extra NeedsRebaseline test expectations. #

Total comments: 2

Patch Set 4 : Upgraded the test to js-test.js for real! #

Messages

Total messages: 19 (8 generated)
Julien - ping for review
+Morten, as the master of 28-letters classes :) +Levi, because nobody expects him!
5 years ago (2015-12-04 04:19:04 UTC) #2
mstensho (USE GERRIT)
lgtm, but the test has to do some time in prison. https://codereview.chromium.org/1499063002/diff/1/third_party/WebKit/LayoutTests/fast/input/placeholder-wrongly-placed-if-too-tall.html File third_party/WebKit/LayoutTests/fast/input/placeholder-wrongly-placed-if-too-tall.html (right): ...
5 years ago (2015-12-04 12:55:54 UTC) #3
Julien - ping for review
Thanks Morten, I added some extra test expectations that were needed for Windows and Mac ...
5 years ago (2015-12-04 14:45:42 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499063002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499063002/40001
5 years ago (2015-12-04 14:46:04 UTC) #7
mstensho (USE GERRIT)
https://codereview.chromium.org/1499063002/diff/1/third_party/WebKit/LayoutTests/fast/input/placeholder-wrongly-placed-if-too-tall.html File third_party/WebKit/LayoutTests/fast/input/placeholder-wrongly-placed-if-too-tall.html (right): https://codereview.chromium.org/1499063002/diff/1/third_party/WebKit/LayoutTests/fast/input/placeholder-wrongly-placed-if-too-tall.html#newcode53 third_party/WebKit/LayoutTests/fast/input/placeholder-wrongly-placed-if-too-tall.html:53: // Forcing a layout in this frame makes the ...
5 years ago (2015-12-04 14:57:36 UTC) #8
Julien - ping for review
You made me realize I forgot to update the test for what js-test.js gives me, ...
5 years ago (2015-12-04 15:16:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499063002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499063002/60001
5 years ago (2015-12-04 16:45:04 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/150359)
5 years ago (2015-12-04 18:35:35 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1499063002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1499063002/60001
5 years ago (2015-12-04 22:48:24 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years ago (2015-12-05 00:48:35 UTC) #17
commit-bot: I haz the power
5 years ago (2015-12-05 00:49:40 UTC) #19
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2036c7d6d5438beefe656aa67d1d90af166f0960
Cr-Commit-Position: refs/heads/master@{#363324}

Powered by Google App Engine
This is Rietveld 408576698