Revert r160103 "Revert 160091 "DevTools: handle toolbar resize on screencast res...""

TBR=kaznacheev
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160191 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Vibration API: truncate input instead of returning false.

BUG=309587

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160192 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [Styles] Make sure WebInspector.Color.Nicknames keys are lowercase

R=pfeldman, vsevik
BUG=307482
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160193 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Show the prefix 'Error during WebSocket handshake: ' for all failures in handshake

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160194 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Test setting string properties to null on <audio>, <video>, <source> and <track>

http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html

The spec doesn't have [TreatNullAs=NullString] for any of these
properties, so the added tests are actually wrong for mediaGroup,
poster and src. The implementation will be fixed in future commits.

BUG=none

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160195 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve 'not enough arguments' messages in bindings.

This patch replaces the remaining throwNotEnoughArguments calls with
throwTypeError calls containing reasonable error messages.

BUG=270033

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160196 bbb929c8-8fbe-4397-9dbb-9b2b20218538
StyleResolver::appendAuthorStyleSheets should check whether scoping node is really document or not.

Suppose that we are removing two style elements in a shadow tree at the same time:
For example, changing innerHTML from '<style>...</style> ... <style>...</style>' to '',

When one style element is being removed (i.e. in HTMLStyleElement::removedFrom), another one is still in document.
However, containing shadow root of both elements is 0.
So ScopedStyleResolver::scopingNodeFor returns 0 and styles in document will be modified.
This is a problem.

TEST=fast/dom/shadow/remove-styles-in-shadow-crash-2.html

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160197 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Repaint background when using auto sizing for generated images

Generated backgrounds were not getting repainted when "background-size: auto"
was set and child elements changed height.

BUG=230398

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160198 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix LayoutTest animation/timing-model.html

Some checks were failing because the test was incorrectly specifying a zero
iteration count.

According to the spec, 'the first value that can be parsed as a <time> is
assigned to the animation-duration, and the second value that can be parsed as
a <time> is assigned to animation-delay'. Since '0' (unlike other numbers
without units) can be parsed as a time, we need to explicitly specify both the
duration and delay before specifying an iteration count of zero.

Also re-order other property values to use a consistent ordering.

BUG=258896
R=dstockwell

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

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