Consolidate some text shadow code.

paintTextWithShadows had unused parameters, and identical logic for
constructing a text shadow draw looper existed in three places.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177111 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Unflaky inspector/timeline/timeline-receive-response-event.html

BUG=389286
TBR=yurys@chromium.org, timloh@chromium.org, fmalita@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@177112 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: Screencast view scaling

We request the image of max size avaliable but resize canvas to match the size of actual image returned from device.

Depends on https://codereview.chromium.org/351633002/

BUG=387557

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

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