WebCore:
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 15:40:40 +0000 (15:40 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 8 Nov 2007 15:40:40 +0000 (15:40 +0000)
        Reviewed by Steve.

        - cut down on notImplemented() functions on Windows

        * bridge/AXObjectCache.h: Put #if around the accessibility
        global.

        * bridge/win/FrameWin.cpp: (WebCore::Frame::setNeedsReapplyStyles):
        Moved here from TemporaryLinkStubs.

        * dom/Document.cpp: (WebCore::Document::lastModified): Re-implemented
        using the ResourceResponse that's now available from the DocumentLoader.

        * editing/JSEditor.cpp: (execTranspose): Changed to call transpose() on
        the Editor instead of the obsolete one on the Frame.

        * loader/DocumentLoader.h: Removed getResponseModifiedHeader.
        * loader/FrameLoader.h: Removed overrideMediaType.

        * loader/gtk/DocumentLoaderGtk.cpp: Removed.
        * loader/mac/DocumentLoaderMac.mm: Removed.
        * loader/qt/DocumentLoaderQt.cpp: Removed.

        * page/Frame.cpp: Removed transpose.
        * page/Frame.h: Ditto.
        * page/FrameView.h: Removed updateBorder.
        * page/gtk/FrameGtk.cpp: Removed issueTransposeCommand.
        * page/mac/FrameMac.mm: Ditto.
        * page/mac/WebCoreFrameBridge.h: Removed issueTransposeCommand and
        overrideMediaType.
        * page/qt/FrameQt.cpp: Removed issueTransposeCommand.

        * platform/gtk/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled.
        * platform/qt/TemporaryLinkStubs.cpp: Ditto.
        * platform/win/TemporaryLinkStubs.cpp: Removed or moved all but 3 of the stubs.
        * platform/wx/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled,
        issueTransposeCommand, and overrideMediaType.

        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::ResourceHandle::loadsBlocked): Moved here from TemporaryLinkStubs.
        (WebCore::ResourceHandle::willLoadFromCache): Ditto.
        * platform/win/GraphicsContextWin.cpp:
        (WebCore::GraphicsContextPlatformPrivate::clip): Ditto.
        * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::inWindow): Ditto.
        * platform/win/SystemTimeWin.cpp: (WebCore::userIdleTime): Ditto.
        * platform/win/WidgetWin.cpp: (WebCore::Widget::setIsSelected): Ditto.

        * WebCore.pro: Updated for removed files.
        * WebCore.xcodeproj/project.pbxproj: Updated for removed file.

WebKit/mac:

        Reviewed by Steve.

        - removed some unused WebCore bridge methods

        * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.

        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
        using the bridge object.

WebKit/win:

        Reviewed by Steve.

        * Interfaces/IWebUIDelegate.idl: Added the functions needed below.
        * WebChromeClient.cpp:
        (WebChromeClient::setMenubarVisible): Eliminated the notImplemented()
        here by calling through the UI delegate.
        (WebChromeClient::menubarVisible): Ditto.
        (WebChromeClient::runDatabaseSizeLimitPrompt): Ditto.

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

34 files changed:
WebCore/ChangeLog
WebCore/WebCore.pro
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/bridge/AXObjectCache.h
WebCore/bridge/win/FrameWin.cpp
WebCore/dom/Document.cpp
WebCore/editing/JSEditor.cpp
WebCore/loader/DocumentLoader.h
WebCore/loader/FrameLoader.h
WebCore/loader/gtk/DocumentLoaderGtk.cpp [deleted file]
WebCore/loader/mac/DocumentLoaderMac.mm [deleted file]
WebCore/loader/qt/DocumentLoaderQt.cpp [deleted file]
WebCore/page/Frame.cpp
WebCore/page/Frame.h
WebCore/page/FrameView.h
WebCore/page/gtk/FrameGtk.cpp
WebCore/page/mac/FrameMac.mm
WebCore/page/mac/WebCoreFrameBridge.h
WebCore/page/qt/FrameQt.cpp
WebCore/platform/gtk/TemporaryLinkStubs.cpp
WebCore/platform/network/cf/ResourceHandleCFNet.cpp
WebCore/platform/qt/TemporaryLinkStubs.cpp
WebCore/platform/win/GraphicsContextWin.cpp
WebCore/platform/win/ScrollViewWin.cpp
WebCore/platform/win/SystemTimeWin.cpp
WebCore/platform/win/TemporaryLinkStubs.cpp
WebCore/platform/win/WidgetWin.cpp
WebCore/platform/wx/TemporaryLinkStubs.cpp
WebKit/mac/ChangeLog
WebKit/mac/WebCoreSupport/WebFrameBridge.mm
WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
WebKit/win/ChangeLog
WebKit/win/Interfaces/IWebUIDelegate.idl
WebKit/win/WebChromeClient.cpp

index 380ffa86dacf0743c4972ae58200772378fd0102..d9d0dcbd58d7f149db2dc62c7f71394282032ccf 100644 (file)
@@ -1,3 +1,55 @@
+2007-11-07  Darin Adler  <darin@apple.com>
+
+        Reviewed by Steve.
+
+        - cut down on notImplemented() functions on Windows
+
+        * bridge/AXObjectCache.h: Put #if around the accessibility
+        global.
+
+        * bridge/win/FrameWin.cpp: (WebCore::Frame::setNeedsReapplyStyles):
+        Moved here from TemporaryLinkStubs.
+
+        * dom/Document.cpp: (WebCore::Document::lastModified): Re-implemented
+        using the ResourceResponse that's now available from the DocumentLoader.
+
+        * editing/JSEditor.cpp: (execTranspose): Changed to call transpose() on
+        the Editor instead of the obsolete one on the Frame.
+
+        * loader/DocumentLoader.h: Removed getResponseModifiedHeader.
+        * loader/FrameLoader.h: Removed overrideMediaType.
+
+        * loader/gtk/DocumentLoaderGtk.cpp: Removed.
+        * loader/mac/DocumentLoaderMac.mm: Removed.
+        * loader/qt/DocumentLoaderQt.cpp: Removed.
+
+        * page/Frame.cpp: Removed transpose.
+        * page/Frame.h: Ditto.
+        * page/FrameView.h: Removed updateBorder.
+        * page/gtk/FrameGtk.cpp: Removed issueTransposeCommand.
+        * page/mac/FrameMac.mm: Ditto.
+        * page/mac/WebCoreFrameBridge.h: Removed issueTransposeCommand and
+        overrideMediaType.
+        * page/qt/FrameQt.cpp: Removed issueTransposeCommand.
+
+        * platform/gtk/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled.
+        * platform/qt/TemporaryLinkStubs.cpp: Ditto.
+        * platform/win/TemporaryLinkStubs.cpp: Removed or moved all but 3 of the stubs.
+        * platform/wx/TemporaryLinkStubs.cpp: Removed gAccessibilityEnabled,
+        issueTransposeCommand, and overrideMediaType.
+
+        * platform/network/cf/ResourceHandleCFNet.cpp:
+        (WebCore::ResourceHandle::loadsBlocked): Moved here from TemporaryLinkStubs.
+        (WebCore::ResourceHandle::willLoadFromCache): Ditto.
+        * platform/win/GraphicsContextWin.cpp:
+        (WebCore::GraphicsContextPlatformPrivate::clip): Ditto.
+        * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::inWindow): Ditto.
+        * platform/win/SystemTimeWin.cpp: (WebCore::userIdleTime): Ditto.
+        * platform/win/WidgetWin.cpp: (WebCore::Widget::setIsSelected): Ditto.
+
+        * WebCore.pro: Updated for removed files.
+        * WebCore.xcodeproj/project.pbxproj: Updated for removed file.
+
 2007-11-08  Mark Rowe  <mrowe@apple.com>
 
        Build fix for case-sensitive file systems.  Fix case of file names
index 9400e4bcb351960d88dc1c32da6305fe9cf1a56b..59b8fca997461ed42ff828cf9c802a560bc1625b 100644 (file)
@@ -812,7 +812,6 @@ qt-port {
     page/qt/DragControllerQt.cpp \
     page/qt/EventHandlerQt.cpp \
     page/qt/FrameQt.cpp \
-    loader/qt/DocumentLoaderQt.cpp \
     platform/graphics/qt/AffineTransformQt.cpp \
     platform/graphics/qt/ColorQt.cpp \
     platform/graphics/qt/FloatPointQt.cpp \
@@ -912,7 +911,6 @@ gtk-port {
         page/gtk/EventHandlerGtk.cpp \
         page/gtk/FrameGtk.cpp \
         page/gtk/DragControllerGtk.cpp \
-        loader/gtk/DocumentLoaderGtk.cpp \
         platform/gtk/ClipboardGtk.cpp \
         platform/gtk/CookieJarGtk.cpp \
         platform/gtk/CursorGtk.cpp \
index 9c798078fdab56279fe1a5167085eb21e25650b7..f72af0d59a2ed3fa31948d438fbc28ebd69a221f 100644 (file)
                656D37320ADBA5DE00A4554D /* LoaderNSURLExtras.h in Headers */ = {isa = PBXBuildFile; fileRef = 656D371A0ADBA5DE00A4554D /* LoaderNSURLExtras.h */; settings = {ATTRIBUTES = (Private, ); }; };
                656D37330ADBA5DE00A4554D /* LoaderNSURLExtras.m in Sources */ = {isa = PBXBuildFile; fileRef = 656D371B0ADBA5DE00A4554D /* LoaderNSURLExtras.m */; };
                656D37360ADBA5DE00A4554D /* DocumentLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 656D371E0ADBA5DE00A4554D /* DocumentLoader.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               656D37370ADBA5DE00A4554D /* DocumentLoaderMac.mm in Sources */ = {isa = PBXBuildFile; fileRef = 656D371F0ADBA5DE00A4554D /* DocumentLoaderMac.mm */; };
                656D373A0ADBA5DE00A4554D /* FormState.h in Headers */ = {isa = PBXBuildFile; fileRef = 656D37220ADBA5DE00A4554D /* FormState.h */; settings = {ATTRIBUTES = (Private, ); }; };
                656D373B0ADBA5DE00A4554D /* FormState.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 656D37230ADBA5DE00A4554D /* FormState.cpp */; };
                656D373C0ADBA5DE00A4554D /* FrameLoader.h in Headers */ = {isa = PBXBuildFile; fileRef = 656D37240ADBA5DE00A4554D /* FrameLoader.h */; settings = {ATTRIBUTES = (Private, ); }; };
                656D371A0ADBA5DE00A4554D /* LoaderNSURLExtras.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = LoaderNSURLExtras.h; sourceTree = "<group>"; };
                656D371B0ADBA5DE00A4554D /* LoaderNSURLExtras.m */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 30; path = LoaderNSURLExtras.m; sourceTree = "<group>"; };
                656D371E0ADBA5DE00A4554D /* DocumentLoader.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DocumentLoader.h; sourceTree = "<group>"; };
-               656D371F0ADBA5DE00A4554D /* DocumentLoaderMac.mm */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 30; path = DocumentLoaderMac.mm; sourceTree = "<group>"; };
                656D37220ADBA5DE00A4554D /* FormState.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FormState.h; sourceTree = "<group>"; };
                656D37230ADBA5DE00A4554D /* FormState.cpp */ = {isa = PBXFileReference; explicitFileType = sourcecode.cpp.objcpp; fileEncoding = 30; path = FormState.cpp; sourceTree = "<group>"; };
                656D37240ADBA5DE00A4554D /* FrameLoader.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FrameLoader.h; sourceTree = "<group>"; };
                93A1EAA20A5634D8006960A0 /* mac */ = {
                        isa = PBXGroup;
                        children = (
-                               656D371F0ADBA5DE00A4554D /* DocumentLoaderMac.mm */,
                                93A1EAA70A563508006960A0 /* ImageDocumentMac.h */,
                                93A1EA9F0A5634C9006960A0 /* ImageDocumentMac.mm */,
                                656D371A0ADBA5DE00A4554D /* LoaderNSURLExtras.h */,
                                A8185F3C09765766005826D9 /* Document.cpp in Sources */,
                                A8185F3F09765766005826D9 /* DocumentFragment.cpp in Sources */,
                                93E227E00AF589AD00D48324 /* DocumentLoader.cpp in Sources */,
-                               656D37370ADBA5DE00A4554D /* DocumentLoaderMac.mm in Sources */,
                                A8185F3A09765766005826D9 /* DocumentType.cpp in Sources */,
                                A7CA595E0B27BD9E00FA021D /* DragController.cpp in Sources */,
                                A71878900B2D04AC00A16ECE /* DragControllerMac.mm in Sources */,
index 58389febcebe051e6aafb0c077e36a391cff224e..d73a5a3afc80a9576378883c660996eeaf206c89 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2003, 2006 Apple Computer, Inc.  All rights reserved.
+ * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -68,11 +68,17 @@ namespace WebCore {
         void postNotificationToElement(RenderObject*, const String& message);
         void handleFocusedUIElementChanged();
         
+#if PLATFORM(MAC)
         static void enableAccessibility() { gAccessibilityEnabled = true; }
         static bool accessibilityEnabled() { return gAccessibilityEnabled; }
+#else
+        static bool accessibilityEnabled() { return false; }
+#endif
 
     private:
+#if PLATFORM(MAC)
         static bool gAccessibilityEnabled;
+#endif
 
         AXID getAXID(WebCoreAXObject*);
 
index ed981b29df96756797927d757c2727c2f04f16d1..ff9e52a2dca04ec736e3bf349ec9e79b7a0a108f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -42,6 +42,7 @@
 #include "HTMLTableCellElement.h"
 #include "KeyboardEvent.h"
 #include "NP_jsobject.h"
+#include "NotImplemented.h"
 #include "Page.h"
 #include "Plugin.h"
 #include "PluginDatabaseWin.h"
@@ -193,4 +194,10 @@ void Frame::dashboardRegionsChanged()
 {
 }
 
+void Frame::setNeedsReapplyStyles()
+{
+    // Will be needed for focus ring color change.
+    notImplemented();
+}
+
 } // namespace WebCore
index d31a65c2ec3533ee3d536612be04b2c0ce79daed..a884734a78d20e59a30ea62d36f5f4031efe07fc 100644 (file)
@@ -2673,12 +2673,13 @@ void Document::setDomainInternal(const String& newDomain)
 
 String Document::lastModified() const
 {
-    String modifiedHeader;
-    if (Frame* f = frame()) {
-        if (DocumentLoader* documentLoader = f->loader()->documentLoader())
-            documentLoader->getResponseModifiedHeader(modifiedHeader);
-    }
-    return modifiedHeader;
+    Frame* f = frame();
+    if (!f)
+        return String();
+    DocumentLoader* loader = f->loader()->documentLoader();
+    if (!loader)
+        return String();
+    return loader->response().httpHeaderField("Last-Modified");
 }
 
 bool Document::isValidName(const String &name)
index 5e53cc7ee618a786817d992286b6d326648be5be..6178eec162c9b183e0413b92e92f7043a2342d99 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.  All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
  * Copyright (C) 2007 Trolltech ASA
  *
  * Redistribution and use in source and binary forms, with or without
@@ -452,7 +452,7 @@ bool execSuperscript(Frame* frame, bool, const String&)
 
 bool execTranspose(Frame* frame, bool, const String&)
 {
-    frame->transpose();
+    frame->editor()->transpose();
     return true;
 }
 
index 6ef9b0faa87cf194dd3888124ab1654fbb9b75e0..231394d5987bcdcc7c44e6ec35bfbed519354f48 100644 (file)
@@ -90,9 +90,6 @@ namespace WebCore {
         KURL responseURL() const;
         String responseMIMEType() const;
         
-        // FIXME: After we have a ResourceResponse in the mix, this method can go away and we can use it directly
-        bool getResponseModifiedHeader(String& modified) const;
-        
         void replaceRequestURLForAnchorScroll(const KURL&);
         bool isStopping() const;
         void stopLoading();
index 63572ad9596b8723e1632cf07227478e5dfb2ace..6ba88331225329a57ba95c674c3f8d64f9b3a591 100644 (file)
@@ -337,8 +337,6 @@ namespace WebCore {
         void dispatchWindowObjectAvailable();
         void restoreDocumentState();
 
-        String overrideMediaType() const;
-
         Frame* opener();
         void setOpener(Frame*);
         bool openedByDOM() const;
diff --git a/WebCore/loader/gtk/DocumentLoaderGtk.cpp b/WebCore/loader/gtk/DocumentLoaderGtk.cpp
deleted file mode 100644 (file)
index 2817beb..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-/*
- * Copyright (C) 2006 Zack Rusin <zack@kde.org>
- * Copyright (C) 2006 Apple Computer, Inc.  All rights reserved.
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "DocumentLoader.h"
-
-#include "KURL.h"
-#include "NotImplemented.h"
-#include <stdio.h>
-namespace WebCore {
-
-bool DocumentLoader::getResponseModifiedHeader(String& modified) const
-{
-    notImplemented();
-    return false;
-}
-
-}
-
diff --git a/WebCore/loader/mac/DocumentLoaderMac.mm b/WebCore/loader/mac/DocumentLoaderMac.mm
deleted file mode 100644 (file)
index ef4c445..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (C) 2006 Apple Computer, Inc.  All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- *
- * 1.  Redistributions of source code must retain the above copyright
- *     notice, this list of conditions and the following disclaimer. 
- * 2.  Redistributions in binary form must reproduce the above copyright
- *     notice, this list of conditions and the following disclaimer in the
- *     documentation and/or other materials provided with the distribution. 
- * 3.  Neither the name of Apple Computer, Inc. ("Apple") nor the names of
- *     its contributors may be used to endorse or promote products derived
- *     from this software without specific prior written permission. 
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#import "config.h"
-#import "DocumentLoader.h"
-
-#import "WebCoreSystemInterface.h"
-
-namespace WebCore {
-
-bool DocumentLoader::getResponseModifiedHeader(String& modified) const
-{
-    NSURLResponse *response = m_response.nsURLResponse();
-    if (![response isKindOfClass:[NSHTTPURLResponse class]])
-        return false;
-        
-    modified = [wkGetNSURLResponseLastModifiedDate(response)
-                descriptionWithCalendarFormat:@"%a %b %d %Y %H:%M:%S" timeZone:nil locale:nil];
-    return true;
-}
-
-}
diff --git a/WebCore/loader/qt/DocumentLoaderQt.cpp b/WebCore/loader/qt/DocumentLoaderQt.cpp
deleted file mode 100644 (file)
index 98f7101..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (C) 2006 Zack Rusin <zack@kde.org>
- * Copyright (C) 2006 Apple Computer, Inc.  All rights reserved.
- *
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "DocumentLoader.h"
-
-#include "Document.h"
-#include "FrameLoader.h"
-#include "Frame.h"
-#include "PlatformString.h"
-#include "SharedBuffer.h"
-#include "XMLTokenizer.h"
-#include <wtf/Assertions.h>
-
-#include <QDateTime>
-
-#include "NotImplemented.h"
-
-namespace WebCore {
-
-bool DocumentLoader::getResponseModifiedHeader(WebCore::String&) const
-{
-    notImplemented();
-    return false;
-}
-
-}
-
index eed9ad9b7b5a8b47a8246e82725dc8442d6e6d2d..7106418d8b4eb25a1d400f05d5eb58af9c344d5f 100644 (file)
@@ -801,11 +801,6 @@ void Frame::clearTypingStyle()
     d->m_typingStyle = 0;
 }
 
-void Frame::transpose()
-{
-    issueTransposeCommand();
-}
-
 void Frame::computeAndSetTypingStyle(CSSStyleDeclaration *style, EditAction editingAction)
 {
     if (!style || style->length() == 0) {
index 2460d9b11260799e9e2cec0857b4783c81d16af2..f83d6054f09a41da112b48c4b5def55986354908 100644 (file)
@@ -266,8 +266,6 @@ public:
     const Selection& mark() const; // Mark, to be used as emacs uses it.
     void setMark(const Selection&);
 
-    void transpose();
-
     void computeAndSetTypingStyle(CSSStyleDeclaration* , EditAction = EditActionUnspecified);
     enum TriState { falseTriState, trueTriState, mixedTriState };
     TriState selectionHasStyle(CSSStyleDeclaration*) const;
@@ -279,7 +277,6 @@ public:
 
     IntRect firstRectForRange(Range*) const;
     
-    void issueTransposeCommand();
     void respondToChangedSelection(const Selection& oldSelection, bool closeTyping);
     bool shouldChangeSelection(const Selection& oldSelection, const Selection& newSelection, EAffinity, bool stillSelecting) const;
 
index 41684e077bee5a4ce8a966808e71af33d23d7a96..039a59b7533c41555b9d647eb3f746caf517a6a2 100644 (file)
@@ -147,8 +147,6 @@ private:
 
     void applyOverflowToViewport(RenderObject*, ScrollbarMode& hMode, ScrollbarMode& vMode);
 
-    void updateBorder();
-
     void updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow);
 
     void dispatchScheduledEvents();
index be18647b73489bf95fcafa03459d46392153595c..b1fdba6c467d852b9a4529f4af5ff69d1d70dffd 100644 (file)
 
 namespace WebCore {
 
-void Frame::issueTransposeCommand()
-{
-    notImplemented();
-}
-
 void Frame::clearPlatformScriptObjects()
 {
     notImplemented();
index a1041b2da19e219fdf69bdb0337f040044fe0f55..6d8bcd978590b06d415d6609d3ce77324ce59e68 100644 (file)
@@ -497,11 +497,6 @@ void Frame::issuePasteCommand()
     [d->m_bridge issuePasteCommand];
 }
 
-void Frame::issueTransposeCommand()
-{
-    [d->m_bridge issueTransposeCommand];
-}
-
 const short enableRomanKeyboardsOnly = -23;
 void Frame::setUseSecureKeyboardEntry(bool enable)
 {
index 299788d19558bab0255a8bf71b36c14edbab7aea..dbebcf0abb0fab5cf5daf028514f8d21d80a2924 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.  All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -272,11 +272,8 @@ enum WebScrollGranularity {
 - (jobject)pollForAppletInView:(NSView *)view;
 
 - (void)issuePasteCommand;
-- (void)issueTransposeCommand;
 - (void)setIsSelected:(BOOL)isSelected forView:(NSView *)view;
 
-- (NSString *)overrideMediaType;
-
 - (void)windowObjectCleared;
 
 - (void)dashboardRegionsChanged:(NSMutableDictionary *)regions;
index 503dad824afb75cd317781d0a51ebf8be48c78dc..6fc7b6143424be4087085755e26d0adce8000e52 100644 (file)
@@ -97,11 +97,6 @@ static void doScroll(const RenderObject* r, bool isHorizontal, int multiplier)
 }
 #endif
 
-void Frame::issueTransposeCommand()
-{
-    notImplemented();
-}
-
 KJS::Bindings::Instance* Frame::createScriptInstanceForWidget(WebCore::Widget* widget)
 {
     return KJS::Bindings::Instance::createBindingForLanguageInstance(KJS::Bindings::Instance::QtLanguage,
index 655c83635e4763d4a366d6714ee48a25808dfb5a..23e8b42b007bb2fd0f727c10f290ac629d04310d 100644 (file)
@@ -57,7 +57,6 @@ void FrameView::updateBorder() { notImplemented(); }
 /********************************************************/
 /* Completely empty stubs (mostly to allow DRT to run): */
 /********************************************************/
-bool AXObjectCache::gAccessibilityEnabled = false;
 
 bool WebCore::historyContains(DeprecatedString const&) { return false; }
 
index ae9a51f6aabd6eb0ea2ee8e5dcf5f499a0316ce4..9b99aa39f9e139a5de47b82bb7af9ba016d1da3e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -383,4 +383,17 @@ void ResourceHandle::setDefersLoading(bool defers)
         CFURLConnectionResume(d->m_connection.get());
 }
 
+bool ResourceHandle::loadsBlocked()
+{
+    return false;
+}
+
+bool ResourceHandle::willLoadFromCache(ResourceRequest&)
+{
+    // Not having this function means that we'll ask the user about re-posting a form
+    // even when we go back to a page that's still in the cache.
+    notImplemented();
+    return false;
+}
+
 } // namespace WebCore
index ad5f564b53c430f22eeba442667efacb0664ccd9..44e134cad0f5278f06a220777dc7621077a5ac77 100644 (file)
@@ -70,8 +70,6 @@ using namespace WebCore;
 
 void FrameView::updateBorder() { notImplemented(); }
 
-bool AXObjectCache::gAccessibilityEnabled = false;
-
 namespace WebCore {
 
 Vector<String> supportedKeySizes() { notImplemented(); return Vector<String>(); }
index 0452c7892be95ae17c844c0c4da82712dcf4e6ad..180138cef0faa1ae302e3f7adbb1b9126a6f4c55 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -189,6 +189,11 @@ void GraphicsContextPlatformPrivate::clip(const IntRect& clipRect)
     IntersectClipRect(m_hdc, clipRect.x(), clipRect.y(), clipRect.right(), clipRect.bottom());
 }
 
+void GraphicsContextPlatformPrivate::clip(const Path&)
+{
+    notImplemented();
+}
+
 void GraphicsContextPlatformPrivate::scale(const FloatSize& size)
 {
     if (!m_hdc)
index 26fbb14fcb3b14e5d1670d0c208b3b20dad32d9d..465f5b860e5fe7befe7ee10cb6e70ef5a741b71f 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
- * Copyright (C) 2006 Justin Haygood <jhaygood@spsu.edu>.
+ * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 #include "Chrome.h"
 #include "ChromeClient.h"
 #include "FloatRect.h"
-
 #include "Frame.h"
 #include "FrameView.h"
-#include "RenderTheme.h" 
-
 #include "GraphicsContext.h"
 #include "IntRect.h"
+#include "NotImplemented.h"
 #include "Page.h"
 #include "PlatformScrollBar.h"
 #include "PlatformMouseEvent.h"
 #include "PlatformWheelEvent.h"
+#include "RenderTheme.h" 
 #include "ScrollBar.h"
 #include <algorithm>
 #include <winsock2.h>
@@ -770,4 +768,11 @@ bool ScrollView::allowsScrolling() const
     return m_data->allowsScrolling();
 }
 
+bool ScrollView::inWindow() const
+{
+    // Needed for back/forward cache. 
+    notImplemented();
+    return true;
+}
+
 } // namespace WebCore
index e1fb7966947452970ee918d9fd6851ddb254da87..76f77aef478b7c66ec32ee86592fbb63844324ba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006 Apple Computer, Inc.  All rights reserved.
+ * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -26,6 +26,7 @@
 #include "config.h"
 #include "SystemTime.h"
 
+#include "NotImplemented.h"
 #include <windows.h>
 
 namespace WebCore {
@@ -53,4 +54,11 @@ double currentTime()
     return t.QuadPart * 0.0000001 - 11644473600.0;
 }
 
+float userIdleTime()
+{
+    // Needed for back/forward cache.
+    notImplemented();
+    return 0.0F;
+}
+
 }
index 483b095153246d89a8e773a3abc1627879019132..5ff2dc5b0bebc53fed93c8398cbd4b5a1e4faa60 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
 
 #include "config.h"
 
-#define WIN32_COMPILE_HACK
-
-#include "AXObjectCache.h"
 #include "CachedPage.h"
-#include "CachedResource.h"
-#include "CookieJar.h"
-#include "DocumentLoader.h"
-#include "EditCommand.h"
-#include "Editor.h"
-#include "EventHandler.h"
-#include "FileChooser.h"
-#include "FileSystem.h"
-#include "Font.h"
-#include "FormState.h"
-#include "FrameLoader.h"
-#include "FrameLoadRequest.h"
-#include "FrameView.h"
-#include "FrameWin.h"
-#include "GraphicsContext.h"
-#include "GraphicsContextPlatformPrivate.h"
-#include "History.h"
-#include "HTMLFormElement.h"
-#include "IconLoader.h"
-#include "IntPoint.h"
-#include "KURL.h"
-#include "Language.h"
-#include "LocalizedStrings.h"
-#include "MainResourceLoader.h"
-#include "NavigationAction.h"
-#include "Node.h"
 #include "NotImplemented.h"
-#include "Page.h"
-#include "Path.h"
-#include "PlatformMouseEvent.h"
-#include "PlugInInfoStore.h"
-#include "RenderTheme.h"
-#include "RenderThemeWin.h"
-#include "ResourceHandle.h"
-#include "ResourceLoader.h"
-#include "ResourceResponse.h"
-#include "ResourceRequest.h"
-#include "Screen.h"
-#include "ScrollBar.h"
 #include "SSLKeyGenerator.h"
-#include "SubresourceLoader.h"
-#include "SystemTime.h"
-#include "Threading.h"
-#include "loader.h"
-#include <stdio.h>
-#include <stdlib.h>
-
-using namespace WebCore;
-
-void Frame::issueTransposeCommand() { notImplemented(); }
-
-void GraphicsContextPlatformPrivate::clip(const Path&) { notImplemented(); }
-
-bool AXObjectCache::gAccessibilityEnabled = false;
 
 namespace WebCore {
 
-void FrameView::updateBorder() { notImplemented(); }
-
-}
-
-void Widget::setIsSelected(bool) { notImplemented(); }
-
-bool ScrollView::inWindow() const { notImplemented(); return true; }
-
-void Frame::setNeedsReapplyStyles() { notImplemented(); }
-
-String FrameLoader::overrideMediaType()const { notImplemented(); return String(); }
-
-bool ResourceHandle::loadsBlocked() { return false; }
-
-// CRITFIXME: See if any of the following are actually implemented in OpenSource and copy the impls to internal
-bool DocumentLoader::getResponseModifiedHeader(String&) const { notImplemented(); return false; }
-bool ResourceHandle::willLoadFromCache(ResourceRequest&) { notImplemented(); return false; }
-float WebCore::userIdleTime() { notImplemented(); return 0.0; }
+// back/forward cache
 void CachedPage::close() { notImplemented(); }
 
-Vector<String> WebCore::supportedKeySizes() { notImplemented(); return Vector<String>(); }
-String WebCore::signedPublicKeyAndChallengeString(unsigned, const String&, const KURL&) { notImplemented(); return String(); }
+// <keygen>
+String signedPublicKeyAndChallengeString(unsigned, const String&, const KURL&) { notImplemented(); return String(); }
+Vector<String> supportedKeySizes() { notImplemented(); return Vector<String>(); }
+
+}
index 31a38e65ae1fa86d8dc7321528c1f5d73f60c804..f29a0df546e9a51f549abd037553aafcf11e562e 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
+ * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -244,4 +244,8 @@ void Widget::setFocus()
 {
 }
 
+void Widget::setIsSelected(bool)
+{
+}
+
 } // namespace WebCore
index 848c7bb44d509806ce086c28ec36e09f5ddf1dc7..c59ae6a387115ebab045eb3572806d7bf9a99986 100755 (executable)
@@ -98,7 +98,6 @@ int WebCore::findNextWordFromIndex(UChar const*,int,int,bool) { notImplemented()
 
 void Frame::clearPlatformScriptObjects() { notImplemented(); }
 
-void Frame::issueTransposeCommand() { notImplemented(); }
 void Frame::dashboardRegionsChanged() { notImplemented(); }
 DragImageRef Frame::dragImageForSelection() { notImplemented(); return 0; }
 
@@ -115,8 +114,6 @@ bool WebCore::cookiesEnabled() { notImplemented(); return false; }
 static WebCore::Cursor localCursor;
 const WebCore::Cursor& WebCore::moveCursor() { return localCursor; }
 
-bool AXObjectCache::gAccessibilityEnabled = false;
-
 namespace WebCore {
     bool historyContains(DeprecatedString const&) { return false; }
 }
@@ -203,8 +200,6 @@ void Editor::showColorPanel() { notImplemented(); }
 void Editor::showFontPanel() { notImplemented(); }
 void Editor::showStylesPanel() { notImplemented(); }
 
-String FrameLoader::overrideMediaType() const { notImplemented(); return String(); }
-
 bool EventHandler::tabsToAllControls(KeyboardEvent* event) const { notImplemented(); return false; }
 bool EventHandler::passSubframeEventToSubframe(MouseEventWithHitTestResults&, Frame* subframe, HitTestResult*) { notImplemented(); return false; }
 bool EventHandler::passMouseDownEventToWidget(Widget*) { notImplemented(); return false; }
@@ -215,8 +210,6 @@ void SearchPopupMenu::loadRecentSearches(const AtomicString& name, Vector<String
 SearchPopupMenu::SearchPopupMenu(PopupMenuClient* client) : PopupMenu(client) { notImplemented(); }
 bool SearchPopupMenu::enabled() { return true; }
 
-bool DocumentLoader::getResponseModifiedHeader(WebCore::String&) const { notImplemented(); return false; }
-
 namespace WebCore {
 float userIdleTime() { notImplemented(); return 0; }
 Vector<String> supportedKeySizes() { notImplemented(); return Vector<String>(); }
index 7e19dd8a46768ca656f9fd7438123ac152ef5e9a..c2c7e79644c7ab33d06ba136ecdc878a8968a5c7 100644 (file)
@@ -1,3 +1,15 @@
+2007-11-07  Darin Adler  <darin@apple.com>
+
+        Reviewed by Steve.
+
+        - removed some unused WebCore bridge methods
+
+        * WebCoreSupport/WebFrameBridge.mm: Removed issueTransposeCommand and overrideMediaType.
+
+        * WebCoreSupport/WebFrameLoaderClient.mm:
+        (WebFrameLoaderClient::overrideMediaType): Changed to call WebView directly instead of
+        using the bridge object.
+
 2007-11-06  Mark Rowe  <mrowe@apple.com>
 
         Rubber-stamped by Dave Kilzer.
index 9fe671fd344da2c58d0dd639cd31389f87231548..120cd5090f85127827d83f642eefa7d390441d2d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005, 2006 Apple Computer, Inc.  All rights reserved.
+ * Copyright (C) 2005, 2006, 2007 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -695,13 +695,6 @@ NSString *WebPluginContainerKey =   @"WebPluginContainer";
         [(WebHTMLView*)documentView paste:nil];
 }
 
-- (void)issueTransposeCommand
-{
-    NSView <WebDocumentView> *view = [[_frame frameView] documentView];
-    if ([view isKindOfClass:[WebHTMLView class]])
-        [(WebHTMLView *)view transpose:nil];
-}
-
 - (void)setIsSelected:(BOOL)isSelected forView:(NSView *)view
 {
     if ([view respondsToSelector:@selector(webPlugInSetIsSelected:)])
@@ -710,11 +703,6 @@ NSString *WebPluginContainerKey =   @"WebPluginContainer";
         [view setIsSelected:isSelected];
 }
 
-- (NSString *)overrideMediaType
-{
-    return [[self webView] mediaStyle];
-}
-
 - (void)windowObjectCleared
 {
     WebView *webView = getWebView(_frame);
index 32cb00d89b605a2952c7f2ae37364db273a2f839..3015c6e46b50df34cbb02fa58e57fe819b3b8880 100644 (file)
@@ -1225,7 +1225,7 @@ Widget* WebFrameLoaderClient::createJavaAppletWidget(const IntSize& size, Elemen
 
 String WebFrameLoaderClient::overrideMediaType() const
 {
-    NSString* overrideType = [m_webFrame->_private->bridge overrideMediaType];
+    NSString* overrideType = [getWebView(m_webFrame.get()) mediaStyle];
     if (overrideType)
         return overrideType;
     return String();
@@ -1318,6 +1318,4 @@ void WebFrameLoaderClient::didPerformFirstNavigation() const
     [self receivedPolicyDecision:PolicyUse];
 }
 
-
-
 @end
index 1b40ae530c0d66853421436dff49a1b7cd74111b..037e9c68cb01a7183ccf0120415264e76e3c7c6b 100644 (file)
@@ -1,3 +1,14 @@
+2007-11-07  Darin Adler  <darin@apple.com>
+
+        Reviewed by Steve.
+
+        * Interfaces/IWebUIDelegate.idl: Added the functions needed below.
+        * WebChromeClient.cpp:
+        (WebChromeClient::setMenubarVisible): Eliminated the notImplemented()
+        here by calling through the UI delegate.
+        (WebChromeClient::menubarVisible): Ditto.
+        (WebChromeClient::runDatabaseSizeLimitPrompt): Ditto.
+
 2007-11-07  Steve Falkenburg  <sfalken@apple.com>
 
         Added IWebDocumentText available via QI from WebFrame.
index e4fc3418c822c95f19ad2cc26c3aeee328468912..c1400b36ce294aea3fb57ac1b2e05d9c0c6c9bbc 100644 (file)
@@ -797,4 +797,7 @@ interface IWebUIDelegate3 : IWebUIDelegate2
     HRESULT canRunModal([in] IWebView* webView, [out, retval] BOOL* canRunBoolean);
     HRESULT createModalDialog([in] IWebView* sender, [in] IWebURLRequest* request, [out, retval] IWebView** newWebView);
     HRESULT runModal([in] IWebView* webView);
+    HRESULT isMenuBarVisible([in] IWebView* webView, [out, retval] BOOL* visible);
+    HRESULT setMenuBarVisible([in] IWebView* webView, [in] BOOL visible);
+    HRESULT runDatabaseSizeLimitPrompt([in] IWebView* webView, [in] BSTR displayName, [in] IWebFrame* initiatedByFrame, [out, retval] BOOL* allowed);
 }
index eab7177942e54618d70672988024970fc9c72ab3..207396b99010248dbd78df8a4c058c5447f61924 100644 (file)
@@ -36,7 +36,6 @@
 #include <WebCore/FloatRect.h>
 #include <WebCore/FrameLoadRequest.h>
 #include <WebCore/FrameView.h>
-#include <WebCore/NotImplemented.h>
 #include <WebCore/WindowFeatures.h>
 #pragma warning(pop)
 
@@ -248,23 +247,21 @@ bool WebChromeClient::scrollbarsVisible()
     return !!b;
 }
 
-void WebChromeClient::setMenubarVisible(bool)
+void WebChromeClient::setMenubarVisible(bool visible)
 {
-    IWebUIDelegate* uiDelegate = 0;
-    if (SUCCEEDED(m_webView->uiDelegate(&uiDelegate))) {
-        notImplemented();
-        uiDelegate->Release();
-    }
+    COMPtr<IWebUIDelegate3> delegate = uiDelegate3();
+    if (!delegate)
+        return;
+    delegate->setMenuBarVisible(m_webView, visible);
 }
 
 bool WebChromeClient::menubarVisible()
 {
-    bool result = false;
-    IWebUIDelegate* uiDelegate = 0;
-    if (SUCCEEDED(m_webView->uiDelegate(&uiDelegate))) {
-        notImplemented();
-        uiDelegate->Release();
-    }
+    COMPtr<IWebUIDelegate3> delegate = uiDelegate3();
+    if (!delegate)
+        return true;
+    BOOL result = true;
+    delegate->isMenuBarVisible(m_webView, &result);
     return result;
 }
 
@@ -459,10 +456,14 @@ void WebChromeClient::print(Frame* frame)
             uiDelegate2->printFrame(m_webView, kit(frame));
 }
 
-bool WebChromeClient::runDatabaseSizeLimitPrompt(Frame*, const String&)
+bool WebChromeClient::runDatabaseSizeLimitPrompt(Frame* frame, const String& prompt)
 {
-    notImplemented();
-    return false;
+    COMPtr<IWebUIDelegate3> delegate = uiDelegate3();
+    if (!delegate)
+        return false;
+    BOOL result = FALSE;
+    delegate->runDatabaseSizeLimitPrompt(m_webView, BString(prompt), kit(frame), &result);
+    return result;
 }
 
 COMPtr<IWebUIDelegate> WebChromeClient::uiDelegate()