Allow createBuffer to support rates from 3-192 kHz.

The spec requires a minimum range of 22.05-96 kHz. (http://webaudio.github.io/web-audio-api/#widl-AudioContext-createBuffer-AudioBuffer-unsigned-long-numberOfChannels-unsigned-long-length-float-sampleRate)

Add two new tests to verify that 3 kHz and 192 kHz are allowed and
update expected test results for allowed range.

BUG=344375

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169980 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Convert line endings of zoom-img-preserveAspectRatio-support-1.html to unix

BUG=345027
R=japhet@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169981 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move GraphicsContextTest to platform/ and fix the test environment.

Previously, no Blink platform was initialized, leading to a segfault
when a trace event occurred in NativeImageSkia::draw.

This was fixed by making the platform unit test runner provide a
minimal platform by default. The gyp target was adjusted to match the
way blink_heap_unittests, for example, sets up its environment.

This seems like a reasonable compromise between having a null platform
and having a more complete platform implemented on the Chromium side,
like the web unit tests have.

BUG=353585

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169982 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove didChangeValueInTextField(HTMLInputElement&) and textFieldDidChange(const WebInputElement&)

The argument for these functions have been replaced by HTMLFormControlElement. Since changes at
both chromium and blink sides are landed, it's safe to remove these functions.

R=isherman@chromium.org, tkent@chromium.org
BUG=332557

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169983 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[repaint-after-layout] Skip full repaint if the style difference is layout.

Currently in RenderBox::styleWillChange we will issue a view()->repaint() if the
node is the HTML or body element and the diff >= StyleDifferenceRepaint. For
repaint-after-layout, if this is StyleDifferenceLayout, we will do the layout
and end up issuing the same invalidation again.

This CL makes the view()->repaint() call conditional on either
  1) repaint-after-layout is disabled
  2) this is not a StyleDifferenceLayout.

BUG=320139

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169984 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove old touch-event based hover/active tests.

All touch based state is set via gesture events so there is no need for these tests.

BUG=325930

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169985 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add comments to tell UseCounter availability in branches.

BUG=
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169986 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r169756

http://src.chromium.org/viewvc/blink?view=revision&revision=169756

BUG=344497,352628
TBR=fmalita@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169987 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Auto-rebaseline for r169714

http://src.chromium.org/viewvc/blink?view=revision&revision=169714

BUG=354688
TBR=abarth@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169988 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Prepare to move SQLError to oilpan heap.

Without this CL, a SQLError object can be constructed in a database thread,
moved to main/worker thread, and referred by JavaScript object in the
main/worker thread.

We can't move object ownership over threads in Oilpan. So, we should not
construct SQLError objects in a database thread. Unlike the SQLResultSet case
[1], SQLError is created by multiple classes and it's hard to make sure they
create SQLError in a context thread.

So, this CL introduce SQLErrorData, which is an immutable data container. We can
construct a SQLErrorData object in a database thread, and move it to a context
thread, then construct a SQLError with the SQLErrorData object.

Note:
* Change the return type of AbstractSQLStatementBackend::sqlError from
PassRefPtr<SQLError> to SQLErrorData* because the function doesn't release the
ownership of the SQLErrorData object.

[1] https://src.chromium.org/viewvc/blink?revision=169929&view=revision

BUG=347902

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169989 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move all style invalidation code into the css/invalidation directory.

Also rename StyleInvalidationAnalysis to StyleSheetInvalidationAnalysis, to distinguish from StyleInvalidator.

BUG=
R=ojan@chromium.org, rune@opera.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169990 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a WebCrypto API for getting digests by chunk.

Currently the WebCrypto API only has support for one-shot digests. This CL
provides the necessary API scaffolding for methods to generate digests one chunk
at a time.

BUG=349514

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169991 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Hoist compositorDrivenAcceleratedScrollingEnabled check out of scrollParent

This CL moves the compositorDrivenAcceleratedScrollingEnabled check out of
scrollParent so that it's clearer in the callers that this code only does
something when this setting is enabled.

In compositorDrivenAcceleratedScrollingEnabled, this lets us call
compositorDrivenAcceleratedScrollingEnabled once instead of twice, which is
faster. In a future CL, I'll cache compositorDrivenAcceleratedScrollingEnabled
as a compositing trigger, which will make this code actually go fast.

This CL also reorders a bunch of methods in CompositingReasonFinder.cpp to make
it clearer which of these functions are called during style recalc and which
are call unconditionally on all RenderLayers.

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

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

There's no evidence that this fast path actually matters, the only difference 
seems to be the number of if and switch statements. If it does we should look 
into how we can make the regular SelectorChecker faster instead of having two modes.

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

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

This feature makes the insertedInto tree walk much more complicated and
is the source of security bugs. We've had it disabled behind a flag for a
while now and not seen complaints or bugs from users.

BUG=333318

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169994 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add an actionable error message when image diff fails.

BUG=278596

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169995 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Count Web SQL Database usage in Workers.

Web SQL Database is an obsolete specification.
We already count Web SQL Database usage in the DOMWindow context.

BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169996 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up handling of autosizing state changes.

All page-level state changes now go through updatePageInfo, which marks blocks
as needing layout if their multipliers might need updating.

This simplifies the flow and ensures the page updates correctly on orientation
changes and movements of the text scaling slider in accessibility settings.

BUG=353309,347384

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169997 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix dependencies for EventInterfaces.in

EventInterfaces.in should depend on event IDL files.
It currently doesn't, which means it fails to rebuild correctly.
This fixes it.

TBR=haraken
BUG=341748

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

git-svn-id: svn://svn.chromium.org/blink/trunk@169998 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove createContentDecryptionModule() from platform.h

This method is no longer being called, and can be removed.

BUG=250049
TEST=encrypted media layout and browser tests pass

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

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