Add Streams API support to XMLHttpRequest

Hidden behind the --enable-experimental-webkit-features flag.

Original Streams API spec is:
https://dvcs.w3.org/hg/streams-api/raw-file/tip/Overview.htm

How to read data from Stream in JavaScript is still under
discussion at this thread
http://lists.w3.org/Archives/Public/public-webapps/2013AprJun/0706.html
but integration with XHR is not controversial.

So, to allow APIs depending on Stream but not on JavaScript
Stream read/write API to start development (e.g. Media Source
Extensions API
https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html),
I'd like to land XHR integration part.

BUG=169957

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157609 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Kill isBlockFlow()

Loosely based off of Hyatt's patch on https://bugs.webkit.org/show_bug.cgi?id=120897

Replace calls to isBlockFlow, which returns true for BlockFlows, Grids, and
flexible boxes, with functions that are accurately named. Most callers really
just wanted isRenderBlockFlow.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157610 bbb929c8-8fbe-4397-9dbb-9b2b20218538
MediaStream API: Adding an async RTCPeerConnection::addIceCandidate
The API signature has changed and as the first step in switching over I
will add an async version and then when it is fully implemented remove
the sync/old one.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157611 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Test was still flaking on Win7. Using a more realistic fling velocity fixed the problem.

BUG=261277

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157612 bbb929c8-8fbe-4397-9dbb-9b2b20218538
If we navigate to an existing, named frame in a different page, focus the page.

BUG=286018
TEST=WebViewTest.FocusExistingFrameOnNavigate

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157613 bbb929c8-8fbe-4397-9dbb-9b2b20218538
needsFocus is always undefined in grammar-paste.html

Remove unnecessary needsFocus parameter which is always undefined.
In addition, remove if (true) condition in the test.

WebKit changeset: http://trac.webkit.org/changeset/155469

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157614 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Keep AudioScheduledSourceNode alive until onended is called.

Also, if the document has already gone away, we want to avoid firing
the event at all. This is similar to what ScriptProcessorNode does
with events.

BUG=269753

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157615 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add paint flags to allow skipping some paint setup.

This is a continuation of the work jbroman started before his internship ended
(http://crrev.com/22875044).

The setup of the SkPaint object can be expensive. For simple fill operations
we do work to setup the shader and the xfer mode which we don't.
This CL keeps a set of paintFlags to inform us what parts of the paint will
need to be set. If possible, we use those paint flags to early out the
setupPaintForFilling call.

BUG=277807

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157616 bbb929c8-8fbe-4397-9dbb-9b2b20218538
XMLSerializer.serializeToString() should throw exception for invalid node value.

FF and Opera 12 (pre blink/webkit) throw exception in case the node value is invalid.
Blink sends an empty string as the result of serializeToString operation with invalid node.
We should match with other browsers for throwing it as an exception.

R=eseidel, abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157617 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix for crashing win/aura browser test

Fix by making Canvas2DLayerBridge flush and exit early when an accelerated canvas is being composited by a compositor with a software renderer.

TEST=NetInternalsTest.netInternalsTimelineViewScrollbar
BUG=288870
R=senorblanco

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157618 bbb929c8-8fbe-4397-9dbb-9b2b20218538
RenderStyle(bool) is a footgun

C++ will happily convert a RenderStyle* to a RenderStyle using the Boolean
constructor. This CL both marks the constructor explicit and changes it to use
an explicit enum tag.

R=esprehn

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157619 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Grid Layout] Properly support for z-index on grid items

The specification says that grid should match flexbox and force
grid items to be stacking context if z-index is set, regardless
of 'position'. After this change, this is what happens.

BUG=234200

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157620 bbb929c8-8fbe-4397-9dbb-9b2b20218538
didNotifySubtreeInsertions should only be called when inDocument

All the users of didNotifySubtreeInsertions checked if the node was inDocument(),
so we should move that check up a level into ChildNodeInsertionNotifier and rename
the method didNotifySubtreeInsertionsToDocument.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157621 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[WK merge] Hide node() below RenderSVGModelObject, use element() instead.

This is a merge of http://trac.webkit.org/changeset/155398 by
Andreas Kling <akling@apple.com>.

(Also merging Compiler.h:WTF_DELETED_FUNCTION which is used in this patch).

-----

    This was almost already there, just delete node() and add an element()
    that returns a SVGElement*.

    The SVG render tree is crazy casual about compile-time types, this is
    only scratching the surface.

BUG=288228
R=pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157623 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG] Handle repeat(n) event for svg animations

Handled repeat(n) event for svg animations according to http://www.w3.org/TR/SMIL3/smil-timing.html#q135

R=pdr@chromium.org, schenney@chromium.org, dschulze@chromium.org, fmalita@chromium.org
BUG=269724

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157624 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable left side scrollbars on Chromium Android.

Plumb through the isLeftSideVerticalScrollbar property
to the solid color scrollbar constructor.  RTL scrollbars
will now be drawn properly on Android.

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157625 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Delete temporary code that was part of a multi-sided patch.

TBR=jamesr@chromium.org

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

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

This CL creates a RenderingNodeProxy class that mediates the interaction
between the RenderTree and the DOM. When we parallelize layout, some
interactions wth the DOM (typically reads) will be allowed during layout
whereas others will not. The RenderingNodeProxy will keep us honest and prevent
us from growing additional DOM dependencies.

R=esprehn@chromium.org
BUG=289678

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157627 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add toSVGImage fuction, and use it as much as we can.

It has type checking assertions, and also it will help to find bad-cast bugs.

BUG=N/A

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

git-svn-id: svn://svn.chromium.org/blink/trunk@157628 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix memory leaks in PageOverlay

R=jamesr@chromium.org
BUG=289039

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

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