[WebSocket] Fix and enable inspector-related layout tests.

Note: These tests are not duplicated and always run on the new implementation.

BUG=339373
R=ricea@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166506 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Improve handling of CORS redirects for some resource loads.

To align with what CORS requires for redirects, have CORS-enabled
resource loading perform access control checks on redirects.

The ResourceLoader delegates the access control check to its host's
canAccessRedirect() implementation:

 bool ResourceLoaderHost::canAccessRedirect(Resource*, ResourceRequest&, const ResourceResponse&, ResourceLoaderOptions&);

which is passed the redirect request + response along with other
arguments needed to make a yes/no decision on following the redirect.

To correctly handle redirects to another origin, the
canAccessRedirect() predicate is also responsible for updating the
'source origin' as the redirect is followed. This and other redirect
steps are taken care of by the helper method

  CrossOriginAccessControl::handleRedirect()

The included tests cover redirects over <img> and <script>, for the
various redirect responses possible (wrt CORS.) Rely on existing
redirect tests for HTML imports.

Notice that the redirect handling added here does not apply to
resource types and loaders that implement their special (and extended)
handling of CORS + redirects -- e.g., XMLHttpRequest fetches.

R=abarth@chromium.org
BUG=274843

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166508 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Make blink heap unittests more robust against compiler optimizations.

The MarkTest and DeepTest in out blink heap unittests were a bit too fragile. Basically when compiling on android the compiler decides to optimize out foo in MarkTest and both bar and foo in DeepTest since they were unused. However since our test expect these two objects to be kept alive by our conservative stack scan it failed when they weren't around.
I have added two explicit tests to make sure they are used this should fix the issue.

R=ager@chromium.org, erik.corry@gmail.com, haraken@chromium.org, vegorov@chromium.org, zerny@chromium.org
BUG=340591

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166509 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Added myself to 'css' watchlist.

TBR=eseidel
NOTRY=true
BUG=None

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166510 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Makes ScrollbarTheme call through to theme engine for corner

Hopefully the last bit of wiring needed to let the theme engine draw
the corner.

BUG=333499
TEST=none
R=jamesr@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@166511 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Use ContainerNode type instead of Node for LiveNodeListBase's rootNode

Use ContainerNode type instead of Node for LiveNodeListBase's rootNode.
LiveNodeListBase::rootNode() returns a ContainerNode but this was sometimes
assigned to a Node was we would loose the type information.

This is particularly useful because some methods are faster on ContainerNode
than Node, e.g. lastNode(). This CL updates both lastNode() and
lastDescendant() methods in HTMLCollection.cpp, both of which can now call
ContainerNode::lastNode() instead of the slower Node::lastNode().

R=esprehn, adamk

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

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