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

Issue 1030323005: Simplify application of perspective origin. (Closed)

Created:
5 years, 9 months ago by jbroman
Modified:
5 years, 8 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-rendering, Dominik Röttsches, dshwang, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, slimming-paint-reviews_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Simplify application of perspective origin. Previously, we tried to translate the origin to be relative to the layer centre, which is what Core Animation wanted, and then translate it back. Not only is this unnecessarily complicated, but it caused an error in the positioning of the perspective origin when scrollbars exist. There is still a bug in this case (cf the second example in the layout test), but this brings us closer to spec compliance and alignment with Gecko. This CL also makes perspective always create a child transform layer in the CompositedDeprecatedPaintLayerMapping, since using the other graphics layers is not always correct (in particular, they may have different bounds and cause an incorrect perspective origin). BUG=471275 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193291

Patch Set 1 #

Patch Set 2 : rebase master #

Patch Set 3 : NeedsRebaseline #

Patch Set 4 : #

Patch Set 5 : with CompositedDeprecatedPaintLayerMapping changes #

Patch Set 6 : refactor to use ApplyToGraphicsLayers #

Patch Set 7 : temporarily revert TestExpectations changes #

Patch Set 8 : with TestExpectations restored #

Patch Set 9 : merge iwth master #

Patch Set 10 : try without TestExpectations changes #

Patch Set 11 : restore TestExpectations #

Patch Set 12 : fix wrong assertion #

Patch Set 13 : revert TestExpectations to check trybots #

Patch Set 14 : restore TestExpectations; add missing [OPTIONAL] tags #

Patch Set 15 : without TestExpectations #

Patch Set 16 : with new TestExpectations #

Total comments: 7

Patch Set 17 : merge with master #

Patch Set 18 : explicitly update linux expectations #

Patch Set 19 : merge with master #

Patch Set 20 : missed two expectations #

Patch Set 21 : merge with master #

Patch Set 22 : add three more test expectation changes (added since earlier) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -371 lines) Patch
M LayoutTests/TestExpectations View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +49 lines, -0 lines 0 comments Download
M LayoutTests/compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +4 lines, -2 lines 0 comments Download
A LayoutTests/compositing/perspective-origin-overflow-hidden.html View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A LayoutTests/compositing/perspective-origin-overflow-hidden-expected.html View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A LayoutTests/compositing/perspective-origin-with-scrollbars.html View 1 2 3 4 5 1 chunk +38 lines, -0 lines 0 comments Download
A LayoutTests/compositing/perspective-origin-with-scrollbars-expected.html View 1 2 3 1 chunk +49 lines, -0 lines 0 comments Download
M LayoutTests/compositing/scrollbars/nested-overlay-scrollbars-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -4 lines 0 comments Download
M LayoutTests/platform/linux/compositing/layer-creation/fixed-position-nonscrollable-body-mismatch-containers-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/linux/compositing/overflow/selection-gaps-after-removing-scrolling-contents-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +9 lines, -15 lines 0 comments Download
M LayoutTests/platform/linux/compositing/overflow/selection-gaps-toggling-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +6 lines, -11 lines 0 comments Download
M LayoutTests/platform/linux/compositing/overflow/selection-gaps-toggling-with-scrolling-contents-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +9 lines, -14 lines 0 comments Download
M LayoutTests/platform/linux/compositing/overflow/textarea-scroll-touch-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -4 lines 0 comments Download
M LayoutTests/platform/linux/compositing/overflow/universal-accelerated-overflow-scroll-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Binary file 0 comments Download
M LayoutTests/platform/linux/compositing/repaint/should-not-clip-composited-overflow-scrolling-layer-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/selection-gaps-after-removing-scrolling-contents-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +9 lines, -15 lines 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/selection-gaps-toggling-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +6 lines, -11 lines 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/selection-gaps-toggling-with-scrolling-contents-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +9 lines, -14 lines 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/text-color-change-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/text-match-highlight-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/textarea-scroll-touch-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +2 lines, -4 lines 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/universal-accelerated-overflow-scroll-expected.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Binary file 0 comments Download
M LayoutTests/platform/linux/virtual/prefer_compositing_to_lcd_text/compositing/overflow/updating-scrolling-container-and-content-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/linux/virtual/slimmingpaint/compositing/repaint/should-not-clip-composited-overflow-scrolling-layer-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/accelerated-overflow-scroll-should-not-affect-perspective-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +31 lines, -25 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/clear-scroll-parent-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/composited-scrolling-paint-phases-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/content-gains-scrollbars-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +0 lines, -6 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/overflow-scrollbar-layers-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +0 lines, -6 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/reparented-overlay-scrollbars-with-non-stacking-context-compositing-ancestor-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/scroll-parent-absolute-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/scroll-parent-with-non-stacking-context-composited-ancestor-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/scrolling-content-clip-to-viewport-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/scrolling-without-painting-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/universal-accelerated-overflow-scroll-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +12 lines, -24 lines 0 comments Download
M LayoutTests/platform/win/compositing/overflow/updating-scrolling-content-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/squashing/composited-bounds-for-negative-z-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/compositing/update-paint-phases-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -2 lines 0 comments Download
M LayoutTests/platform/win/fast/repaint/overflow-move-after-scroll-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/fast/repaint/overflow-scroll-after-move-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/accelerated-overflow-scroll-should-not-affect-perspective-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +31 lines, -25 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/clear-scroll-parent-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/composited-scrolling-paint-phases-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +0 lines, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/content-gains-scrollbars-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +0 lines, -6 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/overflow-auto-with-touch-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/overflow-auto-with-touch-toggle-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/overflow-overlay-with-touch-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/overflow-scrollbar-layers-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +0 lines, -6 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/reparented-overlay-scrollbars-with-non-stacking-context-compositing-ancestor-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/scroll-parent-absolute-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/scrolling-content-clip-to-viewport-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/scrolling-without-painting-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/universal-accelerated-overflow-scroll-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 12 chunks +12 lines, -24 lines 0 comments Download
M LayoutTests/platform/win/virtual/prefer_compositing_to_lcd_text/compositing/overflow/updating-scrolling-content-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/slimmingpaint/compositing/overflow/scrolling-without-painting-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/slimmingpaint/compositing/overflow/updating-scrolling-content-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/slimmingpaint/fast/repaint/overflow-move-after-scroll-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/platform/win/virtual/slimmingpaint/fast/repaint/overflow-scroll-after-move-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +1 line, -2 lines 0 comments Download
M LayoutTests/virtual/prefer_compositing_to_lcd_text/compositing/overflow/updating-scrolling-container-expected.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +1 line, -2 lines 0 comments Download
M Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +12 lines, -13 lines 0 comments Download
M Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 7 chunks +30 lines, -59 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -16 lines 0 comments Download

Messages

Total messages: 28 (10 generated)
jbroman
Aside from added tests and test expectations, this CL mostly deletes code. Layout test changes ...
5 years, 8 months ago (2015-04-01 17:51:04 UTC) #3
Ian Vollick
The new perspective origin handling is MUCH easier to follow. Just a few minor comments. ...
5 years, 8 months ago (2015-04-01 18:00:09 UTC) #4
Ian Vollick
https://codereview.chromium.org/1030323005/diff/320001/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp File Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp (right): https://codereview.chromium.org/1030323005/diff/320001/Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp#newcode1382 Source/core/layout/compositing/CompositedDeprecatedPaintLayerMapping.cpp:1382: ApplyToChildContainingLayers = (1 << 6), // layers between m_graphicsLayer ...
5 years, 8 months ago (2015-04-01 18:18:18 UTC) #5
chrishtr
I have the same comment as last time a CL went by that messed with ...
5 years, 8 months ago (2015-04-01 18:52:21 UTC) #7
jbroman
On 2015/04/01 18:52:21, chrishtr wrote: > I have the same comment as last time a ...
5 years, 8 months ago (2015-04-01 19:08:35 UTC) #8
chrishtr
This comes up in the implementation of property trees in Blink? If you go with ...
5 years, 8 months ago (2015-04-01 19:13:42 UTC) #9
Ian Vollick
On 2015/04/01 18:52:21, chrishtr wrote: > I have the same comment as last time a ...
5 years, 8 months ago (2015-04-01 19:47:26 UTC) #12
chrishtr
On 2015/04/01 at 19:47:26, vollick wrote: > On 2015/04/01 18:52:21, chrishtr wrote: > > I ...
5 years, 8 months ago (2015-04-01 21:10:18 UTC) #13
chrishtr
Tien-Ren, please chime in on this thread with what you would want to build on ...
5 years, 8 months ago (2015-04-01 21:12:01 UTC) #15
trchen
What I'm trying to achieve is orthogonal to this CL, but I think the CL ...
5 years, 8 months ago (2015-04-01 22:37:46 UTC) #16
Ian Vollick
On 2015/04/01 22:37:46, trchen wrote: > What I'm trying to achieve is orthogonal to this ...
5 years, 8 months ago (2015-04-01 22:45:19 UTC) #17
trchen
On 2015/04/01 22:45:19, vollick wrote: > On 2015/04/01 22:37:46, trchen wrote: > > What I'm ...
5 years, 8 months ago (2015-04-01 22:52:17 UTC) #18
jbroman
https://codereview.chromium.org/1030323005/diff/320001/LayoutTests/TestExpectations File LayoutTests/TestExpectations (right): https://codereview.chromium.org/1030323005/diff/320001/LayoutTests/TestExpectations#newcode1763 LayoutTests/TestExpectations:1763: On 2015/04/01 18:00:09, vollick wrote: > I realize that ...
5 years, 8 months ago (2015-04-02 15:34:16 UTC) #19
Ian Vollick
On 2015/04/01 21:10:18, chrishtr wrote: > On 2015/04/01 at 19:47:26, vollick wrote: > > On ...
5 years, 8 months ago (2015-04-07 03:53:12 UTC) #20
Ian Vollick
On 2015/04/02 15:34:16, jbroman wrote: > https://codereview.chromium.org/1030323005/diff/320001/LayoutTests/TestExpectations > File LayoutTests/TestExpectations (right): > > https://codereview.chromium.org/1030323005/diff/320001/LayoutTests/TestExpectations#newcode1763 > ...
5 years, 8 months ago (2015-04-07 03:55:15 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1030323005/410001
5 years, 8 months ago (2015-04-07 14:05:15 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1030323005/450001
5 years, 8 months ago (2015-04-07 17:27:58 UTC) #27
commit-bot: I haz the power
5 years, 8 months ago (2015-04-07 18:52:59 UTC) #28
Message was sent while issue was closed.
Committed patchset #22 (id:450001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=193291

Powered by Google App Engine
This is Rietveld 408576698