Add more DOM*.idl types as ScriptWrappable.

R=abarth@chromium.org
BUG=236671

Review URL: https://chromiumcodereview.appspot.com/14654010

git-svn-id: svn://svn.chromium.org/blink/trunk@150334 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 150289 "Delete FrameLoader::m_policyDocumentLoader."

It's thought this may be causing the MISSING failures for http/tests tests.

Let's see if it is.

> Delete FrameLoader::m_policyDocumentLoader.
> 
> This is a second attempt at
> http://src.chromium.org/viewvc/blink?view=revision&revision=148729
> 
> BUG=none
> TEST=none
> 
> Review URL: https://chromiumcodereview.appspot.com/14969018

TBR=japhet@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150335 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Hoping that http/tests/ stop failing, removing expectations so bots will warn if not.

BUG=
TBR=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150336 bbb929c8-8fbe-4397-9dbb-9b2b20218538
inspector/profiler/heap-snapshot-comparison-expansion-preserved-when-sorting.html is flaky

BUG=240821
TBR=caseq@google.com

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150338 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Round test runtimes in full_results.json.

Now that we don't list all tests, there's no point in including the full
precision time since that was only useful for replacing times_ms.json.
Also, look at test_run_time instead of total_run_time. We don't want
to include in this time the time it takes to compute diffs. We just
want to know the time for the sake of handling timing out tests.

The run_webkit_tests_integrationtest changes are just because the python
dictionary is printing out in a different order.

Review URL: https://chromiumcodereview.appspot.com/14625015

git-svn-id: svn://svn.chromium.org/blink/trunk@150339 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Readd asserts against calling mapAbsoluteToLocalPoint during layout.

I removed these assertions in r127681 for centering <dialog> in the
viewport. It was incorrect to do so: converting from absolute to local
coordinates during a renderer's layout incorrectly assumes its ancestors
have been already laid out. Now that dialog's containing block is the
initial containing block, it's no longer necessary to convert.

The assertions were originally added in r38186 and r50184.

BUG=234072

Review URL: https://chromiumcodereview.appspot.com/14701018

git-svn-id: svn://svn.chromium.org/blink/trunk@150340 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make device orientation objects ScriptWrappable

This change allows for binding integrity checks to be applied to these objects.

R=abarth@chromium.org
BUG=236671

Review URL: https://chromiumcodereview.appspot.com/15035006

git-svn-id: svn://svn.chromium.org/blink/trunk@150341 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement filter primitive subregion for reference CSS filters.  This required copying determineFilterPrimitiveSubregion() from RenderSVGResourceFilter out into FilterEffect, and modifying it slightly (to accommodate CSS's inflatable result rects; see below). This also required refactoring m_filterRegion and m_absoluteFilterRegion into the Filter base class, and giving its accessors sane names.

There was also a call to setClipsToBounds(false) for the FilterOperations nodes converted to FilterEffects.  However, this is not correct for reference filters -- they should clip to their filter primitive subregion.  (In fact, it was only being called on the final node in a reference effect chain, just to be super-confusing.)  This was fixed by calling setEffectBoundaries() while building the reference filter, and skipping the call to setClipsToBounds(false).

The filter outsets for reference filters are now computed by recursively traversing the DAG, so the graphics layers will be created at the appropriately-inflated size, as is done for shorthand filters. The actual per-FilterEffect-subclass computation (mapRect) was refactored from the existing code to compute absolutePaintRects, and made bidirectional. It's used for computing outsets in the forward direction, and source rects in the reverse direction.

We now no longer call setMaxEffectsRects() directly, but instead call determineFilterPrimitiveSubregion() recursively on the output node. This will set the maxEffectRect as well as the absolutePaintRect, inflating and clipping as necessary. This uses the filter primitive subregion (if set, as in the reference filter case), or the source rect (if not).

Note that this patch only supports filter primitive subregion, not filter effect region, which still defaults to 100% of the filterBoxRect.

Finally, I noticed that the colorspace for reference filters was not being correctly set either (same place as the setClipsToBounds() call).  That will require a bunch of rebaselines, however, so it'll be fixed in a separate patch.

BUG=237518
R=schenney@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@150342 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web MIDI: implement MIDIOutput

This change implements MIDIOutput interfaces.
send methods are not implemeneted yet.

BUG=163795
TEST=none
R=crogers@google.com,haraken@chromium.org

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

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

Review URL: https://chromiumcodereview.appspot.com/14442004

git-svn-id: svn://svn.chromium.org/blink/trunk@150343 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a new interface WebPrescientNetworking to trigger preconnect from Blink.

The preconnect from Blink is always issued with motivation information WebPreconnectMotivation, so we can evaluate precision/coverage of the triggers.

This API is to be triggered from {mouse,gesture}-events on HTMLAnchorElement.

BUG=235361

Review URL: https://chromiumcodereview.appspot.com/14746002

git-svn-id: svn://svn.chromium.org/blink/trunk@150344 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rename WebFont.LoadTime.* histograms so they will show up on the dashboard in increasing order.

BUG=237058

Review URL: https://chromiumcodereview.appspot.com/14972016

git-svn-id: svn://svn.chromium.org/blink/trunk@150345 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix anoymous block merging when floating children are moved

When a portion of the render tree is being detached, anonymous blocks will be
combined as their children are deleted. In this process, the anonymous block
later in the tree is merged into the one preceeding it.  It can happen that the
later block contains floats that the previous block did not contain, and thus
are not in the floating objects list for the new block. This can result in the
new block containing floats that are not in it's floating objects list, but are
in the floating objects lists of siblings and parents. This can cause problems
when the float itself is deleted, since the deletion code assumes that if a
float is not in it's containing block's floating objects list, it isn't in any
floating objects list, causing dangling pointers in the floating objects lists
of the siblings and parents. In order to preserve this condition (removing it
has serious performance implications), we need to copy the floating objects
from the old block to the new block.  The float's metrics will likely all be
wrong, but since the new block is already marked for layout, this will get
fixed before anything gets displayed.

BUG=230907
R=esprehn@chromium.org, inferno@chromium.org

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

Patch from Bem Jones-Bey <<200b>bjonesbe@adobe.com>.

git-svn-id: svn://svn.chromium.org/blink/trunk@150346 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Support multiple HRTFDatabases for different sample-rates

This removes the limitation which required OfflineAudioContexts to be created at native sample-rate

BUG=none
TEST=layout tests pass
R=kbr@chromium.org

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

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