[DirectWrite] Add support for font-stretch suffixes

Add support for font family names with a font-stretch suffix (such as
Condensed, UltaExpanded, Narrow etc). If the full name fails to match an
installed font check for a font-stretch suffix and if so strip it and
set the stretch value according to the suffix.

The current implementation matches IE when it comes to picking or
overriding the stretch value based on the suffix.

The coresponding logic for font-weight suffix matching was implemented
in r181493.

TEST=fast/text/font-stretch-variant.html
BUG=410940
R=cpu@chromium.org, dglazkov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182061 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: fix CSS indents for paint command log

TBR=loislo

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182062 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix adopting a video element with controls
    
This CL moves the creation of video controls from
HTMLMediaElement::prepareForLoad() to HTMLMediaElement::loadInternal().
This is needed because Blink forbids synchonous dispatch of events within
Node::appendChild() but creating the controls causes events to be
dispatched synchronously, hence causing a crash if the controls are
created within appendChild().
    
appendChild() calls prepareForLoad() synchronously, but calls loadInternal()
asynchronously.
    
This CL also adds a new layout test testing appending video elements with
controls.
    
BUG=414373

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182065 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Drop SVG_PAINTTYPE_* values that are never used (written)

Drop SVG_PAINTTYPE_UNKNOWN and SVG_PAINTTYPE_*_ICCCOLOR since there's
currently no code that sets anything to those values, and since they're
no longer part of a Web-facing API.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182066 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Measure subresource requests for "legacy" protocols and credentialed URLs.

This patch treats adds a UseCounter for subresource requests for protocols like
FTP and Gopher from "webby" security origins. It also adds a counter for URLs
with embedded credentials. Depending on the numbers, we may be able to take more
drastic action than measurement in the future.

BUG=413586

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182068 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Let parent handle invalidation of RenderText

Instead of letting invalidateTreeIfNeeded() work for RenderText,
this CL let RenderText's parent handle invalidation of RenderText
during invalidateTreeIfNeeded().

This avoids the complexity of implementing a correct and efficient
RenderText::clippedOverflowRectForPaintInvalidation(), and I believe
the performance is also better than full-functional RenderText
invalidation.

BUG=394133,409068

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182069 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Added "async" flag for some methods handled in browser.

This flag will be used by code generator in content.
Removed unnecessary "optional" from Input.emulateTouchFromMouseEvent

BUG=405566

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

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

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

BUG=410940
TBR=eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182074 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Update watchlist entries for pdr's email filtering experiment

This patch updates the watchlist entries for pdr.
I don't want to create specific lists just yet.

TBR=leviw
NOTRY=true
BUG=pdr gets too much email

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182076 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement media cast buttons
    
This implements a Cast button in the default media controls, and a second,
overlayed Cast button on videos that don't use the default controls.
    
Pressing the Cast button asks the browser UI to bring up cast device
selection menu. If a device is selected the video or audio will be played
on that device, rather than locally.
    
The Cast buttons are only displayed when there are cast devices available.
Currently Blink will only ever be told that there are cast devices available
by Chrome for Android.
    
BUG=390125

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182077 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added postIpcTask to the Blink Scheduler

Added postIpcTask to the Blink Scheduler.  Under the hood these are
regular tasks that high priority tasks may skip ahead of.  Later these
are expected to be changed to high priority tasks when all slow IPC
tasks have been refactored to be fast.

Also fixed the names of a number of tests and removed a
test that was essentially a duplicate of
testDidReceiveInputEvent_DoesntTriggerLowLatencyModeForLong.

Patch by Alex Clarke <alexclarke@chromium.org>

BUG=391005
TBR=eseidel@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@182078 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix sizing issue of svg as html image

When a html img's src changes from one svg to another, previously the
inner content rect is not correctly updated causing the second svg is
not correctly sized. This is a regression caused by
http://src.chromium.org/viewvc/blink?view=rev&revision=180015 which
call updateInnerContentRect() only if replacedContentRect changes,
missing the case of src change.

Now always call updateInnerContentRect() in RenderImage::layout()
(as before the regression).

The issue only reproduced if the svg is loaded with http protocol.

BUG=412444
TEST=http/tests/svg/image-size-on-src-change.html

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

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