summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/layer-creation
diff options
context:
space:
mode:
authorjbroman@chromium.org <jbroman@chromium.org>2015-04-07 18:52:53 +0000
committerjbroman@chromium.org <jbroman@chromium.org>2015-04-07 18:52:53 +0000
commit0b6b50acf65c158c202288419629046af3ad96a1 (patch)
tree7e5850b3eb316432aadd3b972009eec3e2dcd6bc /third_party/WebKit/LayoutTests/compositing/layer-creation
parent038d77780a15cdfa136cc37b0df86b00a01a52a4 (diff)
downloadchromium_src-0b6b50acf65c158c202288419629046af3ad96a1.zip
chromium_src-0b6b50acf65c158c202288419629046af3ad96a1.tar.gz
chromium_src-0b6b50acf65c158c202288419629046af3ad96a1.tar.bz2
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 Review URL: https://codereview.chromium.org/1030323005 git-svn-id: svn://svn.chromium.org/blink/trunk@193291 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/compositing/layer-creation')
-rw-r--r--third_party/WebKit/LayoutTests/compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/third_party/WebKit/LayoutTests/compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt b/third_party/WebKit/LayoutTests/compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt
index b15c157..1b13f90 100644
--- a/third_party/WebKit/LayoutTests/compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt
+++ b/third_party/WebKit/LayoutTests/compositing/layer-creation/overlap-transformed-preserved-3d-expected.txt
@@ -11,11 +11,12 @@
"position": [108, 108],
"children": [
{
+ "transformOrigin": [50, 50],
"shouldFlattenTransform": false,
"transform": [
[1, 0, 0, 0],
[0, 1, 0, 0],
- [-0.25, -0.25, 1, -0.005],
+ [0, 0, 1, -0.005],
[0, 0, 0, 1]
],
"children": [
@@ -126,11 +127,12 @@ After:
"position": [108, 108],
"children": [
{
+ "transformOrigin": [50, 50],
"shouldFlattenTransform": false,
"transform": [
[1, 0, 0, 0],
[0, 1, 0, 0],
- [-0.25, -0.25, 1, -0.005],
+ [0, 0, 1, -0.005],
[0, 0, 0, 1]
],
"children": [