1. 31 Jul, 2011 1 commit
    • paroga@webkit.org's avatar
      Remove inclusion of MainThread.h from Threading.h · c309e0e2
      paroga@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=65081
      
      Reviewed by Darin Adler.
      
      Source/JavaScriptCore:
      
      Add missing and remove unneeded include statements for MainThread.
      
      * wtf/CryptographicallyRandomNumber.cpp:
      * wtf/Threading.h:
      * wtf/ThreadingPthreads.cpp:
      * wtf/text/StringStatics.cpp:
      
      Source/WebCore:
      
      Add missing include statements for MainThread.
      
      * bindings/js/DOMWrapperWorld.cpp:
      * bindings/js/JSDOMWindowBase.cpp:
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateCallbackImplementation):
      * bindings/v8/DOMDataStore.cpp:
      * bindings/v8/DOMWrapperWorld.cpp:
      * bindings/v8/V8Binding.cpp:
      * bindings/v8/V8DOMMap.cpp:
      * bindings/v8/V8DOMWrapper.h:
      * dom/EventTarget.cpp:
      * fileapi/LocalFileSystem.cpp:
      * loader/CrossOriginPreflightResultCache.cpp:
      * loader/ResourceLoadScheduler.cpp:
      * loader/WorkerThreadableLoader.cpp:
      * loader/appcache/ApplicationCacheGroup.cpp:
      * page/DOMWindow.cpp:
      * page/History.cpp:
      * page/SecurityOrigin.cpp:
      * page/mac/EventHandlerMac.mm:
      * platform/MIMETypeRegistry.cpp:
      * platform/ThreadGlobalData.cpp:
      * platform/ThreadTimers.cpp:
      * platform/TreeShared.h:
      * platform/audio/HRTFDatabaseLoader.cpp:
      * platform/graphics/Font.cpp:
      * platform/graphics/FontFallbackList.h:
      * platform/graphics/FontFastPath.cpp:
      * platform/graphics/Image.cpp:
      * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp:
      * platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:
      * platform/graphics/cg/ImageBufferCG.cpp:
      * platform/graphics/chromium/LayerRendererChromium.cpp:
      * platform/graphics/chromium/cc/CCLayerTreeHostImplProxy.cpp:
      * platform/mac/LocalizedStringsMac.mm:
      * platform/mac/SharedBufferMac.mm:
      * platform/network/BlobResourceHandle.cpp:
      * platform/network/cf/DNSCFNet.cpp:
      * platform/network/cf/LoaderRunLoopCF.cpp:
      * platform/text/LocalizedNumberICU.cpp:
      * platform/text/TextEncodingRegistry.cpp:
      * platform/text/mac/LocalizedNumberMac.mm:
      * platform/win/LocalizedStringsWin.cpp:
      * storage/LocalStorageThread.cpp:
      * storage/StorageAreaImpl.cpp:
      * storage/StorageAreaSync.cpp:
      * storage/StorageNamespaceImpl.cpp:
      * storage/StorageSyncManager.cpp:
      * webaudio/AsyncAudioDecoder.cpp:
      * webaudio/AudioBufferSourceNode.cpp:
      * webaudio/AudioContext.h
      * webaudio/AudioContext.cpp:
      * webaudio/AudioNode.cpp:
      * webaudio/ConvolverNode.cpp:
      * webaudio/OfflineAudioDestinationNode.cpp:
      * webaudio/RealtimeAnalyser.cpp:
      * webaudio/WaveShaperNode.cpp:
      * websockets/WorkerThreadableWebSocketChannel.cpp:
      * workers/WorkerMessagingProxy.cpp:
      
      Source/WebKit/chromium:
      
      Add missing include statements for MainThread.
      
      * src/WebKit.cpp:
      * src/WebViewImpl.cpp:
      * tests/CCThreadTest.cpp:
      
      Source/WebKit/gtk:
      
      Add missing include statements for MainThread.
      
      * webkit/webkitglobals.cpp:
      
      Source/WebKit/mac:
      
      Add missing include statements for MainThread.
      
      * Carbon/CarbonWindowAdapter.mm:
      * History/WebBackForwardList.mm:
      * History/WebHistoryItem.mm:
      * Misc/WebElementDictionary.mm:
      * Misc/WebIconDatabase.mm:
      * Misc/WebLocalizableStrings.mm:
      * Plugins/Hosted/WebHostedNetscapePluginView.mm:
      * Plugins/WebBaseNetscapePluginView.mm:
      * Plugins/WebBasePluginPackage.mm:
      * Plugins/WebNetscapePluginView.mm:
      * WebCoreSupport/WebEditorClient.mm:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      * WebView/WebArchive.mm:
      * WebView/WebDataSource.mm:
      * WebView/WebHTMLView.mm:
      * WebView/WebResource.mm:
      * WebView/WebTextIterator.mm:
      * WebView/WebView.mm:
      * WebView/WebViewData.mm:
      
      Source/WebKit/qt:
      
      Add missing include statements for MainThread.
      
      * Api/qwebpage.cpp:
      
      Source/WebKit/win:
      
      Add missing include statements for MainThread.
      
      * WebKitClassFactory.cpp:
      * WebView.cpp:
      
      Source/WebKit/wx:
      
      Add missing include statements for MainThread.
      
      * WebView.cpp:
      
      Source/WebKit2:
      
      Add missing include statements for MainThread.
      
      * PluginProcess/gtk/PluginProcessMainGtk.cpp:
      * PluginProcess/mac/PluginProcessMainMac.mm:
      * PluginProcess/qt/PluginProcessMainQt.cpp:
      * UIProcess/API/mac/WKPrintingView.mm:
      * UIProcess/Launcher/mac/ThreadLauncherMac.mm:
      * UIProcess/Launcher/qt/ThreadLauncherQt.cpp:
      * UIProcess/Launcher/win/ThreadLauncherWin.cpp:
      * UIProcess/WebContext.cpp:
      * WebProcess/WebPage/ca/win/LayerTreeHostCAWin.cpp:
      * WebProcess/efl/WebProcessMainEfl.cpp:
      * WebProcess/gtk/WebProcessMainGtk.cpp:
      * WebProcess/mac/KeychainItemShimMethods.mm:
      * WebProcess/mac/WebProcessMainMac.mm:
      * WebProcess/qt/WebProcessMainQt.cpp:
      * WebProcess/win/WebProcessMainWin.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@92068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c309e0e2
  2. 23 Jul, 2011 1 commit
  3. 16 Jun, 2011 1 commit
    • eric@webkit.org's avatar
      2011-06-16 Eric Seidel <eric@webkit.org> · 818318b3
      eric@webkit.org authored
              Reviewed by Adam Barth.
      
              FrameLoader doesn't need completeURL or baseURL
              https://bugs.webkit.org/show_bug.cgi?id=62818
      
              No functional change, thus no tests.
      
              * html/HTMLPlugInImageElement.cpp:
              (WebCore::HTMLPlugInImageElement::isImageType):
              (WebCore::HTMLPlugInImageElement::wouldLoadAsNetscapePlugin):
              * inspector/InspectorPageAgent.cpp:
              (WebCore::InspectorPageAgent::open):
              * loader/FrameLoader.cpp:
              * loader/FrameLoader.h:
              * loader/NavigationScheduler.cpp:
              (WebCore::NavigationScheduler::scheduleLocationChange):
              * page/History.cpp:
              (WebCore::History::urlForState):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@89079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      818318b3
  4. 12 May, 2011 1 commit
    • tonyg@chromium.org's avatar
      2011-05-10 Tony Gentilcore <tonyg@chromium.org> · 4b0a55f4
      tonyg@chromium.org authored
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * accessibility/AccessibilityObject.cpp:
              * accessibility/AccessibilityRenderObject.cpp:
              * accessibility/mac/AccessibilityObjectWrapper.mm:
              * dom/DocumentMarkerController.cpp:
              * dom/Position.cpp:
              * dom/PositionIterator.cpp:
              * dom/Range.cpp:
              * editing/ApplyBlockElementCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/Editor.cpp:
              * editing/EditorCommand.cpp:
              * editing/FrameSelection.cpp:
              * editing/HTMLInterchange.cpp:
              * editing/IndentOutdentCommand.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/SpellChecker.h:
              * editing/SpellingCorrectionCommand.cpp:
              * editing/SpellingCorrectionController.h:
              * editing/TextCheckingHelper.cpp:
              * editing/TextIterator.h:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/visible_units.cpp:
              * editing/visible_units.h:
              * fileapi/DOMFileSystem.cpp:
              * fileapi/DirectoryReaderSync.cpp:
              * fileapi/DirectoryReaderSync.h:
              * fileapi/FileEntry.h:
              * fileapi/FileWriter.h:
              * fileapi/FileWriterBase.h:
              * fileapi/FileWriterSync.h:
              * history/CachedFrame.cpp:
              * history/CachedPage.cpp:
              * history/HistoryItem.cpp:
              * history/HistoryItem.h:
              * history/PageCache.h:
              * loader/HistoryController.h:
              * loader/PingLoader.h:
              * loader/ResourceLoader.h:
              * loader/appcache/DOMApplicationCache.h:
              * loader/cache/CachedCSSStyleSheet.h:
              * loader/cache/CachedFont.cpp:
              * loader/cache/CachedFont.h:
              * loader/cache/CachedResourceRequest.cpp:
              * loader/cache/CachedResourceRequest.h:
              * loader/cache/MemoryCache.h:
              * notifications/Notification.cpp:
              * notifications/Notification.h:
              * notifications/NotificationCenter.cpp:
              * notifications/NotificationCenter.h:
              * page/Chrome.cpp:
              * page/Chrome.h:
              * page/DOMSelection.cpp:
              * page/DOMTimer.h:
              * page/DOMWindow.cpp:
              * page/EventHandler.cpp:
              * page/FocusController.h:
              * page/Geolocation.cpp:
              * page/Geolocation.h:
              * page/History.cpp:
              * rendering/RenderListBox.cpp:
              * workers/WorkerContext.cpp:
      2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
      
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * src/WebHistoryItem.cpp:
              * src/WebNotification.cpp:
              * src/WebTextCheckingCompletionImpl.cpp:
              * src/mac/WebSubstringUtil.mm:
      2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
      
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * Plugins/Hosted/WebHostedNetscapePluginView.mm:
              * WebView/WebFrame.mm:
      2011-05-10  Tony Gentilcore  <tonyg@chromium.org>
      
              Reviewed by Darin Adler.
      
              Perform some forward declarations suggested by include-what-you-use
              https://bugs.webkit.org/show_bug.cgi?id=60545
      
              * WebProcess/WebPage/mac/WebPageMac.mm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b0a55f4
  5. 01 May, 2011 1 commit
    • jschuh@chromium.org's avatar
      2011-05-01 Justin Schuh <jschuh@chromium.org> · da7d7210
      jschuh@chromium.org authored
              Reviewed by Adam Barth.
      
              History::stateObjectAdded should check origin via SecurityOrigin::canRequest
              https://bugs.webkit.org/show_bug.cgi?id=59840
      
              * fast/loader/stateobjects/pushstate-in-data-url-denied-expected.txt: Added.
              * fast/loader/stateobjects/pushstate-in-data-url-denied.html: Added.
              * fast/loader/stateobjects/replacestate-base-illegal-expected.txt: Removed.
              * fast/loader/stateobjects/replacestate-base-illegal.html: Removed.
              * fast/loader/stateobjects/replacestate-base-legal-expected.txt: Removed.
              * fast/loader/stateobjects/replacestate-base-legal.html: Removed.
              * fast/loader/stateobjects/resources/replacestate-base-pass.html: Removed.
              * http/tests/navigation/replacestate-base-illegal-expected.txt: Copied from LayoutTests/fast/loader/stateobjects/replacestate-base-illegal-expected.txt.
              * http/tests/navigation/replacestate-base-illegal.html: Copied from LayoutTests/fast/loader/stateobjects/replacestate-base-illegal.html.
              * http/tests/navigation/replacestate-base-legal-expected.txt: Copied from LayoutTests/fast/loader/stateobjects/replacestate-base-legal-expected.txt.
              * http/tests/navigation/replacestate-base-legal.html: Copied from LayoutTests/fast/loader/stateobjects/replacestate-base-legal.html.
              * http/tests/navigation/resources/replacestate-base-pass.html: Copied from LayoutTests/fast/loader/stateobjects/resources/replacestate-base-pass.html.
      2011-05-01  Justin Schuh  <jschuh@chromium.org>
      
              Reviewed by Adam Barth.
      
              History::stateObjectAdded should check origin via SecurityOrigin::canRequest
              https://bugs.webkit.org/show_bug.cgi?id=59840
      
              Tests: fast/loader/stateobjects/pushstate-in-data-url-denied.html
                     http/tests/navigation/replacestate-base-illegal.html
                     http/tests/navigation/replacestate-base-legal.html
      
              * page/History.cpp:
              (WebCore::History::stateObjectAdded):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da7d7210
  6. 30 Apr, 2011 1 commit
    • mihaip@chromium.org's avatar
      2011-04-30 Mihai Parparita <mihaip@chromium.org> · cb60fba8
      mihaip@chromium.org authored
              Reviewed by Eric Seidel.
      
              V8Proxy.h shouldn't include SecurityOrigin.h
              https://bugs.webkit.org/show_bug.cgi?id=59859
      
              Remove SecurityOrigin.h #include from V8Proxy.h. Touching
              SecurityOrigin.h now rebuilds 234 targets instead of 638 (when building
              chromium's DumpRenderTree).
      
              * bindings/v8/NPV8Object.cpp:
              * bindings/v8/V8Proxy.cpp:
              * bindings/v8/V8Proxy.h:
              * css/CSSStyleSelector.cpp:
              * dom/XMLDocumentParserLibxml2.cpp:
              * html/HTMLLinkElement.cpp:
              * loader/SubframeLoader.cpp:
              * page/History.cpp:
              * storage/IDBFactory.cpp:
              * storage/StorageAreaImpl.cpp:
      2011-04-30  Mihai Parparita  <mihaip@chromium.org>
      
              Reviewed by Eric Seidel.
      
              V8Proxy.h shouldn't include SecurityOrigin.h
              https://bugs.webkit.org/show_bug.cgi?id=59859
      
              Add SecurityOrigin.h includes to places that were relying on transitive
              includes.
      
              * src/ApplicationCacheHost.cpp:
              * src/WebGeolocationPermissionRequest.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85395 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb60fba8
  7. 08 Jan, 2011 1 commit
  8. 02 Jan, 2011 1 commit
    • abarth@webkit.org's avatar
      2011-01-01 Adam Barth <abarth@webkit.org> · 14e08540
      abarth@webkit.org authored
              Reviewed by Eric Seidel.
      
              sandbox iframes have access to top.history methods
              https://bugs.webkit.org/show_bug.cgi?id=38152
      
              To enforce the sandbox restrictions on History, we need to pass the
              ScriptExecutionContext to WebCore.  This patch leaves the original
              History methods in place because they are used directly by folks who
              don't care about security checks.
      
              Test: fast/frames/sandboxed-iframe-history-denied.html
      
              * page/History.cpp:
              (WebCore::History::back):
              (WebCore::History::forward):
              (WebCore::History::go):
              * page/History.h:
              * page/History.idl:
      2011-01-01  Justin Schuh  <jschuh@chromium.org>
      
              Reviewed by Eric Seidel.
      
              sandbox iframes have access to top.history methods
              https://bugs.webkit.org/show_bug.cgi?id=38152
      
              Test that sandboxed iframes cannot use history to navigate the top
              frame.  This test is less than ideal, as described in the test itself.
              If I was really on top of things, I'd add a test for successful use of
              the history API when allow-top-navigation is set, but that test would
              be complicated and I'm lazy (enough to copy directly from abarth).
      
              * fast/frames/sandboxed-iframe-history-denied-expected.txt: Added.
              * fast/frames/sandboxed-iframe-history-denied.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@74853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14e08540
  9. 30 Oct, 2010 2 commits
    • darin@apple.com's avatar
      Try to fix build. · 9676d9e7
      darin@apple.com authored
      * page/ContextMenuController.cpp: Added include of BackForwardController.h.
      * page/DOMWindow.cpp: Ditto.
      * page/History.cpp: Ditto.
      * platform/ContextMenu.cpp: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70963 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9676d9e7
    • darin@apple.com's avatar
      More back/forward refactoring · e10e1282
      darin@apple.com authored
      Reviewed by Sam Weinig.
      
      WebCore: 
      
      * WebCore.exp.in: Updated.
      
      * GNUmakefile.am: Removed BackForwardControllerClient.h.
      * WebCore.gypi: Ditto.
      * WebCore.pro: Ditto.
      * WebCore.vcproj/WebCore.vcproj: Ditto.
      * WebCore.xcodeproj/project.pbxproj: Ditto.
      
      * history/BackForwardControllerClient.h: Removed.
      
      * history/BackForwardController.cpp:
      (WebCore::BackForwardController::BackForwardController):
      Set up just m_client.
      (WebCore::BackForwardController::~BackForwardController):
      Removed call to backForwardControllerDestroyed.
      (WebCore::BackForwardController::canGoBackOrForward): Added.
      (WebCore::BackForwardController::goBackOrForward): Added.
      (WebCore::BackForwardController::goBack): Added.
      (WebCore::BackForwardController::goForward): Added.
      (WebCore::BackForwardController::addItem): Added.
      (WebCore::BackForwardController::setCurrentItem): Added.
      (WebCore::BackForwardController::count): Added.
      (WebCore::BackForwardController::backCount): Added.
      (WebCore::BackForwardController::forwardCount): Added.
      (WebCore::BackForwardController::itemAtIndex): Added.
      (WebCore::BackForwardController::isActive): Added.
      (WebCore::BackForwardController::close): Added.
      
      * history/BackForwardController.h: Added functions from Page
      and BackForwardList that should be called here instead.
      Note that BackForwardList is to be renamed BackForwardClient soon.
      
      * history/BackForwardList.h: Removed many now-unneeded
      virtual functions.
      
      * history/BackForwardListImpl.h: Moved BackForwardListClient
      in here.
      
      * history/PageCache.cpp:
      (WebCore::logCanCachePageDecision): Use backForward().
      (WebCore::PageCache::canCache): Ditto.
      
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::transitionToCommitted): Removed unneeded
      null check of backFowardList, which is never null.
      (WebCore::FrameLoader::checkLoadCompleteForThisFrame): Use backForward.
      (WebCore::FrameLoader::didFirstLayout): Ditto.
      (WebCore::FrameLoader::continueLoadAfterNavigationPolicy): Ditto.
      (WebCore::FrameLoader::checkDidPerformFirstNavigation): Ditto.
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::goToItem): Ditto.
      (WebCore::HistoryController::updateForStandardLoad): Ditto.
      (WebCore::HistoryController::updateForRedirectWithLockedBackForwardList): Ditto.
      (WebCore::HistoryController::updateBackForwardListClippedAtTarget): Ditto.
      (WebCore::HistoryController::pushState): Ditto.
      * loader/NavigationScheduler.cpp:
      (WebCore::ScheduledHistoryNavigation::fire): Ditto.
      (WebCore::NavigationScheduler::scheduleHistoryNavigation): Ditto.
      * page/ContextMenuController.cpp:
      (WebCore::ContextMenuController::contextMenuItemSelected): Ditto.
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::close): Ditto.
      * page/History.cpp:
      (WebCore::History::length): Ditto.
      
      * page/Page.cpp:
      (WebCore::Page::Page): Use more adoptPtr. Use backForwardClient instead of
      backForwardControllerClient.
      (WebCore::Page::~Page): Use backForward.
      (WebCore::Page::backForwardList): Ditto.
      (WebCore::Page::goBack): Ditto.
      (WebCore::Page::goForward): Ditto.
      (WebCore::Page::canGoBackOrForward): Ditto.
      (WebCore::Page::goBackOrForward): Ditto.
      (WebCore::Page::getHistoryLength): Ditto.
      (WebCore::Page::PageClients::PageClients): Made non-inline.
      (WebCore::Page::PageClients::~PageClients): Ditto.
      
      * page/Page.h: Made PageClients constructor and destructor non-inline.
      Added backForward function. Marked old functions as deprecated.
      
      * page/Settings.cpp:
      (WebCore::Settings::setUsesPageCache): Use backForward.
      * platform/ContextMenu.cpp:
      (WebCore::ContextMenu::populate): Ditto.
      (WebCore::ContextMenu::checkOrEnableIfNeeded): Ditto.
      * wml/WMLDoElement.cpp:
      (WebCore::WMLDoElement::defaultEventHandler): Ditto.
      * wml/WMLDocument.cpp:
      (WebCore::WMLDocument::finishedParsing): Ditto.
      * wml/WMLPageState.cpp:
      (WebCore::WMLPageState::reset): Ditto.
      (WebCore::tryAccessHistoryURLs): Ditto.
      * wml/WMLPrevElement.cpp:
      (WebCore::WMLPrevElement::executeTask): Ditto.
      
      WebKit2: 
      
      * WebKit2.pro: Removed WebBackForwardControllerClient.cpp and .h.
      * WebKit2.xcodeproj/project.pbxproj: Ditto.
      
      * WebProcess/WebCoreSupport/WebBackForwardControllerClient.cpp: Removed.
      * WebProcess/WebCoreSupport/WebBackForwardControllerClient.h: Removed.
      
      * WebProcess/InjectedBundle/InjectedBundleBackForwardList.cpp:
      (WebKit::InjectedBundleBackForwardList::itemAtIndex): Use backForward.
      (WebKit::InjectedBundleBackForwardList::backListCount): Ditto.
      (WebKit::InjectedBundleBackForwardList::forwardListCount): Ditto.
      (WebKit::InjectedBundleBackForwardList::clear): Ditto.
      
      * WebProcess/WebPage/WebBackForwardListProxy.h: Added newly-needed include.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage): Set up backForwardClient.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70960 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e10e1282
  10. 04 Oct, 2010 1 commit
    • abarth@webkit.org's avatar
      2010-10-04 Adam Barth <abarth@webkit.org> · 88b4e6bf
      abarth@webkit.org authored
              Reviewed by Darin Adler.
      
              Rename RedirectScheduler to NavigationScheduler
              https://bugs.webkit.org/show_bug.cgi?id=47037
      
              Update for name change.
      
              * src/ApplicationCacheHost.cpp:
              (WebCore::ApplicationCacheHost::selectCacheWithManifest):
              * src/WebFrameImpl.cpp:
              (WebKit::WebFrameImpl::loadJavaScriptURL):
      2010-10-04  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Darin Adler.
      
              Rename RedirectScheduler to NavigationScheduler
              https://bugs.webkit.org/show_bug.cgi?id=47037
      
              Update for name change.
      
              * Api/qwebpage.cpp:
              (QWebPage::triggerAction):
      2010-10-04  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Darin Adler.
      
              Rename RedirectScheduler to NavigationScheduler
              https://bugs.webkit.org/show_bug.cgi?id=47037
      
              This class schedules more than just redirects.  In fact, it schedules
              most kinds of navigations.
      
              * Android.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/generic/BindingDOMWindow.h:
              (WebCore::::createWindow):
              (WebCore::::open):
              * bindings/generic/BindingFrame.h:
              (WebCore::::navigateIfAllowed):
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::setLocation):
              (WebCore::createWindow):
              (WebCore::JSDOMWindow::open):
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::setLocation):
              * bindings/js/JSLocationCustom.cpp:
              (WebCore::JSLocation::reload):
              * bindings/v8/custom/V8LocationCustom.cpp:
              (WebCore::V8Location::reloadCallback):
              * dom/Document.cpp:
              (WebCore::Document::implicitClose):
              (WebCore::Document::processHttpEquiv):
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::setResourceTrackingEnabled):
              (WebCore::InspectorController::reloadPage):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::setDefersLoading):
              (WebCore::FrameLoader::submitForm):
              (WebCore::FrameLoader::stopLoading):
              (WebCore::FrameLoader::didOpenURL):
              (WebCore::FrameLoader::didExplicitOpen):
              (WebCore::FrameLoader::cancelAndClear):
              (WebCore::FrameLoader::clear):
              (WebCore::FrameLoader::receivedFirstData):
              (WebCore::FrameLoader::checkCompleted):
              (WebCore::FrameLoader::provisionalLoadStarted):
              (WebCore::FrameLoader::completed):
              (WebCore::FrameLoader::prepareForCachedPageRestore):
              * loader/FrameLoader.h:
              * loader/NavigationScheduler.cpp: Added.
              (WebCore::ScheduledNavigation::ScheduledNavigation):
              (WebCore::ScheduledNavigation::~ScheduledNavigation):
              (WebCore::ScheduledNavigation::shouldStartTimer):
              (WebCore::ScheduledNavigation::didStartTimer):
              (WebCore::ScheduledNavigation::didStopTimer):
              (WebCore::ScheduledNavigation::delay):
              (WebCore::ScheduledNavigation::lockHistory):
              (WebCore::ScheduledNavigation::lockBackForwardList):
              (WebCore::ScheduledNavigation::wasDuringLoad):
              (WebCore::ScheduledNavigation::isLocationChange):
              (WebCore::ScheduledNavigation::wasUserGesture):
              (WebCore::ScheduledURLNavigation::ScheduledURLNavigation):
              (WebCore::ScheduledURLNavigation::fire):
              (WebCore::ScheduledURLNavigation::didStartTimer):
              (WebCore::ScheduledURLNavigation::didStopTimer):
              (WebCore::ScheduledURLNavigation::url):
              (WebCore::ScheduledURLNavigation::referrer):
              (WebCore::ScheduledRedirect::ScheduledRedirect):
              (WebCore::ScheduledRedirect::shouldStartTimer):
              (WebCore::ScheduledLocationChange::ScheduledLocationChange):
              (WebCore::ScheduledRefresh::ScheduledRefresh):
              (WebCore::ScheduledRefresh::fire):
              (WebCore::ScheduledHistoryNavigation::ScheduledHistoryNavigation):
              (WebCore::ScheduledHistoryNavigation::fire):
              (WebCore::ScheduledFormSubmission::ScheduledFormSubmission):
              (WebCore::ScheduledFormSubmission::fire):
              (WebCore::ScheduledFormSubmission::didStartTimer):
              (WebCore::ScheduledFormSubmission::didStopTimer):
              (WebCore::NavigationScheduler::NavigationScheduler):
              (WebCore::NavigationScheduler::~NavigationScheduler):
              (WebCore::NavigationScheduler::redirectScheduledDuringLoad):
              (WebCore::NavigationScheduler::locationChangePending):
              (WebCore::NavigationScheduler::clear):
              (WebCore::NavigationScheduler::scheduleRedirect):
              (WebCore::NavigationScheduler::mustLockBackForwardList):
              (WebCore::NavigationScheduler::scheduleLocationChange):
              (WebCore::NavigationScheduler::scheduleFormSubmission):
              (WebCore::NavigationScheduler::scheduleRefresh):
              (WebCore::NavigationScheduler::scheduleHistoryNavigation):
              (WebCore::NavigationScheduler::timerFired):
              (WebCore::NavigationScheduler::schedule):
              (WebCore::NavigationScheduler::startTimer):
              (WebCore::NavigationScheduler::cancel):
              * loader/NavigationScheduler.h: Added.
              * loader/RedirectScheduler.cpp: Removed.
              * loader/RedirectScheduler.h: Removed.
              * loader/SubframeLoader.cpp:
              (WebCore::SubframeLoader::loadOrRedirectSubframe):
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::selectCache):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              * page/Frame.h:
              (WebCore::Frame::navigationScheduler):
              * page/History.cpp:
              (WebCore::History::back):
              (WebCore::History::forward):
              (WebCore::History::go):
              * page/XSSAuditor.cpp:
              (WebCore::XSSAuditor::findInRequest):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88b4e6bf
  11. 26 Jul, 2010 1 commit
    • jschuh@chromium.org's avatar
      2010-07-26 Justin Schuh <jschuh@chromium.org> · f18c0934
      jschuh@chromium.org authored
              Reviewed by Darin Fisher.
      
              Check history state against origin before setting
              https://bugs.webkit.org/show_bug.cgi?id=42858
      
              Tests: fast/loader/stateobjects/replacestate-base-illegal.html
                     fast/loader/stateobjects/replacestate-base-legal.html
      
              * page/History.cpp:
              (WebCore::History::urlForState):
              (WebCore::History::stateObjectAdded):
      2010-07-26  Justin Schuh  <jschuh@chromium.org>
      
              Reviewed by Darin Fisher.
      
              Check history state when base URL is changed
              https://bugs.webkit.org/show_bug.cgi?id=42858
      
              * fast/loader/stateobjects/replacestate-base-illegal-expected.txt: Added.
              * fast/loader/stateobjects/replacestate-base-illegal.html: Added.
              * fast/loader/stateobjects/replacestate-base-legal-expected.txt: Added.
              * fast/loader/stateobjects/replacestate-base-legal.html: Added.
              * fast/loader/stateobjects/resources/replacestate-base-pass.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f18c0934
  12. 23 Jul, 2010 2 commits
  13. 27 Jan, 2010 1 commit
    • darin@chromium.org's avatar
      2010-01-26 Darin Fisher <darin@chromium.org> · e5915f11
      darin@chromium.org authored
              Reviewed by Brady Eidson and David Levin.
      
              Chains of history items representing same-document navigation need to
              always remember that association
      
              https://bugs.webkit.org/show_bug.cgi?id=33224
      
              Replace HistoryItem's Document pointer with a DocumentSequenceNumber.
              During session history traversal, if the current HistoryItem and the
              target HistoryItem have the same DocumentSequenceNumber, then it means
              that the current Document should remain.
      
              NOTE: To support Chromium's serialization of HistoryItems, I generate
              DocumentSequenceNumbers that are unique across application launches.
              DocumentSequenceNumbers are generated using a counter initialized with
              the time of day.
      
              Test: fast/loader/stateobjects/document-destroyed-navigate-back.html
      
              * dom/Document.cpp:
              (WebCore::Document::detach):
              * dom/Document.h:
              * history/BackForwardList.cpp:
              (WebCore::BackForwardList::pushStateItem):
              * history/BackForwardListChromium.cpp:
              (WebCore::BackForwardList::pushStateItem):
              * history/HistoryItem.cpp:
              (WebCore::generateDocumentSequenceNumber):
              (WebCore::HistoryItem::HistoryItem):
              (WebCore::HistoryItem::~HistoryItem):
              (WebCore::HistoryItem::setStateObject):
              * history/HistoryItem.h:
              (WebCore::HistoryItem::setDocumentSequenceNumber):
              (WebCore::HistoryItem::documentSequenceNumber):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::navigateWithinDocument):
              (WebCore::FrameLoader::loadItem):
              * loader/HistoryController.cpp:
              (WebCore::HistoryController::updateBackForwardListForFragmentScroll):
              (WebCore::HistoryController::pushState):
              (WebCore::HistoryController::replaceState):
              * loader/RedirectScheduler.cpp:
              (WebCore::RedirectScheduler::scheduleHistoryNavigation):
              * page/History.cpp:
              (WebCore::History::stateObjectAdded):
              * page/Page.cpp:
              (WebCore::Page::goToItem):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53950 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5915f11
  14. 26 Jan, 2010 2 commits
    • aroben@apple.com's avatar
      2010-01-26 Adam Roben <aroben@apple.com> · 76507ab6
      aroben@apple.com authored
              No review, rolling out r53861.
              http://trac.webkit.org/changeset/53861
              https://bugs.webkit.org/show_bug.cgi?id=33224
      
              Caused 2 regression tests to fail.
      
              * fast/loader/stateobjects/document-destroyed-navigate-back-expected.txt:
              * fast/loader/stateobjects/document-destroyed-navigate-back.html:
      2010-01-26  Adam Roben  <aroben@apple.com>
      
              No review, rolling out r53861.
              http://trac.webkit.org/changeset/53861
              https://bugs.webkit.org/show_bug.cgi?id=33224
      
              Caused 2 regression tests to fail.
      
              * dom/Document.cpp:
              (WebCore::Document::detach):
              (WebCore::Document::registerHistoryItem):
              (WebCore::Document::unregisterHistoryItem):
              * dom/Document.h:
              * history/BackForwardList.cpp:
              (WebCore::BackForwardList::pushStateItem):
              * history/BackForwardListChromium.cpp:
              (WebCore::BackForwardList::pushStateItem):
              * history/HistoryItem.cpp:
              (WebCore::HistoryItem::HistoryItem):
              (WebCore::HistoryItem::~HistoryItem):
              (WebCore::HistoryItem::setStateObject):
              (WebCore::HistoryItem::setDocument):
              (WebCore::HistoryItem::documentDetached):
              * history/HistoryItem.h:
              (WebCore::HistoryItem::document):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::navigateWithinDocument):
              (WebCore::FrameLoader::loadItem):
              * loader/HistoryController.cpp:
              (WebCore::HistoryController::updateBackForwardListForFragmentScroll):
              (WebCore::HistoryController::pushState):
              (WebCore::HistoryController::replaceState):
              * loader/RedirectScheduler.cpp:
              (WebCore::RedirectScheduler::scheduleHistoryNavigation):
              * page/History.cpp:
              (WebCore::History::stateObjectAdded):
              * page/Page.cpp:
              (WebCore::Page::goToItem):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76507ab6
    • darin@chromium.org's avatar
      2010-01-25 Darin Fisher <darin@chromium.org> · c3f0f7d1
      darin@chromium.org authored
              Reviewed by Brady Eidson.
      
              Chains of history items representing same-document navigation need to
              always remember that association
      
              https://bugs.webkit.org/show_bug.cgi?id=33224
      
              Replace HistoryItem's Document pointer with a DocumentSequenceNumber.
              During session history traversal, if the current HistoryItem and the
              target HistoryItem have the same DocumentSequenceNumber, then it means
              that the current Document should remain.
      
              NOTE: To support Chromium's serialization of HistoryItems, I generate
              DocumentSequenceNumbers that are unique across application launches.
              DocumentSequenceNumbers are generated using a counter initialized with
              the time of day.
      
              Test: fast/loader/stateobjects/document-destroyed-navigate-back.html
      
              * dom/Document.cpp:
              (WebCore::Document::detach):
              * dom/Document.h:
              * history/BackForwardList.cpp:
              (WebCore::BackForwardList::pushStateItem):
              * history/BackForwardListChromium.cpp:
              (WebCore::BackForwardList::pushStateItem):
              * history/HistoryItem.cpp:
              (WebCore::generateDocumentSequenceNumber):
              (WebCore::HistoryItem::HistoryItem):
              (WebCore::HistoryItem::~HistoryItem):
              (WebCore::HistoryItem::setStateObject):
              * history/HistoryItem.h:
              (WebCore::HistoryItem::setDocumentSequenceNumber):
              (WebCore::HistoryItem::documentSequenceNumber):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::navigateWithinDocument):
              (WebCore::FrameLoader::loadItem):
              * loader/HistoryController.cpp:
              (WebCore::HistoryController::updateBackForwardListForFragmentScroll):
              (WebCore::HistoryController::pushState):
              (WebCore::HistoryController::replaceState):
              * loader/RedirectScheduler.cpp:
              (WebCore::RedirectScheduler::scheduleHistoryNavigation):
              * page/History.cpp:
              (WebCore::History::stateObjectAdded):
              * page/Page.cpp:
              (WebCore::Page::goToItem):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@53861 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c3f0f7d1
  15. 19 Jan, 2010 1 commit
  16. 03 Dec, 2009 1 commit
    • beidson@apple.com's avatar
      <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API · 08c61758
      beidson@apple.com authored
      Reviewed by Sam Weinig.
      
      WebCore: 
      
      Tests: fast/loader/stateobjects/document-destroyed-navigate-back.html
             fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html
             fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html
             fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html
             fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html
             fast/loader/stateobjects/pushstate-object-types.html
             fast/loader/stateobjects/pushstate-then-replacestate.html
             fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html
             fast/loader/stateobjects/replacestate-then-pushstate.html
             http/tests/loading/state-object-security-exception.html
      
      Derived sources and project file changes:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * GNUmakefile.am
      * WebCore.pro
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      
      Add the new PopStateEvent:
      * dom/PopStateEvent.cpp: Added.
      (WebCore::PopStateEvent::PopStateEvent):
      (WebCore::PopStateEvent::initPopStateEvent):
      * dom/PopStateEvent.h: Added.
      (WebCore::PopStateEvent::create):
      (WebCore::PopStateEvent::isPopStateEvent):
      (WebCore::PopStateEvent::state):
      * dom/PopStateEvent.idl: Added.
      * bindings/js/JSPopStateEventCustom.cpp: Added.
      (WebCore::JSPopStateEvent::initPopStateEvent):
      (WebCore::JSPopStateEvent::state):
      * bindings/js/JSEventCustom.cpp:
      (WebCore::toJS):
      * dom/Event.cpp:
      (WebCore::Event::isPopStateEvent):
      * dom/Event.h:
      * dom/EventNames.h:
      
      Add the "onpopstate" attribute:
      * html/HTMLAttributeNames.in:
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::parseMappedAttribute):
      * html/HTMLBodyElement.idl:
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::parseMappedAttribute):
      * html/HTMLFrameSetElement.h:
      * html/HTMLFrameSetElement.idl:
      * page/DOMWindow.h:
      * page/DOMWindow.idl:
      
      Add pushState and replaceState management to the loader and history machinery:
      * bindings/js/JSHistoryCustom.cpp:
      (WebCore::JSHistory::pushState):
      (WebCore::JSHistory::replaceState):
      * loader/HistoryController.cpp:
      (WebCore::HistoryController::updateForSameDocumentNavigation): Augmented from "scrollToAnchor()", combining
        both the same-document fragment scroll case with the new same-document state object activation case.
      (WebCore::HistoryController::pushState):
      (WebCore::HistoryController::replaceState):
      * loader/HistoryController.h:
      * history/BackForwardList.cpp:
      (WebCore::BackForwardList::addItem): Use insertItemAfterCurrent.
      (WebCore::BackForwardList::insertItemAfterCurrent): Optionally insert the item without clearing the forward
        list, as pushStateItem might've selectively cleared only certain items, with the bulk of the forward list
        meant to remain.
      (WebCore::BackForwardList::pushStateItem): Clear the forward list *only* for the state item's document, then 
        insert the new item.
      (WebCore::BackForwardList::removeItem):
      * history/BackForwardList.h:
      * page/History.cpp:
      (WebCore::History::urlForState):
      (WebCore::History::stateObjectAdded):
      * page/History.h:
      * page/History.idl:
      
      Let HistoryItems and Documents associate with each other, as well as letting HistoryItems contain state objects:
      * history/HistoryItem.cpp:
      (WebCore::HistoryItem::HistoryItem):
      (WebCore::HistoryItem::~HistoryItem):
      (WebCore::HistoryItem::setStateObject):
      (WebCore::HistoryItem::setDocument):
      (WebCore::HistoryItem::documentDetached):
      * history/HistoryItem.h:
      (WebCore::HistoryItem::stateObject):
      (WebCore::HistoryItem::document):
      * dom/Document.cpp:
      (WebCore::Document::detach): Notify all back/forward history items owned by this Document that it
        is going away.
      (WebCore::Document::registerHistoryItem): Manage the list of back/forward history items this document owns.
      (WebCore::Document::unregisterHistoryItem): Ditto.
      * dom/Document.h:
      
      Add the ability for Documents, DocumentLoaders, and FrameLoaderClients to be notified when a Documents
      URL changes as the result of pushState(), replaceState(), or a popstate navigation:
      * dom/Document.cpp:
      (WebCore::Document::implicitClose): If there's a pending state object, dispatch the popstate event.
      (WebCore::Document::updateURLForPushOrReplaceState):
      (WebCore::Document::statePopped): If loading is complete, dispatch the popstate event. Otherwise, set 
        the pending state object.
      * loader/DocumentLoader.cpp:
      (WebCore::DocumentLoader::replaceRequestURLForSameDocumentNavigation):
      * loader/DocumentLoader.h:
      * loader/FrameLoaderClient.h:
      * loader/EmptyClients.h:
      (WebCore::EmptyFrameLoaderClient::dispatchDidChangeStateObjectForPageForFrame):
      
      Change handling of "loading a HistoryItem" to distinguish between new-Document navigations and same-Document
      navigations, combining the old concept of anchor scrolls with the new concept of state object navigations:
      * loader/FrameLoader.cpp:
      (WebCore::FrameLoader::loadInSameDocument):
      (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
      (WebCore::FrameLoader::navigateWithinDocument):
      (WebCore::FrameLoader::navigateToDifferentDocument):
      (WebCore::FrameLoader::loadItem):
      * loader/FrameLoader.h:
      * page/Page.cpp:
      (WebCore::Page::goToItem): Changed to allow state object activations to pass through without the load stopping.
      
      WebKit/chromium: 
      
      * src/FrameLoaderClientImpl.cpp:
      (WebKit::FrameLoaderClientImpl::dispatchDidPushStateWithinPage):
      (WebKit::FrameLoaderClientImpl::dispatchDidReplaceStateWithinPage):
      (WebKit::FrameLoaderClientImpl::dispatchDidPopStateWithinPage):
      * src/FrameLoaderClientImpl.h:
      
      WebKit/gtk: 
      
      * WebCoreSupport/FrameLoaderClientGtk.cpp:
      (WebKit::FrameLoaderClient::dispatchDidPushStateWithinPage):
      (WebKit::FrameLoaderClient::dispatchDidReplaceStateWithinPage):
      (WebKit::FrameLoaderClient::dispatchDidPopStateWithinPage):
      * WebCoreSupport/FrameLoaderClientGtk.h:
      
      WebKit/mac: 
      
      * WebCoreSupport/WebFrameLoaderClient.h:
      * WebCoreSupport/WebFrameLoaderClient.mm:
      (WebFrameLoaderClient::dispatchDidPushStateWithinPage):
      (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
      (WebFrameLoaderClient::dispatchDidPopStateWithinPage):
      * WebView/WebDelegateImplementationCaching.h:
      * WebView/WebFrameLoadDelegatePrivate.h:
      * WebView/WebView.mm:
      (-[WebView _cacheFrameLoadDelegateImplementations]):
      
      WebKit/qt: 
      
      * WebCoreSupport/FrameLoaderClientQt.cpp:
      (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
      (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
      (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
      * WebCoreSupport/FrameLoaderClientQt.h:
      
      WebKit/win: 
      
      * Interfaces/IWebFrameLoadDelegatePrivate2.idl:
      * WebCoreSupport/WebFrameLoaderClient.cpp:
      (WebFrameLoaderClient::dispatchDidPushStateWithinPage):
      (WebFrameLoaderClient::dispatchDidReplaceStateWithinPage):
      (WebFrameLoaderClient::dispatchDidPopStateWithinPage):
      * WebCoreSupport/WebFrameLoaderClient.h:
      
      WebKit/wx: 
      
      * WebKitSupport/FrameLoaderClientWx.cpp:
      (WebCore::FrameLoaderClientWx::dispatchDidPushStateWithinPage):
      (WebCore::FrameLoaderClientWx::dispatchDidReplaceStateWithinPage):
      (WebCore::FrameLoaderClientWx::dispatchDidPopStateWithinPage):
      * WebKitSupport/FrameLoaderClientWx.h:
      
      WebKitTools: 
      
      Keep DRT-win building...
      
      * DumpRenderTree/win/FrameLoadDelegate.h:
      (FrameLoadDelegate::didPushStateWithinPageForFrame):
      (FrameLoadDelegate::didReplaceStateWithinPageForFrame):
      (FrameLoadDelegate::didPopStateWithinPageForFrame):
      
      LayoutTests: 
      
      Update expected results of old tests:
      * fast/dom/Window/window-appendages-cleared-expected.txt:
      * fast/dom/Window/window-properties-expected.txt:
      * http/tests/security/cross-frame-access-enumeration-expected.txt:
      
      New tests:
      * fast/loader/stateobjects: Added.
      * fast/loader/stateobjects/document-destroyed-navigate-back-expected.txt: Added.
      * fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll-expected.txt: Added.
      * fast/loader/stateobjects/document-destroyed-navigate-back-with-fragment-scroll.html: Added.
      * fast/loader/stateobjects/document-destroyed-navigate-back.html: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-addeventlistener-expected.txt: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-addeventlistener.html: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-body-attribute-expected.txt: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-body-attribute.html: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-body-inline-attribute-expected.txt: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-body-inline-attribute.html: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-window-attribute-expected.txt: Added.
      * fast/loader/stateobjects/popstate-after-load-complete-window-attribute.html: Added.
      * fast/loader/stateobjects/pushstate-object-types-expected.txt: Added.
      * fast/loader/stateobjects/pushstate-object-types.html: Added.
      * fast/loader/stateobjects/pushstate-then-replacestate-expected.txt: Added.
      * fast/loader/stateobjects/pushstate-then-replacestate.html: Added.
      * fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange-expected.txt: Added.
      * fast/loader/stateobjects/pushstate-with-fragment-urls-and-hashchange.html: Added.
      * fast/loader/stateobjects/replacestate-then-pushstate-expected.txt: Added.
      * fast/loader/stateobjects/replacestate-then-pushstate.html: Added.
      * fast/loader/stateobjects/resources: Added.
      * fast/loader/stateobjects/resources/navigate-back.html: Added.
      * http/tests/loading/state-object-security-exception-expected.txt: Added.
      * http/tests/loading/state-object-security-exception.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@51644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08c61758
  17. 03 Nov, 2009 1 commit
  18. 04 Oct, 2009 1 commit
    • abarth@webkit.org's avatar
      2009-10-03 Adam Barth <abarth@webkit.org> · 854a1b3c
      abarth@webkit.org authored
              Reviewed by Sam Weinig.
      
              Factor back-forward list methods out of FrameLoader
              https://bugs.webkit.org/show_bug.cgi?id=30037
      
              This change moves these back-forward related methods from FrameLoader
              to Page.  It's possible we should move these methods into some kind of
              "page controller" object, but we can figure that out in a future patch.
      
              * loader/FrameLoader.cpp:
              * loader/FrameLoader.h:
              * loader/RedirectScheduler.cpp:
              (WebCore::RedirectScheduler::timerFired):
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::contextMenuItemSelected):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::close):
              * page/History.cpp:
              (WebCore::History::length):
              * page/Page.cpp:
              (WebCore::Page::canGoBackOrForward):
              (WebCore::Page::goBackOrForward):
              (WebCore::Page::getHistoryLength):
              * page/Page.h:
              * platform/ContextMenu.cpp:
              (WebCore::ContextMenu::populate):
              (WebCore::ContextMenu::checkOrEnableIfNeeded):
      2009-10-03  Adam Barth  <abarth@webkit.org>
      
              Reviewed by Sam Weinig.
      
              Factor PageController out of FrameLoader and Page
              https://bugs.webkit.org/show_bug.cgi?id=30037
      
              * webkit/webkitwebview.cpp:
              (webkit_web_view_can_go_back_or_forward):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      854a1b3c
  19. 01 Oct, 2009 1 commit
    • abarth@webkit.org's avatar
      2009-10-01 Adam Barth <abarth@webkit.org> · 5d1a968f
      abarth@webkit.org authored
              Reviewed by Darin Adler.
      
              Remove FrameLoader::schedule* APIs
              https://bugs.webkit.org/show_bug.cgi?id=29950
      
              Change clients of FrameLoader::schedule* to call redirectScheduler
              directly.
      
              No behavior change.
      
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::setLocation):
              (WebCore::createWindow):
              (WebCore::JSDOMWindow::open):
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::setLocation):
              * bindings/js/JSLocationCustom.cpp:
              (WebCore::navigateIfAllowed):
              (WebCore::JSLocation::reload):
              * bindings/v8/V8Utilities.cpp:
              (WebCore::navigateIfAllowed):
              * bindings/v8/custom/V8DOMWindowCustom.cpp:
              (WebCore::createWindow):
              (WebCore::CALLBACK_FUNC_DECL):
              * bindings/v8/custom/V8LocationCustom.cpp:
              (WebCore::CALLBACK_FUNC_DECL):
              * dom/Document.cpp:
              (WebCore::Document::implicitClose):
              (WebCore::Document::processHttpEquiv):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::write):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::requestFrame):
              (WebCore::FrameLoader::submitForm):
              (WebCore::FrameLoader::receivedFirstData):
              * loader/FrameLoader.h:
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::selectCache):
              * page/History.cpp:
              (WebCore::History::back):
              (WebCore::History::forward):
              (WebCore::History::go):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@48994 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5d1a968f
  20. 20 Feb, 2008 1 commit
    • andersca@apple.com's avatar
      Reviewed by Darin. · 965cf1c3
      andersca@apple.com authored
              Change all refcounted classes in page/ to start with a refcount of 1.
      
              * page/BarInfo.cpp:
              (WebCore::BarInfo::BarInfo):
              * page/BarInfo.h:
              (WebCore::BarInfo::create):
              * page/Console.cpp:
              (WebCore::Console::Console):
              * page/Console.h:
              (WebCore::Console::create):
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::DOMSelection):
              * page/DOMSelection.h:
              (WebCore::DOMSelection::create):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::DOMWindow):
              (WebCore::DOMWindow::screen):
              (WebCore::DOMWindow::history):
              (WebCore::DOMWindow::locationbar):
              (WebCore::DOMWindow::menubar):
              (WebCore::DOMWindow::personalbar):
              (WebCore::DOMWindow::scrollbars):
              (WebCore::DOMWindow::statusbar):
              (WebCore::DOMWindow::toolbar):
              (WebCore::DOMWindow::console):
              (WebCore::DOMWindow::getSelection):
              * page/DOMWindow.h:
              (WebCore::DOMWindow::create):
              * page/Frame.cpp:
              (WebCore::Frame::domWindow):
              * page/History.cpp:
              (WebCore::History::History):
              * page/History.h:
              (WebCore::History::create):
              * page/InspectorController.cpp:
              (WebCore::InspectorResource::create):
              (WebCore::InspectorResource::InspectorResource):
              (WebCore::InspectorDatabaseResource::create):
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              (WebCore::InspectorController::didLoadResourceFromMemoryCache):
              (WebCore::InspectorController::identifierForInitialRequest):
              (WebCore::InspectorController::didOpenDatabase):
              * page/Plugin.h:
              (WebCore::Plugin::create):
              (WebCore::Plugin::Plugin):
              * page/Screen.cpp:
              (WebCore::Screen::Screen):
              * page/Screen.h:
              (WebCore::Screen::create):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      965cf1c3
  21. 10 Feb, 2008 1 commit
    • darin@apple.com's avatar
      JavaScriptCore: · 734fbf64
      darin@apple.com authored
              Reviewed by Eric.
      
              - http://bugs.webkit.org/show_bug.cgi?id=17256
                Make clients of RefCounted explicitly set the count to 0.
      
              * API/JSClassRef.cpp:
              (OpaqueJSClass::OpaqueJSClass):
              * bindings/runtime_root.cpp:
              (KJS::Bindings::RootObject::RootObject):
      
      WebCore:
      
              Reviewed by Eric.
      
              - http://bugs.webkit.org/show_bug.cgi?id=17256
                Make clients of RefCounted explicitly set the count to 0.
      
              * bindings/js/JSSVGPODTypeWrapper.h:
              (WebCore::JSSVGPODTypeWrapper::JSSVGPODTypeWrapper):
              * css/CSSFontFace.h:
              (WebCore::CSSFontFace::CSSFontFace):
              * css/CSSRuleList.cpp:
              (WebCore::CSSRuleList::CSSRuleList):
              * css/CSSSegmentedFontFace.cpp:
              (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
              * css/Counter.h:
              (WebCore::Counter::Counter):
              * css/Pair.h:
              (WebCore::Pair::Pair):
              * css/Rect.h:
              (WebCore::Rect::Rect):
              * css/StyleBase.h:
              (WebCore::StyleBase::StyleBase):
              * css/StyleSheetList.cpp:
              (WebCore::StyleSheetList::StyleSheetList):
              * dom/Attr.cpp:
              (WebCore::Attr::Attr):
              * dom/Attr.h:
              * dom/Attribute.h:
              (WebCore::Attribute::Attribute):
              * dom/Clipboard.cpp:
              (WebCore::Clipboard::Clipboard):
              * dom/DOMImplementation.h:
              (WebCore::DOMImplementation::DOMImplementation):
              * dom/Event.cpp:
              (WebCore::Event::Event):
              * dom/EventListener.h:
              (WebCore::EventListener::EventListener):
              * dom/ExceptionBase.cpp:
              (WebCore::ExceptionBase::ExceptionBase):
              * dom/NamedAttrMap.h:
              (WebCore::NamedAttrMap::insertAttribute):
              * dom/NamedNodeMap.h:
              (WebCore::NamedNodeMap::NamedNodeMap):
              * dom/NodeFilter.h:
              (WebCore::NodeFilter::NodeFilter):
              * dom/NodeFilterCondition.h:
              (WebCore::NodeFilterCondition::NodeFilterCondition):
              * dom/NodeList.h:
              (WebCore::NodeList::NodeList):
              * dom/QualifiedName.h:
              (WebCore::QualifiedName::QualifiedNameImpl::QualifiedNameImpl):
              (WebCore::QualifiedName::ref):
              * dom/Range.cpp:
              (WebCore::Range::Range):
              * dom/RegisteredEventListener.cpp:
              (WebCore::RegisteredEventListener::RegisteredEventListener):
              * dom/StyledElement.h:
              * dom/Traversal.cpp:
              (WebCore::Traversal::Traversal):
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::EditCommand):
              * history/BackForwardList.cpp:
              (WebCore::BackForwardList::BackForwardList):
              * history/CachedPage.cpp:
              (WebCore::CachedPage::CachedPage):
              * history/HistoryItem.cpp:
              (WebCore::HistoryItem::HistoryItem):
              * html/CanvasGradient.cpp:
              (WebCore::CanvasGradient::CanvasGradient):
              * html/CanvasPattern.cpp:
              (WebCore::CanvasPattern::CanvasPattern):
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D):
              * html/CanvasStyle.cpp:
              (WebCore::CanvasStyle::CanvasStyle):
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::HTMLCollection):
              * html/MediaError.h:
              (WebCore::MediaError::MediaError):
              * html/TimeRanges.cpp:
              (TimeRanges::TimeRanges):
              * html/TimeRanges.h:
              (WebCore::TimeRanges::TimeRanges):
              * html/VoidCallback.h:
              (WebCore::VoidCallback::VoidCallback):
              * loader/DocumentLoader.cpp:
              (WebCore::DocumentLoader::DocumentLoader):
              * loader/FormState.cpp:
              (WebCore::FormState::FormState):
              * loader/ResourceLoader.cpp:
              (WebCore::ResourceLoader::ResourceLoader):
              * loader/TextResourceDecoder.cpp:
              (WebCore::TextResourceDecoder::TextResourceDecoder):
              * loader/icon/IconRecord.cpp:
              (WebCore::IconRecord::IconRecord):
              * page/BarInfo.cpp:
              (WebCore::BarInfo::BarInfo):
              * page/Console.cpp:
              (WebCore::Console::Console):
              * page/DOMSelection.cpp:
              (WebCore::DOMSelection::DOMSelection):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::DOMWindow):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              * page/History.cpp:
              (WebCore::History::History):
              * page/InspectorController.cpp:
              (WebCore::InspectorResource::InspectorResource):
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              * page/Screen.cpp:
              (WebCore::Screen::Screen):
              * platform/ArrayImpl.cpp:
              (WebCore::ArrayImpl::ArrayPrivate::ArrayPrivate):
              * platform/DeprecatedValueListImpl.cpp:
              (WebCore::DeprecatedValueListImpl::Private::Private):
              * platform/ScrollBar.cpp:
              (WebCore::Scrollbar::Scrollbar):
              * platform/SharedBuffer.cpp:
              (WebCore::SharedBuffer::SharedBuffer):
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::FontFallbackList):
              * platform/graphics/FontFamily.cpp:
              (WebCore::FontFamily::FontFamily):
              * platform/graphics/FontFamily.h:
              (WebCore::FontFamily::FontFamily):
              * platform/graphics/FontSelector.h:
              (WebCore::FontSelector::FontSelector):
              (WebCore::FontSelector::~FontSelector):
              * platform/graphics/GlyphPageTreeNode.h:
              (WebCore::GlyphPage::GlyphPage):
              * platform/graphics/mac/IconMac.mm:
              (WebCore::Icon::Icon):
              * platform/mac/FileChooserMac.mm:
              (WebCore::FileChooser::FileChooser):
              * platform/mac/PopupMenuMac.mm:
              (WebCore::PopupMenu::PopupMenu):
              * platform/mac/SharedBufferMac.mm:
              (WebCore::SharedBuffer::SharedBuffer):
              * platform/network/FormData.cpp:
              (WebCore::FormData::FormData):
              * platform/network/FormData.h:
              (WebCore::FormData::FormData):
              * platform/network/ResourceHandle.cpp:
              (WebCore::ResourceHandle::ResourceHandle):
              * platform/text/CString.h:
              (WebCore::CStringBuffer::CStringBuffer):
              * platform/text/RegularExpression.cpp:
              (WebCore::RegularExpression::Private::Private):
              * rendering/RenderStyle.cpp:
              (WebCore::StyleSurroundData::StyleSurroundData):
              (WebCore::StyleBoxData::StyleBoxData):
              (WebCore::StyleVisualData::StyleVisualData):
              (WebCore::StyleBackgroundData::StyleBackgroundData):
              (WebCore::StyleMarqueeData::StyleMarqueeData):
              (WebCore::StyleFlexibleBoxData::StyleFlexibleBoxData):
              (WebCore::StyleMultiColData::StyleMultiColData):
              (WebCore::StyleTransformData::StyleTransformData):
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareInheritedData::StyleRareInheritedData):
              (WebCore::StyleInheritedData::StyleInheritedData):
              * rendering/RenderStyle.h:
              (WebCore::TransformOperation::TransformOperation):
              (WebCore::CursorList::CursorList):
              * rendering/SVGCharacterLayoutInfo.h:
              (WebCore::SVGCharOnPath::SVGCharOnPath):
              * rendering/SVGRenderStyle.cpp:
              (WebCore::SVGRenderStyle::SVGRenderStyle):
              * rendering/SVGRenderStyle.h:
              (WebCore::SVGRenderStyle::SVGRenderStyle):
              * rendering/SVGRenderStyleDefs.cpp:
              (StyleFillData::StyleFillData):
              (StyleStrokeData::StyleStrokeData):
              (StyleStopData::StyleStopData):
              (StyleTextData::StyleTextData):
              (StyleClipData::StyleClipData):
              (StyleMaskData::StyleMaskData):
              (StyleMarkerData::StyleMarkerData):
              (StyleMiscData::StyleMiscData):
              * storage/SQLResultSetRowList.h:
              (WebCore::SQLResultSetRowList::SQLResultSetRowList):
              * svg/SVGAngle.cpp:
              (WebCore::SVGAngle::SVGAngle):
              * svg/SVGAnimatedTemplate.h:
              (WebCore::SVGAnimatedTemplate::SVGAnimatedTemplate):
              * svg/SVGElementInstanceList.cpp:
              (WebCore::SVGElementInstanceList::SVGElementInstanceList):
              * svg/SVGList.h:
              (WebCore::SVGList::SVGList):
              (WebCore::SVGPODListItem::SVGPODListItem):
              * svg/SVGPathSeg.h:
              (WebCore::SVGPathSeg::SVGPathSeg):
              * svg/SVGPreserveAspectRatio.cpp:
              (WebCore::SVGPreserveAspectRatio::SVGPreserveAspectRatio):
              * svg/SVGRenderingIntent.h:
              (WebCore::SVGRenderingIntent::SVGRenderingIntent):
              * svg/SVGUnitTypes.h:
              (WebCore::SVGUnitTypes::SVGUnitTypes):
              * svg/graphics/SVGPaintServerGradient.h:
              (WebCore::SVGPaintServerGradient::SharedStopCache::SharedStopCache):
              * svg/graphics/SVGResource.cpp:
              (WebCore::SVGResource::SVGResource):
              * xml/DOMParser.h:
              (WebCore::DOMParser::DOMParser):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::XMLHttpRequest):
              * xml/XMLSerializer.h:
              (WebCore::XMLSerializer::XMLSerializer):
              * xml/XPathEvaluator.h:
              (WebCore::XPathEvaluator::XPathEvaluator):
              * xml/XPathExpression.h:
              (WebCore::XPathExpression::XPathExpression):
              * xml/XPathNSResolver.h:
              (WebCore::XPathNSResolver::XPathNSResolver):
              * xml/XPathResult.cpp:
              (WebCore::XPathResult::XPathResult):
              * xml/XPathValue.h:
              (WebCore::XPath::ValueData::ValueData):
              * xml/XSLTProcessor.h:
              (WebCore::XSLTProcessor::XSLTProcessor):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30122 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      734fbf64
  22. 19 Jun, 2007 1 commit
    • weinig's avatar
      Reviewed by Geoff. · 4484b814
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14226
              Move the History object out of the JS bindings
      
              - Autogenerate JSHistory.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::getValueProperty):
              (KJS::Window::clearHelperObjectProperties):
              (KJS::Window::disconnectFrame):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * bridge/GlobalHistory.h: Copied from WebCore/bridge/History.h.
              * bridge/History.h: Removed.
              * bridge/mac/GlobalHistoryMac.mm: Copied from WebCore/bridge/mac/HistoryMac.mm.
              * bridge/mac/HistoryMac.mm: Removed.
              * bridge/win/GlobalHistoryWin.cpp: Copied from WebCore/bridge/win/HistoryWin.cpp.
              * bridge/win/HistoryWin.cpp: Removed.
              * css/cssstyleselector.cpp:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::history):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
              * page/History.cpp: Added.
              (WebCore::History::History):
              (WebCore::History::frame):
              (WebCore::History::disconnectFrame):
              (WebCore::History::length):
              (WebCore::History::back):
              (WebCore::History::forward):
              (WebCore::History::go):
              * page/History.h: Added.
              * page/History.idl: Added.
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/qt/TemporaryLinkStubs.cpp:
              * platform/wx/TemporaryLinkStubs.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4484b814
  23. 03 May, 2007 1 commit
  24. 29 Apr, 2007 1 commit
    • oliver's avatar
      Reviewed by Steve. · 73b4f89f
      oliver authored
              Fix for <rdar://problem/5126393> REGRESSION (r19672-19697): Safari drag image drags at original size (13261)
      
              Added logic to ensure that when we create the drag image
              we're looking at the rendered image size.
      
              * page/DragController.cpp:
              (WebCore::DragController::doImageDrag):
                Pass the rendered image size to fitDragImageToMaxSize
      
              * platform/DragImage.cpp:
              (WebCore::fitDragImageToMaxSize):
                 Need to do scaling relative to rendered image size
      
              * platform/DragImage.h:
                 scaleDragImage needs x and y scales to allow for them to be
                 scaled seperately on a page
      
              * platform/gdk/DragImageGdk.cpp:
              (WebCore::scaleDragImage):
                 Prevent build bustage
      
              * platform/mac/DragImageMac.mm:
              (WebCore::scaleDragImage):
                 scale width and height independently
      
              * platform/qt/DragImageQt.cpp:
              (WebCore::scaleDragImage):
                 Prevent build bustage
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73b4f89f
  25. 18 Feb, 2007 1 commit
    • oliver's avatar
      2007-02-18 Oliver Hunt <oliver@apple.com> · cd54bad1
      oliver authored
              Reviewed by Adam.
      WebCore:
              More drag and drop migration, now the entirety of the
              drag initiation logic has been rendered platform independent
              This has required a number of new interfaces, and a reasonable
              amount of logic migration.
      
              As a side effect, this patch also fixes rdar://problem/4945341
      
              There are some basic Qt stubs that should stop the build from failing,
              however the absence of ClipboardQt means any attempt to initiate a drag 
              may cause a crash.
      
              * WebCore.exp:
                 Exporting new symbols
      
              * WebCore.xcodeproj/project.pbxproj:
                 New files
      
              * dom/Clipboard.cpp:
              (WebCore::Clipboard::canSaveAsWebArchive):
                Migrated from WebKit
      
              * dom/Clipboard.h:
                Added more methods to allow Clipboard to be used as a 
                platform independent container for drag and drop
      
              * page/DragClient.h:
              (WebCore::DragClient::declareAndWriteDragImage):
                This is a mac only helper function, so i've made it have an empty implementation,
                that way we won't need a PLATFORM(MAC) block in SVGImageEmptyClients
      
              * page/DragController.cpp:
              (WebCore::DragController::dragExited):
              (WebCore::DragController::performDrag):
              (WebCore::DragController::tryDocumentDrag): 
              (WebCore::DragController::tryDHTMLDrag):
                Using RefPtrs now
              (WebCore::getCachedImage):
              (WebCore::getImage):
                Helper functions                   
              (WebCore::dragLocForDHTMLDrag):
              (WebCore::dragLocForSelectionDrag):
              (WebCore::DragController::startDrag):
              (WebCore::DragController::doImageDrag):
              (WebCore::DragController::doSystemDrag):
                Logic that generates drag images and clipboard content, and
                initiates the actual system drag operation
      
              * page/DragController.h:
                Method and variable declarations
      
              * page/EventHandler.cpp:
              (WebCore::EventHandler::handleDrag):
                handleDrag is now platform independent
              (WebCore::EventHandler::handleTextInputEvent):
                 formatting
      
              * page/EventHandler.h:
              (WebCore::EventHandler::eventLoopHandleMouseDragged):
                Forgot to define this stub function 
      
              * page/Frame.h:
                Declaring dragImageForSelection to provide drag image for selected content
      
              * page/mac/DragControllerMac.mm:
                Defining drag images control vars
      
              * page/mac/EventHandlerMac.mm:
              (WebCore::EventHandler::createDraggingClipboard):
                Migrated old clipboard creation to here
      
              * page/mac/FrameMac.mm:
              (WebCore::Frame::dragImageForSelection):
                Wrap FrameMac::selectionImage
      
              * page/qt/DragControllerQt.cpp:
                Defining drag images control vars
      
              * page/qt/EventHandlerQt.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
                stub
      
              * page/qt/FrameQt.cpp:
              (WebCore::Frame::dragImageForSelection):
                stub
      
              * platform/DragImage.cpp: Added.
              (WebCore::fitDragImageToMaxSize):
              (WebCore::createDragImageForSelection):
                 Platform independent processing for drag images
      
              * platform/DragImage.h: Added.
                 Declaring typedefs and wrapper functions to abstract the handling
                 of drag images 
      
              * platform/Pasteboard.h:
                Declaring extracted writeURL and writeSelection methods
      
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyDragClient::willPerformDragSourceAction):
              (WebCore::SVGEmptyDragClient::startDrag):
              (WebCore::SVGEmptyDragClient::createDragImageForLink):
                Stubs FTW!
      
              * platform/mac/ClipboardMac.h:
              (WebCore::ClipboardMac::pasteboard):
                Provide accessor for underlying NSPasteboard
      
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::hasData):
              (WebCore::ClipboardMac::writeRange):
              (WebCore::ClipboardMac::writeURL):
              (WebCore::ClipboardMac::declareAndWriteDragImage):
              (WebCore::ClipboardMac::createDragImage):
                 Implemented new Clipboarid functionality.
              (WebCore::ClipboardMac::dragNSImage):
                 Made this a const method
      
              * platform/mac/DragImageMac.mm: Added.
              (WebCore::dragImageSize):
              (WebCore::deleteDragImage):
              (WebCore::scaleDragImage):
              (WebCore::dissolveDragImageToFraction):
              (WebCore::createDragImageFromImage):
              (WebCore::createDragImageIconForCachedImage):
                 Implemented platform specific DragImage functions
      
              * platform/mac/PasteboardMac.mm:
              (WebCore::writeSelection):
              (WebCore::Pasteboard::writeSelection):
              (WebCore::writeURL):
              (WebCore::Pasteboard::writeURL):
                 Extracted member implementations of these functions, so that
                 Clipboard could also make use of this functionality.
                 Pasteboard methods now call the new non-member implementations.
                 Also fixed implementations to respect the list of requested types.
      
              * platform/qt/DragImageQt.cpp: Added.
              (WebCore::dragImageSize):
              (WebCore::deleteDragImage):
              (WebCore::scaleDragImage):
              (WebCore::dissolveDragImageToFraction):
              (WebCore::createDragImageFromImage):
              (WebCore::createDragImageIconForCachedImage):  
                Stubs
      
      WebKit:
              Moving the drag initiation logic to WebCore.
              The redundant code in webkit will be moved out in a later patch.
      
              * WebCoreSupport/WebDragClient.h:
              * WebCoreSupport/WebDragClient.mm:
              (getTopHTMLView):
                Helper function
              (WebDragClient::willPerformDragSourceAction):
              (WebDragClient::startDrag):
              (WebDragClient::createDragImageForLink):
                Implemented new DragClient methods
              (WebDragClient::declareAndWriteDragImage):
                Helper function for the Mac to allow new drag and drop
                code to match behaviour
                
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _dragImageForURL:withLabel:]):
              (-[WebHTMLView _dragImageForLinkElement:]):
                Refactoring old _dragImageForLinkElement function so that 
                the link drag image can be created with just a URL and label, 
                rather than requiring the original element
              (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]):
                Removed logic that is no longer necessary                 
              (-[WebHTMLView _mouseDownEvent]):
                The WebDragClient may need the original mouseDownEvent of a drag when initiating
                a drag
              * WebView/WebHTMLViewInternal.h:
                Declaring _mouseDownEvent
      
              * WebView/WebHTMLViewPrivate.h:
                Declaring _dragImageForURL
                                              
            
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19689 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd54bad1
  26. 07 Feb, 2007 1 commit
    • kjk's avatar
      Reviewed by Adam Roben. · 6287cbcf
      kjk authored
              Linux/gdk build fixes - add new files based on qt implementation.
      
              * page/gdk/DragControllerGdk.cpp: Added.
              (WebCore::DragController::dragOperation):
              * page/gdk/EventHandlerGdk.cpp: Added.
              (WebCore::EventHandler::focusDocumentView):
              (WebCore::EventHandler::passWidgetMouseDownEventToWidget):
              (WebCore::EventHandler::handleDrag):
              (WebCore::EventHandler::eventActivatedView):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6287cbcf
  27. 23 Jan, 2007 1 commit
    • oliver's avatar
      2007-01-23 Oliver Hunt <oliver@apple.com> · aeffa297
      oliver authored
              Reviewed by Adam.
      
              Added DragController to handled drag and drop state and control logic.
              Currently this only handles logic for Dragging and Dropping, and is 
              unable to initialise a drag itself.
      
              platform/DragData encapsulate the paltform Drag data (NSDraggingInfo on Mac, 
              QMimeType in Qt).  This provides methods to pull data out the drag data as a String, 
              a URL, a DocumentFragment (for rich content), or a Colour.
      
              * WebCore.exp:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * dom/Clipboard.cpp: Added.
              (WebCore::Clipboard::setAccessPolicy):
              (WebCore::dragOpFromIEOp):
              (WebCore::IEOpFromDragOp):
              (WebCore::Clipboard::sourceOperation):
              (WebCore::Clipboard::destinationOperation):
              (WebCore::Clipboard::setSourceOperation):
              (WebCore::Clipboard::setDestinationOperation):
              (WebCore::Clipboard::setDropEffect):
              (WebCore::Clipboard::setEffectAllowed):
                move platform independent functions from ClipboardMac to Clipboard
      
              * dom/Clipboard.h:
              (WebCore::Clipboard::Clipboard):
              (WebCore::Clipboard::dropEffect):
              (WebCore::Clipboard::effectAllowed):
              (WebCore::Clipboard::policy):
                as above -- also removed virtual modifier from now 
                platform independent methods
      
              * editing/Editor.cpp:
              (WebCore::Editor::smartInsertDeleteEnabled): 
              (WebCore::Editor::shouldApplyStyle):
              * editing/Editor.h:
                adding calls through to EditorClient
               
              * page/DragActions.h: Added.
              (WebCore::):
                Replicates a number of NS* enums in the WebCore namespace
      
              * page/DragClient.h: Added.
              (WebCore::DragClient::~DragClient):
                Standard client interface for dragging UIDelegate
      
              * page/DragController.cpp: Added.
              (WebCore::createMouseEvent):
              (WebCore::DragController::DragController):
              (WebCore::DragController::~DragController):
              (WebCore::documentFragmentFromDragData):
              (WebCore::DragController::isMoveDrag):
              (WebCore::visiblePositionForPoint):
              (WebCore::DragController::cancelDrag):
              (WebCore::documentAtPoint):
              (WebCore::DragController::dragEntered):
              (WebCore::DragController::dragExited):
              (WebCore::DragController::dragUpdated):
              (WebCore::DragController::performDrag):
              (WebCore::DragController::dragEnteredOrUpdated):
              (WebCore::DragController::tryDocumentDrag):
              (WebCore::DragController::operationForLoad):
              (WebCore::DragController::concludeDrag):
              (WebCore::DragController::canProcessDrag):
              (WebCore::DragController::tryDHTMLDrag):
                Class to handle state and logic for dragging and dropping
      
              * page/DragController.h: Added.
              (WebCore::DragController::client):
              (WebCore::DragController::didInitiateDrag):
              (WebCore::DragController::isHandlingDrag):
              (WebCore::DragController::dragOperation):
              (WebCore::DragController::document):
              (WebCore::DragController::dragInitiator):
              (WebCore::DragController::dragDestinationAction):
              (WebCore::DragController::dragSourceAction):
              (WebCore::DragController::dragEnded):
              (WebCore::DragController::setIsHandlingDrag):
              (WebCore::DragController::setDidInitiateDrag):
              (WebCore::DragController::setDragOperation):
              (WebCore::DragController::setDragSourceAction):
              (WebCore::DragController::setDragInitiator):
                See above
      
              * page/Page.cpp:
              (WebCore::Page::Page):
                Update Page to have DragController
      
              * page/Page.h:
              (WebCore::Page::dragController):
                ditto
      
              * page/mac/DragControllerMac.mm: Added.
              (WebCore::DragController::isCopyKeyDown):
              (WebCore::DragController::dragOperation):
                Platform specific portions of the DragController
      
              * page/mac/EventHandlerMac.mm:
              (WebCore::EventHandler::handleDrag):
              (WebCore::EventHandler::dragSourceEndedAt):
                Convert from NSDragOperation to WebCore::DragOperation
      
              * page/mac/WebCoreFrameBridge.h:
              * page/mac/WebCoreFrameBridge.mm:
                Remove obsolete Drag functions
      
              * page/qt/DragControllerQt.cpp: Added.
              (WebCore::DragController::isCopyKeyDown):
              (WebCore::DragController::dragOperation):
                Basic stubs to maintain Qt  build
      
              * platform/DragData.cpp: Added.
              (WebCore::DragData::DragData):
              * platform/DragData.h: Added.
              (WebCore::DragData::clientPosition):
              (WebCore::DragData::globalPosition):
              (WebCore::DragData::platformData):
              (WebCore::DragData::draggingSourceOperationMask):
                DragData class to encapsulate platform drag data/event
      
              * platform/graphics/svg/SVGImage.cpp:
              (WebCore::SVGImage::setData):
                Addition of dummy DragClient
      
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyDragClient::~SVGEmptyDragClient):
              (WebCore::SVGEmptyDragClient::willPerformDragDestinationAction):
              (WebCore::SVGEmptyDragClient::actionMaskForDrag):
              (WebCore::SVGEmptyDragClient::dragControllerDestroyed):
                ditto
      
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::ClipboardMac):
              (WebCore::ClipboardMac::clearData):
              (WebCore::ClipboardMac::clearAllData):
              (WebCore::ClipboardMac::getData):
              (WebCore::ClipboardMac::setData):
              (WebCore::ClipboardMac::types):
              (WebCore::ClipboardMac::setDragImage):
               Moving platform independent logic to Clipboard, and updating
               platform specific methods to use appropriate accessors rather than 
               directly manipulating data they no longer own
      
              * platform/mac/DragDataMac.mm: Added.
              (WebCore::DragData::DragData):
              (WebCore::DragData::canSmartReplace):
              (WebCore::DragData::containsColor):
              (WebCore::DragData::containsPlainText):
              (WebCore::DragData::asPlainText):
              (WebCore::DragData::asColor):
              (WebCore::DragData::createClipboard):
              (WebCore::imageExistsAtPaths):
              (WebCore::DragData::containsCompatibleContent):
              (WebCore::DragData::containsURL):
              (WebCore::DragData::asURL):
              (WebCore::DragData::asFragment):
                Mac implementations of DragData methods.  A number of these use
                a Helper class that accesses WebKit functionality.  That functionality 
                should be migrated to WebCore in the future.
      
              * platform/mac/PasteboardHelper.h: Added.
              (WebCore::PasteboardHelper::~PasteboardHelper):
                Temporary, and Mac only, helper class to access WebKit functionality 
                from WebCore
      
              * platform/qt/DragDataQt.cpp: Added.
              (WebCore::DragData::canSmartReplace):
              (WebCore::DragData::containsColor):
              (WebCore::DragData::containsPlainText):
              (WebCore::DragData::asPlainText):
              (WebCore::DragData::asColor):
              (WebCore::DragData::createClipboard):
              (WebCore::DragData::containsCompatibleContent):
              (WebCore::DragData::containsURL):
              (WebCore::DragData::asURL):
              (WebCore::DragData::asFragment):
               Basic stubs to maintain Qt build
      
              * rendering/HitTestResult.cpp:
              (WebCore::HitTestResult::HitTestResult):
               Correct HitTestResult copy contructor to copy localPoint
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aeffa297
  28. 09 Nov, 2006 1 commit
    • bdash's avatar
      2006-11-08 Krzysztof Kowalczyk <kkowalczyk@gmail.com> · 383c9530
      bdash authored
              Reviewed by Maciej.
      
              Linux\Gdk fixes.
      
              * platform/gdk/ChromeClientGdk.h:
              (WebCore::ChromeClientGdk::~ChromeClientGdk):
              * platform/gdk/CursorGdk.cpp:
              (WebCore::Cursor::Cursor):
              (WebCore::moveCursor):
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdk::FrameGdk):
              (WebCore::FrameGdk::submitForm):
              (WebCore::FrameGdk::urlSelected):
              * platform/gdk/PageGdk.cpp:
              * platform/gdk/ScreenClientGdk.h: Added.
              (WebCore::ScreenClientGdk::~ScreenClientGdk):
              * platform/gdk/ScreenGdk.cpp:
              (WebCore::ScreenClientGdk::depth):
              (WebCore::ScreenClientGdk::depthPerComponent):
              (WebCore::ScreenClientGdk::isMonochrome):
              (WebCore::ScreenClientGdk::rect):
              (WebCore::ScreenClientGdk::usableRect):
              * platform/gdk/TemporaryLinkStubs.cpp:
              (FrameGdk::historyURL):
              (ChromeClientGdk::windowRect):
              (ChromeClientGdk::setWindowRect):
              (ChromeClientGdk::pageRect):
              (ChromeClientGdk::scaleFactor):
              (ChromeClientGdk::focus):
              (ChromeClientGdk::unfocus):
              (ChromeClientGdk::createWindow):
              (ChromeClientGdk::createModalDialog):
              (ChromeClientGdk::show):
              (ChromeClientGdk::canRunModal):
              (ChromeClientGdk::runModal):
              (ChromeClientGdk::setToolbarsVisible):
              (ChromeClientGdk::toolbarsVisible):
              (ChromeClientGdk::setStatusbarVisible):
              (ChromeClientGdk::statusbarVisible):
              (ChromeClientGdk::setScrollbarsVisible):
              (ChromeClientGdk::scrollbarsVisible):
              (ChromeClientGdk::setMenubarVisible):
              (ChromeClientGdk::menubarVisible):
              (ChromeClientGdk::setResizable):
              * platform/network/ResourceHandleInternal.h:
              (WebCore::ResourceHandleInternal::client):
              * platform/network/gdk/ResourceHandleManager.cpp:
              (WebCore::writeCallback):
              (WebCore::ResourceHandleManager::downloadTimerCallback):
              (WebCore::ResourceHandleManager::remove):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      383c9530
  29. 01 Jul, 2006 1 commit
    • darin's avatar
      Reviewed and worked over a lot by Darin. · 6fb113f0
      darin authored
              - check in first set of GDK-specific sources
      
              * platform/gdk/BrowserExtensionGdk.h: Added.
              * platform/gdk/CookieJarGdk.cpp: Added.
              * platform/gdk/CursorGdk.cpp: Added.
              * platform/gdk/FontCacheGdk.cpp: Added.
              * platform/gdk/FontDataGdk.cpp: Added.
              * platform/gdk/FontGdk.cpp: Added.
              * platform/gdk/FontPlatformData.h: Added.
              * platform/gdk/FontPlatformDataGdk.cpp: Added.
              * platform/gdk/FrameGdk.cpp: Added.
              * platform/gdk/FrameGdk.h: Added.
              * platform/gdk/GlyphMapGdk.cpp: Added.
              * platform/gdk/KeyEventGdk.cpp: Added.
              * platform/gdk/KeyboardCodes.h: Added.
              * platform/gdk/MouseEventGdk.cpp: Added.
              * platform/gdk/PageGdk.cpp: Added.
              * platform/gdk/RenderThemeGdk.cpp: Added.
              * platform/gdk/RenderThemeGdk.h: Added.
              * platform/gdk/ScreenGdk.cpp: Added.
              * platform/gdk/ScrollViewGdk.cpp: Added.
              * platform/gdk/SharedTimerLinux.cpp: Added.
              * platform/gdk/SystemTimeLinux.cpp: Added.
              * platform/gdk/TemporaryLinkStubs.cpp: Added.
              * platform/gdk/TransferJobCurl.cpp: Added.
              * platform/gdk/TransferJobManager.cpp: Added.
              * platform/gdk/TransferJobManager.h: Added.
              * platform/gdk/WheelEventGdk.cpp: Added.
              * platform/gdk/WidgetGdk.cpp: Added.
              * platform/gdk/gdk-encodings.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15124 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6fb113f0
  30. 31 May, 2006 2 commits
    • hyatt's avatar
      Fix Win32 build bustage from Screen/Page FloatRect conversion · 76f34f6b
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76f34f6b
    • ggaren's avatar
      Reviewed by Maciej. · 0aa50c48
      ggaren authored
              - Fixed <rdar://problem/4559720> window sizing: make javascript window 
              and screen sizing methods and properties work @ HIDPI
              
              The general approach here is to change some ints to floats, make 
              a few key functions that scale between WebView and window/screen 
              coordinates, and change other functions that work with screen 
              coordinates to use the scaling functions for their underlying 
              implementations.
      
              * manual-tests/window-open-features.html: Removed.
              * manual-tests/window-sizing.html: Added. More test coverage.
      
              * bindings/js/kjs_window.cpp: Changed ints to floats and IntRects to
              FloatRects, because window coordinates can be fractional when scaled 
              to WebView/DOM coordinates.
              (KJS::floatFeature):
              (KJS::showModalDialog):
              (KJS::Window::getValueProperty):
              (KJS::constrainToVisible):
              (KJS::WindowFunc::callAsFunction):
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow): Removed custom scaling
              code and replaced with calls to Page::windowRect and 
              Page::setWindowRect. Renamed 'page' and 'bridge' to 'pageBridge' and
              'frameBridge,' respectively.
              * bridge/mac/PageMac.mm:
              (WebCore::Page::windowRect): Changed to use scaling
              (WebCore::Page::setWindowRect): ditto
              * bridge/mac/WebCoreFrameBridge.mm:
              (globalPoint):
              * page/Page.h:
              * platform/IntRect.h:
              * platform/Screen.h:
              * platform/mac/MouseEventMac.mm:
              (WebCore::globalPositionForEvent): Changed to use flipScreenPoint
              * platform/mac/ScreenMac.mm:
              (WebCore::flipScreenRect): New key function
              (WebCore::flipScreenPoint): New key function
              (WebCore::scaleScreenRectToView): New key function
              (WebCore::scaleViewRectToScreen): New key function
              (WebCore::screenRect): Changed to use scaling
              (WebCore::usableScreenRect): ditto
      
              Feeble attempt to preserve Windows build:
              
              * platform/win/ScreenWin.cpp:
              (WebCore::scaleScreenRectToWidget): stub -- doesn't actually scale
              (WebCore::scaleWidgetRectToScreen): ditto
              * bridge/win/PageWin.cpp:
              (WebCore::Page::Page):
              (WebCore::Page::widget):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0aa50c48
  31. 29 Apr, 2006 1 commit
    • sfalken's avatar
      2006-04-28 Steve Falkenburg <sfalken@apple.com> · 3cb7e9a3
      sfalken authored
              Reviewed by eric.
      
              No test necessary - fixing Win32 build, turned off C++ exceptions, turned off RTTI
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::~FrameWin):
              * bridge/win/PageWin.cpp:
              (WebCore::Page::Page):
              * page/Page.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (FrameWin::saveDocumentState):
              (Path::contains):
              (Path::boundingRect):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14116 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3cb7e9a3
  32. 11 Apr, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · 36d1136a
      darin authored
              Rubber-stamped by John Sullivan.
      
              - switched from a shell script to a makefile for generated files
              - removed lots of unneeded includes
              - added new Forward.h and HashForward.h headers that allow compiling with
                fewer unneeded templates
      
              * DerivedSources.make: Added.
              * generate-derived-sources: Removed.
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new files, changed to use
              DerivedSources.make.
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
              * kxmlcore/HashCountedSet.h: Include HashForward for default args.
              * kxmlcore/HashMap.h: Ditto.
              * kxmlcore/HashSet.h: Ditto.
      
              * kjs/object.h:
              * kjs/object.cpp:
              Moved KJS_MAX_STACK into the .cpp file.
      
              * bindings/NP_jsobject.cpp:
              * bindings/c/c_instance.h:
              * bindings/jni/jni_class.h:
              * bindings/jni/jni_runtime.h:
              * bindings/jni/jni_utility.h:
              * bindings/objc/WebScriptObject.mm:
              * bindings/objc/WebScriptObjectPrivate.h:
              * bindings/objc/objc_class.h:
              * bindings/objc/objc_class.mm:
              * bindings/objc/objc_instance.h:
              * bindings/objc/objc_instance.mm:
              * bindings/objc/objc_runtime.mm:
              * bindings/objc/objc_utility.mm:
              * bindings/runtime.h:
              * bindings/runtime_array.cpp:
              * bindings/runtime_array.h:
              * bindings/runtime_method.cpp:
              * bindings/runtime_method.h:
              * bindings/runtime_object.cpp:
              * bindings/runtime_root.h:
              * kjs/JSImmediate.cpp:
              * kjs/Parser.h:
              * kjs/array_object.cpp:
              * kjs/array_object.h:
              * kjs/bool_object.cpp:
              * kjs/bool_object.h:
              * kjs/collector.h:
              * kjs/context.h:
              * kjs/debugger.cpp:
              * kjs/error_object.h:
              * kjs/function_object.h:
              * kjs/internal.h:
              * kjs/lexer.cpp:
              * kjs/math_object.cpp:
              * kjs/math_object.h:
              * kjs/nodes.cpp:
              * kjs/nodes.h:
              * kjs/number_object.cpp:
              * kjs/number_object.h:
              * kjs/object_object.cpp:
              * kjs/operations.cpp:
              * kjs/protected_reference.h:
              * kjs/reference.h:
              * kjs/reference_list.h:
              * kjs/regexp_object.h:
              * kjs/string_object.cpp:
              * kjs/string_object.h:
              * kjs/testkjs.cpp:
              * kjs/value.cpp:
              * kjs/value.h:
              * kxmlcore/HashTable.h:
              * kxmlcore/ListRefPtr.h:
              * kxmlcore/TCPageMap.h:
              * kxmlcore/Vector.h:
              Removed unneeded header includes.
      
      JavaScriptGlue:
      
              Rubber-stamped by John Sullivan.
      
              - added forwarding headers for the new Forward.h and HashForward.h files
      
              * kxmlcore/Forward.h: Added.
              * kxmlcore/HashForward.h: Added.
      
      WebCore:
      
              Rubber-stamped by John Sullivan (except for pbxproj change).
      
              - updated to use the new Forward.h and HashForward.h headers
              - moved the showTree debugging functions out of the WebCore
                namespace so they are easier to call from gdb, and renamed
                the showTree member functions so they don't get in the way;
                now you can do "call showTree(x)" in gdb and it just works
              - removed a lot of unneeded includes
      
              * WebCore.xcodeproj/project.pbxproj: Fixed a lot of paths that
              were not relative to the enclosing group.
      
              * ForwardingHeaders/kxmlcore/Forward.h: Added.
              * ForwardingHeaders/kxmlcore/HashForward.h: Added.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.cpp:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMCore.h:
              * bindings/objc/DOMEvents.mm:
              * bindings/objc/DOMHTML.mm:
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMInternal.mm:
              * bindings/objc/DOMUtility.mm:
              * bindings/objc/DOMViews.mm:
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreFrameNamespaces.mm:
              * bridge/mac/WebCoreJavaScript.mm:
              * bridge/win/PageWin.cpp:
              * css/CSSComputedStyleDeclaration.cpp:
              * css/css_base.h:
              * css/css_ruleimpl.h:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/AbstractView.h:
              * dom/AtomicStringList.h:
              * dom/Attribute.cpp:
              * dom/Attribute.h:
              * dom/Comment.cpp:
              * dom/ContainerNode.cpp:
              * dom/DOMImplementation.cpp:
              * dom/DOMImplementation.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dump):
              (WebCore::forbidEventDispatch):
              (WebCore::allowEventDispatch):
              (WebCore::eventDispatchForbidden):
              * dom/EventTargetNode.h:
              (WebCore::EventTargetNode::postDispatchEventHandler):
              * dom/NamedAttrMap.h:
              * dom/Node.cpp:
              (WebCore::Node::showNode):
              (WebCore::Node::showTree):
              (WebCore::Node::showTreeAndMark):
              (showTree):
              * dom/Node.h:
              * dom/NodeList.cpp:
              * dom/NodeList.h:
              * dom/Position.cpp:
              (showTree):
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/Range.h:
              * dom/StyledElement.cpp:
              * dom/StyledElement.h:
              * dom/dom2_eventsimpl.cpp:
              * dom/dom2_eventsimpl.h:
              * dom/dom2_traversalimpl.h:
              * dom/dom_xmlimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * dom/xml_tokenizer.h:
              * editing/AppendNodeCommand.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/CreateLinkCommand.cpp:
              * editing/DeleteFromTextNodeCommand.cpp:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.cpp:
              * editing/EditCommand.cpp:
              * editing/EditCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/InsertIntoTextNodeCommand.cpp:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertNodeBeforeCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/InsertTextCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/JoinTextNodesCommand.cpp:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/ModifySelectionListLevelCommand.cpp:
              * editing/MoveSelectionCommand.cpp:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/ReplaceSelectionCommand.h:
              * editing/Selection.cpp:
              (WebCore::Selection::formatForDebugger):
              (WebCore::Selection::showTree):
              (showTree):
              * editing/Selection.h:
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::formatForDebugger):
              (WebCore::SelectionController::showTree):
              (showTree):
              * editing/SelectionController.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.cpp:
              * editing/VisiblePosition.cpp:
              (WebCore::isEqualIgnoringAffinity):
              (WebCore::VisiblePosition::formatForDebugger):
              (WebCore::VisiblePosition::showTree):
              (showTree):
              * editing/VisiblePosition.h:
              (WebCore::VisiblePosition::VisiblePosition):
              (WebCore::operator==):
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/htmlediting.h:
              * editing/markup.cpp:
              * editing/markup.h:
              (WebCore::):
              * editing/visible_units.cpp:
              * html/CanvasGradient.cpp:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.cpp:
              * html/CanvasStyle.h:
              * html/FormDataList.cpp:
              * html/FormDataList.h:
              * html/HTMLCollection.cpp:
              * html/HTMLCollection.h:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLElement.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLElementFactory.h:
              * html/HTMLFormCollection.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLInputElement.cpp:
              * html/HTMLParser.cpp:
              * html/HTMLSelectElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * html/html_baseimpl.cpp:
              * html/html_headimpl.h:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/device/KRenderingDevice.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasMaskerQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
              * khtml/misc/decoder.cpp:
              * khtml/misc/decoder.h:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * khtml/xsl/XSLTProcessor.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/ecma/GlobalObject.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimatedColor.h:
              * ksvg2/svg/SVGAnimatedLengthList.h:
              * ksvg2/svg/SVGAnimatedNumberList.h:
              * ksvg2/svg/SVGAnimatedString.h:
              * ksvg2/svg/SVGAnimatedTransformList.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGTransform.h:
              * kwq/AccessibilityObjectCache.mm:
              * kwq/ClipboardMac.mm:
              * kwq/JavaAppletWidget.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQFileButton.mm:
              * kwq/KWQKHTMLSettings.h:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/RegularExpression.h:
              * kwq/RenderTreeAsText.cpp:
              * kwq/RenderTreeAsText.h:
              * kwq/WebCoreAXObject.mm:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedObject.h:
              * loader/CachedScript.cpp:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp:
              * page/FrameTree.h:
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/Page.cpp:
              * page/Page.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Color.cpp:
              * platform/FloatRect.h:
              * platform/Font.cpp:
              * platform/Font.h:
              * platform/FontFamily.cpp:
              * platform/GraphicsContext.cpp:
              * platform/Image.cpp:
              * platform/Image.h:
              * platform/IntRect.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/StringImpl.cpp:
              * platform/StringImpl.h:
              * platform/TextEncoding.h:
              * platform/Timer.cpp:
              * platform/Timer.h:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              * platform/cairo/ImageCairo.cpp:
              * platform/cairo/ImageSourceCairo.cpp:
              * platform/image-decoders/gif/GIFImageReader.cpp:
              * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
              * platform/mac/FontFamilyMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/ImageMac.mm:
              * platform/mac/TextEncodingMac.cpp:
              * platform/mac/TransferJobMac.mm:
              * platform/win/FontPlatformDataWin.cpp:
              * platform/win/TransferJobWin.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderCanvas.cpp:
              * rendering/RenderCanvas.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (showTree):
              * rendering/RenderObject.h:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTextFragment.h:
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderThemeWin.cpp:
              * rendering/bidi.cpp:
              * rendering/render_form.h:
              * rendering/render_line.cpp:
              (showTree):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              * rendering/render_replaced.cpp:
              * rendering/render_replaced.h:
              * rendering/render_style.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36d1136a
  33. 17 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-17 Eric Seidel <eseidel@apple.com> · 561154fb
      eseidel authored
              Reviewed by adele.
      
              Fix win32 build.
              Add PageWin class.
              Add previously forgotten KeyEventWin class.
              Pass MouseEvent() instead of 0 in a couple places to make compiler happy.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/win/BrowserExtensionWin.h:
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::urlSelected):
              (WebCore::FrameWin::keyPress):
              * bridge/win/FrameWin.h:
              * bridge/win/PageWin.cpp: Added.
              (WebCore::rootWindowForFrame):
              (WebCore::Page::windowRect):
              (WebCore::Page::setWindowRect):
              * page/FrameView.cpp:
              (WebCore::FrameView::updateDragAndDrop):
              (WebCore::FrameView::hoverTimerFired):
              * page/Page.h:
              (WebCore::Page::mainFrame):
              * platform/win/KeyEventWin.cpp: Added.
              (WebCore::KeyEvent::KeyEvent):
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::findNextWordFromIndex):
              (FrameWin::passMouseDownEventToWidget):
              (FrameWin::scheduleClose):
              (BrowserExtensionWin::createNewWindow):
              (WebCore::findWordBoundary):
              (FrameWin::registerCommandForUndo):
              (FrameWin::markMisspellingsInAdjacentWords):
              (FrameWin::respondToChangedContents):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      561154fb
  34. 03 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-03 Eric Seidel <eseidel@apple.com> · 2e3cbd9a
      eseidel authored
              Reviewed by mjs.
      
              Wire up WidgetWin, CursorWin, ScrollViewWin.
              Stub out methods for selection and cursors.
      
              * Viewer/ImageDocument.h:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/win/FrameWin.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxyImpl::initScriptIfNeeded):
              * platform/IntRect.h:
              (WebCore::IntRect::IntRect):
              * platform/Widget.h:
              * platform/win/CursorWin.cpp:
              (WebCore::eastResizeCursor):
              (WebCore::northResizeCursor):
              (WebCore::northEastResizeCursor):
              (WebCore::northWestResizeCursor):
              (WebCore::southResizeCursor):
              (WebCore::southEastResizeCursor):
              (WebCore::southWestResizeCursor):
              (WebCore::westResizeCursor):
              * platform/win/IntRectWin.cpp:
              (WebCore::IntRect::IntRect):
              (WebCore::IntRect::operator RECT):
              * platform/win/MouseEventWin.cpp:
              * platform/win/ScrollViewWin.cpp: Added.
              (WebCore::ScrollView::updateContents):
              * platform/win/TemporaryLinkStubs.cpp:
              (QTextEdit::textWithHardLineBreaks):
              (QLineEdit::setPlaceholderString):
              (QScrollBar::scroll):
              (GraphicsContext::beginTransparencyLayer):
              (Widget::setIsSelected):
              (QLineEdit::selectedText):
              (QComboBox::sizeHint):
              (KWQFileButton::focusPolicy):
              (QTextEdit::focusPolicy):
              (QSlider::focusPolicy):
              (QListBox::focusPolicy):
              (QLineEdit::focusPolicy):
              (WebCore::moveCursor):
              (ScrollView::scrollBy):
              (KWQKCookieJar::cookieEnabled):
              (WebCore::TransferJob::TransferJob):
              (WebCore::screenDepth):
              (WebCore::usableScreenRect):
              (FrameWin::getObjectInstanceForWidget):
              (FrameWin::getEmbedInstanceForWidget):
              (FrameWin::getAppletInstanceForWidget):
              (FrameWin::passMouseDownEventToWidget):
              (FrameWin::issuePasteCommand):
              (FrameWin::issueTransposeCommand):
              (QSlider::setFont):
              (QLineEdit::setFont):
              (QListBox::setFont):
              (QFontMetrics::QFontMetrics):
              (QComboBox::setFont):
              (QTextEdit::setFont):
              (QTextEdit::setWritingDirection):
              (QFontMetrics::setFontDescription):
              (QFontMetrics::checkSelectionPoint):
              (FrameWin::addMessageToConsole):
              (FrameWin::shouldChangeSelection):
              (ScrollView::resizeContents):
              (ScrollView::visibleHeight):
              (ScrollView::visibleWidth):
              (ScrollView::setContentsPos):
              (ScrollView::contentsX):
              (ScrollView::contentsY):
              (ScrollView::contentsHeight):
              (ScrollView::contentsWidth):
              (ScrollView::viewportToContents):
              * platform/win/WidgetWin.cpp: Added.
              (WebCore::Widget::Widget):
              (WebCore::Widget::~Widget):
              (WebCore::Widget::windowHandle):
              (WebCore::Widget::setWindowHandle):
              (WebCore::Widget::setActiveWindow):
              (WebCore::Widget::frameGeometry):
              (WebCore::Widget::hasFocus):
              (WebCore::Widget::setFocus):
              (WebCore::Widget::clearFocus):
              (WebCore::Widget::font):
              (WebCore::Widget::setFont):
              (WebCore::Widget::setCursor):
              (WebCore::Widget::show):
              (WebCore::Widget::hide):
              (WebCore::Widget::setFrameGeometry):
              (WebCore::Widget::mapFromGlobal):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e3cbd9a
  35. 02 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-01 Eric Seidel <eseidel@apple.com> · 8b133a92
      eseidel authored
              Reviewed by mjs.
      
              Fix win32 build, add IntRectWin and GraphicsContextCairo stub.
      
              * Viewer/ImageDocument.cpp:
              * Viewer/ImageMainFrame.cpp:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * platform/IntRect.h:
              * platform/cairo/GraphicsContextCairo.cpp: Added.
              * platform/win/TemporaryLinkStubs.cpp:
              (GraphicsContext::drawLineForText):
              (WebCore::GraphicsContext::fillRect):
              (WebCore::TransferJob::TransferJob):
              (GraphicsContext::GraphicsContext):
              (WebCore::GraphicsContext::~GraphicsContext):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b133a92
  36. 24 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by John Sullivan. · 947a31b6
      darin authored
              - moved QMouseEvent, QKeyEvent, QWheelEvent, and "Foundation extras"
                from kwq to platform directory
              - moved history function from kwq to bridge directory
              - eliminated QEvent, MousePressEvent, MouseDoubleClickEvent, MouseMoveEvent,
                MoveReleaseEvent, and DrawContents classes
              - merged NodeImpl::MouseEvent and the MouseEvent from khtml_events.h into
                a single class in the page directory
              - broke khtmllayout.h out into a file for the Length structure in the css
                directory and a file for the GapRects structure in the rendering directory
              - redid the Length structure to work more portably by not relying on bitfield
                layout and improve the names to no longer explicitly mention "width"
              - reduced use of QGuardedPtr and other uses of the QObject "destroyed" signal
      
              * ForwardingHeaders/kparts: Removed.
              * ForwardingHeaders/qevent.h: Removed.
              * khtml/khtml_events.cpp: Removed.
              * khtml/khtml_events.h: Removed.
              * khtml/misc/khtmllayout.h: Removed.
              * kwq/KWQEvent.h: Removed.
              * kwq/KWQEvent.mm: Removed.
              * kwq/KWQFoundationExtras.h: Removed.
              * kwq/KWQKHistoryProvider.mm: Removed.
              * kwq/KWQKPartsHistoryProvider.h: Removed.
      
              * bridge/History.h: Added.
              * bridge/mac/HistoryMac.mm: Added.
              * css/Length.h: Added.
              * page/MouseEventWithHitTestResults.h: Added.
              * platform/KeyEvent.h: Added.
              * platform/MouseEvent.h: Added.
              * platform/WheelEvent.h: Added.
              * platform/mac/FoundationExtras.h: Added.
              * platform/mac/KeyEventMac.mm: Added.
              * platform/mac/MouseEventMac.mm: Added.
              * platform/mac/WheelEventMac.mm: Added.
              * rendering/GapRects.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for above changes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for above changes.
      
              * bridge/mac/MacFrame.h: Removed unused parameters from urlSelected functions.
              Replaced MouseEvent, MousePressEvent, MouseMoveEvent, and MouseReleaseEvent
              with MouseEventWithHitTestResults.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::urlSelected): Removed unused parameters.
              (WebCore::MacFrame::wheelEvent): Changed to use WheelEvent.
              (WebCore::MacFrame::keyEvent): Changed to use KeyEvent.
              (WebCore::MacFrame::khtmlMousePressEvent): Changed parameter type.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Ditto.
              (WebCore::MacFrame::khtmlMouseReleaseEvent): Ditto.
              (WebCore::MacFrame::passSubframeEventToSubframe): Ditto.
              (WebCore::MacFrame::mouseDown): Changed to use MouseEvent.
              (WebCore::MacFrame::mouseDragged): Ditto.
              (WebCore::MacFrame::mouseUp): Ditto.
              (WebCore::MacFrame::mouseMoved): Ditto.
              (WebCore::MacFrame::sendContextMenuEvent): Ditto.
      
              * css/csshelper.h: Removed a bunch of unused declarations.
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent): Changed to take a MouseEvent
              and return a MouseEventWithHitTestResults.
              (WebCore::DocumentImpl::defaultEventHandler): Changed to use KeyEvent.
      
              * dom/NodeImpl.h: Removed NodeImpl::MouseEvent and NodeImpl::MouseEventType.
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent): Changed to always get the type and
              detail values from the caller, never from the event. Changed to use MouseEvent.
              (WebCore::NodeImpl::dispatchKeyEvent): Changed to use KeyEvent.
              (WebCore::NodeImpl::dispatchWheelEvent): Changed to use WheelEvent.
      
              * dom/dom2_eventsimpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl): Changed to use KeyEvent.
              (WebCore::KeyboardEventImpl::charCode): Ditto.
      
              * dom/dom_elementimpl.h: Removed unused mouseEventHandler function.
      
              * khtml/ecma/domparser.h: Use RefPtr instead of QGuardedPtr to hold the reference
              to the document.
      
              * khtml/ecma/kjs_proxy.h: (WebCore::KJSProxyImpl::haveInterpreter): Added. For
              use in the Frame destructor so we can get an existing KJS::Window object without
              creating a new interpreter and window object.
      
              * khtml/ecma/kjs_window.h: Merged WindowQObject into Window. Changed all the
              guarded pointers to Frame to use plain old pointers that are cleared by the
              Frame explicitly (by the function disconnectFrame). Made the pointers to all
              the sub-objects of KJS::Window be mutable so we don't have to const_cast in
              the functions to get (and lazily create) them.
              * khtml/ecma/kjs_window.cpp:
              (KJS::DOMWindowTimer::DOMWindowTimer): Use Window* instead of WindowQObject*.
              (KJS::History::disconnectFrame): Added. Clears m_frame.
              (KJS::FrameArray::disconnectFrame): Added. Clears m_frame.
              (KJS::Window::Window): Removed code to create a WindowQObject.
              (KJS::Window::~Window): Removed code to delete a WindowQObject.
              (KJS::Window::location): Remove now-unneeded const_cast.
              (KJS::Window::selection): Ditto.
              (KJS::Window::locationbar): Ditto.
              (KJS::Window::menubar): Ditto.
              (KJS::Window::personalbar): Ditto.
              (KJS::Window::statusbar): Ditto.
              (KJS::Window::toolbar): Ditto.
              (KJS::Window::scrollbars): Ditto.
              (KJS::Window::getValueProperty): Update since m_frame is now a raw pointer.
              (KJS::Window::getOwnPropertySlot): Ditto.
              (KJS::Window::toBoolean): Ditto.
              (KJS::Window::scheduleClose): Remove assert that WindowQObject* is not null.
              (KJS::Window::isSafeScript): Update since m_frame is now a raw pointer.
              (KJS::Window::clear): Remove code to delete a WindowQObject. Added a call
              to clearAllTimeouts instead.
              (KJS::Window::clearAllTimeouts): Added. Does equivalent of the WindowQObject
              destructor.
              (KJS::Window::installTimeout): Moved to Window from WindowQObject.
              (KJS::Window::pauseTimeouts): Ditto.
              (KJS::Window::resumeTimeouts): Ditto.
              (KJS::Window::clearTimeout): Ditto.
              (KJS::Window::timerFired): Ditto.
              (KJS::Window::disconnectFrame): Added. Sets all the frame pointers to 0.
              (KJS::FrameArray::getOwnPropertySlot): Update since m_frame is now a raw pointer.
              (KJS::Location::getOwnPropertySlot): Ditto.
              (KJS::Location::put): Ditto.
              (KJS::Selection::getOwnPropertySlot): Ditto.
              (KJS::BarInfo::getOwnPropertySlot): Ditto.
      
              * khtml/html/html_baseimpl.h: Forward-declare Length instead of including khtmllayout.h.
              * khtml/html/html_imageimpl.h: Ditto.
      
              * khtml/html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              Changed to use KeyEvent and removed the code to extract the button and state from the
              DOM even to pass to urlSelected.
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::defaultEventHandler): Ditto.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::timerFired): Change to use
              a RefPtr instead of a QGuardedPtr.
      
              * khtml/misc/helper.h:
              * khtml/misc/helper.cpp: Removed printpainter and setPrintPainter.
      
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp: (WebCore::SVGDocumentImpl::dispatchKeyEvent):
              Change to use KeyEvent.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusChanged):
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]):
              Updated to use new eventFilterFocusIn/Out instead of the general purpose
              eventFilter function. This allows us to remove QEvent and the focus events.
      
              * kwq/KWQNamespace.h: Removed ButtonState.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Replaced eventFilter function with eventFilterFocusIn and
              eventFilterFocusOut, allowing us to remove QEvent. Removed event function.
      
              * kwq/KWQSlot.cpp:
              (KWQSlot::KWQSlot): Removed the parentDestroyed slot.
              (KWQSlot::call): Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Renamed from
              PartStyleSheetLoader. Removed a lot of unneeded null checks. Use a
              raw Frame pointer instead of a QGuardedPtr, and count on the Frame
              to delete us when it's being deleted.
              (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader): No longer
              a virtual function. This is not a polymorphic class.
              (WebCore::UserStyleSheetLoader::setStyleSheet): Remove code to delete
              ourselves -- that's now the frame's responsibility.
              (WebCore::Frame::~Frame): Call disconnectFrame on the KJS::Window and
              delete m_userStyleSheetLoader.
              (WebCore::Frame::changeLocation): Update since urlSelected no longer takes
              button and state parameters.
              (WebCore::Frame::setUserStyleSheet): Delete existing loader to stop a load
              in progress before starting a new load. Store reference to loader.
              (WebCore::Frame::urlSelected): Remove button and state parameters and unused
              local variable hasTarget.
              (WebCore::Frame::selectClosestWordFromMouseEvent): Change from QMouseEvent
              to MouseEvent.
              (WebCore::Frame::handleMousePressEventDoubleClick): Change from MousePressEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::handleMousePressEventTripleClick): Ditto.
              (WebCore::Frame::handleMousePressEventSingleClick): Ditto.
              (WebCore::Frame::khtmlMousePressEvent): Ditto.
              (WebCore::Frame::handleMouseMoveEventSelection): Change from MouseMoveEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseMoveEvent): Ditto.
              (WebCore::Frame::khtmlMouseReleaseEvent): Change from MouseReleaseEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseDoubleClickEvent): Change from
              MouseReleaseDoubleClickEvent to MouseEventWithHitTestResults.
              (WebCore::Frame::passWidgetMouseDownEventToWidget): Change from
              NodeImpl::MouseEvent to MouseEventWithHitTestResults.
      
              * page/FramePrivate.h: Added m_userStyleSheetLoader.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportMouseDoubleClickEvent): Ditto.
              (WebCore::selectCursor): Ditto.
              (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
              (WebCore::FrameView::viewportMouseReleaseEvent): Ditto.
              (WebCore::FrameView::keyPressEvent): Change from QKeyEvent to KeyEvent.
              (WebCore::FrameView::dispatchMouseEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportWheelEvent): Change from QWheelEvent to
              WheelEvent.
              (WebCore::FrameView::hoverTimerFired): Update for change to prepareMouseEvent
              parameters.
      
              * platform/Widget.h:
              * platform/Widget.cpp: Removed event function.
      
              * rendering/render_form.h: Removed LineEditWidget, ComboBoxWidget, TextAreaWidget.
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::slotClicked): Changed from QMouseEvent to MouseEvent.
              (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed): Updated for changes
              to the Length class.
              (WebCore::RenderSelect::setWidgetWritingDirection): Updated for removal of
              ComboBoxWidget.
              (WebCore::RenderSelect::slotSelected): Ditto.
              (WebCore::RenderSelect::createComboBox): Ditto.
      
              * rendering/render_replaced.h:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::destroy): Updated since removeEventFilter no longer takes
              a parameter.
              (WebCore::RenderWidget::setQWidget): Ditto.
              (WebCore::RenderWidget::eventFilterFocusIn): Added. Replaces eventFilter.
              (WebCore::RenderWidget::eventFilterFocusOut): Ditto.
      
              * css/css_computedstyle.cpp:
              (WebCore::valueForLength):
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/cssstyleselector.cpp:
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElementImpl::getRegion):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::leftRelOffset):
              (WebCore::RenderBlock::rightRelOffset):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::getBPMWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlockMinMaxWidth):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::calcMinMaxWidth):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::addChild):
              (WebCore::RenderTableSection::addCell):
              (WebCore::RenderTableSection::calcRowHeight):
              (WebCore::RenderTableSection::layoutRows):
              * rendering/RenderText.h:
              (khtml::RenderText::marginLeft):
              (khtml::RenderText::marginRight):
              * rendering/bidi.cpp:
              (khtml::getBPMWidth):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::getClipRect):
              (WebCore::RenderBox::relativePositionOffset):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::sizesToIntrinsicWidth):
              (WebCore::RenderBox::calcHorizontalMargins):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcHeightUsing):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedWidthUsing):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcReplacedHeightUsing):
              (WebCore::RenderBox::availableHeightUsing):
              (WebCore::RenderBox::calcVerticalMargins):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVertical):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::calcHorizontalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcVerticalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcMinMaxWidth):
              (khtml::RenderFlexibleBox::allowedChildFlex):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::lineHeight):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::isWidthSpecified):
              (WebCore::RenderImage::isHeightSpecified):
              * rendering/render_layer.cpp:
              (WebCore::Marquee::direction):
              (WebCore::Marquee::start):
              (WebCore::Marquee::updateMarqueeStyle):
              (WebCore::Marquee::timerFired):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::marginLeft):
              (WebCore::InlineFlowBox::marginRight):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paddingTop):
              (WebCore::RenderObject::paddingBottom):
              (WebCore::RenderObject::paddingLeft):
              (WebCore::RenderObject::paddingRight):
              (WebCore::RenderObject::getVerticalPosition):
              (WebCore::RenderObject::lineHeight):
              (WebCore::RenderObject::addDashboardRegions):
              * rendering/render_style.h:
              * rendering/render_theme_mac.mm:
              (WebCore::RenderThemeMac::addIntrinsicMargins):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcWidthArray):
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::FixedTableLayout::layout):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::fullRecalc):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              (WebCore::AutoTableLayout::calcPercentages):
              Updated for changes to the Length class.
              Also removed a check of the printpainter global, never used in WebCore.
      
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/csshelper.cpp:
              * editing/SelectionController.cpp:
              * khtml/ecma/kjs_html.h:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPainter.mm:
              * kwq/WebCoreSettings.mm:
              * platform/StringImpl.cpp:
              * platform/mac/CursorMac.mm:
              * platform/mac/WidgetMac.mm:
              * rendering/RenderBlock.h:
              * rendering/render_canvas.cpp:
              * rendering/render_line.h:
              * rendering/render_style.cpp:
              * rendering/table_layout.h:
              Updated includes.
      
              * bindings/js/JSDOMCore.cpp: Touched, because I got strange failures if this
              didn't rebuild.
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      947a31b6