Move canResize to RenderBox

Now that we have transitioned RenderLayerScrollableArea
to RenderBox, we can move canResize to where it belongs.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158661 bbb929c8-8fbe-4397-9dbb-9b2b20218538
[DevTools] Blink-side APIs for device metrics emulation in content.

BUG=288959
R=pfeldman@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158662 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Do not assume that v8::Context::GetEntered returns a valid context

messageHandlerInMainThread may be called during context initialization,
at which time there is no Entered context. Bail out early if that
happens, as it won't be possible to determine the "first" window.

Also fix up other callers of firstDOMWindow() and activeDOMWindow() to
assume they're non-null.

R=abarth@chromium.org, haraken@chromium.org, abarth
BUG=302041

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158663 bbb929c8-8fbe-4397-9dbb-9b2b20218538
ASSERT that QualifiedNames are only ever created/destroyed on the main thread

I also renamed one of the local types to have a slightly longer name.

R=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158664 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Clean up MessagePortChannel/WebMessagePortChannel lifetime management

Take care of calling WebMessagePortChannel::setClient() appropriately
in MessagePortChannel's constructor and its webChannelRelease() method
rather than forcing callers to do it appropriately.

Also a few other cleanups in nearby code, and added a FIXME near some
suspicious-looking code.

R=abarth

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

git-svn-id: svn://svn.chromium.org/blink/trunk@158665 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Move Mac-specific String code to WTF

This CL moves several Mac-specific chunks of String code into WTF next to the
cross-platform String code.

R=jamesr
BUG=297477

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

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