Gardening: fast/dom/Window/open-window-min-size.html flaky on Win7 dbg

BUG=231880
TBR=jsbell

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160412 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make LifecycleContext family parameterized types.

This change turns LifecycleContext into LifecycleContext<T> with
CRTP pattern. This allows a class to implement multiple lifecycle contexts.
For example, Document can have its own LifecycleContext<Document> separated
from LifecycleContext<ExecutionContext> which is implemented in the
superclass ExecutionContext.

This is a part of out-of-Document-ExecutionContext refactoring where
we move ExecutionContext from Document to DOMWindow.
As we already have LifecycleContext, we don't want to mix one
from ExecutionContext when it moves to DOMWindow superclass.

BUG=305497
R=abarth, dglazkov, tkent

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160413 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up toHTMLFooElement() using DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION

Some HTML elements don't use type cast macro. This cl cleans up those HTML
elements. To use DEFINE_NODE_CASTS_WITH_FUNCTION, this cl need to add isHTMLFooElement() additionally.

BUG=309516

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

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

HTMLPlugInImageElement provides nothing. HTML{Applet,Embed,Object}Element
inherit from HTMLPugInElement directly.

BUG=309978
TEST=none; no behavior changes.
R=morrita@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160416 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web Animations CSS: Hook up CSS animation play state

The modification to Player's pause logic is a temporary work-around to allow us
to pause a Player for testing, without it impacting the CSS pause logic.

Note that when the Web Animations model is exposed to JavaScript, this will
include Players and Animations generated by CSS animations. We will then have
to support such animations being manipulated from both JavaScript and CSS, and
the solution for this will avoid the need for this work-around.

BUG=258896
R=dstockwell

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

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