Implementing mailbox/ubercompositor support for accelerated 2D canvas layers.

BUG=190369

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149963 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move filter logic out of StyleResolver

Move StyleResolver::createTransformOperations and support methods out
of StyleResolver and into a separate self contained class. Also,
convert all supporting methods into file-local functions and only
export the createTransformOperations one.

* Source/core/css/StyleResolver.h
* Source/core/css/StyleResolver.cpp
  Move createTransformOperations and all support methods to
  new FilterOperationResolver class.
  Move colorFromPrimitiveValue implementation to StyleResolverState.
* Source/core/css/FilterOperationResolver.h
* Source/core/css/FilterOperationResolver.cpp
  New class containing css filter resolution logic.
* Source/core/css/StyleResolverState.h
  Source/core/css/StyleResolverState.cpp
  Moved colorFromPrimitiveValue and support function from StyleResolver
  as it is used outside of StyleResolver.

R=eseidel@chromium.org
BUG=238918
TEST=No new tests, no change in functionality.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149964 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Blink gardening: Disable crashing tests.

BUG=238363
TBR=aarya@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149965 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix multipart images, regressed in r148560.

Clear the decoded image just before creating the next part's image, then clear
the encoded data as soon as the new image is decoded.

No new test, as the dimensions are set correctly. Not sure there's a good way
to detect the visual aspect of this via layout test.

BUG=238427
TEST=Manually on http://mjpeg.sanford.io/

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149966 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Devirtualize more things on Document

Several methods on Document are virtual but don't override a super class method
and don't need to be virtual. This patch devirtualizes:

createElementNS
suspendScriptedAnimationControllerCallbacks
resumeScriptedAnimationControllerCallbacks
finishedParsing

It also removes the suspend and resume callbacks from ScriptExecutionContext
since they didn't need to be there.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149967 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fixing the long-broken indent in GraphicsContext.h

I've touched so many lines recently that touching the rest is not a huge concern.

BUG=235465

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149968 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Correct misleading comment in RuntimeEnabledFeatures.in

BUG=237740

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149969 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert "Revert "Landing https://chromiumcodereview.appspot.com/13452009 on behalf of jun.a.jiang@intel.com:""

The issue(bug 235363) that blocked this patch has been fixed. Now re-upload the patch.

BUG=235035

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149970 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Interface objects should be instanceof Function

WebIDL specifies interface objects to have their [[Prototype]] set to
Function.prototype.

http://www.w3.org/TR/WebIDL/#dfn-interface-object
http://www.w3.org/TR/WebIDL/#dfn-function-object

We used to set these to Object.prototype due to a bug in hotmail.com. This hack
is no longer needed.

This means that HTMLElement instanceof Function is now true. It also means
that the interface objects inherits the methods from Function.prototype.

This makes us match Gecko.

BUG=238792

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149971 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Replace ScriptWrappable pointer masking with back-pointer check in DOMDataStore.

BUG=236872

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149972 bbb929c8-8fbe-4397-9dbb-9b2b20218538
<label> element should send key and focus events if it has contenteditable attribute.

HTMLLabelElement should be focusable if it passes the test isContentEditable(). As a result, the proper events would be sent.
Both Opera and Firefox support this behavior.

BUG=209871
TEST=fast/forms/label/labels-contenteditable.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149973 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Split ArrayBuffer.h into its component classes.

Every time I touch ArrayBuffer.h, I have to compile the world (or a significant
subset thereof). I'd like not to have to do that. This patch splits the three
classes it defines out into separate files, and adds the header to an inspector
file that should have included it already.

BUG=239049

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149974 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid unnecessary arguments copying inside GenericHashTraits methods

Before the change both WTF::GenericHashTraits::passOut and WTF::GenericHashTraits::passOut
used to return the given argument always by value and that caused implicit extra
copying of the argument. It was OK as long as argument type T was POD, as compiler
could optimize it, but in case T was a class having non-trivial copy constructor the
extra copying of the argument could not have been obviated.

The proposed solution is to provide overloaded functions that accept non-temporary
values and return them by reference thus avoiding extra copying.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149975 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Stop including main header twice in generated implementation code

The bindings generator were including the main header twice when generating
implementation code. This causes the style script to complain.

This patch makes sure the main header is included only once, right after
"config.h".

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149976 bbb929c8-8fbe-4397-9dbb-9b2b20218538
GraphicsContext transparency helpers cleanup.

Remove a couple of unused transparency helpers, and make m_transparencyCount
debug-build only (used solely in ASSERTs now).

R=schenney@chromium.org,senorblanco@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@149978 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add back missing #endif that was accidentally removed during refactoring.

BUG=235465

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

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