1. 20 May, 2010 2 commits
    • mrobinson@webkit.org's avatar
      2010-05-20 Martin Robinson <mrobinson@igalia.com> · f328a36c
      mrobinson@webkit.org authored
              Unreviewed.
      
              Fix the Windows build.
      
              * WebView.cpp:
              (WebView::notifyPreferencesChanged): Change behavior to 'editingBehavior'.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f328a36c
    • mrobinson@webkit.org's avatar
      2010-05-20 Martin Robinson <mrobinson@webkit.org> · 255a8cf1
      mrobinson@webkit.org authored
              Reviewed by Ojan Vafai.
      
              Expose the editing behavior setting in DRT to test all editing code paths
              https://bugs.webkit.org/show_bug.cgi?id=38603
      
              * editing/selection/extend-selection-after-double-click.html: Use the new DRT support for changing editing behavior.
              * editing/selection/extend-selection-after-double-click-expected.txt: Update expected results to reflect both behaviors.
      2010-05-20  Martin Robinson  <mrobinson@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Expose the editing behavior setting in DRT to test all editing code paths
              https://bugs.webkit.org/show_bug.cgi?id=38603
      
              * public/WebSettings.h:
              (WebKit::WebSettings::): Added an enum for EditingBehavior types.
              * src/WebSettingsImpl.cpp:
              (WebKit::WebSettingsImpl::setEditingBehavior): Added.
              * src/WebSettingsImpl.h:
      2010-05-20  Martin Robinson  <mrobinson@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Expose the editing behavior setting in DRT to test all editing code paths
              https://bugs.webkit.org/show_bug.cgi?id=38603
      
              * WebView/WebFrame.mm:
              (core):
              * WebView/WebFrameInternal.h: Added a conversion method from the API enum to the WebCore enum.
              * WebView/WebPreferenceKeysPrivate.h: Added a preference key for the new setting.
              * WebView/WebPreferences.mm:
              (+[WebPreferences initialize]): Initialize the EditingBehavior to Mac style.
              (-[WebPreferences editingBehavior]): Added.
              (-[WebPreferences setEditingBehavior:]): Added.
              * WebView/WebPreferencesPrivate.h: Added the new API points to the private API.
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]): Set the editing behavior via the WebPreferences setting.
      2010-05-20  Martin Robinson  <mrobinson@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Expose the editing behavior setting in DRT to test all editing code paths
              https://bugs.webkit.org/show_bug.cgi?id=38603
      
              Expose the EditingBehavior setting in the Windows API.
      
              * Interfaces/IWebPreferences.idl: Add the API point for setting the editing behavior.
              * WebPreferenceKeysPrivate.h: Add a key for the editing behavior setting.
              * WebPreferences.cpp:
              (WebPreferences::editingBehavior): Added.
              (WebPreferences::setEditingBehavior): Added.
              * WebPreferences.h: Add method declarations.
              * WebView.cpp:
              (WebView::notifyPreferencesChanged): Update the WebCore setting based on the WebPreferences setting.
      2010-05-20  Martin Robinson  <mrobinson@webkit.org>
      
              Reviewed by Ojan Vafai.
      
              Expose the editing behavior setting in DRT to test all editing code paths
              https://bugs.webkit.org/show_bug.cgi?id=38603
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setEditingBehaviorCallback): Added.
              (LayoutTestController::staticFunctions): Expose the setEditingBehaviorCallback function.
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp: Add callback method for setting editing behavior.
              * DumpRenderTree/chromium/LayoutTestController.h: Declaration for this method.
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::setEditingBehavior): Implementation of editing behavior control.
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::setEditingBehavior): Ditto
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::setEditingBehavior): Added stub implementation of editing behavior control.
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              (LayoutTestController::setEditingBehavior): Add slot for controlling editor behavior.
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::setEditingBehavior): Implementation of editing behavior control.
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::setEditingBehavior): Added stub implementation of editing behavior control.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59840 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      255a8cf1
  2. 13 May, 2010 1 commit
    • bweinstein@apple.com's avatar
      <rdar://problem/7975410> · 31a06491
      bweinstein@apple.com authored
      Reviewed by Tim Hatcher.
      
      Allow reporting exceptions that occur when using JavaScriptCore APIs to the Web Inspector.
      
      * Interfaces/IWebViewPrivate.idl: Add a reportException function off of IWebViewPrivate.
      * Interfaces/WebKit.idl: Touch WebKit.idl to make sure Interfaces rebuild.
      * WebView.cpp:
      (WebView::reportException): Make sure the function was called with a context from a WebView, and call
          WebCore::reportException.
      * WebView.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@59434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31a06491
  3. 11 May, 2010 2 commits
  4. 06 May, 2010 1 commit
    • aroben@apple.com's avatar
      2010-05-06 Adam Roben <aroben@apple.com> · aa745e52
      aroben@apple.com authored
              Bail out of WebView::paint when there's nothing to paint
      
              Fixes <http://webkit.org/b/38670> <rdar://problem/7947105> REGRESSION
              (r58067): Crash in WebView::paint when Web Inspector is docked and
              window is resized so small that WebView disappears
      
              When the WebView is 0-sized, ensureBackingStore() bails out without
              creating a bitmap, leaving m_backingStoreBitmap null. Before r58067,
              m_backingStoreBitmap was an HBITMAP, so we were happily passing along
              a null HBITMAP to various Windows APIs. These calls would fail but not
              crash. r58067 changed m_backingStoreBitmap to a RefCountedHBITMAP, and
              dereferencing a null RefCountedHBITMAP* of course crashes.
      
              Reviewed by Steve Falkenburg.
      
              * WebView.cpp:
              (WebView::paint): Bail if the rect to paint is empty.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58900 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa745e52
  5. 03 May, 2010 1 commit
    • abarth@webkit.org's avatar
      2010-05-03 Abhishek Arya <inferno@chromium.org> · 616e41e4
      abarth@webkit.org authored
              Reviewed by Adam Barth.
      
              Tests that javascript cannot access clipboard.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * editing/execCommand/clipboard-access-expected.txt: Added.
              * editing/execCommand/clipboard-access.html: Added.
              * editing/execCommand/script-tests/clipboard-access.js: Added.
              (enabled):
              (whenEnabled):
      2010-05-03  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Test: editing/execCommand/clipboard-access.html
      
              * WebCore.base.exp:
              * editing/EditorCommand.cpp:
              (WebCore::supportedCopyCut):
              (WebCore::supportedPaste):
              (WebCore::createCommandMap):
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              (WebCore::Settings::setJavaScriptCanAccessClipboard):
              * page/Settings.h:
              (WebCore::Settings::javaScriptCanAccessClipboard):
      2010-05-03  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * public/WebSettings.h:
              * src/WebSettingsImpl.cpp:
              (WebKit::WebSettingsImpl::setJavaScriptCanAccessClipboard):
              * src/WebSettingsImpl.h:
      2010-05-03  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * webkit/webkitwebsettings.cpp:
              (webkit_web_settings_class_init):
              (webkit_web_settings_set_property):
              (webkit_web_settings_get_property):
              (webkit_web_settings_copy):
              * webkit/webkitwebview.cpp:
              (webkit_web_view_update_settings):
              (webkit_web_view_settings_notify):
      2010-05-03  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.mm:
              (+[WebPreferences initialize]):
              (-[WebPreferences javaScriptCanAccessClipboard]):
              (-[WebPreferences setJavaScriptCanAccessClipboard:]):
              * WebView/WebPreferencesPrivate.h:
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
      2010-05-03  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * Api/qwebsettings.cpp:
              (QWebSettingsPrivate::apply):
              * Api/qwebsettings.h:
      2010-05-03  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * Interfaces/IWebPreferencesPrivate.idl:
              * WebPreferenceKeysPrivate.h:
              * WebPreferences.cpp:
              (WebPreferences::initializeDefaultSettings):
              (WebPreferences::javaScriptCanAccessClipboard):
              (WebPreferences::setJavaScriptCanAccessClipboard):
              * WebPreferences.h:
              * WebView.cpp:
              (WebView::notifyPreferencesChanged):
      2010-05-03  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is enabled in test framework.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setJavaScriptCanAccessClipboardCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              (LayoutTestController::overridePreference):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/chromium/TestShell.cpp:
              (TestShell::resetWebSettings):
              * DumpRenderTree/gtk/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
              (WebCore::WebPage::WebPage):
              (WebCore::WebPage::resetSettings):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      616e41e4
  6. 30 Apr, 2010 1 commit
    • jhoneycutt@apple.com's avatar
      Caret may fail to blink if a focus handler brings up a modal dialog · c902204b
      jhoneycutt@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=38372
      
      Reviewed by Darin Adler.
      
      WebCore:
      
      * manual-tests/onfocus-alert-blinking-caret.html: Added.
      
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleMousePressEvent):
      Moved the call to setCaretBlinkingSuspended() from here...
      (WebCore::EventHandler::handleMousePressEvent):
      ... to here. This makes us suspend caret blinking before dispatching the
      mouse down event. If dispatching the mouse down event allows the message
      loop to run, we want mouse up events received in that message loop to be
      able to resume caret blinking.
      (WebCore::EventHandler::lostMouseCapture):
      We've lost mouse capture and won't be notified of mouse up events;
      resume caret blinking.
      
      * page/EventHandler.h:
      Declare lostMouseCapture().
      
      WebKit/win:
      
      * WebView.cpp:
      (WebView::handleMouseEvent):
      If the message is WM_CANCELMODE, which indicates that we our capturing
      of mouse events has been cancelled, tell the EventHandler.
      It's possible to re-enter this function if handling a mouse event allows
      the message loop to run; moved up the call to setMouseActivated(), so
      that if we do re-enter this function, the later mouse event will not be
      considered as activating the window.
      (WebView::WebViewWndProc):
      Handle WM_CANCELMODE by calling handleMouseEvent().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c902204b
  7. 28 Apr, 2010 2 commits
  8. 27 Apr, 2010 1 commit
  9. 26 Apr, 2010 1 commit
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=38097 · 092fd1fe
      weinig@apple.com authored
      Disentangle initializing the main thread from initializing threading
      
      Reviewed by Maciej Stachowiak.
      
      JavaScriptCore: 
      
      This is the first step in getting rid of the WEB_THREAD #define and
      paving the way to allowing mac both WebKit and WebKit2 to use the same
      WebCore.
      
      * JavaScriptCore.exp: Export initializeMainThread and initializeMainThreadToProcessMainThread.
      * JavaScriptCore.xcodeproj/project.pbxproj: Sort files.
      
      * wtf/MainThread.cpp:
      (WTF::mainThreadInitializationMutex):
      (WTF::mainThreadFunctionQueueMutex):
      (WTF::initializeMainThread):
      (WTF::deprecatedInitializeMainThread):
      * wtf/MainThread.h:
      Added Mac only initializeMainThreadToProcessMainThread which sets up callOnMainThread
      and isMainThead calls to assume that WebCore's main thread is also the
      process's main thread. Since it is possible that both initializeMainThread
      and initializeMainThreadToProcessMainThread could be called, the first one called
      wins (either will work).
      
      * wtf/Threading.h: Moved to top of file.
      
      * wtf/ThreadingPthreads.cpp:
      (WTF::initializeThreading): Remove call to initializeMainThread.
      * wtf/ThreadingWin.cpp:
      (WTF::initializeThreading): Ditto.
      * wtf/gtk/ThreadingGtk.cpp:
      (WTF::initializeThreading): Ditto.
      
      * wtf/mac/MainThreadMac.mm:
      (WTF::initializeMainThreadPlatform):
      (WTF::initializeMainThreadToProcessMainThread):
      (WTF::scheduleDispatchFunctionsOnMainThread):
      (WTF::isMainThread):
      Add runtime switch between the old behavior of using the system's main
      thread and a stored pointer to the main thread. Tiger always uses the
      system's main thread.
      
      * wtf/qt/ThreadingQt.cpp:
      (WTF::initializeThreading): Remove call to initializeMainThread.
      * wtf/win/MainThreadWin.cpp:
      (WTF::initializeMainThreadPlatform): Add call to initializeCurrentThreadInternal
      removed from initializeThreading.
      
      WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj: Sort files.
      
      * accessibility/mac/AccessibilityObjectWrapper.mm: Remove unnessary
      +initialize method. The AccessibilityObjectWrapper has no data members
      that need to be derefed, so it does not need to be finalized on the main
      thread.
      
      * bindings/js/ScriptController.cpp:
      (WebCore::ScriptController::initializeThreading): Add call to initializeMainThread.
      * bindings/objc/WebScriptObject.mm:
      (+[WebScriptObject initialize]): Add call to initializeMainThreadToProcessMainThread.
      * bindings/v8/ScriptController.cpp:
      (WebCore::ScriptController::initializeThreading): Add call to initializeMainThread.
      * platform/mac/SharedBufferMac.mm:
      (+[WebCoreSharedBufferData initialize]): Add call to initializeMainThreadToProcessMainThread.
      
      WebKit/chromium: 
      
      * src/WebKit.cpp:
      (WebKit::initialize): Add call to initializeMainThread.
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::WebViewImpl): Ditto.
      
      WebKit/gtk: 
      
      * webkit/webkitprivate.cpp:
      (webkit_init): Add call to initializeMainThread.
      
      WebKit/mac: 
      
      Calls initializeMainThreadToProcessMainThread since there is no way to ensure
      that the initialize method will be called on the main thread.
      
      * Carbon/CarbonWindowAdapter.mm:
      (+[CarbonWindowAdapter initialize]): Add call to initializeMainThreadToProcessMainThread.
      * History/WebBackForwardList.mm:
      (+[WebBackForwardList initialize]): Ditto.
      * History/WebHistoryItem.mm:
      (+[WebHistoryItem initialize]): Ditto.
      * Misc/WebElementDictionary.mm:
      (+[WebElementDictionary initialize]): Ditto.
      * Misc/WebIconDatabase.mm:
      (+[WebIconDatabase initialize]): Ditto.
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      (+[WebHostedNetscapePluginView initialize]): Ditto.
      * Plugins/WebBaseNetscapePluginView.mm:
      (+[WebBaseNetscapePluginView initialize]): Ditto.
      * Plugins/WebBasePluginPackage.mm:
      (+[WebBasePluginPackage initialize]): Ditto.
      * Plugins/WebNetscapePluginView.mm:
      (+[WebNetscapePluginView initialize]): Ditto.
      * WebCoreSupport/WebEditorClient.mm:
      (+[WebEditCommand initialize]): Ditto.
      * WebCoreSupport/WebFrameLoaderClient.mm: 
      (+[WebFramePolicyListener initialize]): Ditto.
      * WebView/WebArchive.mm:
      (+[WebArchivePrivate initialize]): Ditto.
      * WebView/WebDataSource.mm:
      (+[WebDataSourcePrivate initialize]): Ditto.
      * WebView/WebHTMLView.mm:
      (+[WebHTMLViewPrivate initialize]): Ditto.
      (+[WebHTMLView initialize]): Ditto.
      * WebView/WebResource.mm:
      (+[WebResourcePrivate initialize]): Ditto.
      * WebView/WebTextIterator.mm:
      (+[WebTextIteratorPrivate initialize]): Ditto.
      * WebView/WebView.mm:
      * WebView/WebViewData.mm: Ditto.
      (+[WebViewPrivate initialize]): Ditto.
      
      WebKit/qt: 
      
      * Api/qwebpage.cpp:
      (QWebPagePrivate::QWebPagePrivate): Add call to initializeMainThread.
      
      WebKit/win: 
      
      * WebKitClassFactory.cpp:
      (WebKitClassFactory::WebKitClassFactory): Add call to initializeMainThread.
      * WebView.cpp:
      (WebView::WebView): Ditto.
      
      WebKit/wx: 
      
      * WebView.cpp:
      (wxWebView::Create): Add call to initializeMainThread.
      
      WebKit2: 
      
      * UIProcess/Launcher/mac/WebProcessLauncher.mm:
      (WebKit::webThreadBody): Add call to initializeMainThread.
      * UIProcess/Launcher/win/WebProcessLauncher.cpp:
      (WebKit::webThreadBody): Ditto.
      * WebProcess/Launching/mac/WebProcessMain.mm:
      (main): Ditto.
      * WebProcess/win/WebProcessMain.cpp:
      (WebKit::WebProcessMain): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58266 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      092fd1fe
  10. 22 Apr, 2010 3 commits
    • abarth@webkit.org's avatar
      2010-04-22 Adam Barth <abarth@webkit.org> · bf00db5b
      abarth@webkit.org authored
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * editing/execCommand/clipboard-access-expected.txt: Removed.
              * editing/execCommand/clipboard-access.html: Removed.
              * editing/execCommand/script-tests/clipboard-access.js: Removed.
      2010-04-22  Adam Barth  <abarth@webkit.org>
      
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * WebCore.base.exp:
              * editing/EditorCommand.cpp:
              (WebCore::supportedPaste):
              (WebCore::createCommandMap):
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              * page/Settings.h:
      2010-04-22  Adam Barth  <abarth@webkit.org>
      
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * public/WebSettings.h:
              * src/WebSettingsImpl.cpp:
              * src/WebSettingsImpl.h:
      2010-04-22  Adam Barth  <abarth@webkit.org>
      
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * webkit/webkitwebsettings.cpp:
              (webkit_web_settings_class_init):
              (webkit_web_settings_set_property):
              (webkit_web_settings_get_property):
              (webkit_web_settings_copy):
              * webkit/webkitwebview.cpp:
              (webkit_web_view_update_settings):
              (webkit_web_view_settings_notify):
      2010-04-22  Adam Barth  <abarth@webkit.org>
      
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.mm:
              (+[WebPreferences initialize]):
              * WebView/WebPreferencesPrivate.h:
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
      2010-04-22  Adam Barth  <abarth@webkit.org>
      
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * Api/qwebsettings.cpp:
              (QWebSettingsPrivate::apply):
              * Api/qwebsettings.h:
      2010-04-22  Adam Barth  <abarth@webkit.org>
      
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * Interfaces/IWebPreferencesPrivate.idl:
              * WebPreferenceKeysPrivate.h:
              * WebPreferences.cpp:
              (WebPreferences::initializeDefaultSettings):
              * WebPreferences.h:
              * WebView.cpp:
              (WebView::notifyPreferencesChanged):
      2010-04-22  Adam Barth  <abarth@webkit.org>
      
              Unreviewed, rolling out r58069.
              http://trac.webkit.org/changeset/58069
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Broke compile on Windows.
      
              * DumpRenderTree/LayoutTestController.cpp:
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::overridePreference):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/chromium/TestShell.cpp:
              (TestShell::resetWebSettings):
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
              (WebCore::WebPage::WebPage):
              (WebCore::WebPage::resetSettings):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf00db5b
    • abarth@webkit.org's avatar
      2010-04-22 Abhishek Arya <inferno@chromium.org> · dfeb70e5
      abarth@webkit.org authored
              Reviewed by Adam Barth.
      
              Manual test to verify that javascript cannot access clipboard.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * editing/execCommand/clipboard-access-expected.txt: Added.
              * editing/execCommand/clipboard-access.html: Added.
              * editing/execCommand/script-tests/clipboard-access.js: Added.
              (enabled):
              (whenEnabled):
              (runTest):
      2010-04-22  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              Test: editing/execCommand/clipboard-access.html
      
              * WebCore.base.exp:
              * editing/EditorCommand.cpp:
              (WebCore::supportedCopyCut):
              (WebCore::supportedPaste):
              (WebCore::createCommandMap):
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              (WebCore::Settings::setJavaScriptCanAccessClipboard):
              * page/Settings.h:
              (WebCore::Settings::javaScriptCanAccessClipboard):
      2010-04-22  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * public/WebSettings.h:
              * src/WebSettingsImpl.cpp:
              (WebKit::WebSettingsImpl::setJavaScriptCanAccessClipboard):
              * src/WebSettingsImpl.h:
      2010-04-22  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * webkit/webkitwebsettings.cpp:
              (webkit_web_settings_class_init):
              (webkit_web_settings_set_property):
              (webkit_web_settings_get_property):
              (webkit_web_settings_copy):
              * webkit/webkitwebview.cpp:
              (webkit_web_view_update_settings):
              (webkit_web_view_settings_notify):
      2010-04-22  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * WebView/WebPreferenceKeysPrivate.h:
              * WebView/WebPreferences.mm:
              (+[WebPreferences initialize]):
              (-[WebPreferences javaScriptCanAccessClipboard]):
              (-[WebPreferences setJavaScriptCanAccessClipboard:]):
              * WebView/WebPreferencesPrivate.h:
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
      2010-04-22  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * Api/qwebsettings.cpp:
              (QWebSettingsPrivate::apply):
              * Api/qwebsettings.h:
      2010-04-22  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is disabled by default.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * Interfaces/IWebPreferencesPrivate.idl:
              * WebPreferenceKeysPrivate.h:
              * WebPreferences.cpp:
              (WebPreferences::initializeDefaultSettings):
              (WebPreferences::javaScriptCanAccessClipboard):
              (WebPreferences::setJavaScriptCanAccessClipboard):
              * WebPreferences.h:
              * WebView.cpp:
              (WebView::notifyPreferencesChanged):
      2010-04-22  Abhishek Arya  <inferno@chromium.org>
      
              Reviewed by Adam Barth.
      
              Add support for controlling clipboard access from javascript.
              Clipboard access from javascript is enabled in test framework.
              https://bugs.webkit.org/show_bug.cgi?id=27751
      
              * DumpRenderTree/LayoutTestController.cpp:
              (setJavaScriptCanAccessClipboardCallback):
              (LayoutTestController::staticFunctions):
              * DumpRenderTree/LayoutTestController.h:
              * DumpRenderTree/chromium/LayoutTestController.cpp:
              (LayoutTestController::LayoutTestController):
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              (LayoutTestController::overridePreference):
              * DumpRenderTree/chromium/LayoutTestController.h:
              * DumpRenderTree/chromium/TestShell.cpp:
              (TestShell::resetWebSettings):
              * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/mac/DumpRenderTree.mm:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/mac/LayoutTestControllerMac.mm:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
              (WebCore::WebPage::WebPage):
              (WebCore::WebPage::resetSettings):
              * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/qt/LayoutTestControllerQt.h:
              * DumpRenderTree/win/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
              * DumpRenderTree/win/LayoutTestControllerWin.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
              * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
              (LayoutTestController::setJavaScriptCanAccessClipboard):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dfeb70e5
    • aestes@apple.com's avatar
      Reference count WebView's backing store bitmap to prevent · e1a995c1
      aestes@apple.com authored
      deleteBackingStore() from freeing the bitmap while it is still being
      referenced by Core Animation.
      
      Reviewed by Maciej Stachowiak.
      
      https://bugs.webkit.org/show_bug.cgi?id=37954
      
      * WebView.cpp:
      (WebView::ensureBackingStore):
      (WebView::addToDirtyRegion):
      (WebView::scrollBackingStore):
      (WebView::updateBackingStore):
      (WebView::paint):
      (WebView::backingStore):
      (releaseBackingStoreCallback): deref m_backingStoreBitmap once Core
      Animation has dropeed its reference to the memory.
      (WebView::updateRootLayerContents): ref m_backingStoreBitmap before
      passing the memory to Core Animation to prevent deleteBackingStore()
      from freeing it while it is still referenced by CA.
      * WebView.h: Make m_backingStoreBitmap a RefCountedGDIHandle<HBITMAP>,
      and make m_backingStoreDirtyRegion a RefCountedGDIHandle<HRGN>.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@58067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e1a995c1
  11. 16 Apr, 2010 1 commit
  12. 13 Apr, 2010 2 commits
    • timothy@apple.com's avatar
      SecurityOrigin needs a way to remove individual OriginAccessEntries · d09168f4
      timothy@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=37449
      
      Reviewed by Dave Hyatt.
      
      WebCore:
      
      Test: http/tests/xmlhttprequest/origin-whitelisting-removal.html
      
      * WebCore.base.exp: Added SecurityOrigin::removeOriginAccessWhitelistEntry.
      * page/OriginAccessEntry.h:
      (WebCore::OriginAccessEntry::protocol): Added. Returns m_protocol.
      (WebCore::OriginAccessEntry::host): Added. Returns m_host.
      (WebCore::OriginAccessEntry::subdomainSettings): Added. Returns m_subdomainSettings.
      (WebCore::operator==): Added. Compares OriginAccessEntry.
      (WebCore::operator!=): Ditto.
      * page/SecurityOrigin.cpp:
      (WebCore::SecurityOrigin::addOriginAccessWhitelistEntry): Use the add method to prevent a
      second hash lookup.
      (WebCore::SecurityOrigin::removeOriginAccessWhitelistEntry): Added. Find a matching
      OriginAccessEntry and remove it.
      * page/SecurityOrigin.h: Added removeOriginAccessWhitelistEntry.
      
      WebKit/mac:
      
      * WebView/WebView.mm:
      (+[WebView _removeOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
      Call SecurityOrigin::removeOriginAccessWhitelistEntry.
      * WebView/WebViewPrivate.h: Added _removeOriginAccessWhitelistEntryWithSourceOrigin.
      
      WebKit/win:
      
      * Interfaces/IWebViewPrivate.idl:
      * WebView.cpp:
      (WebView::removeOriginAccessWhitelistEntry): Call SecurityOrigin::removeOriginAccessWhitelistEntry.
      * WebView.h: Added removeOriginAccessWhitelistEntry.
      
      WebKitTools:
      
      * DumpRenderTree/LayoutTestController.cpp:
      (removeOriginAccessWhitelistEntryCallback): Added. Call LayoutTestController::removeOriginAccessWhitelistEntry.
      (LayoutTestController::staticFunctions): Added removeOriginAccessWhitelistEntry.
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::removeOriginAccessWhitelistEntry): Added. FIXME to implement.
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::removeOriginAccessWhitelistEntry): Added.
      * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
      (LayoutTestController::removeOriginAccessWhitelistEntry): Added. FIXME to implement.
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::removeOriginAccessWhitelistEntry): Added.
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::whiteListAccessFromOrigin): FIXME to implement.
      (LayoutTestController::removeOriginAccessWhitelistEntry): Added. FIXME to implement.
      
      LayoutTests:
      
      * http/tests/xmlhttprequest/origin-whitelisting-removal-expected.txt: Added.
      * http/tests/xmlhttprequest/origin-whitelisting-removal.html: Added.
      * platform/gtk/Skipped: Added origin-whitelisting-removal.html.
      * platform/qt/Skipped: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57537 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d09168f4
    • timothy@apple.com's avatar
      Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry. · a2e62531
      timothy@apple.com authored
      And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
      
      SecurityOrigin needs a way to remove individual OriginAccessEntries
      https://bugs.webkit.org/show_bug.cgi?id=37449
      
      Reviewed by Dave Hyatt.
      
      WebCore:
      
      * WebCore.base.exp:
      * page/SecurityOrigin.cpp:
      (WebCore::SecurityOrigin::addOriginAccessWhitelistEntry):
      (WebCore::SecurityOrigin::resetOriginAccessWhitelists):
      * page/SecurityOrigin.h:
      
      WebKit/chromium:
      
      * src/WebSecurityPolicy.cpp:
      (WebKit::WebSecurityPolicy::whiteListAccessFromOrigin):
      (WebKit::WebSecurityPolicy::resetOriginAccessWhiteLists):
      
      WebKit/gtk:
      
      * webkit/webkitprivate.cpp:
      (webkit_white_list_access_from_origin):
      (webkit_reset_origin_access_white_lists):
      
      WebKit/mac:
      
      * WebView/WebView.mm:
      (+[WebView _addOriginAccessWhitelistEntryWithSourceOrigin:destinationProtocol:destinationHost:allowDestinationSubdomains:]):
      (+[WebView _resetOriginAccessWhitelists]):
      * WebView/WebViewPrivate.h:
      
      WebKit/qt:
      
      * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
      (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
      (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
      
      WebKit/win:
      
      * Interfaces/IWebViewPrivate.idl:
      * WebView.cpp:
      (WebView::addOriginAccessWhitelistEntry):
      (WebView::resetOriginAccessWhitelists):
      * WebView.h:
      
      WebKitTools:
      
      * DumpRenderTree/LayoutTestController.cpp:
      (addOriginAccessWhitelistEntryCallback):
      (LayoutTestController::staticFunctions):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/chromium/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (LayoutTestController::addOriginAccessWhitelistEntry):
      * DumpRenderTree/chromium/LayoutTestController.h:
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::addOriginAccessWhitelistEntry):
      * DumpRenderTree/mac/DumpRenderTree.mm:
      (resetWebViewToConsistentStateBeforeTesting):
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::addOriginAccessWhitelistEntry):
      * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
      (LayoutTestController::addOriginAccessWhitelistEntry):
      * DumpRenderTree/qt/LayoutTestControllerQt.h:
      * DumpRenderTree/win/DumpRenderTree.cpp:
      (resetWebViewToConsistentStateBeforeTesting):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::addOriginAccessWhitelistEntry):
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::addOriginAccessWhitelistEntry):
      
      LayoutTests:
      
      * http/tests/security/local-image-from-remote-whitelisted-expected.txt:
      * http/tests/security/local-image-from-remote-whitelisted.html:
      * http/tests/xmlhttprequest/origin-whitelisting-all.html:
      * http/tests/xmlhttprequest/origin-whitelisting-exact-match.html:
      * http/tests/xmlhttprequest/origin-whitelisting-https.html:
      * http/tests/xmlhttprequest/origin-whitelisting-ip-addresses-with-subdomains.html:
      * http/tests/xmlhttprequest/origin-whitelisting-ip-addresses.html:
      * http/tests/xmlhttprequest/origin-whitelisting-subdomains.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@57535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a2e62531
  13. 08 Apr, 2010 1 commit
  14. 30 Mar, 2010 1 commit
    • barraclough@apple.com's avatar
      Rubber stamped by Sam Weinig. · 00b7992e
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=36866
      Move CString to WTF
      
      JavaScriptCore: 
      
      * Android.mk:
      * GNUmakefile.am:
      * JavaScriptCore.exp:
      * JavaScriptCore.gypi:
      * JavaScriptCore.pro:
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
      * JavaScriptCore.vcproj/WTF/WTF.vcproj:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/text: Added.
      * wtf/text/CString.cpp: Copied from WebCore/platform/text/CString.cpp.
      * wtf/text/CString.h: Copied from WebCore/platform/text/CString.h.
      (WTF::CStringBuffer::data):
      (WTF::CStringBuffer::length):
      (WTF::CStringBuffer::create):
      (WTF::CStringBuffer::CStringBuffer):
      (WTF::CStringBuffer::mutableData):
      (WTF::CString::CString):
      (WTF::CString::isNull):
      (WTF::CString::buffer):
      (WTF::operator!=):
      
      WebCore: 
      
      * Android.mk:
      * ForwardingHeaders/wtf/text: Added.
      * ForwardingHeaders/wtf/text/CString.h: Added.
      * GNUmakefile.am:
      * WebCore.base.exp:
      * WebCore.gypi:
      * WebCore.order:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
      * bindings/js/JSDOMWindowBase.cpp:
      * bindings/js/ScheduledAction.cpp:
      * bindings/js/ScriptController.cpp:
      * bindings/v8/ScriptController.cpp:
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8DOMWindowShell.cpp:
      * bridge/jni/JNIBridge.cpp:
      * bridge/jni/v8/JavaStringV8.h:
      (JSC::Bindings::JavaStringImpl::init):
      * css/CSSParser.cpp:
      * dom/CharacterData.cpp:
      * dom/Document.cpp:
      * dom/Element.cpp:
      * dom/Node.cpp:
      * dom/Position.cpp:
      * dom/Range.cpp:
      * dom/Text.cpp:
      * dom/XMLTokenizer.cpp:
      * dom/XMLTokenizerLibxml2.cpp:
      * dom/XMLTokenizerQt.cpp:
      * editing/SelectionController.cpp:
      * editing/VisiblePosition.cpp:
      * editing/VisibleSelection.cpp:
      * history/CachedFrame.cpp:
      * history/HistoryItem.cpp:
      * history/qt/HistoryItemQt.cpp:
      * html/FormDataList.h:
      (WebCore::FormDataList::appendData):
      (WebCore::FormDataList::Item::Item):
      (WebCore::FormDataList::Item::data):
      * html/HTMLDocument.cpp:
      * html/PreloadScanner.cpp:
      * inspector/InspectorController.cpp:
      * inspector/InspectorDOMAgent.cpp:
      * loader/DocLoader.cpp:
      * loader/FTPDirectoryDocument.cpp:
      * loader/FrameLoader.cpp:
      * loader/HistoryController.cpp:
      * loader/ProgressTracker.cpp:
      * loader/appcache/ApplicationCacheStorage.cpp:
      * loader/archive/cf/LegacyWebArchive.cpp:
      * loader/icon/wince/IconDatabaseWince.cpp:
      * loader/loader.cpp:
      * page/Console.cpp:
      * page/DOMWindow.cpp:
      * page/SecurityOrigin.cpp:
      * page/XSSAuditor.cpp:
      * page/animation/AnimationBase.cpp:
      * platform/ContextMenu.cpp:
      * platform/FileSystem.h:
      * platform/KURL.cpp:
      * platform/KURLGoogle.cpp:
      * platform/KURLGooglePrivate.h:
      * platform/Pasteboard.h:
      * platform/android/FileSystemAndroid.cpp:
      * platform/android/TemporaryLinkStubs.cpp:
      * platform/brew/KURLBrew.cpp:
      * platform/cf/FileSystemCF.cpp:
      * platform/chromium/MIMETypeRegistryChromium.cpp:
      * platform/efl/FileSystemEfl.cpp:
      * platform/efl/PasteboardEfl.cpp:
      * platform/efl/PlatformKeyboardEventEfl.cpp:
      * platform/efl/PlatformScreenEfl.cpp:
      * platform/efl/RenderThemeEfl.cpp:
      * platform/efl/ScrollbarEfl.cpp:
      * platform/efl/SharedBufferEfl.cpp:
      * platform/efl/WidgetEfl.cpp:
      * platform/graphics/GlyphPageTreeNode.cpp:
      * platform/graphics/cairo/FontPlatformDataCairo.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/chromium/FontCacheLinux.cpp:
      * platform/graphics/chromium/FontPlatformDataLinux.h:
      * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      * platform/graphics/gtk/FontPlatformDataPango.cpp:
      * platform/graphics/gtk/IconGtk.cpp:
      * platform/graphics/gtk/ImageGtk.cpp:
      * platform/graphics/haiku/GraphicsContextHaiku.cpp:
      * platform/graphics/mac/GraphicsContext3DMac.cpp:
      * platform/graphics/mac/GraphicsLayerCA.mm:
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      * platform/graphics/qt/ImageBufferQt.cpp:
      * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
      * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
      * platform/graphics/skia/GraphicsLayerSkia.cpp:
      * platform/graphics/win/GraphicsLayerCACF.cpp:
      * platform/graphics/win/WKCACFLayer.cpp:
      * platform/graphics/wx/FontPlatformData.h:
      * platform/gtk/ClipboardGtk.cpp:
      * platform/gtk/ContextMenuItemGtk.cpp:
      * platform/gtk/DataObjectGtk.h:
      * platform/gtk/FileChooserGtk.cpp:
      * platform/gtk/FileSystemGtk.cpp:
      * platform/gtk/GeolocationServiceGtk.cpp:
      * platform/gtk/KURLGtk.cpp:
      * platform/gtk/Language.cpp:
      * platform/gtk/LocalizedStringsGtk.cpp:
      * platform/gtk/PasteboardGtk.cpp:
      * platform/gtk/PopupMenuGtk.cpp:
      * platform/gtk/RenderThemeGtk.cpp:
      * platform/gtk/SharedBufferGtk.cpp:
      * platform/haiku/FileSystemHaiku.cpp:
      * platform/haiku/PlatformKeyboardEventHaiku.cpp:
      * platform/network/CredentialStorage.cpp:
      * platform/network/FormData.cpp:
      * platform/network/FormData.h:
      * platform/network/FormDataBuilder.cpp:
      * platform/network/FormDataBuilder.h:
      * platform/network/HTTPParsers.cpp:
      * platform/network/android/ResourceHandleAndroid.cpp:
      * platform/network/cf/FormDataStreamCFNet.cpp:
      * platform/network/cf/ResourceHandleCFNet.cpp:
      * platform/network/chromium/ResourceResponse.h:
      * platform/network/curl/FormDataStreamCurl.cpp:
      * platform/network/curl/ResourceHandleManager.cpp:
      * platform/network/curl/ResourceHandleManager.h:
      * platform/network/mac/FormDataStreamMac.mm:
      * platform/network/mac/ResourceHandleMac.mm:
      * platform/network/qt/QNetworkReplyHandler.cpp:
      * platform/network/soup/CookieJarSoup.cpp:
      * platform/network/soup/ResourceHandleSoup.cpp:
      * platform/network/soup/ResourceRequestSoup.cpp:
      * platform/network/soup/ResourceResponseSoup.cpp:
      * platform/network/win/ResourceHandleWin.cpp:
      * platform/posix/FileSystemPOSIX.cpp:
      * platform/qt/FileSystemQt.cpp:
      * platform/qt/KURLQt.cpp:
      * platform/qt/TemporaryLinkStubs.cpp:
      * platform/sql/chromium/SQLiteFileSystemChromium.cpp:
      * platform/text/CString.cpp: Removed.
      * platform/text/CString.h: Removed.
      * platform/text/PlatformString.h:
      * platform/text/String.cpp:
      * platform/text/StringImpl.cpp:
      * platform/text/TextCodec.h:
      * platform/text/TextCodecICU.cpp:
      * platform/text/TextCodecLatin1.cpp:
      * platform/text/TextCodecUTF16.cpp:
      * platform/text/TextCodecUserDefined.cpp:
      * platform/text/TextEncoding.cpp:
      * platform/text/TextEncoding.h:
      * platform/text/chromium/TextBreakIteratorInternalICUChromium.cpp:
      * platform/text/gtk/TextCodecGtk.cpp:
      * platform/text/haiku/StringHaiku.cpp:
      * platform/text/mac/TextCodecMac.cpp:
      * platform/text/qt/TextCodecQt.cpp:
      * platform/text/wx/StringWx.cpp:
      * platform/win/ClipboardUtilitiesWin.cpp:
      * platform/win/ClipboardWin.cpp:
      * platform/win/ContextMenuItemWin.cpp:
      * platform/win/ContextMenuWin.cpp:
      * platform/win/FileSystemWin.cpp:
      * platform/win/GDIObjectCounter.cpp:
      * platform/win/Language.cpp:
      * platform/win/PasteboardWin.cpp:
      * platform/wince/FileSystemWince.cpp:
      * platform/wince/KeygenWince.cpp:
      * platform/wince/PasteboardWince.cpp:
      * platform/wx/FileSystemWx.cpp:
      * platform/wx/LoggingWx.cpp:
      * plugins/PluginDebug.h:
      * plugins/PluginPackage.cpp:
      * plugins/PluginStream.cpp:
      * plugins/PluginStream.h:
      * plugins/PluginView.h:
      * plugins/gtk/PluginPackageGtk.cpp:
      * plugins/mac/PluginPackageMac.cpp:
      * plugins/qt/PluginPackageQt.cpp:
      * plugins/symbian/PluginPackageSymbian.cpp:
      * plugins/win/PluginPackageWin.cpp:
      * rendering/RenderLayer.cpp:
      * rendering/RenderLayerCompositor.cpp:
      * rendering/RenderTreeAsText.cpp:
      * storage/Database.cpp:
      * storage/SQLTransactionCoordinator.cpp:
      * storage/SQLTransactionCoordinator.h:
      * storage/StorageAreaSync.cpp:
      * storage/StorageSyncManager.cpp:
      * storage/chromium/DatabaseTrackerChromium.cpp:
      * storage/chromium/QuotaTracker.cpp:
      * storage/chromium/QuotaTracker.h:
      * svg/SVGFontFaceElement.cpp:
      * svg/SVGStyledElement.cpp:
      * svg/SVGUseElement.cpp:
      * websockets/WebSocket.cpp:
      * websockets/WebSocketChannel.cpp:
      * websockets/WebSocketHandshake.cpp:
      * wml/WMLErrorHandling.cpp:
      * wml/WMLGoElement.cpp:
      * wml/WMLPageState.cpp:
      * wml/WMLPostfieldElement.cpp:
      * wml/WMLSelectElement.cpp:
      * xml/XMLHttpRequest.cpp:
      * xml/XSLStyleSheetLibxslt.cpp:
      * xml/XSLTProcessorLibxslt.cpp:
      
      WebKit: 
      
      * efl/WebCoreSupport/ChromeClientEfl.cpp:
      * efl/ewk/ewk_frame.cpp:
      (ewk_frame_name_get):
      (ewk_frame_selection_get):
      (ewk_frame_uri_changed):
      * efl/ewk/ewk_history.cpp:
      * efl/ewk/ewk_settings.cpp:
      
      WebKit/chromium: 
      
      * public/WebCString.h:
      * src/FrameLoaderClientImpl.cpp:
      * src/GraphicsContext3D.cpp:
      * src/WebCString.cpp:
      (WebKit::WebCString::assign):
      (WebKit::WebCString::WebCString):
      (WebKit::WebCString::operator=):
      (WebKit::WebCString::operator WTF::CString):
      * src/WebMediaPlayerClientImpl.cpp:
      * src/WebString.cpp:
      * src/WebURLError.cpp:
      
      WebKit/gtk: 
      
      * WebCoreSupport/ChromeClientGtk.cpp:
      * WebCoreSupport/ContextMenuClientGtk.cpp:
      * WebCoreSupport/EditorClientGtk.cpp:
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      * WebCoreSupport/InspectorClientGtk.cpp:
      * gdom/ConvertToGCharPrivate.h:
      * webkit/webkitdownload.cpp:
      * webkit/webkithittestresult.cpp:
      * webkit/webkitnetworkrequest.cpp:
      * webkit/webkitprivate.h:
      * webkit/webkitsecurityorigin.cpp:
      * webkit/webkitwebdatabase.cpp:
      * webkit/webkitwebframe.cpp:
      * webkit/webkitwebhistoryitem.cpp:
      (webkit_web_history_item_finalize):
      (webkit_web_history_item_get_target):
      * webkit/webkitwebresource.cpp:
      * webkit/webkitwebsettings.cpp:
      * webkit/webkitwebview.cpp:
      
      WebKit/mac: 
      
      * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
      (WebKit::NetscapePluginInstanceProxy::getCookies):
      (WebKit::NetscapePluginInstanceProxy::getProxy):
      (WebKit::NetscapePluginInstanceProxy::getAuthenticationInfo):
      (WebKit::NetscapePluginInstanceProxy::resolveURL):
      * Plugins/WebBaseNetscapePluginView.h:
      * Plugins/WebBaseNetscapePluginView.mm:
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView resolveURL:forTarget:]):
      
      WebKit/qt: 
      
      * Api/qwebelement.cpp:
      
      WebKit/win: 
      
      * WebDownload.cpp:
      * WebDownloadCFNet.cpp:
      * WebDownloadCurl.cpp:
      * WebHistoryItem.cpp:
      * WebLocalizableStrings.cpp:
      * WebMutableURLRequest.cpp:
      * WebPreferences.cpp:
      (WebPreferences::migrateWebKitPreferencesToCFPreferences):
      * WebView.cpp:
      
      WebKit/wx: 
      
      * WebFrame.cpp:
      * WebView.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56825 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00b7992e
  15. 29 Mar, 2010 1 commit
    • kenneth@webkit.org's avatar
      WebCore: Implement flattening for iframes. · 6af77fe9
      kenneth@webkit.org authored
      Reviewed by Antti Koivisto.
      
      Refactoring of frameset flattening code to reuse it for
      iframe flattening.
      
      Tests: fast/frames/flattening/iframe-flattening-simple.html
      
      * WebCore.base.exp:
      * page/FrameView.cpp:
      (WebCore::FrameView::layout):
      (WebCore::FrameView::scheduleRelayout):
      * page/Settings.cpp:
      (WebCore::Settings::Settings):
      (WebCore::Settings::setFrameFlatteningEnabled):
      * page/Settings.h:
      (WebCore::Settings::frameFlatteningEnabled):
      * rendering/RenderFrame.cpp:
      * rendering/RenderFrame.h:
      * rendering/RenderFrameSet.cpp:
      (WebCore::RenderFrameSet::flattenFrameSet):
      * rendering/RenderFrameSet.h:
      * rendering/RenderPart.cpp:
      (WebCore::RenderPart::layoutWithFlattening):
      * rendering/RenderPart.h:
      * rendering/RenderPartObject.cpp:
      (WebCore::RenderPartObject::flattenFrame):
      (WebCore::RenderPartObject::calcHeight):
      (WebCore::RenderPartObject::calcWidth):
      (WebCore::RenderPartObject::layout):
      * rendering/RenderPartObject.h:
      
      WebKit/mac: Change method name due to it dealing with both flattening
      of frame sets and inner frames.
      
      Reviewed by Antti Koivisto.
      
      * WebView/WebPreferenceKeysPrivate.h:
      * WebView/WebPreferences.mm:
      (+[WebPreferences initialize]):
      (-[WebPreferences isFrameFlatteningEnabled]):
      (-[WebPreferences setFrameFlatteningEnabled:]):
      * WebView/WebPreferencesPrivate.h:
      * WebView/WebView.mm:
      (-[WebView _preferencesChangedNotification:]):
      
      WebKit/qt: Change due to renaming of frame flattening setting.
      
      Reviewed by Antti Koivisto.
      
      * Api/qwebpage.cpp:
      (qt_drt_setFrameFlatteningEnabled):
      * Api/qwebsettings.cpp:
      (QWebSettingsPrivate::apply):
      * symbian/eabi/QtWebKitu.def:
      
      WebKit/win: Change method name due to it dealing with both flattening
      of frame sets and inner frames.
      
      Reviewed by Antti Koivisto.
      
      * Interfaces/IWebPreferencesPrivate.idl:
      * WebPreferenceKeysPrivate.h:
      * WebPreferences.cpp:
      (WebPreferences::initializeDefaultSettings):
      (WebPreferences::isFrameFlatteningEnabled):
      (WebPreferences::setFrameFlatteningEnabled):
      * WebPreferences.h:
      * WebView.cpp:
      (WebView::notifyPreferencesChanged):
      
      WebKitTools: Renaming of frame flattening LayoutTestController method
      to setFrameFlatteningEnabled(bool)
      
      Reviewed by Antti Koivisto.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (setFrameFlatteningEnabledCallback):
      (LayoutTestController::staticFunctions):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::setFrameFlatteningEnabled):
      * DumpRenderTree/mac/DumpRenderTree.mm:
      (resetDefaultsToConsistentValues):
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::setFrameFlatteningEnabled):
      * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
      (WebCore::WebPage::resetSettings):
      * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
      (LayoutTestController::setFrameFlatteningEnabled):
      * DumpRenderTree/qt/LayoutTestControllerQt.h:
      * DumpRenderTree/win/DumpRenderTree.cpp:
      (resetDefaultsToConsistentValues):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::setFrameFlatteningEnabled):
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::setFrameFlatteningEnabled):
      
      LayoutTests: Add new iframe flattening test and change existing frameset
      flattening tests to use the new LayoutTestController method.
      
      Reviewed by Antti Koivisto.
      
             * fast/frames/flattening/frameset-flattening-advanced.html:
      * fast/frames/flattening/frameset-flattening-grid.html:
      * fast/frames/flattening/frameset-flattening-simple.html:
      * fast/frames/flattening/frameset-flattening-subframe-resize.html:
      * fast/frames/flattening/frameset-flattening-subframesets.html:
      * fast/frames/flattening/iframe-flattening-simple.html: Added.
      * platform/qt/fast/frames/flattening/iframe-flattening-simple-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@56718 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6af77fe9
  16. 17 Mar, 2010 1 commit
  17. 12 Mar, 2010 2 commits
    • enrica@apple.com's avatar
      Fixed broken build on Windows. · d6d7e351
      enrica@apple.com authored
      Added contditional compilation for accelerated compositing.
      
      * WebView.cpp:
      (WebView::deleteBackingStore):
      (WebView::addToDirtyRegion):
      (WebView::updateBackingStore):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6d7e351
    • enrica@apple.com's avatar
      Content of 3D tests appears at the bottom right corner sometimes. · 401b2ab7
      enrica@apple.com authored
      <rdar://problem/7556244>
      <https://bugs.webkit.org/show_bug.cgi?id=36027>
      
      Reviewed by Simon Fraser.
      
      WebCore: 
      
      There were two problems to solve here:
      - the incorrect anchoring of the rootChildLayer that was causing the composited
        content to be positioned incorrectly
      - the failure to paint the non composited content into the backing store when
        animating composited content.
                
      The first problem has been solved by leaving the original anchor point for the
      rootChildLayer and splitting the tasks of clipping and scrolling using two separate layers.
      The second problem has been solved leveraging the knowledge that WebView has of the dirty region
      of the backing store to pass this information to the layer renderer. This allows the renderer to force
      a paint into the backing store before moving to the compositing.
              
      Tests: compositing/geometry/horizontal-scroll-composited.html
             compositing/geometry/vertical-scroll-composited.html
      
      * manual-tests/win/horizontal-scroll-composited.html: Removed. This is now a layout test.
      * manual-tests/win/milliondollar.html: Added.
      * platform/graphics/win/WKCACFLayerRenderer.cpp:
      (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer): Added initialization of dirty flag.
      (WebCore::WKCACFLayerRenderer::setScrollFrame): 
      (WebCore::WKCACFLayerRenderer::updateScrollFrame): Updated to resize and position the clip and scroll layers.
      (WebCore::WKCACFLayerRenderer::setRootChildLayer):
      (WebCore::WKCACFLayerRenderer::createRenderer): Added new layer hierarchy.
      (WebCore::WKCACFLayerRenderer::destroyRenderer): Remove clip layer on destroy.
      (WebCore::WKCACFLayerRenderer::resize):
      (WebCore::WKCACFLayerRenderer::paint): Forcing paint massage to trigger paint into the backing store.
      * platform/graphics/win/WKCACFLayerRenderer.h:
      (WebCore::WKCACFLayerRenderer::setBackingStoreDirty): Added.
      
      WebKit/win: 
      
      See detailed comments in WebCore/ChangeLog.
      
      * WebView.cpp:
      (WebView::deleteBackingStore): Reset the dirty flag when deleting the backing store.
      (WebView::addToDirtyRegion): Set the dirty flag when adding dirty rectangles to the
      backing store dirty region.
      (WebView::updateBackingStore): Reset the dirty flag after painting into the backing store.
      (WebView::setAcceleratedCompositing): Removed unnecessary call to updateRootLayerContents.
      (WebView::updateRootLayerContents): Changed the way we pass parameters to setScrollFrame.
      We are passing width and height of the view content together with the offset for the scrolling.
      It was confusing to pass it all as a rectangle, when it is not a rectangle.
      
      LayoutTests: 
      
      * compositing/geometry/horizontal-scroll-composited.html: Added.
      * compositing/geometry/vertical-scroll-composited.html: Added.
      * compositing/resources/apple.jpg: Added.
      * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.checksum: Added.
      * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.png: Added.
      * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.txt: Added.
      * platform/mac/compositing/geometry/vertical-scroll-composited-expected.checksum: Added.
      * platform/mac/compositing/geometry/vertical-scroll-composited-expected.png: Added.
      * platform/mac/compositing/geometry/vertical-scroll-composited-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      401b2ab7
  18. 10 Mar, 2010 1 commit
  19. 08 Mar, 2010 1 commit
  20. 05 Mar, 2010 1 commit
  21. 02 Mar, 2010 2 commits
    • bdakin@apple.com's avatar
      WebCore: Fix for <rdar://problem/7485289> WebKit crashes on systems that · ccddc593
      bdakin@apple.com authored
      don't support CoreAnimation
      
      Reviewed by Darin Adler and Adam Roben.
      
      WKCACFLayerRenderer::acceleratedCompositingAvailable() now creates 
      a dummy HWND so that it can step through the whole setHostWindow() 
      and createRenderer() process. createRenderer() also calls a new 
      function, hardwareCapabilitiesIndicateCoreAnimationSupport() which 
      can only be called  once we have a d3dDevice.
      
      setHostWindow() and createRenderer() now both return bools that 
      indicate whether or not they have succeeded.
      
      * platform/graphics/win/WKCACFLayerRenderer.cpp:
      (WebCore::hardwareCapabilitiesIndicateCoreAnimationSupport):
      (WebCore::CoreAnimationTesterWindowWndProc):
      (WebCore::WKCACFLayerRenderer::acceleratedCompositingAvailable):
      (WebCore::WKCACFLayerRenderer::shared):
      (WebCore::WKCACFLayerRenderer::createRenderer):
      * platform/graphics/win/WKCACFLayerRenderer.h:
      (WebCore::WKCACFLayerRenderer::setHostWindow):
      
      WebKit/win: Tiny WebKit portion of fix for <rdar://problem/7485289> WebKit 
      crashes on systems that don't support CoreAnimation
      
      Reviewed by Darin Adler and Adam Roben.
      
      setHostWindow() no longer calls createRenderer(), so now that has 
      to be called manually.
      
      * WebView.cpp:
      (WebView::setAcceleratedCompositing):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ccddc593
    • aroben@apple.com's avatar
      Expose SecurityOrigin::registerURLSchemeAsSecure as WebKit SPI · 8738c906
      aroben@apple.com authored
      Fixes <http://webkit.org/b/35580> <rdar://problem/7706407>
      
      Reviewed by Tim Hatcher.
      
      WebCore:
      
      Export SecurityOrigin::registerURLSchemeAsSecure
      
      * WebCore.base.exp: Added symbol, sorted file.
      
      WebKit/mac:
      
      Add -[WebView _registerURLSchemeAsSecure:]
      
      * WebView/WebView.mm:
      (+[WebView _registerURLSchemeAsSecure:]):
      * WebView/WebViewPrivate.h:
      Added. Calls through to SecurityOrigin::registerURLSchemeAsSecure.
      
      WebKit/win:
      
      Add IWebViewPrivate::registerURLSchemeAsSecure
      
      * Interfaces/WebKit.idl: Touched to force a build.
      
      * Interfaces/IWebViewPrivate.idl:
      * WebView.cpp:
      (WebView::registerURLSchemeAsSecure):
      * WebView.h:
      Added. Calls through to SecurityOrigin::registerURLSchemeAsSecure.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8738c906
  22. 01 Mar, 2010 1 commit
    • eric@webkit.org's avatar
      2010-03-01 Jakob Petsovits <jpetsovits@rim.com> · 958d8e61
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              Convert the zoom mode (page vs. text-only) into a proper enum.
              https://bugs.webkit.org/show_bug.cgi?id=35347
      
              * GNUmakefile.am:
              * WebCore.base.exp: Substituted symbols __ZN7WebCore5Frame13setZoomFactorEfNS_8ZoomModeE
              and __ZN7WebCore8Settings11setZoomModeENS_8ZoomModeE for __ZN7WebCore5Frame13setZoomFactorEfb
              and __ZN7WebCore8Settings16setZoomsTextOnlyEb, respectively.
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * page/Frame.cpp:
              (WebCore::Frame::zoomMode):
              (WebCore::Frame::shouldApplyTextZoom):
              (WebCore::Frame::shouldApplyPageZoom):
              (WebCore::Frame::setZoomFactor):
              * page/Frame.h:
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
              (WebCore::Settings::setZoomMode):
              * page/Settings.h:
              (WebCore::Settings::zoomMode):
              * page/ZoomMode.h: Added.
              (WebCore::):
              * svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::setCurrentScale):
      2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
      
              Reviewed by Adam Barth.
      
              Adapt to the new ZoomMode enum.
              https://bugs.webkit.org/show_bug.cgi?id=35347
      
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::setZoomLevel):
      2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
      
              Reviewed by Adam Barth.
      
              Adapt to the new ZoomMode enum.
              https://bugs.webkit.org/show_bug.cgi?id=35347
      
              * webkit/webkitwebview.cpp:
              (DNDContentsRequest::webkit_web_view_apply_zoom_level):
      2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
      
              Reviewed by Adam Barth.
      
              Adapt to the new ZoomMode enum.
              https://bugs.webkit.org/show_bug.cgi?id=35347
      
              * WebView/WebView.mm:
              (-[WebView _preferencesChangedNotification:]):
              (-[WebView _setZoomMultiplier:isTextOnly:]):
              (-[WebView _realZoomMultiplierIsTextOnly]):
      2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
      
              Reviewed by Adam Barth.
      
              Adapt to the new ZoomMode enum.
              https://bugs.webkit.org/show_bug.cgi?id=35347
      
              * Api/qwebframe.cpp:
              (QWebFrame::setTextSizeMultiplier):
              (QWebFrame::setZoomFactor):
              * Api/qwebsettings.cpp:
              (QWebSettingsPrivate::apply):
      2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
      
              Reviewed by Adam Barth.
      
              Adapt to the new ZoomMode enum.
              https://bugs.webkit.org/show_bug.cgi?id=35347
      
              * WebFrame.cpp:
              (WebFrame::setTextSizeMultiplier):
              * WebView.cpp:
              (WebView::setZoomMultiplier):
              (WebView::zoomMultiplier):
              (WebView::canMakeTextLarger):
              (WebView::makeTextLarger):
              (WebView::canMakeTextSmaller):
              (WebView::makeTextSmaller):
              (WebView::notifyPreferencesChanged):
      2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
      
              Reviewed by Adam Barth.
      
              Adapt to the new ZoomMode enum.
              https://bugs.webkit.org/show_bug.cgi?id=35347
      
              * WebFrame.cpp:
              (wxWebFrame::IncreaseTextSize):
              (wxWebFrame::DecreaseTextSize):
              (wxWebFrame::ResetTextSize):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      958d8e61
  23. 22 Feb, 2010 1 commit
  24. 17 Feb, 2010 1 commit
    • eric@webkit.org's avatar
      2010-02-16 Chris Evans <cevans@chromium.org> · e85e237b
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              Add a new setting which gives the option of assigning every file:///
              to its own unique domain.
      
              https://bugs.webkit.org/show_bug.cgi?id=34778
      
              Test: Pending in forthcoming separate change due to non-trivial
              dependencies.
      
              * dom/Document.cpp:
              (WebCore::Document::initSecurityContext): Place file:/// URI documents
              into their own unique domains if the new setting requires it.
              * page/Settings.h:
              * page/Settings.cpp:
              (WebCore::Settings::setAllowFileAccessFromFileURLs): Simple setter.
              * page/SecurityOrigin.h:
              * page/SecurityOrigin.cpp:
              (WebCore::SecurityOrigin::makeUnique): Add simple ability to force an
              origin to be considered unique.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e85e237b
  25. 16 Feb, 2010 1 commit
    • darin@apple.com's avatar
      2010-02-16 Darin Adler <darin@apple.com> · 108d58c2
      darin@apple.com authored
              Reviewed by Sam Weinig.
      
              Generalize delayed plug-in start for background tabs for use for other media
              https://bugs.webkit.org/show_bug.cgi?id=34981
      
              * WebView.cpp:
              (WebView::setCanStartPlugins): Change to call setCanStartMedia.
              In a later patch we can change the of the public function in the IDL file too,
              but for now this should be enough.
      2010-02-16  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam Weinig.
      
              Generalize delayed plug-in start for background tabs for use for other media
              https://bugs.webkit.org/show_bug.cgi?id=34981
      
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView viewWillMoveToWindow:]): Added comment.
              (-[WebHTMLView viewDidMoveToWindow]): Ditto.
      
              * WebView/WebView.mm:
              (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
              Call setCanStartMedia right away so that if this view is not in a window, it
              will not start any media.
              (-[WebView viewWillMoveToWindow:]): Call setCanStartMedia(false) when moving
              to a window of nil.
              (-[WebView viewDidMoveToWindow]): Call setCanStartMedia(true) when moved to
              a window that is non-nil.
      2010-02-16  Darin Adler  <darin@apple.com>
      
              Reviewed by Sam Weinig.
      
              Generalize delayed plug-in start for background tabs for use for other media
              https://bugs.webkit.org/show_bug.cgi?id=34981
      
              Also did some simple cleanup of HTMLMediaElement to get ready to make it
              a client of the same mechanism.
      
              * WebCore.base.exp: Added Page::setCanStartMedia and resorted.
              * WebCore.xcodeproj/project.pbxproj: Added MediaCanStartListener.h.
      
              * html/HTMLAudioElement.h: Added an implementation of isVideo since that
              is now a pure virtual function in HTMLMediaElement. Also made tagPriority
              private.
      
              * html/HTMLMediaElement.h: Made it clearer that HTMLMediaElement is an
              abstract base class by making its constructor protected and making the
              isVideo function a pure virtual function.
      
              * page/Page.cpp:
              (WebCore::Page::Page): Updated for name change from m_canStartPlugins
              to m_canStartMedia.
              (WebCore::Page::addMediaCanStartListener): Renamed and added an assertion.
              (WebCore::Page::removeUnstartedMedia): Ditto.
              (WebCore::Page::setCanStartMedia): Renamed plugin to media and moved
              the code here from PageWin.cpp. The main change from the one in PageWin.cpp
              is that this function calls mediaCanStart rather than explicitly calling a
              combination of start and dispatchDidFailToStartPlugin on a PluginView.
      
              * page/Page.h: Re-sorted forward class declarations. Renamed the plugin
              starting functions to media starting names and changed types from
              PluginView to MediaCanStartListener.
      
              * page/MediaCanStartListener.h: Added.
      
              * page/win/PageWin.cpp: Moved setCanStartPlugins to the platform-independent
              Page.cpp file so it can be used for more than just Windows plug-ins.
      
              * plugins/PluginView.cpp: Sorted includes.
              (WebCore::PluginView::startOrAddToUnstartedList): Use addMediaCanStartListener.
              (WebCore::PluginView::mediaCanStart): Added. Called when the page decides that
              media can start. Contains the code that used to be in Page::setCanStartPlugins.
              (WebCore::PluginView::removeFromUnstartedListIfNecessary): Use
              removeMediaCanStartListener.
      
              * plugins/PluginView.h: Adopted MediaCanStartListener.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      108d58c2
  26. 12 Feb, 2010 1 commit
  27. 11 Feb, 2010 1 commit
  28. 10 Feb, 2010 1 commit
  29. 08 Feb, 2010 1 commit
    • eric@webkit.org's avatar
      2010-02-08 Charlie Reis <creis@chromium.org> · aa64b765
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              onbeforeunload not called at window close + frame or iframe focused
              https://bugs.webkit.org/show_bug.cgi?id=27481
      
              Chromium and WebKit on Windows will now fire beforeunload handlers
              even if an inner frame is focused.
      
              Layout tests aren't able to test this bug, since it requires closing
              the actual browser window, not calling window.close().  Instead,
              test with WebCore/manual-tests/onbeforeunload-focused-iframe.html.
      
              * manual-tests/onbeforeunload-focused-iframe.html: Added.
              * manual-tests/resources/focused-iframe.html: Added.
      2010-02-08  Charlie Reis  <creis@chromium.org>
      
              Reviewed by Darin Adler.
      
              onbeforeunload not called at window close + frame or iframe focused
              https://bugs.webkit.org/show_bug.cgi?id=27481
              http://code.google.com/p/chromium/issues/detail?id=32615
              http://code.google.com/p/chromium/issues/detail?id=17157
      
              Chromium and WebKit on Windows will now fire beforeunload handlers
              even if an inner frame is focused.
      
              Layout tests aren't able to test this bug, since it requires closing
              the actual browser window, not calling window.close().  Instead,
              test with WebCore/manual-tests/onbeforeunload-focused-iframe.html.
      
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::dispatchBeforeUnloadEvent):
      2010-02-08  Charlie Reis  <creis@chromium.org>
      
              Reviewed by Darin Adler.
      
              onbeforeunload not called at window close + frame or iframe focused
              https://bugs.webkit.org/show_bug.cgi?id=27481
      
              Chromium and WebKit on Windows will now fire beforeunload handlers
              even if an inner frame is focused.
      
              Layout tests aren't able to test this bug, since it requires closing
              the actual browser window, not calling window.close().  Instead,
              test with WebCore/manual-tests/onbeforeunload-focused-iframe.html.
      
              * WebView.cpp:
              (WebView::shouldClose):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa64b765
  30. 03 Feb, 2010 1 commit
  31. 18 Jan, 2010 2 commits
    • aroben@apple.com's avatar
      Add WebKit SPI to disallow setting document.domain from certain URL schemes · 9ca1e9e3
      aroben@apple.com authored
      Fixes <http://webkit.org/b/33806> <rdar://problem/7552837> Would like
      API to disallow setting of document.domain for pages with certain URL
      schemes
      
      Reviewed by Sam Weinig.
      
      WebCore:
      
      Add SecurityOrigin::{set,is}DomainRelaxationForbiddenForURLScheme and
      respect it
      
      Test: http/tests/security/setDomainRelaxationForbiddenForURLScheme.html
      
      * WebCore.base.exp: Export
      SecurityOrigin::setDomainRelaxationForbiddenForURLScheme.
      
      * dom/Document.cpp:
      (WebCore::Document::setDomain): If domain relaxation is forbidden for
      our security origin's scheme, throw an exception and don't allow
      the domain to be set.
      
      * page/SecurityOrigin.cpp:
      (WebCore::schemesForbiddenFromDomainRelaxation): Added. Returns a
      global set of schemes.
      (WebCore::SecurityOrigin::setDomainRelaxationForbiddenForURLScheme):
      Add or remove the scheme to schemesForbiddenFromDomainRelaxation, as
      appropriate.
      (WebCore::SecurityOrigin::isDomainRelaxationForbiddenForURLScheme):
      Returns true if the scheme is in schemesForbiddenFromDomainRelaxation.
      
      * page/SecurityOrigin.h: Added
      {set,is}DomainRelaxationForbiddenForURLScheme.
      
      WebKit/mac:
      
      Add +[WebView _setDomainRelaxationForbidden:forURLScheme:]
      
      * WebView/WebView.mm:
      (+[WebView _setDomainRelaxationForbidden:forURLScheme:]):
      * WebView/WebViewPrivate.h:
      Added. Calls through to SecurityOrigin.
      
      WebKit/win:
      
      Add IWebViewPrivate::setDomainRelaxationForbiddenForURLScheme
      
      * Interfaces/IWebViewPrivate.idl: Added
      setDomainRelaxationForbiddenForURLScheme.
      
      * Interfaces/WebKit.idl: Touched to force a build.
      
      * WebView.cpp:
      (WebView::setDomainRelaxationForbiddenForURLScheme):
      * WebView.h:
      Added. Calls through to SecurityOrigin.
      
      WebKitTools:
      
      Add LayoutTestController support for calling new WebKit SPI to
      disallow setting document.domain
      
      * DumpRenderTree/LayoutTestController.cpp:
      (setDomainRelaxationForbiddenForURLSchemeCallback): Added. Calls
      through to LayoutTestController.
      (LayoutTestController::staticFunctions): Added
      setDomainRelaxationForbiddenForURLScheme.
      
      * DumpRenderTree/LayoutTestController.h: Added
      setDomainRelaxationForbiddenForURLScheme.
      
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
      Added. Calls through to WebKit.
      
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::setDomainRelaxationForbiddenForURLScheme):
      Stubbed out.
      
      LayoutTests:
      
      Add tests for new WebKit SPI to disallow setting document.domain
      
      * http/tests/security/setDomainRelaxationForbiddenForURLScheme-expected.txt: Added.
      * http/tests/security/setDomainRelaxationForbiddenForURLScheme.html: Added.
      
      * platform/gtk/Skipped: Skip the new test since WebKitGtk doesn't have
      this API.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ca1e9e3
    • cmarrin@apple.com's avatar
      Made root compositing layer scroll rather than scroll parent. · acc15f64
      cmarrin@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=32279
              
              There's some general cleanup here so the frames, bounds and
              positions of all the associated layers are correct.
              I also changed API of setScrollFrame to use an IntRect.
      
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53415 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      acc15f64