DevTools: reset instrumenting agents early upon page destruction.

BUG=352631

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169257 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename FontSmallCaps to FontVariant to match CSS terminology

Rename the FontSmallCaps enum, the FontDescription smallCaps/
setSmallCaps methods and wrappers to FontVariant, variant and setVariant
respectively to better match the CSS terminology.

R=dglazkov@chromium.org, adamk@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169258 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Tweaks and fixes to the SMILTimeContainer frame scheduling logic

Restore the old frame delay as |initialFrameDelay| and use that in
begin(). (There's a 15ms difference from DocumentTimeline::s_minimumDelay,
in case that matters to some layout test.)

Use a separate state (FutureAnimationFrame) for the cases where an
animation frame is requested later than the next frame interval. This
avoids unnecessary work in the frame callback (which is gated on the
state being AnimationFrame).

Fix an issue where an animation frame could end up being scheduled,
although a synchronization had been triggered already (via
updateAnimations() and a syncbase dependency for instance). Similarly also
avoid increasing the timer in begin() for similar cases.

BUG=231576

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169259 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: serialize protocol messages outside of main event loop.

BUG=352497

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169260 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 169211 "Compute the keyTimes index correctly for discrete..."

The following tests crash on debug bots:
svg/W3C-SVG-1.1/animate-elem-11-t.svg,svg/W3C-SVG-1.1/animate-elem-15-t.svg,svg/W3C-SVG-1.1/animate-elem-82-t.svg,svg/animations/animate-elem-11-t-drt.html,svg/animations/animate-elem-15-t-drt.html,svg/animations/animate-keytimes-crash.html,svg/animations/animateMotion-multiple.html,svg/animations/mozilla/animateMotion-to-overridden-1.svg

One example: http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Mac10.6%20%28dbg%29/builds/13222/steps/webkit_tests/logs/stdio

> Compute the keyTimes index correctly for discrete (values) animations
> 
> The last value is allowed to be non-one for discrete mode animations (but
> not for linear and spline mode animations).
> 
> TEST=svg/animations/animate-elem-{14,18}-t-drt.html
> BUG=350318
> 
> Review URL: https://codereview.chromium.org/197283002

TBR=fs@opera.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169261 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove unneeded check in requestPaintingResource

The check is not needed because hasFill/hasStroke calls above check the same thing.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169262 bbb929c8-8fbe-4397-9dbb-9b2b20218538
TestExpectations update, gardening.

virtual/serviceworker/http/tests/serviceworker/registration.html
virtual/threaded/animations/sample-on-last-keyframe.html

BUG=352703,352705
TEST=
TBR=zmo@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169263 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add plumbing for font-stretch

Implement support for parsing and querying the font-stretch CSS
property, for extracting the font-stretch from the short-hand font
property, and for querying the font-stretch through getComputedStyle.

Note that this patch does _not_ implement the font-stretch
functionality itself, it merely adds the required plumbing.

Request to implement thread:
  https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/N24I2zJemvI

Entry in Chromium Dashboard:
  http://www.chromestatus.com/features/4598830058176512

R=dglazkov@chromium.org
BUG=331119
TEST=fast/css3-text/font-stretch.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169264 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Extract the WebInspector namespace into WebInspector.js

The trivial code with no dependencies goes into WebInspector.js, too.
The externs.js file has been cleaned up accordingly.

R=pfeldman, vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169265 bbb929c8-8fbe-4397-9dbb-9b2b20218538
import: Remove master-only pending stylesheet counting.

As imports now wait stylesheets loading before ready, the special case
handling of pending stylesheet in StyleEngine is no longer needed.
This chagne removes it.

Instead, ready-to-layout decision has to take imports into account.
This change let Document::shouldScheduleLayout() to do that.

TEST=import-style-link.html,import-style-link-block.html
BUG=326153
R=dglazkov@chromium.org, esprehn@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169266 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Avoid unnecessary conversion when clipping

Core has many callers to to the IntRect flavor of
GraphicsContext::clip. Previously, the IntRect would be
converted first to a FloatRect, then to an SkRect. This
patch avoid the unnecessary FloatRect intermediary step.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169267 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename FontItalics to FontStyle to match CSS terminology

Rename the FontItalics enum, the FontDescription italics/ 
setItalics methods and wrappers to FontStyle, style and style 
respectively to better match the CSS terminology. 

R=dglazkov@chromium.org, adamk@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169268 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Get rid of unnecessary layouts on body elements with quirky children

RenderBlockFlow::marginBeforeEstimateForChild() was checking the wrong
margin when detecting quirky children. The performance test added by
this patch times out without the change in this CL - obviously a
pathological case!

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169269 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move DeviceSensorEvent* h|cpp files to a common module

DeviceSensorEvent* h|cpp files resided under device_orientation as
device_orientation and motion were the only ones to use them. As more
Device Apis are added using the module system in Blink
(e.g. Ambient Light) we need to move these files to a common place (Source/core/frame) to
avoid any cross module dependency.


Encounted this issue while adding Ambient Light support ->
https://codereview.chromium.org/143823004/

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169270 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove Uniscribe code path

As of M33 all channels use harfbuzz on windows thus the Uniscribe code
path can be removed. This removes the blink Uniscribe implementation and
supporting code and brings the number of text shaping implementations
down to two (hb and coretext).

R=leviw@chromium.org
BUG=313423

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169271 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 169268 "Rename FontItalics to FontStyle to match CSS term..."

Had to revert this so we can revert 169264.

> Rename FontItalics to FontStyle to match CSS terminology
> 
> Rename the FontItalics enum, the FontDescription italics/ 
> setItalics methods and wrappers to FontStyle, style and style 
> respectively to better match the CSS terminology. 
> 
> R=dglazkov@chromium.org, adamk@chromium.org
> 
> Review URL: https://codereview.chromium.org/196983014

TBR=eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169272 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 169264 "Add plumbing for font-stretch"

Cause the below tests to crash on Linux Debug:

fast/dom/shadow/pseudoclass-update-checked-option.html,fast/dom/shadow/pseudoclass-update-disabled-option.html,fast/dom/shadow/pseudoclass-update-enabled-option.html

http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan%20%28dbg%29/builds/1058

> Add plumbing for font-stretch
> 
> Implement support for parsing and querying the font-stretch CSS
> property, for extracting the font-stretch from the short-hand font
> property, and for querying the font-stretch through getComputedStyle.
> 
> Note that this patch does _not_ implement the font-stretch
> functionality itself, it merely adds the required plumbing.
> 
> Request to implement thread:
>   https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/N24I2zJemvI
> 
> Entry in Chromium Dashboard:
>   http://www.chromestatus.com/features/4598830058176512
> 
> R=dglazkov@chromium.org
> BUG=331119
> TEST=fast/css3-text/font-stretch.html
> 
> Review URL: https://codereview.chromium.org/199423003

TBR=eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169273 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enable CSS touch-action by default

Blink intent to ship: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/sc5lHnlcLvM

Removing the unused flag is tracked in crbug.com/258459

BUG=258459

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169275 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove a few passing tests from TestExpectations

virtual/threaded/transitions/position-background-transition.html
w3c/web-platform-tests/shadow-dom/events/retargeting-focus-events/test-002.html
w3c/web-platform-tests/shadow-dom/shadow-trees/lower-boundary-encapsulation/distribution-001.html
w3c/web-platform-tests/shadow-dom/shadow-trees/lower-boundary-encapsulation/distribution-002.html

BUG=330083/328749
TEST=
TBR=zmo@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169276 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add back window.showModalDialog

This is a revert of r167736 plus
changes to make it compile after the
Frame -> LocalFrame rename.

We are temporarily adding back window.showModalDialog
for M35, but plan to attempt removal again in M36.

BUG=345831

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

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