[CSS Shapes] CORS-enabled fetch for shape image values - ShapeInfo.cpp cleanups

> ShapeInfo<RenderType>::checkImageOrigin(const RenderType* renderer, const StyleImage* styleImage)

It's simpler and more straightforward to just pass a Document& to this (essentially private) function, instead of a renderer. Similarly, the second parameter can be an ImageResource&.

Currently a (static) copy of checkImageOrigin() is needlessly generated for each RenderType template instantiation. Replaced it with a global function called checkShapeImageOrigin().

Replaced the following test logic in checkImageOrigin with a short-circuit return:

> bool accessAllowed= styleImage->cachedImage()->isOriginClean(renderer->document().securityOrigin());
>    if (!accessAllowed) {
>       ...
>    }


BUG=312480

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160856 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix empty-textarea-toggle-disabled.html flaky timeouts.

It doesn't look like the test needs to be async.

BUG=252573

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160857 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Mark heap-snapshot-with-detached-dom-tree.html as flaky.

TBR=yurys@chromium.org
BUG=312925

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160858 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Fix more warnings on linux

BUG=312287

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

git-svn-id: svn://svn.chromium.org/blink/trunk@160859 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Remove test that doesn't do actually test anything in Chromium.

See history at https://bugs.webkit.org/show_bug.cgi?id=88670.

TBR=ojan
BUG=

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

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