IndexedDB: Fix event dispatch races in IDBRequest

Fix a pair of issues caught by ASSERTs when debugging another bug:

* An ActiveDOMObject::stop() call coming in between "upgradeneeded"
being queued/dispatched and "success" being queued/dispatched could
leave the IDBRequest in "pending" state for destruction.

* Apparently, the EventQueue occasionally calls into dispatchEvents
after the execution context is torn down.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163013 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Reorganize some code and add a test in hopes of getting better crash data

In the wild, we're seeing a crash in Document::completeURL that's hard to pin down,
in part because the line it's occurring is complicated. This patch picks apart that
complex line into a series of if statements, in the hope that future crash stacks
will have more useful data.

Also add a basic test for <link rel=stylesheet disabled>. The only existing test for
that feature involved the imperative API.

R=abarth@chromium.org
BUG=312410

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163014 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Shape-inside should default to 'auto'

As part of the split between shape-outside and shape-inside, the default
value of shape-inside should be 'auto' rather than 'outside-shape'.

BUG=322165

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163017 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: front-end does not show context menu for content shell.

BUG=316625

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

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