[WebSocket] bufferedAmount should not decrease inside a task.

The spec says that bufferedAmount must not decrease in the task that
send() is called.
Fixed both the new and the old implementation although the old implementaion
is at any rate broken (bufferedAmount in the old implementation includes
the protocol overhead).

BUG=159563

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176298

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176519 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up ancestorScrollingLayer

This function should have walked up the containing blocks rather than
the parents. This cl fixes that and removes the useless
ancestorCompositedScrollingLayer.

Note: the layout test here was taken from abarth's patch
https://codereview.chromium.org/340913002/

BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176520 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unnecessary includes of GlyphBuffer.h.

Previously this was included in many other source files.
For me, this reduces the number of affected build targets from 889 to 93.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176521 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify use of TextDirection enum.

There is no need to do "(m_direction == LTR) ? LTR : RTL".

While here, remove extra parameters from applyFontTransforms.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176522 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Instrument GenericEventQueue for async stacks.

This adds async stacks support for the following DOM events:
- audio & video events (play, pause, ratechange, etc.)
- TrackList events: addtrack, removetrack
- MediaSource events (sourceopen and etc.)
- autocomplete and others

BUG=272416
R=yurys, pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176523 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Create a WATCHLIST entry for out of process frames.

R=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176524 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: move BatteryStatus to the heap.

R=haraken@chromium.org,timvolodine@chromium.org
BUG=340522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176525 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify GlyphBuffer::reverse.

Since only the entire buffer is ever reversed, a simpler and more
obvious implementation using WTF::Vector::reverse is possible.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176526 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DirectWrite] Force aliased rendering for Gulim at small sizes

Force full alaiased rendering for the Gulim font as sizes smaller than
12px.

BUG=386400
R=cpu@chromium.org,pdr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176527 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable ASSERT(attribute.nameRange.start) in AtomicHTMLToken::initializeAttributes

Restore it since the referred bug is already in the trunk.

BUG=

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

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

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

BUG=384963
TBR=chrishtr@chromium.org

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

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

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

BUG=344873
TBR=habib.virji@samsung.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176530 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ServiceWorker: Update IDLs to use ScalarValueString

Based on the IDLs in the SW spec and now Fetch spec, use
ScalarValueString as appropriate.

Also, add cases to the overload resolution implementation for ByteString
(and ScalarValueString, though the spec hasn't caught up yet).

R=nbarth@chromium.org,haraken@chromium.org,horo@chromium.org
BUG=379009

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176531 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Deprecate support for xhr.withCredentials for synchronous requests

As per XML Level2 spec, withCredentials flag cannot be set on sync request.
http://xhr.spec.whatwg.org/#the-withcredentials-attribute
However for time being add useCounter and throw console warning to web developers.

Intent to deprecate - https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/BOgLhbdljU4

BUG=383483

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176532 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix serviceworker default registration scope.

A follow up fix for spec update: https://github.com/slightlyoff/ServiceWorker/issues/312.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@176534 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename DOMWindow to LocalDOMWindow

For out-of-process iframes, we require an alternate limited
functionality DOMWindow to be bound to JavaScript window objects.

Renaming DOMWindow to LocalDOMWindow is allows us to later create a
DOMWindow interface class, that is implemented by LocalDOMWindow and
RemoteDOMWindow.

Discussion:
https://groups.google.com/a/chromium.org/d/msg/site-isolation-dev/BC0vAaxCSuM/ChoG4e_lXEYJ

BUG=346764

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

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

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

TBR=hartmanng@chromium.org

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

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