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

Issue 250193002: Offset rects by origin when projecting from composited to graphics layer. (Closed)

Created:
6 years, 8 months ago by Zeeshan Qureshi
Modified:
6 years, 8 months ago
Reviewers:
Ian Vollick, Rick Byers
CC:
blink-reviews, blink-layers+watch_chromium.org, kenneth.christiansen, ojan
Visibility:
Public.

Description

Offset rects by origin when projecting from composited to graphics layer. The origin for the graphics layer does not have to be the same as the composited layer (e.g. when a child layer has negative offset and paints into this layer), so when projecting rects to graphics layer space they have to be offset by the origin for the composited layer. Update internals to also return the rects with the offset set. BUG=364346 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172462

Patch Set 1 #

Total comments: 2

Patch Set 2 : Update internals and add test #

Total comments: 1

Patch Set 3 : Update test expectations #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -27 lines) Patch
M LayoutTests/fast/events/touch/compositor-touch-hit-rects.html View 1 2 chunks +18 lines, -0 lines 0 comments Download
M LayoutTests/fast/events/touch/compositor-touch-hit-rects-expected.txt View 1 2 1 chunk +13 lines, -11 lines 0 comments Download
M LayoutTests/platform/linux/fast/events/touch/compositor-touch-hit-rects-expected.txt View 1 1 chunk +13 lines, -11 lines 0 comments Download
M Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.h View 1 2 chunks +2 lines, -1 line 0 comments Download
M Source/core/rendering/compositing/CompositedLayerMapping.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 17 (0 generated)
Ian Vollick
Cool. Def needs a test, and I think you can reuse a bit of existing ...
6 years, 8 months ago (2014-04-23 20:18:37 UTC) #1
Zeeshan Qureshi
Screenshot: http://chromium.zqureshi.in/screenshots/rev-250193002-content-shell-offset-rects-for-transformed-elements.png The blue rect is the one with the transform and the one to ...
6 years, 8 months ago (2014-04-24 02:32:38 UTC) #2
Ian Vollick
lgtm https://codereview.chromium.org/250193002/diff/40001/Source/core/rendering/compositing/CompositedLayerMapping.h File Source/core/rendering/compositing/CompositedLayerMapping.h (right): https://codereview.chromium.org/250193002/diff/40001/Source/core/rendering/compositing/CompositedLayerMapping.h#newcode202 Source/core/rendering/compositing/CompositedLayerMapping.h:202: LayoutSize contentOffsetInCompositingLayer() const; Thanks for fixing the typo ...
6 years, 8 months ago (2014-04-24 03:15:28 UTC) #3
Ian Vollick
On 2014/04/24 03:15:28, Ian Vollick wrote: > lgtm > > https://codereview.chromium.org/250193002/diff/40001/Source/core/rendering/compositing/CompositedLayerMapping.h > File Source/core/rendering/compositing/CompositedLayerMapping.h (right): ...
6 years, 8 months ago (2014-04-24 03:16:12 UTC) #4
Rick Byers
Thanks, LGTM! Please remove [WIP] from the issue description. I assume you've verified that the ...
6 years, 8 months ago (2014-04-24 03:29:41 UTC) #5
Zeeshan Qureshi
I verified the original bug and a couple of hand made cases, I was expecting ...
6 years, 8 months ago (2014-04-24 03:47:22 UTC) #6
Zeeshan Qureshi
The CQ bit was checked by zeeshanq@chromium.org
6 years, 8 months ago (2014-04-24 03:48:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zeeshanq@chromium.org/250193002/40001
6 years, 8 months ago (2014-04-24 03:48:49 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 04:24:59 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on mac_blink_rel
6 years, 8 months ago (2014-04-24 04:25:00 UTC) #10
Zeeshan Qureshi
The CQ bit was checked by zeeshanq@chromium.org
6 years, 8 months ago (2014-04-24 04:47:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zeeshanq@chromium.org/250193002/50001
6 years, 8 months ago (2014-04-24 04:47:58 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-24 05:20:38 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on linux_blink_rel
6 years, 8 months ago (2014-04-24 05:20:38 UTC) #14
Zeeshan Qureshi
The CQ bit was checked by zeeshanq@chromium.org
6 years, 8 months ago (2014-04-24 06:29:36 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zeeshanq@chromium.org/250193002/50001
6 years, 8 months ago (2014-04-24 06:29:48 UTC) #16
commit-bot: I haz the power
6 years, 8 months ago (2014-04-24 07:00:52 UTC) #17
Message was sent while issue was closed.
Change committed as 172462

Powered by Google App Engine
This is Rietveld 408576698