ASSERTION FAILED: std::isfinite(num) in WebCore::CSSPrimitiveValue::CSSPrimitiveValue

SVG's styling properties like 'font-size' can not handle huge numbers represented by
the 'inf' value and they make the assertion check fail. Simple CSS properties with
such huge values are handled in CSSParser by setting them to zero. With this patch
we apply this behaviour on SVG styling properties, too.

The fix is based on WebKit changeset: http://trac.webkit.org/changeset/166114 (Patch by Martin Hodovan)

R=pdr@chromium.org
BUG=364031

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171796 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use treescope for all SVG references

This patch changes how SVG references are looked up by using
the treescope instead of the document for id references. If an
SVG element is in a shadow tree, its id references will now be
confined to this tree. If an SVG element is simply in a document, its
id references will match in the document but not down into shadow trees.

This patch handles all reference lookups except for animations
(see: crbug.com/363927).

BUG=356891

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171797 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Adding use counters for non-standard 2D canvas APIs

BUG=363198

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171798 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix width Media Queries zoom bug

http://src.chromium.org/viewvc/blink?revision=170314&view=revision introduced a bug where zoom changes weren't impacting viewport width calculations in Media Query evaluation, since these calculations were done according to the given style's effectiveZoom().
Since StyleResolver is using the root style to perform these MQ evaluation, the style's effectiveSize() was not impacted by zoom.
I've now changed these calculations to be done based on the frame's document RenderView, like it used to be before this change.

BUG=362428

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171799 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Simplify compositing layout tests that make use of media elements.

There's no need to do a seek-play-pause dance to make sure video has
been displayed.

This also fixes flakiness in
compositing/visibility/visibility-simple-video-layer.html caused by the
three videos racing to complete its respective seek-play-pause dance.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171800 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Fix flaky reattachAfterCrash test

Chromuim-part of this patch: https://codereview.chromium.org/239543007/

BUG=163411

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

git-svn-id: svn://svn.chromium.org/blink/trunk@171801 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark Ahem virtual/directwrite-windows tests as NeedsManualRebaseline

Now that content_shell supports side loading the Ahem font when running
with DirectWrite change the expectations from Skip to
NeedsManualRebaseline in order to get new baselines from the bots.

TBR=dglazkov@chromium.org

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

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