DevTools: allow hiding debugger sidebar when docked-to-right.

BUG=324406

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163021 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Changed the background tokenizer to keep track of the pending tokens and use that as a limit for how far ahead it can parse instead of the rough proxy of checkpoint counts that it was using before.

This solves all of the issues I have seen where the preload parser was not seeing resources in the html because of a lot of script tags (with each script tag causing a checkpoint).  It also more directly ties the limit to actual memory use which was the original intent.

BUG=284927

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163023 bbb929c8-8fbe-4397-9dbb-9b2b20218538
DevTools: onbeforeupload doesn't show up in Event Listeners in JavaScript Console.

BUG=119937

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

git-svn-id: svn://svn.chromium.org/blink/trunk@163025 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Manage RequestAnimationFrameCallbacks with OwnPtrs instead of RefPtrs

Blink now prefers non-refcounted IDL callbacks. RAF slightly abused the refcounted-ness
of its callback, which this patch takes care of removing.

It also allows simplifies the m_firedOrCancelled member to just m_cancelled.

R=jamesr@chromium.org
BUG=323681

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

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