Allow changing Web Inspector dock sides without undocking first.

https://webkit.org/b/113661
rdar://problem/13543127

Reviewed by Joseph Pecoraro.

Source/WebCore:

* inspector/InspectorFrontendClientLocal.cpp:
(WebCore::InspectorFrontendClientLocal::InspectorFrontendClientLocal): Initialize m_dockSide.

(WebCore::InspectorFrontendClientLocal::canAttachWindow): If we are already attached, allow
attaching again to allow switching sides.

(WebCore::InspectorFrontendClientLocal::setAttachedWindow): Set m_dockSide.

* inspector/InspectorFrontendClientLocal.h:
(InspectorFrontendClientLocal): Added m_dockSide.

Source/WebKit2:

* UIProcess/WebInspectorProxy.cpp:
(WebKit::WebInspectorProxy::createInspectorPage): Send AttachedBottom and
AttachedRight messages so InspectorFrontendClientLocal knows which side we
are attached.

(WebKit::WebInspectorProxy::canAttach): If we are already attached, allow
attaching again to allow switching sides.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCache should do the normal initialization dance
https://bugs.webkit.org/show_bug.cgi?id=113722
<rdar://problem/13424530>

Reviewed by Anders Carlsson.

In case a WebKit1 client uses WebCache before creating a WebView (or any of the other
initialization-ready classes), we should do the initialization work in WebCache as well.

* Misc/WebCache.mm:
(+[WebCache initialize]):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147363 268f45cc-cd09-0410-ab3c-d52691b4dbfc