Add support for SourceBuffer.appendStream()

BUG=249431
TEST=LayoutTests/http/tests/media/media-source/mediasource-append-stream.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158162 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Make runtime model less noisy when evaluate is not possible.

This patch removes console error message when evaluate is not possible because execution context is not available anymore.
This happens in case when there are some watch expressions added in scripts panel and inspected page is reloaded. 

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158163 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WrapperTypeInfo: Fixed range check in getInternalField.

This would previously allow an off-by-one error to go undetected (a
field with an index equal to the field count).

BUG=295345

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158164 bbb929c8-8fbe-4397-9dbb-9b2b20218538
paintingRoot of a renderobject should be the renderer of its enclosingLayer RenderLayer.

DragImage for a element is painted by providing appropriate node to Frame::nodeImage(Node* node) but the node may not have its own RL. So, paintInfo.shouldPaintWithinRoot(RenderObject*) fails at InlineBox::paint() for "static inline-block" elements which are painted in its enclosing RL(paintingRoot). 


Infrastructure for retrieving the drag image for pixel testing does not yet exist. So, ManualTests/drag-inline-block.html: Added.

BUG=101204

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158165 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Support subtitles for native fullscreen video

In native fullscreen video mode(used by Android), videos are rendered into a separate hardware overlay that is outside of jurisdiction of our compositor. This patch adds support for subtitle by making the WebLayerTreeView transparent, and let the RenderVideo becomes the root layer, so the media controls and subtitles rendered in Blink can be overlaid on top of the hardware overlay.

In detail, the patch does the following:

* Force fullscreen video to be composited.

* Force fullscreen video to create stacking context. This is necessary, otherwise the descendant layers won't be attached under its layer.

* Add a m_currentFullscreenRenderer property in main frame RenderLayerCompositor.

* When building GraphicsLayer tree, RenderLayerCompositor will rearrange m_currentFullscreenRenderer as the root layer if it is a fullscreen video.

* RenderLayerBacking will turn off visibility of the layer if it is a fullscreen video.

* WebViewImpl will change WebLayerTreeView transparency if a media element enters fullscreen mode.

* MediaControlsChromiumAndroid will always allow media control hiding in fullscreen (ignoring hover status).

* Native fullscreen video will be moved under RenderFullScreen as well. This step was previously skipped, and is necessary to layout media controls and subtitles correctly.

* Convert USE(NATIVE_FULLSCREEN_VIDEO) to a runtime enable feature

* A layout test virtual suite is added to simulate Android behavior on Linux.

Depends on chromium patch: https://codereview.chromium.org/23597036/

BUG=262945
R=aelias,esprehn,falken,abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158166 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improved srcset descriptor parsing.

I've refactored srcset's descriptor parser in order to improve readability of the srcset parser, and improve spec compliance.

Changes:
* Descriptor parsing is now split to its own function.
* Invalid descriptors are ignored, rather than invalidate the candidate.
  - That includes the viewport qualifiers, which are not yet supported, but may be used by authors.
* Some unnecessary cruft has been removed from the srcset parser.
* Added tests that make sure descriptors are treated as they should.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158167 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a missing "const" for constructor parameter.

TBR=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158168 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Drop Promise.fulfill and Promise.some static functions

Since they are removed from the consensus of Promises[1], we drop these
implementations.

[1]: https://github.com/domenic/promises-unwrapping

BUG=295420

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

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

Blink has a copy of dom_perf tests.
They are all skipped, because we run them for chromium.

BUG=

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

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