Always copy a progressive decoded image in impl-side painting mode

An optimization for impl-side painting was done for fully received
images. We let the decoder to write directly to the memory provided by
Skia.

The optimization missed a corner case. If the image was not received
in one go but received progressively. Then when the image is fully
received the last decode does not write directly to the memory Skia
provided. Hence the image becomes empty.

We should detect for such case and only do this optimization if the
image is fully received in one step.

BUG=346984
R=senorblanco@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167932 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add autofill preview support for <month> input fields

Add condition handling for suggestedValue case in updateview() and preview functions.
Updated test cases accordingly.

BUG=335212
R=isherman@chromium.org, tkent@chromium.org, jhawkins@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167933 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Have Document::getCSSCanvasElement() return a reference

Have Document::getCSSCanvasElement() return a reference instead of a pointer as
it can never return null. It makes the calling code look safer and gets rid of
some unnecessary null checks.

R=adamk

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

git-svn-id: svn://svn.chromium.org/blink/trunk@167934 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Permit ActiveDOMObject to update the ExecutionContext it observes.

HTMLMediaElement and HTMLMarqueeElement are the only two instances of an ActiveDOMObject where they can be reparented into a new ExecutionContext. As such, the ActiveDOMObject should be updated to observe the new ExecutionContext and the state synchronized.

BUG=346497
R=morrita@chromium.org

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

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