DevTools: Move some tests to inspector-enabled folder in preparation to loading HTML resources content on inspector start

BUG=354447
TBR=pfeldman

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177533 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Enabling watchdog mailing list (watchdog-blink-watchlist@google.com) to monitor (https://codereview.chromium.org/68893015/)

Reason for revert:
We do not want to track Activity Logger changes with watchdog-blink-watchlist@google.com. It proved not effective strategy and is not needed after Activity Logger refactoring work and adding Activity Logger tests.

Original issue's description:
> Enabling watchdog mailing list (watchdog-blink-watchlist@google.com) to monitor
> changes that may impact the activity logger and watchdog extension.
> 
> These files are core web idl files, a few files that support activity logging,
> and the code_generator_v8.pm file.
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162031

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177534 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Disable shortcuts while SettingsScreen is open

BUG=340990

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177535 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use correct destination rectangle in FEComposite w/ type='in'

When one of the inputs are larger than the other, the destination will
assume the size of the smaller. When drawing the input onto the
destination however, the size of the buffer itself is always used. This
means that the source will be stretched onto a (too large) destination
rectangle. Destination and sources should always be the same dimensions
in this particular case, so make sure they are by simply adjusting the
computed destination rectangle based by the effects paint rect, hence
retaining the computed dimensions.

BUG=391200

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177536 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Supply location instead of event to InspectorFrontendHost.showContextMenu method.

This change allows to show asynchronous menus.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177537 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Preload HTML documents content before fetching resource content.

This is a last step in fixing the issue of HTML document content being unavailable when DevTools is first opened.
This patch adds HTML document content fetching logic as well as fixing all the tests that somehow depend on it.

BUG=354447

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177538 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make access-control-basic-get-fail-non-simple.cgi output 403 for OPTIONS explicitly

BUG=391391

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177539 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CSS] mark word-wrap and overflow-wrap as inherited poroperties

CSS spec http://www.w3.org/TR/css3-text/#overflow-wrap-property states
that word-wrap/overflow-wrap properties are inherited. The patch
adds them to the "inherited properties" list of CSSMetadata.

BUG=388427

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177540 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix userMetrics for Sources Panel

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177541 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of [screen-orientation] Expose orientation info in OrientationInformation interface. (https://codereview.chromium.org/366853008/)

Reason for revert:
Speculative revert: seems like a cause of Linux_ASAN memory leak after blink roll.

http://build.chromium.org/p/chromium.memory/buildstatus?builder=Linux%20ASan%20LSan%20Tests%20%283%29&number=4884

Original issue's description:
> [screen-orientation] Expose orientation info in OrientationInformation interface.
> 
> BUG=162827
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177486

TBR=abarth@chromium.org,ch.dumez@samsung.com,mvanouwerkerk@chromium.org,sigbjornf@opera.com,mlamouri@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG=162827

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177542 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of Directly update composited transforms (https://codereview.chromium.org/365793005/)

Reason for revert:
Mac failures:

http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%2010.6%20Tes...
http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%2010.7%20Tes...
http://build.chromium.org/p/chromium.mac/buildstatus?builder=Mac%2010.7%20Tes...
and so on.

Original issue's description:
> Directly update composited transforms
> 
> This CL introduces a special case for updating composited transforms. Now when an
> element with an inline transform is composited, we can skip the bulk of the work
> in the compositing update and directly update the transform of its graphics layer.
> 
> To make this work, we need to skip the overlap test, which does work proportional
> to (the square of) the size of the document. We do this by assuming that later
> RenderLayers overlap layers that are composited and have inline transforms. Most
> of these layers will squash back down into a single graphics layer, so we won't
> cause a layer explosion.
> 
> In RenderLayer::styleChanged, we recognize the condition for a direct transform
> update and simply mark a single CompositedLayerMapping as needing a local graphics
> update. We could save more time by introducing a smaller GraphicsLayerUpdateScope
> just for transforms, but that's work for a future CL.
> 
> This CL makes the compositing update for the Polymer calculator ~9.1x faster. The
> entire time spent below WebViewImpl::layout is ~3.3x faster.
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177495

TBR=chrishtr@chromium.org,esprehn@chromium.org,vollick@chromium.org,abarth@chromium.org
NOTREECHECKS=true
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177543 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Remove event filtering from tracing timeline event flamechart

We cannot do filtering at this point, as the flamechart items are built
basing on the recorded trace event levels. Thus if an event is filtered
out its children will hang in the air.

R=loislo@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177544 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Make TimelineFlameChart and data provider use proper TimelineUIUtils

R=loislo@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177545 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added unit tests for RenderGeometryMap

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177546 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement "Copy image" for canvas (blink side).

Many users want to copy the image of <canvas> to clipboard. (like <img>)
As well as being useful, The feature is already supported in Firefox and IE.

Chromium side:
  https://codereview.chromium.org/275833002/

BUG=369092

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177547 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Directly update composited transforms

This CL introduces a special case for updating composited transforms. Now when an
element with an inline transform is composited, we can skip the bulk of the work
in the compositing update and directly update the transform of its graphics layer.

To make this work, we need to skip the overlap test, which does work proportional
to (the square of) the size of the document. We do this by assuming that later
RenderLayers overlap layers that are composited and have inline transforms. Most
of these layers will squash back down into a single graphics layer, so we won't
cause a layer explosion.

In RenderLayer::styleChanged, we recognize the condition for a direct transform
update and simply mark a single CompositedLayerMapping as needing a local graphics
update. We could save more time by introducing a smaller GraphicsLayerUpdateScope
just for transforms, but that's work for a future CL.

This CL makes the compositing update for the Polymer calculator ~9.1x faster. The
entire time spent below WebViewImpl::layout is ~3.3x faster.

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

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177548 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix close-before-handshake-response.html

WebSocket layout test close-before-handshake-response.html failed with
the new WebSocket implementation as it did not expect an error
event. This behaviour is different from the old implementation.

Fixed by ignoring the error event.

The WebSocket API spec used to require that onerror not be fired in the
OPENING state, so the old implementation used to be correct, but the
latest spec simply requires onerror for all unclean closures, making the
new implementation correct.

BUG=339373
TEST=layout tests

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

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

Remove SVGPaint usage, instead use CSSValueList and CSSPrimitiveValue
for the fill/stroke CSS values.
This allows us to remove SVGPaint specific code in CSSValue.

Note that new result for svg/css/svg-attribute-parser-mode.svg matches
FireFox.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177550 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Clean liveLocations stored in Linkifier when target is gone

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177551 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CodeMirror] fix indentation after "Enter" in certain cases

This patch fixes an error in BlockIndentController. The root cause of
the issue was the incorrect usage of String.prototype.substr method,
which for the negative values of the first argument returns
substrings starting from the line end.

BUG=391403

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

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