[V8] Remove a level of indirection in DOMDataStore
https://bugs.webkit.org/show_bug.cgi?id=101690

Reviewed by Kentaro Hara.

There is no longer any reason for the DOMDataStore to hold the wrapper
map via a pointer. It can just hold the wrapper map directly, saving a
level of indirection. I doubt this has any measurable performance gain.

* bindings/v8/DOMDataStore.cpp:
(WebCore::DOMDataStore::DOMDataStore):
(WebCore::DOMDataStore::~DOMDataStore):
(WebCore::DOMDataStore::reportMemoryUsage):
* bindings/v8/DOMDataStore.h:
(WebCore::DOMDataStore::get):
(WebCore::DOMDataStore::set):
(DOMDataStore):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed GTK gardening.

Rebaselining and removing stale expectations after the Cairo
version used in Jhbuild modules was bumped to 1.12.8 in r134073.

* platform/gtk/TestExpectations:
* platform/gtk/svg/W3C-SVG-1.1/animate-elem-08-t-expected.png:
* platform/gtk/svg/W3C-SVG-1.1/animate-elem-08-t-expected.txt:
* platform/gtk/svg/W3C-SVG-1.1/animate-elem-83-t-expected.png:
* platform/gtk/svg/W3C-SVG-1.1/animate-elem-83-t-expected.txt:
* platform/gtk/svg/W3C-SVG-1.1/paths-data-01-t-expected.png:
* platform/gtk/svg/W3C-SVG-1.1/paths-data-01-t-expected.txt:
* platform/gtk/svg/W3C-SVG-1.1/paths-data-02-t-expected.png:
* platform/gtk/svg/W3C-SVG-1.1/paths-data-02-t-expected.txt:
* platform/gtk/svg/batik/text/smallFonts-expected.png:
* platform/gtk/svg/batik/text/smallFonts-expected.txt:
* platform/gtk/svg/batik/text/textGlyphOrientationHorizontal-expected.png:
* platform/gtk/svg/batik/text/textGlyphOrientationHorizontal-expected.txt:
* platform/gtk/svg/batik/text/textOnPath-expected.png:
* platform/gtk/svg/batik/text/textOnPath-expected.txt:
* platform/gtk/svg/batik/text/textOnPath2-expected.png:
* platform/gtk/svg/batik/text/textOnPath2-expected.txt:
* platform/gtk/svg/batik/text/textOnPath3-expected.png:
* platform/gtk/svg/batik/text/textOnPath3-expected.txt:
* platform/gtk/svg/batik/text/textOnPathSpaces-expected.png:
* platform/gtk/svg/batik/text/textOnPathSpaces-expected.txt:
* platform/gtk/svg/batik/text/verticalTextOnPath-expected.png:
* platform/gtk/svg/batik/text/verticalTextOnPath-expected.txt:
* platform/gtk/svg/custom/js-update-path-changes-expected.png:
* platform/gtk/svg/custom/js-update-path-changes-expected.txt:
* platform/gtk/svg/custom/js-update-path-removal-expected.png:
* platform/gtk/svg/custom/js-update-path-removal-expected.txt:
* platform/gtk/svg/custom/path-textPath-simulation-expected.png:
* platform/gtk/svg/custom/path-textPath-simulation-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[V8] Remove ScriptController::windowShell()
https://bugs.webkit.org/show_bug.cgi?id=100235

Patch by Dan Carney <dcarney@google.com> on 2012-11-09
Reviewed by Adam Barth.

Refactored windowShell(DOMWrapperWorld*) and
existingWindowShell(DOMWrapperWorld*) to be like JSC.

No new tests. No change in functionality.

* bindings/scripts/CodeGeneratorV8.pm:
(GenerateToV8Converters):
* bindings/v8/DOMWrapperWorld.cpp:
(WebCore::isolatedWorldMap):
(WebCore::DOMWrapperWorld::getAllWorlds):
(WebCore):
* bindings/v8/DOMWrapperWorld.h:
(DOMWrapperWorld):
* bindings/v8/PageScriptDebugServer.cpp:
(WebCore::PageScriptDebugServer::addListener):
* bindings/v8/ScriptController.cpp:
(WebCore::ScriptController::~ScriptController):
(WebCore::ScriptController::clearForOutOfMemory):
(WebCore):
(WebCore::ScriptController::clearForClose):
(WebCore::ScriptController::updateSecurityOrigin):
(WebCore::ScriptController::initializeMainWorld): Returns true if the main world was initialized.
(WebCore::existingWindowShellWorkaroundWorld):
(WebCore::ScriptController::existingWindowShell):
(WebCore::ScriptController::windowShell):
(WebCore::ScriptController::evaluateInIsolatedWorld):
(WebCore::ScriptController::currentWorldContext):
(WebCore::ScriptController::mainWorldContext):
(WebCore::ScriptController::haveInterpreter):
(WebCore::ScriptController::enableEval):
(WebCore::ScriptController::disableEval):
(WebCore::ScriptController::clearWindowShell):
(WebCore::ScriptController::setContextDebugId):
(WebCore::ScriptController::updateDocument):
(WebCore::ScriptController::namedItemAdded):
(WebCore::ScriptController::namedItemRemoved):
* bindings/v8/ScriptController.h:
(ScriptController):
(WebCore::ScriptController::getAllWorlds):
* bindings/v8/V8Binding.cpp:
(WebCore::perContextDataForCurrentWorld):
(WebCore::handleOutOfMemory):
* bindings/v8/V8DOMWindowShell.cpp:
(WebCore::V8DOMWindowShell::initializeIfNeeded):
(WebCore::V8DOMWindowShell::updateDocument):
(WebCore::V8DOMWindowShell::namedItemAdded):
(WebCore::V8DOMWindowShell::namedItemRemoved):
* bindings/v8/V8DOMWindowShell.h:
(WebCore::V8DOMWindowShell::isContextInitialized):
(WebCore::V8DOMWindowShell::isGlobalInitialized):
* bindings/v8/custom/V8DocumentCustom.cpp:
(WebCore::toV8):
* bindings/v8/custom/V8HTMLDocumentCustom.cpp:
(WebCore::toV8):
* bindings/v8/custom/V8SVGDocumentCustom.cpp:
(WebCore::toV8):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
NetworkRequest refactoring
https://bugs.webkit.org/show_bug.cgi?id=101777

Reviewed by Alexey Proskuryakov.

Move all of the ResourceHandleClient stubs from the .h to the .cpp in one patch
to make future patches cleaner.

Also completely remove the declaration for shouldCacheResponse() for now.

* NetworkProcess/NetworkRequest.cpp:
(WebKit::NetworkRequest::willSendRequest):
(WebKit::NetworkRequest::didSendData):
(WebKit::NetworkRequest::didReceiveCachedMetadata):
(WebKit::NetworkRequest::wasBlocked):
(WebKit::NetworkRequest::cannotShowURL):
(WebKit::NetworkRequest::willCacheResponse):
(WebKit::NetworkRequest::shouldUseCredentialStorage):
(WebKit::NetworkRequest::didReceiveAuthenticationChallenge):
(WebKit::NetworkRequest::didCancelAuthenticationChallenge):
(WebKit::NetworkRequest::receivedCancellation):
(WebKit::NetworkRequest::canAuthenticateAgainstProtectionSpace):
(WebKit::NetworkRequest::supportsDataArray):
(WebKit::NetworkRequest::didReceiveDataArray):
(WebKit::NetworkRequest::willStopBufferingData):
(WebKit::NetworkRequest::createAsyncFileStream):
* NetworkProcess/NetworkRequest.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Chromium] Unreviewed gardening. Fix chromium-win builds following r134082

* WebCore.gypi:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2012-11-09  Oliver Hunt  <oliver@apple.com>

        So Thingy probably isn't the best name for a class, so
        renamed to CacheMap.

        RS=Geoff

        * runtime/CodeCache.h:
        (JSC::CacheMap::CacheMap):

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