Fix CSSParserString::init crashing when given an empty UTF16 string.

R=abarth@chromium.org

Review URL: https://chromiumcodereview.appspot.com/20149006

git-svn-id: svn://svn.chromium.org/blink/trunk@155007 bbb929c8-8fbe-4397-9dbb-9b2b20218538
XMLHttpRequest should clear the response encoding if it clears responseText.

XMLHttpRequest did not clear the response encoding when it have should, for example, when abort() is called.
This caused character corruption in responseText if we re-opened the XHR object.

BUG=261140
R=abarth

Review URL: https://chromiumcodereview.appspot.com/20625004

git-svn-id: svn://svn.chromium.org/blink/trunk@155008 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up some booleans in RenderLayer::paintLayerContents

The if-statement conditions have become unwieldy and unintuitive
in RenderLayer::PaintLayerContents().  Furthermore, the
nice "phases of painting" get tangled because of the way that
composited paint phases communicate to the RenderLayer.  This
patch is just a baby step to cleaning that up, by pulling the
if-statement conditions into temporary booleans.

BUG=261608
R=jchaffraix@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@155009 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have the auto-rebaseline tool only rebaseline actual failures on the bots.

Since we spam results into an accumulated directory, the tool would sometimes
get the wrong baseline because of a flaky test having a png from many runs ago.
Instead, only rebaseline results that actually failed in the last run on each
bot.

This bug still exists for rebaselining using rebaseline-expectations and rebaseline,
but I think the proper fix for those is to stop using the accumulated directory
at all, which is blocked on storing the per-run results in an unzipped form.

Even when we stop using the accumulated directory, I think we want to keep this
code for auto-rebaseline because it means the rebaseline will be faster since
it won't try to rebaseline files it doesn't need to.

Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=154968

R=dpranke@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@155010 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up FrameLoader::commitProvisionalLoad

Move a couple things out to move related code, delete some duplicate logic,
and merge a couple of helpers in, since they don't have obvious divison of
responsibility.

BUG=none

Review URL: https://chromiumcodereview.appspot.com/20556002

git-svn-id: svn://svn.chromium.org/blink/trunk@155011 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove deprecated WebTextFieldDecoratorClient API.

As soon as https://codereview.chromium.org/19597004/ lands this API will not
be needed anymore.

R=jamesr@chromium.org,esprehn@chromium.org
BUG=

Review URL: https://chromiumcodereview.appspot.com/20560003

git-svn-id: svn://svn.chromium.org/blink/trunk@155012 bbb929c8-8fbe-4397-9dbb-9b2b20218538
WebCrypto: Add the Key parameter to a number of operations.

This updates the IDL files and the normalize test, but otherwise doesn't use the Key yet.

BUG=245025

Review URL: https://chromiumcodereview.appspot.com/20571002

git-svn-id: svn://svn.chromium.org/blink/trunk@155013 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move ElementResolveContext out of StyleResolverState.h/cpp

Move ElementResolveContext class out of StyleResolverState.h/cpp and
into ElementResolveContext.h/cpp respectively.
This breaks the ElementRuleCollector dependency on StyleResolverState.

BUG=237268
R=dglazkov@chromium.org

Review URL: https://chromiumcodereview.appspot.com/20433002

git-svn-id: svn://svn.chromium.org/blink/trunk@155014 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark fast/js/kde/inbuilt_function_tostring.html temporarily as flaky

The output changes slightly when we switch v8's i18n support on. After
that has happened, this test needs to be rebaselined.

BUG=v8:2745
TBR=danno@chromium.org

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

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

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

BUG=263879
TBR=eae@chromium.org

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

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

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

BUG=263879
TBR=adamk@chromium.org

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

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

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

BUG=263879
TBR=adamk@chromium.org

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

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