Find-in-page: Search text in author shadow roots by default.

This patch lets findPlainText() enter shadow roots by default. This should
make text in author shadow roots searchable by default.

BUG=244955

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163751 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Delete 2 redundant bindings tests: TestExtendedEvent.idl and TestEvent.idl

TestExtendedEvent.idl and TestEvent.idl are superseded by the much more
comprehensive TestInterfaceEventConstructor.idl, and do not test anything
separate, so delete.

NOTRY=true
TBR=haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163752 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Enforcing that document.register requires the extends param for SVG elements.

The spec states that document.register must throw an exception if the prototype is an SVG element but this is not currently enforced.

BUG=323069

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163753 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Temporarily add ImageOnlyFailure for fast/css/font-face-woff2.html

We are going to switch the compression algorithm of WOFF 2.0 from LZMA to
Brotli. Currently fast/css/font-face-woff2.html tests a LZMA-compressed
woff2 font, so switching third_party/ots to Brotli would break the test.
Once we switched to Brotli, we will remove this expectation and update
the test font.

BUG=307828

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163754 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make import-insert.html less flaky

The test used zero-timeout retry. This change replaces it
with exponential backoff.

TEST=import-insert.html
BUG=none
R=tkent,haraken

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163755 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Allow image caching to be disabled with ImageDecodingStore

This change is to enable the new Skia discardable memory path. In this
new path Skia is managing the image cache. ImageDecodingStore should not
cache images in this case. We still want to cache decoders for
progressive decoding and animtions.

This new method is ugly and is temporary. Once the transition to the
new path is complete all code with image caching can be removed.

BUG=318490

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163756 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[CSS Shapes] Simplify RectangleShape implementation

Instead of caching an instance of a private FloatRoundedRect (ish) class for RectangleShape's shape-margin and shape-padding bounds, we just compute the shape-padding or margin FloatRect and radii as needed. This reduces the class's footprint a little and it simplifies the implementation.

Removed the private RectangleShape::ShapeBounds class and made its cornerInterceptForWidth() method a static function. Added members for the RectangleShape constructor args, and private getters for their properties. 

There are no new tests because this is just an internal refactoring.

This change is similar to this BoxShape footprint reduction: https://codereview.chromium.org/105063004.

BUG=327838

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163757 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use SkFontMgr for webfont construction on windows

Change FontCache to expose the SkFontMgr implementation and use that to
construct webfonts on windows. This way the appropriate font manager
(DirectWrite or GDI) is used for webfonts just as it is for system
fonts.

BUG=25541
R=schenney@chromium.org,pdr@chromium.org

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

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