Implemented scriptFailedToParse protocol event. Added test.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178062 bbb929c8-8fbe-4397-9dbb-9b2b20218538
PrivateScriptRunner should use GetOwnPropertyDescriptor in V8 APIs

This CL removes hand-written implementation for Object.getOwnPropertyDescriptor
and instead uses a V8 API.

BUG=341031

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178064 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Leaking CFData in ImageDecoder.h

third_party/WebKit/Source/platform/image-decoders/ImageDecoder.h: added missing
CFRelease.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178065 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable resize and layout for frames with RemoteFrame ancestors

In order to support frame tree replication across processes, frames
must be able to render correctly even when they have ancestor frames
out of process. This will require a refactoring of WebViewImpl, but
to enable immediate progress on this goal we add the assumption to
WebViewImpl that the first LocalFrame found in a frame tree traversal
should be treated as a local root, and used instead of the actual
main frame in some cases.

BUG=346764

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Revert of [DevTools] Device mode: reset page scale when enabling and improve UI. (https://codereview.chromium.org/391753002/)

Reason for revert:
Speculative revert did not fix failures

Original issue's description:
> Revert of [DevTools] Device mode: reset page scale when enabling and improve UI. (https://codereview.chromium.org/389573002/)
> 
> Reason for revert:
> Speculative revert. A long list of compositing related layout tests began failing on the Mac Retina bot.  Some of the tests look like they could just be rebaselined, others are true regressions and seem related to page scale. Regression range is 178044:178046 This is the only change in that range that is even remotely related to graphics.
> 
> Original issue's description:
> > [DevTools] Device mode: reset page scale when enabling and improve UI.
> > 
> > BUG=384563
> > 
> > Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178045
> 
> TBR=pfeldman@chromium.org,dgozman@chromium.org
> NOTREECHECKS=true
> NOTRY=true
> BUG=384563
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178058

TBR=pfeldman@chromium.org,dgozman@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=384563

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178067 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[SVG] Make metrics passed to calculateGlyphAdvanceAndOrientation const

Typical in-parameter - the method shouldn't need to mutate this object.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@178068 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Teach WebURLRequest about Fetch's "frame type" concept.

This CL introduces a new enum property on resource requests which maps
to the "frame type" concept in Fetch[1]. The eventual goal is to migrate
mixed content and CSP checks which rely on knowledge of a request's
browsing context to use this new property rather than overloading the
request context with information about the request's browsing context
and originator.

To ensure that we can rely on the property's value, we ASSERT that the
value is properly set when loading "main" resources.

[1]: http://fetch.spec.whatwg.org/#concept-request-context-frame-type

BUG=390497

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

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