Respect fallback colors when interpolating text-decoration-color.

Currently, we interpolate the incorrect colors if one of the fallback
colors (other than currentColor) are used for text decoration. This happens
because we bypass the fallback code when creating the AnimatableValues.

This patch moves the color retrieving code for text decoration into
the main RenderStyle::colorIncludingCallback function, and changes callers
to use visitedDependentColor/colorIncludingFallback also for
CSSPropertyTextDecorationColor. This is better, because you don't have to
do anything special with the text decoration color compared to all other
colors.

R=alancutter@chromium.org
BUG=435546

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185870 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove our own implementation of promise_test().

Support for promise_test was introduced upstream by asanka@ in the
following revision, making our own implementation redundant:
  https://github.com/w3c/testharness.js/commit/821d133c37fdb7c74e98d3578fbd36823d2c507b

BUG=433962

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185871 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make ensureCompositedMappingLayer() to be a void function.

Eliminated CompositedLayerMapping* as return value because nobody uses it.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185872 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: [CSS] rename "user stylesheet" origin into "injected stylesheet"

The user stylesheets were deleted recently. However, whenever extensions
inject css into the page, they are marked in devtools as "user". This
patch given them a more meaningful name.

BUG=428412
R=vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185874 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Remove dead code: runningNestedMessageLoop().

R=yurys

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185875 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Rebaseline compositing/shadows/shadow-drawing.html for text blobs.

This looks like an improvement to me, so it should be fine to rebaseline.

NOTRY=true
R=fmalita@chromium.org,pdr@chromium.org
BUG=435943,377845

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185876 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: fix javascript outline to process all chunks

The patch fixes an off-by-one bug in javascript outline processing
which skipped last chunk.

R=vsevik

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185877 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Ignore <rt> children when determining WebVTT text direction (LTR/RTL)

In the previous implementation of determineTextDirection the
node.localName() == rtTag check would always be false, because the
isTextNode() check would guarantee that localName() was a null String.

Even if it had worked, it would only have skipped the <rt> elements
themselves, not its descendant text nodes.

Rewrite the traversal to skip the children of <rt>.

The two cases added to captions-rtl.vtt would previously detect the
wrong text direction.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185878 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use IDL union types for CanvasRenderingContext2D.{fill,stroke}Style

This gets rid of the custom bindings for said attributes by using the
union type support in the bindings codegen.
Also rework the resolution of 'currentColor' by using
parseColorOrCurrentColor directly in set{Fill,Stroke}Style, rather than
first parse and then resolve.
This allows CanvasStyle to cleaned up and shrunk a bit.
Also remove code from CanvasStyle that became dead when the legacy
set{Fill,Stroke}Color methods was removed (CMYKA, float RGBA,
gray-level, override alpha).

BUG=430337
BUG=363180,363181

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185879 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: speculative unmark of worker-js-profile.html test as flaky

It might have been fixed by r185861

TBR=yurys

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185880 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Deflake fast/js/toString-and-valueOf-override.html by making it 60x faster

This patch deflakes fast/js/toString-and-valueOf-override.html by making
it 60x faster (5500ms -> 94ms on my MBP in debug). This test was slow
because of string concatenation and this patch just refactors the code.

BUG=435774

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185881 bbb929c8-8fbe-4397-9dbb-9b2b20218538
remove AXMediaSliderHelp(Unused).
The related CL is
https://codereview.chromium.org/728223004/

BUG=431233

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185882 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Timeline: fix weird numbers in selection details when recording Timeline

- reset tracing model before resetting timeline model when recording Timeline,
so that we don't use stale data in event handlers invoked from TimelineModel.reset()

BUG=434626

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185883 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Revert of DevTools: speculative unmark of worker-js-profile.html test as flaky (patchset #1 id:1 of https://codereview.chromium.org/749263003/)

Reason for revert:
There is still a source of flakiness.

Original issue's description:
> DevTools: speculative unmark of worker-js-profile.html test as flaky
> 
> It might have been fixed by r185861
> 
> TBR=yurys
> 
> Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185880

TBR=yurys@chromium.org
NOTREECHECKS=true
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185884 bbb929c8-8fbe-4397-9dbb-9b2b20218538
MSan: no longer skip two layout tests that have been fixed.

BUG=435650
TBR=dpranke@chromium.org
NOTRY=true

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185885 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove declaration of CSSSelector::setMatchUserAgentOnly.

The implementation of this was removed over a year ago:
  https://codereview.chromium.org/82863002/

BUG=321953

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185886 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a UseCounter for Document.getOverrideStyle()

The arguments are ignored and it always return null, so simplify.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185887 bbb929c8-8fbe-4397-9dbb-9b2b20218538
canvas 2d: simplify the code for resizing canvas 2d.

BUG=331181

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

git-svn-id: svn://svn.chromium.org/blink/trunk@185888 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove incorrect ASSERTs in GlyphBuffer::reverseForSimpleRTL

GlyphBuffer::reverseForSimpleRTL currently has asserts ensuring that the
advance and lastAdvance is a more than or equal to zero. The assumptions
made, and ensured, by those asserts are incorrect however; given that we
support negaitve letter spacing. This patch removes the incorrect assert
statements and adds a test demonstrating the correct behavior.

R=fmalita@chromium.org
BUG=435580
TEST=fast/text/international/rtl-negative-letter-spacing.html

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

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

In order to remove the OS() checks in extraDefaultStyleSheet
introduce a few RenderThemeChromiumDefault subclasses.
Note that RenderThemeChromiumAndroid derives from
RenderThemeChromiumLinux in order to include the linux
specific stylesheet.

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

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