Gardening: Layout Test fast/html/imports/import-custom-element-in-grandchild.html is flaky

BUG=370814
TBR= morrita
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173503 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Oilpan: Make HTMLMediaElement HeapSupplementable.

R=ager@chromium.org
BUG=

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173504 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Implement "Save image as" for canvas.

Many users want to save the <canvas> as a image file. (like <img>)
As well as being useful, The feature is already supported in Firefox and IE.

Chromium side:
  https://codereview.chromium.org/263453007/

BUG=19277, 129710

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

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

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

BUG=369609
TBR=enne@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173506 bbb929c8-8fbe-4397-9dbb-9b2b20218538
TextFinder: find() should work with shadow trees.

The core of TextFinder::find() is Editor::rangeOfString(), which needs to
use Position-based text iteration (i.e. use findPlainText() taking Position
arguments) to be able to handle shadow trees correctly.

This patch fixes the implementation, and also does some cleanups of it.

Note that the new implementation is largely similar to what TextFinder::
scopeStringMatches() does; in the future, the two could be merged into one to
avoid code duplication.

Adds a few unit tests in TextFinderTest to confirm the behavior.

BUG=361521

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173507 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Let the Leak Sanitizer ignore PageMemory objects

The LSan runs before the shutdown sequence runs. PageMemory is released in the shutdown sequence. As a result, the PageMemory is reported as leaking in LSan.

To suppress the report, this CL adds an annotation to let LSan ignore PageMemory objects.

See the bug description for more details.

BUG=369429

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

git-svn-id: svn://svn.chromium.org/blink/trunk@173508 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move the remaining color properties out of oldApplyProperty

Move the following properties out of oldApplyProperty:
-webkit-tap-highlight-color
lighting-color
flood-color
stop-color

I've called the converter for the svg color properties convertSVGColor instead
of convertColor since they are parsed slightly differently to the rest of the 
css colors (we resolve e.g. red to a RGBA value in the parser for svg colors,
while in the StyleBuilder for css colors). The other color property
-webkit-tap-highlight-color I've used custom_value for, but we can later move
this to StyleBuilderConverter::convertColor and call into this from the rest of
the css color properties.

BUG=237400

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

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