Rewind the DocumentLifecycle when dirtying state

Before this CL, we didn't actually rewind the DocumentLifecycle when we
scheduled layout or compositing updates. This CL adds the rewind and finds some
cases where we're doing something sketchy (e.g., scheduling a layout after
detaching a document from its frame).

Review URL: https://codereview.chromium.org/232013002

git-svn-id: svn://svn.chromium.org/blink/trunk@171221 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r171054

http://src.chromium.org/viewvc/blink?view=revision&revision=171054

BUG=347510
TBR=yurys@chromium.org

Review URL: https://codereview.chromium.org/232423002

git-svn-id: svn://svn.chromium.org/blink/trunk@171222 bbb929c8-8fbe-4397-9dbb-9b2b20218538
add layout test for chicken/egg issue with fixed backgrounds

BUG=343132

Review URL: https://codereview.chromium.org/232353004

git-svn-id: svn://svn.chromium.org/blink/trunk@171223 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Animations: Support player finish events on cancelled animations

Calling cancel, or setting the source to null, causes an immediate finish event.

(If the the currentTime is negative, the finish event does not fire until currentTime reaches 0.)

BUG=356120

Review URL: https://codereview.chromium.org/226453007

git-svn-id: svn://svn.chromium.org/blink/trunk@171225 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebasline tests for virtual windows DirectWrite test suite

Add DirectWrite specific windows baselines for virtual suite.

TBR=dglazkov@chromium.org
BUG=356780

Review URL: https://codereview.chromium.org/231813006

git-svn-id: svn://svn.chromium.org/blink/trunk@171226 bbb929c8-8fbe-4397-9dbb-9b2b20218538
fix chicken/egg issue with fixed backgrounds

If the background becomes fixed in style recalc, set
a flag in RenderLayerCompositor and handle it after
compositing layer update.

BUG=343132

Review URL: https://codereview.chromium.org/232413002

git-svn-id: svn://svn.chromium.org/blink/trunk@171227 bbb929c8-8fbe-4397-9dbb-9b2b20218538