Update expectations for WebSocket layout tests

interleaved-fragments.html, invalid-continuation.html, zero-length-text.html,
connect-src-websocket-allowed.html and handshake-error.html now pass.

All other WebSocket tests which were set to "Skip" have been changed to
"Failure", except for multiple-connections.html, which times out.

Tests of functionality which is not implemented in the new implementation
remain skipped. These are
FIXME-handshake-fail-by-null-subprotocol-selection-whitelist.html,
handshake-fail-by-no-cr.html and deflate-frame-*

BUG=339373
TEST=layout tests

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170258 bbb929c8-8fbe-4397-9dbb-9b2b20218538
select.add() should support optgroup adding and before index

According to the spec (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-select-element) the idl for select.add is
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);

select.add should accept an optgroup as the first argument.
select.add should support an index as the second argument.

BUG=345345

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170259 bbb929c8-8fbe-4397-9dbb-9b2b20218538
CSS Shapes Level 1 (CR) only contains shape-outside. We are focusing our efforts on finalizing
the implementation of shape-outside, it's worth to remove shape-inside code at this point for now.

A list of reasons for the removal:

- Shape-inside is only part of Shapes Level 2, which needs to be improved on some topics.
- Shape-inside is lack of new shapes support (e.g. inset).
- Deprecated shapes are removed from the code (e.g. rectangle), which affects shape-inside.
- The current shape-inside code spreads across the layout code.
- The current shape-inside implementation is experimental in some areas, and the partially implemented code can have security implications.
- Removal of shape-inside opens possibilities for code complexity and performance optimizations for shape-outside. (e.g. simpler geometry code) 

BUG=356778

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170260 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make DOMWrapperWorld::current() return a reference instead of a pointer

Now that it's guaranteed that DOMWrapperWorld is not 0 at any given time, we can make it a reference instead of a pointer.

BUG=341032

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

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

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

TBR=senorblanco@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170262 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[refactor] Delete unused test code.

Now that all the tests have been moved off using shouldRejectPromiseWithNull() these temporary helpers can be removed.

BUG=245025

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170263 bbb929c8-8fbe-4397-9dbb-9b2b20218538
window.atob() returns wrong value when given a string container only white spaces

window.atob() returns wrong value when given a string container only white
spaces. The reason was that base64DecodeInternal() was calling Vector::grow()
before the loop but failed to call Vector::shrink() in case of early return.

R=
BUG=357332

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170264 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark some tests flaky.

- w3c/web-platform-tests/html-templates/parsing-html-templates/creating-an-element-for-the-token/template-owner-document.html [ Pass Timeout ]
- virtual/implsidepainting/inspector/timeline/timeline-decode-resize.html [ Crash Pass Slow ]
- inspector-protocol/page/enable-disable.html [ Failure Pass ]
- virtual/threaded/animations/3d/matrix-transform-type-animation.html [ Pass Timeout ]
- fast/events/touch/gesture/touch-gesture-scroll-div-removed.html [ Crash Pass ]
- fast/mediastream/RTCPeerConnection-AddRemoveStream.html [ Crash Pass ]
- http/tests/security/contentSecurityPolicy/1.1/frame-ancestors/frame-ancestors-nested-cross-in-cross-none-block.html [ Failure Pass ]
- virtual/softwarecompositing/visibility/visibility-composited-incremental-update.html [ Pass Timeout ]
- virtual/threaded/animations/keyframe-timing-functions-multiple-animations.html [ Pass Timeout ]
- css3/flexbox/repaint.html [ Pass Failure ]

BUG=330086,318490,316349,357459,357460,357464,357464,357465,357465,355463
TBR=enne@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170265 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Change SimulatedMouseEvent's adoptRef() to adoptRefWillBeRefCountedGarbageCollected()

I forgot to replace a couple of adoptRef()s in r170164.
SimulatedMouseEvent's adoptRef() was another left-over.

BUG=340522
TBR=ager

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

git-svn-id: svn://svn.chromium.org/blink/trunk@170266 bbb929c8-8fbe-4397-9dbb-9b2b20218538
HTMLMetaElement should not run script inside ::insertedInto

To eventually remove the ChildNodesLazySnapshot we need to stop allowing
script to run inside ::insertedInto. It's also important since even with
the lazy snapshot we still keep getting security bugs down there.

This starts the process of removal by switching HTMLMetaElement to use
a post insertion callback.

R=ojan@chromium.org,abarth@chromium.org
BUG=357435

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

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