More displaylist tests, and minor cleanup
authorsimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jan 2016 03:20:52 +0000 (03:20 +0000)
committersimon.fraser@apple.com <simon.fraser@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 18 Jan 2016 03:20:52 +0000 (03:20 +0000)
commit9c794b1f5275a81a6fe5fc2137eb3bd1686a59e4
treebbb8fd257d289a0dbcc881c602602e907f88976a
parent6e17c5a28ae249e10aa3dd51d3c00ada7ccea1d9
More displaylist tests, and minor cleanup
https://bugs.webkit.org/show_bug.cgi?id=153198

Reviewed by Zalan Bujtas.

Source/WebCore:

Have the DisplayListRecorder's constructor push the recorder onto the GraphicsContext,
and remove that code from GraphicsLayerCA.

Tests: displaylists/extent-includes-shadow.html
       displaylists/extent-includes-transforms.html

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::recursiveCommitChanges):
* platform/graphics/displaylists/DisplayListRecorder.cpp:
(WebCore::DisplayList::Recorder::Recorder):

LayoutTests:

A couple more display list tests that check that the computed extent of an item
includes shadows and transforms.

WK1 results differ in that they disable should-subpixel-quantize-fonts in the state
(which is a bug).

Move some shared JS into a helper file.

* displaylists/extent-includes-shadow-expected.txt: Added.
* displaylists/extent-includes-shadow.html: Added.
* displaylists/extent-includes-transforms-expected.txt: Added.
* displaylists/extent-includes-transforms.html: Added.
* displaylists/layer-dispay-list.html:
* displaylists/resources/dump-target-display-list.js: Added.
(doTest):
* platform/mac-wk1/displaylists/extent-includes-shadow-expected.txt: Added.
* platform/mac-wk1/displaylists/extent-includes-transforms-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/displaylists/extent-includes-shadow-expected.txt [new file with mode: 0644]
LayoutTests/displaylists/extent-includes-shadow.html [new file with mode: 0644]
LayoutTests/displaylists/extent-includes-transforms-expected.txt [new file with mode: 0644]
LayoutTests/displaylists/extent-includes-transforms.html [new file with mode: 0644]
LayoutTests/displaylists/layer-dispay-list.html
LayoutTests/displaylists/resources/dump-target-display-list.js [new file with mode: 0644]
LayoutTests/platform/mac-wk1/displaylists/extent-includes-shadow-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac-wk1/displaylists/extent-includes-transforms-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
Source/WebCore/platform/graphics/displaylists/DisplayListRecorder.cpp