Revert 147868 "Fix !m_lastChunkBeforeScript ASSERT"

> Fix !m_lastChunkBeforeScript ASSERT
> 
> This ASSERT was triggering during
> inspector/debugger/pause-in-inline-script.html with the threaded HTML parser.
> The threaded HTML parser wasn't correctly handling the nested event loops that
> can arise from the JavaScript debugger and from showModalDialog. When the
> parser received a chunk from the background parser, it was always processing it
> immediately, which lead to re-entrancy. Now, we'll queue the chunk in the
> speculation buffer and process it once the stack unwinds.
> 
> Review URL: https://codereview.chromium.org/13749011

TBR=abarth@chromium.org
Review URL: https://codereview.chromium.org/13866008

git-svn-id: svn://svn.chromium.org/blink/trunk@147924 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[MediaStream API] Allow empty MediaStreams
The spec is a bit unclear ecactly what should happen with newly created MediaStreams
that doesn't have any tracks. The current implementation is too strict and the spec
is being worked upon to be clearer. In the meantime this patch doesn't set eneded to
true in the constructor.

R=abarth@chromium.org,li.yin@intel.com
BUG=229350

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147925 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CPUProfile] return profile header as a result of stop command.

Originally the profile header was transferred via an event.
It works fine in ProfilesPanel especially when profile was recorded via console.profile()/console.profileEnd()
But if another panel, as example Timeline wants to record a profile. It will never receive the profile header.
So I extended stop method with profileHeader as the return value.

BUG=none
TEST=none
R=yurys@chromium.org, pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147926 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the ENABLE_{METER,PROGRESS}_ELEMENT compile time flags.

Chromium has enabled both for quite a while now and supports it on all
platforms. There is no run-time flag associated with those.

This is a reland of CL 13638004, which seemed to break some tests.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147927 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: compile CodeMirrorTextEditor

- Add CodeMirrorTextEditor to closure compiler file list
- Add CodeMirror public API to externs.js

BUG=

Review URL: https://codereview.chromium.org/13788002
Patch from Andrey Lushnikov <lushnikov@chromium.org>.

git-svn-id: svn://svn.chromium.org/blink/trunk@147928 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Timeline field is misaligned in Devtools->Network tab

The patch reverts one line from r146969 that hides back the first divider on the
Network timeline grid. Otherwise this divider overlaps with the Timeline header.
Also replace 'first' and 'last' classnames with first-child and last-child
pseudo classes.

BUG=226363
R=pfeldman@chromium.org

Review URL: https://codereview.chromium.org/13753008
Patch from Alexei Filippov <alph@chromium.org>.

git-svn-id: svn://svn.chromium.org/blink/trunk@147929 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Extract canvas and context creation and reset into
TimelineOverviewBase and makes canvas scale better on hi-res devices through using devicePixelRatio as a multiplier of all hard-coded sizes.

BUG=none
R=pfeldman,yurys

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147930 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove the ENABLE_DEVICE_ORIENTATION compile-time flag.

All Chromium ports enable this flag. The features(!) which are guarded by
this flag, Device Orientation and Device Motion, both have a run-time
flag which guards the feature from being exposed if we don't support them.

Note that the last capability which will be set in inspector.js, previously
whether Device Orientation can be overridden, now whether the ability to
inspect Web Workers is available, needs to invoke a callback.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147931 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add media entry to WATCHLIST.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147932 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark editing/selection/caret-at-bidi-boundary.html layout test as Slow

TBR=haraken@chromium.org
BUG=229435

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147933 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused runtime setting scriptmarkupenabled

This setting existed in WebKit but Chromium never changed it from its default value. We're removing all such unchanging settings in Blink, along with their associated code.

R=abarth@chromium.org
BUG=226711

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147934 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused runtime setting windowFocusRestricted

This setting existed in WebKit but Chromium never changed it from its default value. We're removing all such unchanging settings in Blink, along with their associated code.

R=abarth@chromium.org
BUG=226711

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147935 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unused runtime setting experimentalnotificationsenabled

This setting existed in WebKit but Chromium never changed it from its default value. We're removing all such unchanging settings in Blink, along with their associated code.

R=abarth@chromium.org
BUG=226711

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147936 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: manually update local variable in UI after its value was changed.

WebInspector.RemoteObject is extended by a new class WebInspector.ScopeRemoteObject that keeps scope reference info and implements special handling of properties: if a property is changed by user, they are not reloaded, but change is kept locally.

Review URL: https://codereview.chromium.org/13686010
Patch from Peter Rybin <prybin@chromium.org>.

git-svn-id: svn://svn.chromium.org/blink/trunk@147937 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Reset binding test results following r147911

Just whitespace glitches from removing #if guards.

TBR=mkwest@chromium.org,haraken@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147938 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: expose non-instrumented program time in frame overview adn stats

The fact that "blank" frame time can stand either for idle or non-instrumented
time is confusing for users. Traditional way to distringuish those used to be
examening CPU bars and matching them to actual events. This will make the
difference between instrumented and idle time explicit by exposing uninstrumented
time as "program" category rendered as opaque gray area in frame overview and
stats popover.

R=pfeldman,yurys
BUG=crbug.com/227522

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147939 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge SubresourceLoader's didSendData, didDownloadData, and didReceiveData
into ResourceLoader. Also, remove the remnants of support for receiving a buffer
from ResoureHandle and the now-dead declaration of willStopBufferData.

BUG=none
TEST=none
Review URL: https://codereview.chromium.org/13854002

git-svn-id: svn://svn.chromium.org/blink/trunk@147940 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove RuntimeApplicationChecks and related code.

This code was used by the Mac bundle to determine the calling
application (Safari, Mail, Outlook, ...).

While touching the code, removed EventHandlerMac as it wasn't
compiling after the change.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147941 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Landing https://codereview.chromium.org/13638008/ on behalf of alexst: Blink API to allow mailbox usage with texture layers for WebGL and Canvas2D.

BUG=179371
TEST=built Chrome, ran simple WebGL content
R=jamesr@chromium.org
TBR=jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@147942 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 147935 "Remove unused runtime setting windowFocusRestricted"

This was causing fast/dom/HTMLDocument/hasFocus.html to fail

> Remove unused runtime setting windowFocusRestricted
> 
> This setting existed in WebKit but Chromium never changed it from its default value. We're removing all such unchanging settings in Blink, along with their associated code.
> 
> R=abarth@chromium.org
> BUG=226711
> 
> Review URL: https://codereview.chromium.org/13722003

TBR=pilgrim@chromium.org
Review URL: https://codereview.chromium.org/13841014

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