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

Issue 12552004: Support bottom-right anchored fixed-position elements during a pinch gesture (Closed)

Created:
7 years, 9 months ago by trchen
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, Ian Vollick
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Implement pinch zoom for bottom-right fixed-position elements This patch adds a fixed container size compensation matrix to fixed-position layers, so fixed-position layers can be anchored to right / bottom edge during a pinch gesture. WebKit side: https://bugs.webkit.org/show_bug.cgi?id=111670 BUG=160223 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192999

Patch Set 1 #

Patch Set 2 : reupload the same thing #

Total comments: 3

Patch Set 3 : revised as discussed #

Patch Set 4 : rebased #

Total comments: 2

Patch Set 5 : move [Web]LayerPositionConstraint conversion to glue #

Total comments: 3

Patch Set 6 : correct translate order. move math to a separate function. #

Total comments: 19

Patch Set 7 : revised as suggested. still needs to add unit tests #

Patch Set 8 : move existing unit tests to a new file, extend test to bottom-right fixed-position layers #

Patch Set 9 : ready for review. added support for fullscreen mode. fixed a contents scale bug. #

Patch Set 10 : rebase #

Patch Set 11 : CC_EXPORT #

Total comments: 12

Patch Set 12 : remove unused template functions. spill out size delta transforms. add more comments. #

Patch Set 13 : forgot to save the comments. sorry. :( #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1386 lines, -783 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 6 7 8 9 3 chunks +7 lines, -6 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 6 7 8 9 5 chunks +17 lines, -9 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 3 chunks +20 lines, -7 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
A cc/layers/layer_position_constraint.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +38 lines, -0 lines 0 comments Download
A cc/layers/layer_position_constraint.cc View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
A cc/layers/layer_position_constraint_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1091 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 9 chunks +126 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -742 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +22 lines, -0 lines 0 comments Download
M webkit/compositor_bindings/web_layer_impl.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M webkit/compositor_bindings/web_layer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +26 lines, -5 lines 0 comments Download

Messages

Total messages: 51 (0 generated)
trchen
This is the chromium-side patch for https://bugs.webkit.org/show_bug.cgi?id=111670
7 years, 9 months ago (2013-03-07 03:49:03 UTC) #1
shawnsingh
I'm pretty sure this patch won't work as-is, because the sizeDelta is not being re-scaled ...
7 years, 9 months ago (2013-03-07 09:57:06 UTC) #2
shawnsingh
So, for all the verbosity I just spewed out, I should point out that all ...
7 years, 9 months ago (2013-03-07 10:14:49 UTC) #3
trchen
I'm aware of the transformation issue you're saying, but that actually won't be a problem ...
7 years, 9 months ago (2013-03-07 11:54:46 UTC) #4
trchen
Another question: Does your approach work for flattened 3D layer with perspective? Say there is ...
7 years, 9 months ago (2013-03-07 12:09:50 UTC) #5
shawnsingh
I think it's actually better to avoid making assumptions in our compositor based on WebKit ...
7 years, 9 months ago (2013-03-07 19:31:49 UTC) #6
enne (OOO)
What happened to the idea of a pre-pass where we reformulated all constraints as a ...
7 years, 9 months ago (2013-03-07 21:53:09 UTC) #7
jamesr
https://codereview.chromium.org/12552004/diff/3005/cc/layer.h File cc/layer.h (right): https://codereview.chromium.org/12552004/diff/3005/cc/layer.h#newcode123 cc/layer.h:123: void setFixedToRightEdge(bool); Do we need this today? I think ...
7 years, 9 months ago (2013-03-07 21:56:01 UTC) #8
trchen
On 2013/03/07 19:31:49, shawnsingh wrote: > I think it's actually better to avoid making assumptions ...
7 years, 9 months ago (2013-03-07 22:21:00 UTC) #9
trchen
On 2013/03/07 21:56:01, jamesr wrote: > https://codereview.chromium.org/12552004/diff/3005/cc/layer.h > File cc/layer.h (right): > > https://codereview.chromium.org/12552004/diff/3005/cc/layer.h#newcode123 > ...
7 years, 9 months ago (2013-03-07 22:27:12 UTC) #10
trchen
On 2013/03/07 21:53:09, enne wrote: > What happened to the idea of a pre-pass where ...
7 years, 9 months ago (2013-03-07 22:35:19 UTC) #11
enne (OOO)
On 2013/03/07 22:35:19, trchen wrote: > On 2013/03/07 21:53:09, enne wrote: > > What happened ...
7 years, 9 months ago (2013-03-07 22:40:36 UTC) #12
shawnsingh
In reply to trchen comment #9: "never having applied the scroll deltas in the first ...
7 years, 9 months ago (2013-03-07 23:38:28 UTC) #13
trchen
On 2013/03/07 23:38:28, shawnsingh wrote: > In reply to trchen comment #9: > > "never ...
7 years, 9 months ago (2013-03-07 23:51:41 UTC) #14
shawnsingh
> The problem is no matter how large the surface size is, the fixed-position > ...
7 years, 9 months ago (2013-03-08 00:13:02 UTC) #15
trchen
Had a offline discussion with shawnsingh@ and enne@ just now. Let me sum up the ...
7 years, 9 months ago (2013-03-13 00:24:37 UTC) #16
shawnsingh
I don't think it's a contradiction, just an emergent property that happens to simplify things ...
7 years, 9 months ago (2013-03-13 00:32:25 UTC) #17
trchen
On 2013/03/13 00:32:25, shawnsingh wrote: > I don't think it's a contradiction, just an emergent ...
7 years, 9 months ago (2013-03-13 01:04:32 UTC) #18
shawnsingh
I don't think that will be necessary. But let's see what the next patch looks ...
7 years, 9 months ago (2013-03-13 01:21:44 UTC) #19
Sami
On 2013/03/13 00:24:37, trchen wrote: > 1. We should change the Layer::isContainerForFixedPositionLayers() accessor so > ...
7 years, 9 months ago (2013-03-13 11:06:52 UTC) #20
trchen
On 2013/03/13 11:06:52, Sami wrote: > On 2013/03/13 00:24:37, trchen wrote: > > 1. We ...
7 years, 9 months ago (2013-03-13 21:51:13 UTC) #21
enne (OOO)
On 2013/03/13 21:51:13, trchen wrote: > Personally I'd prefer a DCHECK instead of implicit promotion, ...
7 years, 9 months ago (2013-03-13 22:02:00 UTC) #22
trchen
On 2013/03/13 22:02:00, enne wrote: > On 2013/03/13 21:51:13, trchen wrote: > > > Personally ...
7 years, 9 months ago (2013-03-13 22:13:38 UTC) #23
jamesr
On 2013/03/13 22:13:38, trchen wrote: > On 2013/03/13 22:02:00, enne wrote: > > On 2013/03/13 ...
7 years, 9 months ago (2013-03-13 22:24:04 UTC) #24
trchen
On 2013/03/13 22:24:04, jamesr wrote: > On 2013/03/13 22:13:38, trchen wrote: > > On 2013/03/13 ...
7 years, 9 months ago (2013-03-13 22:26:53 UTC) #25
trchen
Changes from last patch: * Layer::isContainerForFixedPositionLayers() implicitly promotes layers to fixed container if the layer ...
7 years, 9 months ago (2013-03-16 04:30:21 UTC) #26
trchen
Hey James, do you think the patch is in good shape or you still think ...
7 years, 9 months ago (2013-03-21 23:05:51 UTC) #27
jamesr
I think Enne or Shawn or someone else more familiar with LayerTreeHostCommon is going to ...
7 years, 9 months ago (2013-03-22 01:49:50 UTC) #28
trchen
On 2013/03/22 01:49:50, jamesr wrote: > I think Enne or Shawn or someone else more ...
7 years, 9 months ago (2013-03-22 03:49:32 UTC) #29
shawnsingh
Sorry trchen@ this isn't the design that I was looking for. But it's close, I ...
7 years, 9 months ago (2013-03-22 04:42:11 UTC) #30
trchen
On 2013/03/22 04:42:11, shawnsingh wrote: > Sorry trchen@ this isn't the design that I was ...
7 years, 9 months ago (2013-03-22 08:11:20 UTC) #31
shawnsingh
> No there is no subtle difference in the math and I can indeed do ...
7 years, 9 months ago (2013-03-22 10:47:24 UTC) #32
shawnsingh
trchen@ and I discussed offline, and he has totally convinced me that his current approach ...
7 years, 9 months ago (2013-03-22 21:45:13 UTC) #33
trchen
On 2013/03/22 21:45:13, shawnsingh wrote: > trchen@ and I discussed offline, and he has totally ...
7 years, 9 months ago (2013-03-22 22:18:40 UTC) #34
shawnsingh
math in layer_tree_host_common --> LGTM. Once we add unit tests, I think this will be ...
7 years, 9 months ago (2013-03-23 00:07:03 UTC) #35
Sami
I think this is looking good. Just a question below about the dynamic promotion of ...
7 years, 9 months ago (2013-03-25 11:41:37 UTC) #36
trchen
https://codereview.chromium.org/12552004/diff/33002/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/12552004/diff/33002/cc/layers/layer.cc#newcode417 cc/layers/layer.cc:417: bool Layer::is_container_for_fixed_position_layers() const { On 2013/03/25 11:41:37, Sami wrote: ...
7 years, 9 months ago (2013-03-26 01:45:28 UTC) #37
Sami
Thanks for the clarifications Tien Ren. lgtm once it comes with tests.
7 years, 9 months ago (2013-03-26 11:05:23 UTC) #38
shawnsingh
https://codereview.chromium.org/12552004/diff/33002/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/12552004/diff/33002/cc/layers/layer.cc#newcode420 cc/layers/layer.cc:420: if (parent_ && !parent_->sublayer_transform_.IsIdentityOrTranslation()) In reply to Sami asking ...
7 years, 9 months ago (2013-03-27 19:46:39 UTC) #39
trchen
Unit tests added. On 2013/03/27 19:46:39, shawnsingh wrote: > https://codereview.chromium.org/12552004/diff/33002/cc/layers/layer.cc > File cc/layers/layer.cc (right): > ...
7 years, 9 months ago (2013-03-27 22:22:12 UTC) #40
shawnsingh
I would like to participate reviewing the unit tests, but I will probably be a ...
7 years, 8 months ago (2013-04-01 18:12:36 UTC) #41
trchen
On 2013/04/01 18:12:36, shawnsingh wrote: > I would like to participate reviewing the unit tests, ...
7 years, 8 months ago (2013-04-01 22:13:17 UTC) #42
shawnsingh
Summary: (1) one issue that we need to resolve where the expected sequence of matrices ...
7 years, 8 months ago (2013-04-04 10:15:14 UTC) #43
trchen
https://codereview.chromium.org/12552004/diff/93012/cc/layers/layer_position_constraint_unittest.cc File cc/layers/layer_position_constraint_unittest.cc (right): https://codereview.chromium.org/12552004/diff/93012/cc/layers/layer_position_constraint_unittest.cc#newcode18 cc/layers/layer_position_constraint_unittest.cc:18: void SetLayerPropertiesForTestingInternal( On 2013/04/04 10:15:14, shawnsingh wrote: > Since ...
7 years, 8 months ago (2013-04-04 11:18:04 UTC) #44
shawnsingh
> There is no sizeDeltaCompensation in the tests at all. > > I never meant ...
7 years, 8 months ago (2013-04-04 18:39:25 UTC) #45
shawnsingh
new case 3 and case 4 unit tests on the position contraints LGTM =) I ...
7 years, 8 months ago (2013-04-08 20:04:45 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/12552004/111002
7 years, 8 months ago (2013-04-08 20:25:50 UTC) #47
commit-bot: I haz the power
Presubmit check for 12552004-111002 failed and returned exit status 1. INFO:root:Found 15 file(s). Running presubmit ...
7 years, 8 months ago (2013-04-08 20:25:57 UTC) #48
jamesr
lgtm for webkit/
7 years, 8 months ago (2013-04-08 20:40:02 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/trchen@chromium.org/12552004/111002
7 years, 8 months ago (2013-04-08 20:58:55 UTC) #50
commit-bot: I haz the power
7 years, 8 months ago (2013-04-09 04:26:38 UTC) #51
Message was sent while issue was closed.
Change committed as 192999

Powered by Google App Engine
This is Rietveld 408576698