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

Issue 1553373002: Canvas2d: Fix incorrect alignment of hit region when applied css/zoom. (Closed)

Created:
4 years, 11 months ago by zino
Modified:
4 years, 11 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, blink-reviews, ajuma+watch-canvas_chromium.org, Rik, dshwang
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Canvas2d: Fix incorrect alignment of hit region when applied css/zoom. This change is fixing incorrect alignment of hit region on canvas when applied css transform/width/height/padding/border or device pinch-zoom or high DPI. Also, this CL adds/rewrites related tests. BUG=328961, 497750, 519603 Committed: https://crrev.com/a31198efcc43869580990328f822d090d2a8a2a8 Cr-Commit-Position: refs/heads/master@{#368607}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : test #

Patch Set 4 : Fixed layout test #

Total comments: 2

Patch Set 5 : #

Messages

Total messages: 20 (8 generated)
zino
Hi Justin, I'm working on this issue and I'm rewriting exisiting tests for hit region. ...
4 years, 11 months ago (2016-01-05 10:36:14 UTC) #3
Justin Novosad
On 2016/01/05 10:36:14, zino wrote: > Hi Justin, > > I'm working on this issue ...
4 years, 11 months ago (2016-01-05 16:36:26 UTC) #4
Justin Novosad
Regarding the tests, you can use window.internals.setPageScaleFactor(2.0) to simulate a high dpi device in a ...
4 years, 11 months ago (2016-01-05 16:48:39 UTC) #5
zino
On 2016/01/05 16:36:26, Justin Novosad wrote: > Glad to hear this. Can't wait to get ...
4 years, 11 months ago (2016-01-05 18:48:51 UTC) #6
zino
Please take a look. Thank you. https://codereview.chromium.org/1553373002/diff/1/third_party/WebKit/Source/modules/canvas2d/EventHitRegion.cpp File third_party/WebKit/Source/modules/canvas2d/EventHitRegion.cpp (right): https://codereview.chromium.org/1553373002/diff/1/third_party/WebKit/Source/modules/canvas2d/EventHitRegion.cpp#newcode36 third_party/WebKit/Source/modules/canvas2d/EventHitRegion.cpp:36: height -= lbmo->borderAndPaddingHeight(); ...
4 years, 11 months ago (2016-01-06 17:22:31 UTC) #8
Justin Novosad
On 2016/01/05 18:48:51, zino wrote: > On 2016/01/05 16:36:26, Justin Novosad wrote: > > Glad ...
4 years, 11 months ago (2016-01-07 17:30:47 UTC) #9
Justin Novosad
https://codereview.chromium.org/1553373002/diff/60001/third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-css-transform-test.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-css-transform-test.html (right): https://codereview.chromium.org/1553373002/diff/60001/third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-css-transform-test.html#newcode17 third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-css-transform-test.html:17: padding : 100px; It would make sense separate this ...
4 years, 11 months ago (2016-01-07 17:31:04 UTC) #10
zino
Thank you for review. I separated the css test into many steps. https://codereview.chromium.org/1553373002/diff/60001/third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-css-transform-test.html File third_party/WebKit/LayoutTests/fast/canvas/canvas-hit-regions-css-transform-test.html ...
4 years, 11 months ago (2016-01-11 13:53:23 UTC) #13
Justin Novosad
lgtm
4 years, 11 months ago (2016-01-11 15:43:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1553373002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1553373002/120001
4 years, 11 months ago (2016-01-11 15:57:53 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:120001)
4 years, 11 months ago (2016-01-11 17:16:18 UTC) #18
commit-bot: I haz the power
4 years, 11 months ago (2016-01-11 17:17:05 UTC) #20
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a31198efcc43869580990328f822d090d2a8a2a8
Cr-Commit-Position: refs/heads/master@{#368607}

Powered by Google App Engine
This is Rietveld 408576698