Introduce isHTMLLabelElement and toHTMLLabelElement

To avoid direct use of static_cast, this patch introduces isHTMLLabelElement and toHTMLLabelElement for code cleanup.

Review URL: https://chromiumcodereview.appspot.com/18259016

git-svn-id: svn://svn.chromium.org/blink/trunk@153743 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have webkit-patch rebaseline only prompt with release builders.

There's no point in rebaselining from debug builders. They are
slower and don't run all the tests due to sharding.

The helper function is in AbstractParallelRebaselineCommand because
I will shortly be using it in the autorebaseline command, which also
inherits from AbstractParallelRebaselineCommand.

Review URL: https://chromiumcodereview.appspot.com/18339010

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

We are implementing DOM/promises[1].
This CL introduces ScriptPromiseResolver which enables C++ code to generate
a Promise and a PromiseResolver and to fullfill / reject the PromiseResolver.

[1]: http://dom.spec.whatwg.org/#promises 

R=abarth
BUG=243345

Review URL: https://chromiumcodereview.appspot.com/18469002

git-svn-id: svn://svn.chromium.org/blink/trunk@153745 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge CSS rulesets for date, datetime-local, month, time, and week input types.

Also, remove unused rulesets for datetime.

BUG=
TEST=none; No behavior changes.

Review URL: https://chromiumcodereview.appspot.com/18600004

git-svn-id: svn://svn.chromium.org/blink/trunk@153746 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement Promise.fulfill, Promise.resolve and Promise.reject.

We are implementing DOM/promises[1].
We implement Promise.fulfill, Promise.resolve and Promise.reject in this CL.

[1] http://dom.spec.whatwg.org/#promises

BUG=243345
R=abarth

Review URL: https://chromiumcodereview.appspot.com/18648011

git-svn-id: svn://svn.chromium.org/blink/trunk@153747 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Refactoring: Decouple ScriptElement from HTMLScriptElement and SVGScriptElement.

This change pulls ScriptElement out from Element inheritance chain.
This give us an opportunity to decouple the lifetime of the element and
script loading and execution. Various states which is realted to script loading
won't be needed and can be discarded once it is feed to the script engine.
Such refactoring will follow.

Also in a coming change, ScriptElement will be renamed to ElementScriptLoader.

TEST=none
BUG=240592
R=eseidel,dglazkov,abarth

Review URL: https://chromiumcodereview.appspot.com/18676002

git-svn-id: svn://svn.chromium.org/blink/trunk@153748 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Moved broken assert in CustomEvent from detail getter to init. Assert was hit in browser_test WebViewTest.IndexedDBIsolation.

Review URL: https://chromiumcodereview.appspot.com/18801014

git-svn-id: svn://svn.chromium.org/blink/trunk@153749 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implemented DocumentTimeline::pauseAnimationsForTesting.

pauseAnimationsForTesting is used in some of the old WebKit layout tests for other animations APIs, and we want to be able to use those tests for Web Animations.

Tested in DocumentTimeLineTest.pauseForTesting.

Review URL: https://chromiumcodereview.appspot.com/18815002

git-svn-id: svn://svn.chromium.org/blink/trunk@153750 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make PerformanceTests/Layout/line-layout.html 2% faster

I was looking at this performance test in pprof or an unrelated reason and
noticed that we were spending 2% of our time clearing a Vector. Rather than
clearing the Vector, we can just set its size to 0 and avoid calling malloc and
free for each iteration of the loop. The Vector is held in a local variable, so
we'll reclaim its storage when the function returns.

R=leviw@chromium.org

Review URL: https://chromiumcodereview.appspot.com/18868007

git-svn-id: svn://svn.chromium.org/blink/trunk@153751 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove nodeAbs* dead code from Document

Review URL: https://chromiumcodereview.appspot.com/18826004

git-svn-id: svn://svn.chromium.org/blink/trunk@153753 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Callback objects of GraphicsContext3D must live longer than GraphicsContext3D.

It is because WebGraphicsContext3D destructor can call them.

BUG=258007

Review URL: https://chromiumcodereview.appspot.com/18159005

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