Merge 181273 "Speculative fix to the crash when calling Canvas2D..."

> Speculative fix to the crash when calling Canvas2DLayerBridge::mailboxReleased
> 
> The reference to Canvas2DLayerBridge held by MailboxInfo must be transferred
> when it is copied out, otherwise it would canuse undefined behaviour.
> 
> BUG=405289
> 
> Review URL: https://codereview.chromium.org/521103002

TBR=hongbo.min@intel.com

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181735 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181492 "[DirectWrite] Disable subpixel font positioning fo..."

> [DirectWrite] Disable subpixel font positioning for certain fonts/sizes
> 
> Conditionally disable subpixel text for certain older fonts at sizes
> below 16px in order to improve legibility and rendering quality. This is
> limited to a specific set of fonts and does not apply to webfonts.
> This list of fonts in question includes all fonts in the "Microsoft Core
> fonts for the Web" collection.
> 
> Specifically the following fonts: arial, courier new, times new roman,
> andale mono, comic sans, impact, georgia, trebuchet, verdana, webdings,
> tahoma, and lucida console.
> 
> R=cpu@chromium.org, scottmg@chromium.org
> BUG=405445,395425
> 
> Review URL: https://codereview.chromium.org/544843004

TBR=eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181739 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181484 "Opt out of composited scrolling with border radius."

> Opt out of composited scrolling with border radius.
> 
> This currently causes correctness and memory issues due to the way the
> compositor handles masking out the corners. Let's punt on this for now.
> 
> BUG=409984,365828
> 
> Review URL: https://codereview.chromium.org/544183002

TBR=vollick@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181750 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 180978 "DevTools: fix CodeMirror interaction with shortcut..."

> DevTools: fix CodeMirror interaction with shortcut handling system
> 
> The shortcut handler subsystem assumes that a keydown should not invoke
> a shortcut handling logic if there is subsequent "input" event.
> 
> The codemirror generally relies on input event from its hidden text area
> to handle user input, so at this stage it plays well with our shortcut
> handler. But additionally it has its own "shortcut handling" machinery,
> aka "custom keymaps". When it executes some action for the shortcut,
> the text area might not change, and the input event will not trigger.
> This is the reason of the misbehavior, described in the patch.
> 
> The patch adds public dismissPendingShortcutAction on shortcut handler
> so that it could be reused in CodeMirrorTextEditor.
> 
> BUG=406865
> R=vsevik
> 
> Review URL: https://codereview.chromium.org/514633002

TBR=lushnikov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181753 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181563 "Partial revert of r178392"

> Partial revert of r178392
> 
> An unnecessary modification that was made in Blink r178392 was causing
> a regression in the rendering of the inspector timeline.  Pulling it out
> 
> BUG=408080
> R=kbr@chromium.org
> 
> Review URL: https://codereview.chromium.org/540423002

TBR=junov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181760 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181649 "Fix crash when trying to iterate over words in an ..."

> Fix crash when trying to iterate over words in an inline text box of length zero.
> 
> BUG=373885
> 
> Review URL: https://codereview.chromium.org/542553002

TBR=dmazzoni@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181771 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181487 "Editing: Let Selection.collapse with null clears s..."

> Editing: Let Selection.collapse with null clears selection.
> 
> The current spec says Selection.collapse(null) raises exception and the 
> implementation follows.
> However, many web apps assume that chrome clears selection when 
> Selection.collapse(null) calls.
> Thus we revert the behavior.
> 
> BUG=395318
> 
> Review URL: https://codereview.chromium.org/546703003

TBR=yoichio@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181788 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181679 "Fix crash in Canvas2DLayerBridge after a GPU resou..."

> Fix crash in Canvas2DLayerBridge after a GPU resource is lost
> 
> BUG=411864
> TEST=blink unit test Canvas2DLayerBridgeTest.testPrepareMailboxAndLoseResource
> 
> Review URL: https://codereview.chromium.org/552423002

TBR=junov@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181836 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181659 "Reland "Go back to old underline position and thic..."

> Reland "Go back to old underline position and thickness logic"
> 
> In r174431 from May this year we changed the underline position and
> thickness logic to respect the underline data specified in the font.
> While this improved rendering for certain fonts and scripts it did cause
> a regression for others. This change reverts to the old behavior while
> we figure out how to handle fonts with inaccurate or undesirable
> metrics.
> 
> BUG=408075
> TBR=keishi@chromium.org
> 
> Committed as r181591 and reverted in r181607 due to missing XP
> expectations.
> 
> Review URL: https://codereview.chromium.org/555883002

TBR=eae@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181839 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 179627 "Remove unused UseCounter features"

> Remove unused UseCounter features
> 
> These are the reviews in which the enum values became unused:
> 
> SVGInstanceRoot:
> https://codereview.chromium.org/272523002
> 
> PromiseConstructor/PromiseCast/PromiseReject/PromiseResolve:
> https://codereview.chromium.org/293933002
> 
> TextAutosizingLayout:
> https://codereview.chromium.org/346603005
> 
> PrefixedElementRequestPointerLock/PrefixedDocumentExitPointerLock/PrefixedDocumentPointerLockElement:
> https://codereview.chromium.org/437443005
> 
> PrefixedConvertPointFromPageToNode/PrefixedConvertPointFromNodeToPage:
> https://codereview.chromium.org/428533003
> 
> MixedContentTextTrack:
> https://codereview.chromium.org/348853009
> 
> Review URL: https://codereview.chromium.org/442323002

TBR=jochen@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181937 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert 179135 "Remove webkitConvertPointFromPageToNode() and web..."

> Remove webkitConvertPointFromPageToNode() and webkitConvertPointFromNodeToPage()
> 
> Intent to Deprecate and Remove:
> https://groups.google.com/a/chromium.org/d/msg/blink-dev/KS5GAM7JXtg/7KyhsqQFZMkJ
> 
> BUG=398352
> 
> Review URL: https://codereview.chromium.org/428533003

TBR=jochen@chromium.org

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



git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@181966 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181530 "Fix userVisibility for files in ChromeOS filesystems."

> Fix userVisibility for files in ChromeOS filesystems.
> 
> In Web applications, the Filesystem API is used to create sandboxed
> filesystems. Files in these filesystems should never be shown in a
> filepicker. ChromeOS supports a few special filesystems (Downloads,
> Gallery) where the files should be shown in filepickers.
> 
> This change fixes the userVisibility property for File instances created
> from such filesystems.
> 
> BUG=398366
> 
> Review URL: https://codereview.chromium.org/516763002

TBR=costan@gmail.com

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@182037 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Merge 181873 "Don't clip invalidation of composited scrolling co..."

> Don't clip invalidation of composited scrolling contents
> 
> The compositor expects that the whole composited scrolling layer to be
> invalidated in time and won't update the tiles that are newly visible
> when scrolled if the tiles are up-to-date from the compositor side.
> 
> If we clip invalidations, the compositor will think the layer areas
> outside of the clip are all valid and won't repaint them.
> 
> BUG=412516
> TEST=compositing/repaint/should-not-clip-composited-viewport-scrolling-layer.html
> TEST=compositing/repaint/should-not-clip-composited-overflow-scrolling-layer.html
> 
> Review URL: https://codereview.chromium.org/566433002

TBR=wangxianzhu@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/branches/chromium/2125@182060 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[TEMP][IVI] WebGL: Turn off MSAA.

MSAA is disabled for now and will be enabled once known issues are fixed for IVI.

BUG=https://crosswalk-project.org/jira/browse/XWALK-1113