Suppress test failures related to upcoming showModalDialog removal

BUG=345831
TBR=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167703 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Diminish number of window.eval calls

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167704 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add versions of stroke, fill, and clip to CanvasRenderingContext2D that take a Path parameter.

The spec reference is:
http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-fill

This partially addresses bug 330506. The rest of these functions need to be added to completely close that bug, which I plan to do in a following CL:
 - drawSystemFocusRing(path, element);
 - drawCustomFocusRing(path, element);
 - isPointInPath(path, x, y);
 - isPointInStroke(path, x, y);
 - scrollPathIntoView(path);

BUG=330506

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167705 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Finalize a throttled FileReader in stages.

File read operations are throttled, a controller keeping track of a
set of running readers, and those waiting for a turn. In the case of a
running FileReader just completing its operation and an onload* event
listener issuing a new read operation over the same reader, the
throttling controller must correctly handle the renewal of that
FileReader as a running (or now-pending) reader.

This includes signalling that there's pending activity starting (and
later on, completing) on the FileReader itself, something that wasn't
correctly in this nested case.

To address, a FileReader will now remove itself from its throttling
controller in two stages:

  - once the readyState transitions from LOADING, the FileReader is
    removed as a running reader.

  - once the FileReader has dispatched all the required events, the
    FileReader itself signals that the pending activity has completed.

In combination, this balances the reference counting on the underlying
object.

R=kinuko@chromium.org
BUG=345608

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167706 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CSS] remove unused property status "style" from protocol.json

This patch removes CSSProperty status enum value "style" from
protocol.json due to its redundancy: property.status == "style" iff
property does not have source range.

BUG=341506

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167707 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix distorted image issue when open some images in a new browser window

This patch tries to fix a distorted image issue when opening certain
images in a new browser window. The root cause is because the image
size is needed before the image element's renderer (which contains the
information that determines whether the image's orientation will affect
the width and height) gets created.

Fix the issue by calling Document::updateStyleIfNeeded() to create the
image element's renderer before retrieving the image size.

BUG=320244
R=abarth@chromium.org
TEST=fast/images/exif-orientation-height-image-document.html

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

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