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

Issue 994843002: Account for fixed positioning once when computing parent offset (Closed)

Created:
5 years, 9 months ago by Ian Vollick
Modified:
5 years, 9 months ago
Reviewers:
ajuma, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Account for fixed positioning once when computing parent offset I'd updated the code for updating the parent offset for fixed positioned layers in crrev.com/967163002, but there was a bug in that cl that resulted in the offset being updated twice. This caused incorrect visible content rects in the layout test compositing/squashing/squashed-clip-layer.html. This cl simplifies the parent offset computation code to handle three cases explicitly 1. has a scroll parent (must account for tree parent positioning) 2. is fixed position (must account for the offset between the fixed container and the parent if they're different), and 3. the usual case - inherits the parent offset. BUG=386810 Committed: https://crrev.com/8c8247428f92db3a4c8a5a4ac28da093d27e2f7f Cr-Commit-Position: refs/heads/master@{#321653}

Patch Set 1 #

Patch Set 2 : Removed incorrect comment. #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : address reviewer comments. #

Total comments: 1

Patch Set 5 : compare rects, not strings. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -15 lines) Patch
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 1 chunk +38 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 2 chunks +9 lines, -15 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Ian Vollick
5 years, 9 months ago (2015-03-10 05:55:57 UTC) #2
ajuma
lgtm https://codereview.chromium.org/994843002/diff/40001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/994843002/diff/40001/cc/trees/layer_tree_host_common_unittest.cc#newcode8909 cc/trees/layer_tree_host_common_unittest.cc:8909: gfx::Transform translateZ; nit: translate_z https://codereview.chromium.org/994843002/diff/40001/cc/trees/layer_tree_host_common_unittest.cc#newcode8939 cc/trees/layer_tree_host_common_unittest.cc:8939: ExecuteCalculateDrawProperties(root.get()); It'd ...
5 years, 9 months ago (2015-03-20 18:15:35 UTC) #4
Ian Vollick
https://codereview.chromium.org/994843002/diff/40001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/994843002/diff/40001/cc/trees/layer_tree_host_common_unittest.cc#newcode8909 cc/trees/layer_tree_host_common_unittest.cc:8909: gfx::Transform translateZ; On 2015/03/20 18:15:34, ajuma wrote: > nit: ...
5 years, 9 months ago (2015-03-20 20:23:21 UTC) #5
ajuma
https://codereview.chromium.org/994843002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc File cc/trees/layer_tree_host_common_unittest.cc (right): https://codereview.chromium.org/994843002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode8892 cc/trees/layer_tree_host_common_unittest.cc:8892: fixed->visible_rect_from_property_trees().ToString()); Any reason not to compare gfx::Rects here rather ...
5 years, 9 months ago (2015-03-20 20:29:36 UTC) #6
Ian Vollick
On 2015/03/20 20:29:36, ajuma wrote: > https://codereview.chromium.org/994843002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc > File cc/trees/layer_tree_host_common_unittest.cc (right): > > https://codereview.chromium.org/994843002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc#newcode8892 > ...
5 years, 9 months ago (2015-03-20 20:32:04 UTC) #7
ajuma
On 2015/03/20 20:32:04, vollick wrote: > On 2015/03/20 20:29:36, ajuma wrote: > > > https://codereview.chromium.org/994843002/diff/60001/cc/trees/layer_tree_host_common_unittest.cc ...
5 years, 9 months ago (2015-03-20 20:42:30 UTC) #8
ajuma
On 2015/03/20 20:42:30, ajuma wrote: > On 2015/03/20 20:32:04, vollick wrote: > > On 2015/03/20 ...
5 years, 9 months ago (2015-03-20 20:42:52 UTC) #9
Ian Vollick
On 2015/03/20 20:42:30, ajuma wrote: > On 2015/03/20 20:32:04, vollick wrote: > > On 2015/03/20 ...
5 years, 9 months ago (2015-03-20 20:45:15 UTC) #10
Ian Vollick
On 2015/03/20 20:45:15, vollick wrote: > On 2015/03/20 20:42:30, ajuma wrote: > > On 2015/03/20 ...
5 years, 9 months ago (2015-03-20 20:48:18 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/994843002/80001
5 years, 9 months ago (2015-03-20 20:49:55 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-20 22:21:16 UTC) #15
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 22:21:50 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/8c8247428f92db3a4c8a5a4ac28da093d27e2f7f
Cr-Commit-Position: refs/heads/master@{#321653}

Powered by Google App Engine
This is Rietveld 408576698