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

Issue 1007013002: Make scrollWidth and scrollHeight match other DOM measurement APIs (Closed)

Created:
5 years, 9 months ago by leviw_travelin_and_unemployed
Modified:
5 years, 8 months ago
Reviewers:
pdr., eae, Rick Byers
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, rwlbuis, sof
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make scrollWidth and scrollHeight match other DOM measurement APIs Use the same logic for scrollWidth and scrollHeight that's used for offsetWidth and offsetHeight to avoid mis-reporting scrolling to JavaScript. This has the sad effect of exposing a dependence on truncating and scaling values in the WebView that's being preserved with this change to avoid broader implications of this patch. BUG=447902 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193218

Patch Set 1 #

Patch Set 2 : attempt #

Patch Set 3 : Mimic old behavior in WebViewImpl #

Total comments: 1

Patch Set 4 : Whoops #

Total comments: 1

Patch Set 5 : Make more sad changes in LayoutTextControlSingleLine #

Patch Set 6 : Add link to crbug for WebViewImpl change #

Patch Set 7 : Add additional test expectation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -7 lines) Patch
A LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match.html View 1 chunk +15 lines, -0 lines 0 comments Download
A LayoutTests/fast/sub-pixel/offset-and-scroll-sizes-should-match-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M LayoutTests/platform/mac/fast/text/whitespace/nowrap-line-break-after-white-space-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/layout/LayoutTextControlSingleLine.cpp View 1 2 3 4 5 2 chunks +8 lines, -2 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 33 (13 generated)
leviw_travelin_and_unemployed
5 years, 9 months ago (2015-03-13 20:58:41 UTC) #2
eae
LGTM
5 years, 9 months ago (2015-03-13 21:16:20 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007013002/1
5 years, 9 months ago (2015-03-13 21:19:15 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/47369)
5 years, 9 months ago (2015-03-14 00:16:11 UTC) #8
leviw_travelin_and_unemployed
PTAL... To recreate old behavior, we have to continue to truncate->scale. This is shitty, but ...
5 years, 8 months ago (2015-03-25 21:13:55 UTC) #9
eae
LLGTM (looks less-good to me), with nit. LGTM https://codereview.chromium.org/1007013002/diff/40001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1007013002/diff/40001/Source/web/WebViewImpl.cpp#newcode3374 Source/web/WebViewImpl.cpp:3374: // ...
5 years, 8 months ago (2015-03-25 21:41:05 UTC) #10
Rick Byers
LGTM (with eae's nit)
5 years, 8 months ago (2015-03-25 21:56:15 UTC) #11
Rick Byers
On 2015/03/25 21:56:15, Rick Byers wrote: > LGTM (with eae's nit) BTW, the CL title ...
5 years, 8 months ago (2015-03-25 21:57:33 UTC) #12
leviw_travelin_and_unemployed
Was planning on adding a comment to the description after the ugliness... I'm sad to ...
5 years, 8 months ago (2015-03-25 22:13:54 UTC) #13
leviw_travelin_and_unemployed
On 2015/03/25 at 21:41:05, eae wrote: > LLGTM (looks less-good to me), with nit. > ...
5 years, 8 months ago (2015-03-25 22:14:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007013002/60001
5 years, 8 months ago (2015-03-26 18:58:37 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/29844)
5 years, 8 months ago (2015-03-26 19:06:23 UTC) #19
leviw_travelin_and_unemployed
+pdr for Source/web
5 years, 8 months ago (2015-03-26 19:08:16 UTC) #21
pdr.
LGTM https://codereview.chromium.org/1007013002/diff/60001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1007013002/diff/60001/Source/web/WebViewImpl.cpp#newcode3373 Source/web/WebViewImpl.cpp:3373: // We truncate then zoom the height instead ...
5 years, 8 months ago (2015-03-26 20:19:36 UTC) #22
leviw_travelin_and_unemployed
So... Moar changes in LayoutTextControlSingleLine. And more news on the changes to WebViewImpl -- namely ...
5 years, 8 months ago (2015-04-03 21:37:37 UTC) #23
pdr.
On 2015/04/03 at 21:37:37, leviw wrote: > So... Moar changes in LayoutTextControlSingleLine. And more news ...
5 years, 8 months ago (2015-04-03 21:56:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007013002/100001
5 years, 8 months ago (2015-04-03 22:00:56 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/50490)
5 years, 8 months ago (2015-04-04 01:30:32 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1007013002/120001
5 years, 8 months ago (2015-04-06 20:37:26 UTC) #32
commit-bot: I haz the power
5 years, 8 months ago (2015-04-06 21:56:57 UTC) #33
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193218

Powered by Google App Engine
This is Rietveld 408576698