1. 05 Mar, 2008 1 commit
  2. 04 Mar, 2008 5 commits
    • weinig@apple.com's avatar
      WebCore: · 730d0a9c
      weinig@apple.com authored
              Reviewed by Mark Rowe.
      
              Rename kjs_window to JSDOMWindowBase.
      
              - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
                JSDOMWindow.h
      
              * ChangeLog:
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSCustomVoidCallback.cpp:
              * bindings/js/JSCustomXPathNSResolver.cpp:
              * bindings/js/JSDOMWindowBase.cpp: Copied from bindings/js/kjs_window.cpp.
              * bindings/js/JSDOMWindowBase.h: Copied from bindings/js/kjs_window.h.
              * bindings/js/JSDOMWindowCustom.cpp:
              * bindings/js/JSDatabaseCustom.cpp:
              * bindings/js/JSEventTargetBase.cpp:
              * bindings/js/JSEventTargetBase.h:
              * bindings/js/JSEventTargetNode.cpp:
              * bindings/js/JSHTMLDocumentCustom.cpp:
              * bindings/js/JSHTMLFrameSetElementCustom.cpp:
              * bindings/js/JSHistoryCustom.cpp:
              * bindings/js/JSLocation.cpp:
              * bindings/js/JSSQLTransactionCustom.cpp:
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/ScheduledAction.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_navigator.cpp:
              * bindings/js/kjs_proxy.cpp:
              * bindings/js/kjs_window.cpp: Removed.
              * bindings/js/kjs_window.h: Removed.
              * bindings/scripts/CodeGeneratorJS.pm:
              * history/CachedPage.cpp:
              * loader/FrameLoader.cpp:
              * page/Chrome.cpp:
              * page/InspectorController.cpp:
              * page/mac/FrameMac.mm:
              * page/mac/WebCoreFrameBridge.mm:
              * page/qt/FrameQt.cpp:
              * page/win/FrameWin.cpp:
              * plugins/win/PluginViewWin.cpp:
      
      WebKit/gtk:
      
              Reviewed by Mark Rowe.
      
              - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
                JSDOMWindow.h
      
              * WebCoreSupport/FrameLoaderClientGtk.cpp:
              * webkit/webkitwebframe.cpp:
      
      WebKit/qt:
      
              Reviewed by Mark Rowe.
      
              - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
                JSDOMWindow.h
      
              * Api/qwebframe.cpp:
              (QWebFrame::addToJSWindowObject):
      
      WebKit/win:
      
              Reviewed by Mark Rowe.
      
              - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
                JSDOMWindow.h
      
              * WebFrame.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      730d0a9c
    • weinig@apple.com's avatar
      Reviewed by Darin Adler. · fa5f53b1
      weinig@apple.com authored
              Rename kjs_css to JSRGBColor.
      
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSRGBColor.cpp: Copied from bindings/js/kjs_css.cpp.
              * bindings/js/JSRGBColor.h: Copied from bindings/js/kjs_css.h.
              * bindings/js/kjs_css.cpp: Removed.
              * bindings/js/kjs_css.h: Removed.
              * bindings/js/kjs_window.cpp:
              * bindings/objc/DOMUtility.mm:
              * bindings/scripts/CodeGeneratorJS.pm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa5f53b1
    • weinig@apple.com's avatar
      Reviewed by Darin Adler. · a27dbabc
      weinig@apple.com authored
              Remame ImageConstructorImp to JSImageConstructor and move it into its
              own file.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSImageConstructor.cpp: Copied from bindings/js/kjs_html.cpp.
              (WebCore::JSImageConstructor::JSImageConstructor):
              (WebCore::JSImageConstructor::construct):
              * bindings/js/JSImageConstructor.h: Copied from bindings/js/kjs_html.h.
              * bindings/js/kjs_html.cpp:
              (WebCore::getRuntimeObject): Make this function static since it is only used
              in this file.
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_window.cpp:
              (WebCore::JSDOMWindowBase::getValueProperty):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a27dbabc
    • weinig@apple.com's avatar
      Reviewed by Darin Adler. · 116c68e4
      weinig@apple.com authored
              Remove kjs_dom.{h,cpp}.
      
              - Removed custom toAttr, which took a boolean ok, and teach CodeGeneratorJS.pm
                to us a null return value as an indication of failure. (This new logic is used
                for toVoidCallback as well.)
              - Move getRuntimeObject to kjs_html where a bunch of other runtime object related
                functions currently live.
              - Move checkNodeSecurity to kjs_binding, where other frame security functions 
                currently live.
              - Remove getNodeConstructor.  It had no implementation.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSAttrCustom.cpp:
              * bindings/js/JSCustomVoidCallback.cpp:
              (WebCore::toVoidCallback):
              * bindings/js/JSCustomVoidCallback.h:
              * bindings/js/JSDatabaseCustom.cpp:
              (WebCore::JSDatabase::changeVersion):
              (WebCore::JSDatabase::transaction):
              * bindings/js/JSElementCustom.cpp:
              (WebCore::JSElement::setAttributeNode):
              (WebCore::JSElement::setAttributeNodeNS):
              * bindings/js/JSEventTargetBase.cpp:
              (WebCore::toJS):
              * bindings/js/JSEventTargetBase.h:
              * bindings/js/JSHTMLAppletElementCustom.cpp:
              * bindings/js/JSHTMLElementCustom.cpp:
              * bindings/js/JSHTMLEmbedElementCustom.cpp:
              * bindings/js/JSHTMLFormElementCustom.cpp:
              * bindings/js/JSHTMLFrameElementCustom.cpp:
              * bindings/js/JSHTMLIFrameElementCustom.cpp:
              * bindings/js/JSHTMLObjectElementCustom.cpp:
              * bindings/js/JSNamedNodeMapCustom.cpp:
              * bindings/js/JSNamedNodesCollection.cpp:
              * bindings/js/JSNodeFilterCustom.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              (WebCore::checkNodeSecurity):
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp: Removed.
              * bindings/js/kjs_dom.h: Removed.
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_html.cpp:
              (WebCore::getRuntimeObject):
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_window.cpp:
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/Attr.idl:
              * html/HTMLPlugInElement.cpp:
              * page/InspectorController.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      116c68e4
    • weinig@apple.com's avatar
      WebCore: · 6d270f6f
      weinig@apple.com authored
              Reviewed by Mark Rowe.
      
              Move JSClipboard into its own file.
      
              * DerivedSources.make:
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSAttrCustom.cpp:
              * bindings/js/JSClipboardCustom.cpp: Added.
              (WebCore::JSClipboard::types):
              (WebCore::JSClipboard::clearData):
              (WebCore::JSClipboard::getData):
              (WebCore::JSClipboard::setData):
              (WebCore::JSClipboard::setDragImage):
              * bindings/js/JSElementCustom.cpp:
              * bindings/js/JSEventCustom.cpp:
              * bindings/js/JSHTMLFrameElementCustom.cpp:
              * bindings/js/JSHTMLIFrameElementCustom.cpp:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_window.cpp:
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/Clipboard.cpp:
              (WebCore::Clipboard::setDropEffect):
              (WebCore::Clipboard::setEffectAllowed):
              * dom/Clipboard.idl: Added.
      
      LayoutTests:
      
              Reviewed by Mark Rowe.
      
              Update test results.
      
              * fast/dom/Window/window-properties-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30735 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6d270f6f
  3. 28 Feb, 2008 1 commit
    • pewtermoose@webkit.org's avatar
      2008-02-28 Rodney Dawes <dobey@wayofthemonkey.com> · fa3bc3f4
      pewtermoose@webkit.org authored
      
              Reviewed by Adam Roben.
      
              Copy PluginPackageWin.cpp to shared PluginPackage.cpp.
              Add PluginPackage.cpp to build configurations.
              Remove PluginPackage destructor from TemporaryLinkStubs.cpp.
              Use cross-platform pathGetFilename method.
              Remove platform-specific code from shared PluginPackage implementation.
              Remove shared code from PluginPackageWin.cpp.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCoreSources.bkl:
              * WebCore.vcproj/WebCore.vcproj:
              * platform/gtk/TemporaryLinkStubs.cpp:
              * platform/qt/TemporaryLinkStubs.cpp:
              * platform/wx/TemporaryLinkStubs.cpp:
              * plugins/PluginPackage.cpp:
              * plugins/win/PluginPackageWin.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fa3bc3f4
  4. 26 Feb, 2008 1 commit
    • weinig@apple.com's avatar
      Reviewed by Dave Hyatt. · 9a025fca
      weinig@apple.com authored
              - remove DeprecatedCString, DeprecatedArray, and ArrayImpl.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * platform/ArrayImpl.cpp: Removed.
              * platform/ArrayImpl.h: Removed.
              * platform/DeprecatedArray.h: Removed.
              * platform/DeprecatedCString.cpp: Removed.
              * platform/DeprecatedCString.h: Removed.
              * platform/text/CString.cpp:
              (WebCore::CString::length):
              * platform/text/CString.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a025fca
  5. 25 Feb, 2008 2 commits
    • mrowe@apple.com's avatar
      Fix the Gtk, wx and Qt builds. · 0064a3bb
      mrowe@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0064a3bb
    • mrowe@apple.com's avatar
      2008-02-25 Rodney Dawes <dobey@wayofthemonkey.com> · 81bf662c
      mrowe@apple.com authored
              Reviewed by Jon Honeycutt.
      
              http://bugs.webkit.org/show_bug.cgi?id=16924
              Bug 16924: Shared PluginDatabase, PluginPackage, and PlugInInfoStore implementations
      
              Add PluginInfoStore.cpp and new PluginDatabase.cpp to GTK+ and Qt ports.
              Remove old PlugInInfoStoreQt.cpp as it is obsoleted by shared code.
              Add PluginInfoStore, PluginDatabase, and PluginStream files to Wx build.
              Add new PluginDatabase.cpp to Windows build.
              Add temporary stubs for new PluginDatabase and PluginPackage.
              shared classes to GTK+, Qt, and Wx ports.
              Copy PluginDatabaseWin.cpp to PluginDatabase.cpp to preserve history.
              Remove shared code from PluginDatabaseWin.cpp.
              Remove Windows-specific code from PluginDatabase.cpp.
              Use PlatformModule and PlatformFileTime instead of HMODULE and FILETIME.
              Remove extraneous PluginPackage:: from hash() class method prototype.
              Subsume storeFileVersion into PluginPackage::fetchInfo.
              Add cross-platform PlatformModuleVersion type definition.
              Use PlatformModuleVersion to store the module version.
              Rename m_fileVersion[ML]S to m_moduleVersion.
              Change compareFileVersion to use PlatformModuleVersion as the argument.
              Move PluginView::determineQuirks and m_quirks to PluginPackage.
              Updated determineQuirks for the PlatformModuleVersion.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCoreSources.bkl:
              * webcore-base.bkl:
              * WebCore.vcproj/WebCore.vcproj:
              * Platform/FileSystem.h:
              * platform/qt/PlugInInfoStoreQt.cpp:
              * platform/gtk/TemporaryLinkStubs.cpp:
              * platform/qt/TemporaryLinkStubs.cpp:
              * platform/wx/TemporaryLinkStubs.cpp:
              * plugins/PluginDatabase.cpp:
              * plugins/PluginDatabase.h:
              * plugins/win/PluginDatabaseWin.cpp:
              * plugins/PluginPackage.h:
              * plugins/win/PluginPackageWin.cpp:
              * plugins/PluginView.h:
              * plugins/win/PluginViewWin.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81bf662c
  6. 23 Feb, 2008 2 commits
  7. 22 Feb, 2008 2 commits
    • oliver@apple.com's avatar
      WX build fixes · fe7bb18b
      oliver@apple.com authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe7bb18b
    • weinig@apple.com's avatar
      WebCore: · ac324818
      weinig@apple.com authored
              Rubber-stamped by Adam Roben.
      
              Rid the project of the Devil known as DeprecatedString!
      
              * GNUmakefile.am:
              * WebCore.base.exp:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * dom/Node.h:
              * html/HTMLFormElement.cpp:
              * platform/DeprecatedString.cpp: Removed.
              * platform/DeprecatedString.h: Removed.
              * platform/graphics/qt/IconQt.cpp:
              * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
              * platform/gtk/CookieJarGtk.cpp:
              * platform/gtk/CursorGtk.cpp:
              * platform/gtk/KeyEventGtk.cpp:
              * platform/mac/DeprecatedStringMac.mm: Removed.
              * platform/network/qt/ResourceHandleQt.cpp:
              * platform/network/win/CookieJarWin.cpp:
              (WebCore::cookies):
              * platform/qt/ClipboardQt.cpp:
              * platform/qt/CookieJarQt.cpp:
              * platform/qt/CursorQt.cpp:
              * platform/symbian/DeprecatedStringSymbian.cpp: Removed.
              * platform/text/AtomicString.cpp:
              * platform/text/AtomicString.h:
              * platform/text/PlatformString.h:
              * platform/text/String.cpp:
              * platform/text/StringImpl.cpp:
              * platform/text/qt/StringQt.cpp:
              (WebCore::String::String):
              * platform/text/wx/StringWx.cpp:
              * platform/win/BString.cpp:
              * platform/win/BString.h:
              * platform/win/PasteboardWin.cpp:
      
      WebKit/qt:
      
              Rubber-stamped by Adam Roben.
      
              Rid the project of the Devil known as DeprecatedString!
      
              * Api/qwebhistory.cpp:
              * Api/qwebhistoryinterface.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac324818
  8. 18 Feb, 2008 1 commit
    • weinig@apple.com's avatar
      Reviewed and landed by Sam. · 9f677452
      weinig@apple.com authored
              Remove DeprecatedStringList.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * editing/markup.cpp:
              * platform/DeprecatedStringList.cpp: Removed.
              * platform/DeprecatedStringList.h: Removed.
              * platform/mac/DeprecatedStringListMac.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f677452
  9. 04 Feb, 2008 2 commits
  10. 31 Jan, 2008 1 commit
  11. 10 Jan, 2008 2 commits
    • mjs@apple.com's avatar
      WebCore: · 9a407967
      mjs@apple.com authored
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * GNUmakefile.am:
              * WebCore.base.exp:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::postMessage):
              * dom/Document.cpp:
              (WebCore::Document::domain):
              * page/Chrome.cpp:
              (WebCore::Chrome::requestQuotaIncreaseForNewDatabase):
              (WebCore::Chrome::requestQuotaIncreaseForDatabaseOperation):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * platform/SecurityOrigin.cpp:
              (WebCore::SecurityOrigin::copy):
              (WebCore::SecurityOrigin::createFromIdentifier):
              (WebCore::SecurityOrigin::stringIdentifier):
              * platform/SecurityOrigin.h:
              (WebCore::SecurityOrigin::host):
              (WebCore::SecurityOrigin::protocol):
              (WebCore::SecurityOrigin::port):
              (WebCore::SecurityOrigin::equal):
              * platform/SecurityOriginData.cpp: Removed.
              * platform/SecurityOriginData.h: Removed.
              * storage/Database.cpp:
              (WebCore::Database::openDatabase):
              (WebCore::Database::Database):
              (WebCore::Database::securityOriginCopy):
              * storage/Database.h:
              * storage/DatabaseTracker.cpp:
              (WebCore::SecurityOriginHash::hash):
              (WebCore::SecurityOriginHash::equal):
              (WebCore::SecurityOriginTraits::deletedValue):
              (WebCore::SecurityOriginTraits::emptyValue):
              (WebCore::DatabaseTracker::canEstablishDatabase):
              (WebCore::DatabaseTracker::hasEntryForOrigin):
              (WebCore::DatabaseTracker::hasEntryForDatabase):
              (WebCore::DatabaseTracker::establishEntryForOrigin):
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::origins):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::detailsForNameAndOrigin):
              (WebCore::DatabaseTracker::setDatabaseDetails):
              (WebCore::DatabaseTracker::usageForDatabase):
              (WebCore::DatabaseTracker::usageForOrigin):
              (WebCore::DatabaseTracker::quotaForOrigin):
              (WebCore::DatabaseTracker::setQuota):
              (WebCore::DatabaseTracker::addDatabase):
              (WebCore::DatabaseTracker::deleteAllDatabases):
              (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
              (WebCore::DatabaseTracker::deleteDatabase):
              (WebCore::DatabaseTracker::deleteDatabaseFile):
              (WebCore::notificationQueue):
              (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged):
              (WebCore::DatabaseTracker::notifyDatabasesChanged):
              * storage/DatabaseTracker.h:
              * storage/DatabaseTrackerClient.h:
              * storage/SQLTransaction.cpp:
              (WebCore::SQLTransaction::openTransactionAndPreflight):
              (WebCore::SQLTransaction::runStatements):
              (WebCore::SQLTransaction::deliverQuotaIncreaseCallback):
              (WebCore::SQLTransaction::postflightAndCommit):
              (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback):
              * svg/graphics/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForDatabaseOperation):
      
      WebKit/gtk:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebCoreSupport/ChromeClientGtk.cpp:
              (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation):
              * WebCoreSupport/ChromeClientGtk.h:
      
      WebKit/mac:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * Storage/WebDatabaseManager.mm:
              (-[WebDatabaseManager origins]):
              (-[WebDatabaseManager databasesWithOrigin:]):
              (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
              (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
              (-[WebDatabaseManager deleteDatabase:withOrigin:]):
              * Storage/WebDatabaseTrackerClient.h:
              * Storage/WebDatabaseTrackerClient.mm:
              (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
              (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
              * Storage/WebSecurityOrigin.mm:
              (-[WebSecurityOrigin initWithProtocol:domain:port:]):
              (-[WebSecurityOrigin protocol]):
              (-[WebSecurityOrigin domain]):
              (-[WebSecurityOrigin port]):
              (-[WebSecurityOrigin usage]):
              (-[WebSecurityOrigin quota]):
              (-[WebSecurityOrigin setQuota:]):
              (-[WebSecurityOrigin isEqual:]):
              (-[WebSecurityOrigin dealloc]):
              (-[WebSecurityOrigin finalize]):
              (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
              (-[WebSecurityOrigin _core]):
              * Storage/WebSecurityOriginInternal.h:
              * WebCoreSupport/WebChromeClient.h:
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
      
      WebKit/qt:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebCoreSupport/ChromeClientQt.cpp:
              (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
              (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
              * WebCoreSupport/ChromeClientQt.h:
      
      WebKit/win:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebChromeClient.cpp:
              (WebChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
              * WebChromeClient.h:
              * WebDatabaseManager.cpp:
              (WebDatabaseManager::origins):
              (WebDatabaseManager::databasesWithOrigin):
              (WebDatabaseManager::detailsForDatabaseWithOrigin):
              (WebDatabaseManager::deleteDatabasesWithOrigin):
              (WebDatabaseManager::deleteDatabaseWithOrigin):
              (WebDatabaseManager::dispatchDidModifyOrigin):
              (WebDatabaseManager::dispatchDidModifyDatabase):
              * WebDatabaseManager.h:
              * WebSecurityOrigin.cpp:
              (WebSecurityOrigin::createInstance):
              (WebSecurityOrigin::WebSecurityOrigin):
              (WebSecurityOrigin::protocol):
              (WebSecurityOrigin::domain):
              (WebSecurityOrigin::port):
              (WebSecurityOrigin::usage):
              (WebSecurityOrigin::quota):
              (WebSecurityOrigin::setQuota):
              * WebSecurityOrigin.h:
      
      WebKit/wx:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebKitSupport/ChromeClientWx.cpp:
              (WebCore::ChromeClientWx::requestQuotaIncreaseForNewDatabase):
              (WebCore::ChromeClientWx::requestQuotaIncreaseForDatabaseOperation):
              * WebKitSupport/ChromeClientWx.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29386 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a407967
    • kevino@webkit.org's avatar
      wx build fix for changes in r29328 · 1b4c2375
      kevino@webkit.org authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b4c2375
  12. 08 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      Rubber-stamped by Sam Weinig. · 78333174
      mitz@apple.com authored
              - rename FontDataBaseClass.{cpp,h} back to FontData.{cpp,h}
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * editing/Editor.cpp:
              * platform/graphics/FontData.cpp: Copied from WebCore/platform/graphics/FontDataBaseClass.cpp.
              * platform/graphics/FontData.h: Copied from WebCore/platform/graphics/FontDataBaseClass.h.
              * platform/graphics/FontDataBaseClass.cpp: Removed.
              * platform/graphics/FontDataBaseClass.h: Removed.
              * platform/graphics/SegmentedFontData.h:
              * platform/graphics/SimpleFontData.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      78333174
  13. 07 Jan, 2008 1 commit
    • mitz@apple.com's avatar
      WebCore: · 648b73b1
      mitz@apple.com authored
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSFontFace.cpp:
              (WebCore::CSSFontFace::fontLoaded): Changed to call the owning segmented
              font face.
              (WebCore::CSSFontFace::getFontData):
              * css/CSSFontFace.h:
              (WebCore::CSSFontFace::CSSFontFace):
              (WebCore::CSSFontFace::setSegmentedFontFace):
              * css/CSSFontFaceSource.cpp:
              (WebCore::CSSFontFaceSource::pruneTable): Removed the calls to
              GlyphPageTreeNode::pruneTreeCustomFontData because the fonts in the
              font table are not exposed in the glyph page tree. Only the segmented
              font is, and that is taken care of by the segmented font face.
              (WebCore::CSSFontFaceSource::getFontData):
              * css/CSSFontFaceSource.h:
              * css/CSSFontSelector.cpp:
              (WebCore::CSSFontSelector::addFontFaceRule): Changed to collect
              @font-face rules with the same family and traits into a single
              segmented font face, instead of just retaining the most recent one.
              (WebCore::CSSFontSelector::fontLoaded):
              (WebCore::CSSFontSelector::getFontData):
              * css/CSSFontSelector.h:
              * css/CSSGrammar.y:
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseFontFaceUnicodeRange): Added. Parses a unicode
              range value.
              * css/CSSParser.h:
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::):
              * css/CSSPropertyNames.in:
              * css/CSSSegmentedFontFace.cpp: Added.
              (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::~CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::pruneTable):
              (WebCore::CSSSegmentedFontFace::isLoaded):
              (WebCore::CSSSegmentedFontFace::isValid):
              (WebCore::CSSSegmentedFontFace::fontLoaded):
              (WebCore::CSSSegmentedFontFace::overlayRange):
              (WebCore::CSSSegmentedFontFace::getFontData):
              * css/CSSSegmentedFontFace.h: Added.
              (WebCore::FontFaceRange::FontFaceRange):
              (WebCore::FontFaceRange::from):
              (WebCore::FontFaceRange::to):
              (WebCore::FontFaceRange::fontFace):
              (WebCore::CSSSegmentedFontFace::fontSelector):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * css/CSSUnicodeRangeValue.cpp: Added.
              (WebCore::CSSUnicodeRangeValue::~CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::cssText):
              * css/CSSUnicodeRangeValue.h: Added.
              (WebCore::CSSUnicodeRangeValue::CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::from):
              (WebCore::CSSUnicodeRangeValue::to):
              * css/SVGCSSFontFace.cpp:
              (WebCore::SVGCSSFontFace::getFontData):
              * css/SVGCSSFontFace.h:
              * editing/Editor.cpp:
              (WebCore::Editor::fontForSelection):
              * editing/Editor.h:
              * page/mac/FrameMac.mm:
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge fontForSelection:]):
              * platform/graphics/Font.cpp:
              (WebCore::WidthIterator::advance):
              (WebCore::Font::glyphDataForCharacter):
              (WebCore::Font::primaryFont): Changed to return the simple font data
              used for the space character.
              (WebCore::Font::fontDataAt):
              (WebCore::Font::fontDataForCharacters):
              (WebCore::Font::drawGlyphBuffer):
              * platform/graphics/Font.h:
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData):
              (WebCore::FontCache::getFontData):
              * platform/graphics/FontCache.h:
              * platform/graphics/FontData.cpp: Renamed to SimpleFontData.cpp
              * platform/graphics/FontData.h: Renamed to SimpleFontData.cpp.
              * platform/graphics/FontDataBaseClass.cpp: Added. This will be renamed
              FontData.cpp.
              (WebCore::FontData::~FontData):
              * platform/graphics/FontDataBaseClass.h: Added. This will be renamed
              FontData.h.
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::primaryFont):
              * platform/graphics/FontSelector.h:
              * platform/graphics/GlyphBuffer.h:
              (WebCore::GlyphBuffer::fontDataAt):
              (WebCore::GlyphBuffer::swap):
              (WebCore::GlyphBuffer::add):
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              (WebCore::GlyphPageTreeNode::initializePage): Added code to initialize
              pages for segmented font data.
              (WebCore::GlyphPageTreeNode::getChild):
              (WebCore::GlyphPageTreeNode::pruneCustomFontData):
              * platform/graphics/GlyphPageTreeNode.h:
              (WebCore::GlyphPage::setGlyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForIndex):
              (WebCore::GlyphPageTreeNode::getRootChild):
              * platform/graphics/SegmentedFontData.cpp: Added.
              (WebCore::SegmentedFontData::~SegmentedFontData):
              (WebCore::SegmentedFontData::fontDataForCharacter):
              (WebCore::SegmentedFontData::containsCharacters):
              (WebCore::SegmentedFontData::isCustomFont):
              (WebCore::SegmentedFontData::isLoading):
              (WebCore::SegmentedFontData::isSegmented):
              * platform/graphics/SegmentedFontData.h: Added.
              (WebCore::FontDataRange::FontDataRange):
              (WebCore::FontDataRange::from):
              (WebCore::FontDataRange::to):
              (WebCore::FontDataRange::fontData):
              (WebCore::SegmentedFontData::appendRange):
              (WebCore::SegmentedFontData::numRanges):
              (WebCore::SegmentedFontData::rangeAt):
              * platform/graphics/SimpleFontData.cpp: Copied from WebCore/platform/graphics/FontData.cpp.
              (WebCore::SimpleFontData::SimpleFontData):
              (WebCore::SimpleFontData::~SimpleFontData):
              (WebCore::SimpleFontData::ascent):
              (WebCore::SimpleFontData::descent):
              (WebCore::SimpleFontData::widthForGlyph):
              (WebCore::SimpleFontData::fontDataForCharacter):
              (WebCore::SimpleFontData::isSegmented):
              * platform/graphics/SimpleFontData.h: Copied from WebCore/platform/graphics/FontData.h.
              (WebCore::SimpleFontData::isCustomFont):
              (WebCore::SimpleFontData::isLoading):
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::setPlatformFont):
              * platform/graphics/gtk/FontCacheGtk.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/gtk/FontDataGtk.cpp: Renamed to
              SimpleFontDataGtk.cpp.
              * platform/graphics/gtk/FontGtk.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp: Copied from WebCore/platform/graphics/gtk/FontDataGtk.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::setFont):
              * platform/graphics/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/mac/FontDataMac.mm: Renamed to SimpleFontDataMac.mm.
              * platform/graphics/mac/FontMac.mm:
              (WebCore::initializeATSUStyle):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::drawGlyphs):
              * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/mac/SimpleFontDataMac.mm: Copied from WebCore/platform/graphics/mac/FontDataMac.mm.
              (WebCore::initFontData):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::checkShapesArabic):
              * platform/graphics/qt/FontDataQt.cpp: Renamed to SimpleFontDataQt.cpp.
              * platform/graphics/qt/GlyphPageTreeNodeQt.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              * platform/graphics/qt/SimpleFontDataQt.cpp: Copied from WebCore/platform/graphics/qt/FontDataQt.cpp.
              * platform/graphics/win/FontCacheWin.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/win/FontDataWin.cpp: Renamed to
              SimpleFontDataWin.cpp.
              * platform/graphics/win/FontWin.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/win/GlyphPageTreeNodeWin.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/win/SimpleFontDataWin.cpp: Copied from WebCore/platform/graphics/win/FontDataWin.cpp.
              (WebCore::SimpleFontData::setShouldApplyMacAscentHack):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::scriptFontProperties):
              * platform/graphics/wx/FontCacheWx.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/wx/FontDataWx.cpp: Renamed to SimpleFontDataWx.cpp.
              * platform/graphics/wx/FontWx.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/wx/GlyphMapWx.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/wx/SimpleFontDataWx.cpp: Copied from WebCore/platform/graphics/wx/FontDataWx.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              * platform/mac/FileChooserMac.mm:
              * platform/mac/PopupMenuMac.mm:
              * platform/mac/WebCoreTextRenderer.mm:
              * platform/win/PopupMenuWin.cpp:
              * platform/win/UniscribeController.cpp:
              (WebCore::UniscribeController::advance):
              (WebCore::UniscribeController::itemizeShapeAndPlace):
              (WebCore::UniscribeController::shapeAndPlaceItem):
              (WebCore::UniscribeController::shape):
              * platform/win/UniscribeController.h:
              * svg/SVGFont.cpp:
              (WebCore::Font::drawGlyphsWithSVGFont):
              * svg/SVGFontElement.cpp:
              (WebCore::SVGFontElement::collectGlyphs):
              * svg/SVGFontFaceElement.cpp:
              (WebCore::SVGFontFaceElement::createFontData):
              * svg/SVGFontFaceElement.h:
              * svg/SVGGlyphElement.cpp:
      
      WebKit/mac:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * Misc/WebNSAttributedStringExtras.mm:
      
      WebKit/win:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * WebView.cpp:
              (WebView::setShouldApplyMacFontAscentHack):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      648b73b1
  14. 02 Jan, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · eb70180f
      darin@apple.com authored
              Reviewed by Maciej.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=16657
                Acid3 failure since table.caption and table.thead do not work for nodes added by appendChild
              - fix http://bugs.webkit.org/show_bug.cgi?id=16659
                Acid3 expects HTMLTableElement.rows to include a <tr> element that is an immediate child of the <table>
      
              Tests: dom/html/level2/html/HTMLCollection07.html
                     dom/html/level2/html/HTMLCollection08.html
                     dom/html/level2/xhtml/HTMLCollection07.xhtml
                     dom/html/level2/xhtml/HTMLCollection08.xhtml
                     fast/dom/HTMLTableElement/early-acid3-65-excerpt.html
                     fast/dom/HTMLTableElement/early-acid3-66-excerpt.html
      
              * GNUmakefile.am: Added HTMLTableRowsCollection.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * WebCoreSources.bkl: Ditto.
      
              * dom/XMLTokenizer.cpp: Took out stray include.
      
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::itemAfter): Removed all the table rows code, since we now use
              a separate class for that collection. Also got rid of the distinct types for custom collections
              that don't need them (use Other for both).
              * html/HTMLCollection.h: Also made firstItem non-virtual because it doesn't need to be virtual.
      
              * html/HTMLFormCollection.cpp:
              (WebCore::HTMLFormCollection::HTMLFormCollection): Use Other instead of FormElements
              for the HTMLCollection type.
      
              * html/HTMLTableElement.cpp:
              (WebCore::HTMLTableElement::HTMLTableElement): Eliminated m_head, m_foot, m_firstBody, and m_caption.
              (WebCore::HTMLTableElement::caption): Added non-inline version. Finds the caption rather than
              keeping a pointer to it.
              (WebCore::HTMLTableElement::setCaption): Rewrote.
              (WebCore::HTMLTableElement::tHead): Ditto.
              (WebCore::HTMLTableElement::setTHead): Ditto.
              (WebCore::HTMLTableElement::tFoot): Ditto.
              (WebCore::HTMLTableElement::setTFoot): Ditto.
              (WebCore::HTMLTableElement::createTHead): Ditto.
              (WebCore::HTMLTableElement::deleteTHead): Ditto.
              (WebCore::HTMLTableElement::createTFoot): Ditto.
              (WebCore::HTMLTableElement::deleteTFoot): Ditto.
              (WebCore::HTMLTableElement::createCaption): Ditto.
              (WebCore::HTMLTableElement::deleteCaption): Ditto.
              (WebCore::HTMLTableElement::lastBody): Added.
              (WebCore::HTMLTableElement::insertRow): Rewrote to use a loop based on code in HTMLTableRowsCollection.
              This is different from the old code mainly in how it handles rows outside any section.
              (WebCore::HTMLTableElement::deleteRow): Ditto.
              (WebCore::HTMLTableElement::addChild): Removed code to set the various members. Keeping pointers to
              these was a possible source of serious bugs too, including crashes with stale pointers, although I
              didn't write any test cases to prove those bugs existed.
              (WebCore::HTMLTableElement::parseMappedAttribute): Changed the rules code to visit all cells, not
              just the cells of the first body. I believe this fixed rendering on some table tests. I think the code
              visits too many cells and also the use of recursion is overkill, but I didn't try to fix that.
              (WebCore::HTMLTableElement::rows): Changed to use the new HTMLTableRowsCollection.
              * html/HTMLTableElement.h: Changed functions to return PassRefPtr, which can be important if strange
              things like DOM mutation events take things ot of the tree before they are safely referenced by
              JavaScript wrappers. Also changed functions to take PassRefPtr and added exceptions. Removed unneeded
              firstTBody and setTBody functions and childrenChanged function override, as well as unused Rules and
              Frame enums. Removed m_head, m_foot, m_firstBody, and m_caption, and added lastBody function. Removed
              unneeded friend declaration for HTMLTableCellElement.
              * html/HTMLTableElement.idl: Allow the setteres for caption, tHead, and tFoot to raise exceptions.
      
              * html/HTMLTableRowsCollection.cpp: Added. Implements the HTML 5 rule for which rows are in the
              collection in which order.
              * html/HTMLTableRowsCollection.h: Added.
      
              * loader/FTPDirectoryDocument.cpp:
              (WebCore::FTPDirectoryTokenizer::appendEntry): Use the standard insertRow function instead of
              coming up with our own way of inserting a row. Simplifies things -- we can remove the code to
              create a tbody element.
      
      LayoutTests:
      
              Reviewed by Maciej.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=16657
                Acid3 failure since table.caption and table.thead do not work for nodes added by appendChild
              - test for http://bugs.webkit.org/show_bug.cgi?id=16659
                Acid3 expects HTMLTableElement.rows to include a <tr> element that is an immediate child of the <table>
      
              * fast/dom/HTMLTableElement/early-acid3-65-excerpt-expected.txt: Added.
              * fast/dom/HTMLTableElement/early-acid3-65-excerpt.html: Added.
              * fast/dom/HTMLTableElement/early-acid3-66-excerpt-expected.txt: Added.
              * fast/dom/HTMLTableElement/early-acid3-66-excerpt.html: Added.
              * fast/dom/HTMLTableElement/resources/early-acid3-65-excerpt.js: Added.
              * fast/dom/HTMLTableElement/resources/early-acid3-66-excerpt.js: Added.
      
              * dom/html/level2/html/HTMLCollection07-expected.txt: Updated to reflect success.
              * dom/html/level2/html/HTMLCollection08-expected.txt: Updated to reflect success.
              * dom/xhtml/level2/html/HTMLCollection07-expected.txt: Updated to reflect success.
              * dom/xhtml/level2/html/HTMLCollection08-expected.txt: Updated to reflect success.
      
              * fast/dom/HTMLTableElement/resources/rows.js: Changed to expect HTML 5 behavior for rows outside
              table sections.
              * fast/dom/HTMLTableElement/rows-expected.txt: Updated.
      
              * platform/mac/tables/mozilla/bugs/bug30418-expected.checksum: Updated to reflect better results.
              * platform/mac/tables/mozilla/bugs/bug30418-expected.png: Ditto.
              * platform/mac/tables/mozilla/bugs/bug30418-expected.txt: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb70180f
  15. 01 Jan, 2008 3 commits
    • weinig@apple.com's avatar
      Fix wx build · 19fcdd38
      weinig@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      19fcdd38
    • weinig@apple.com's avatar
      WebCore: · 97b2d1e7
      weinig@apple.com authored
              Reviewed by Darin.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=16691
              Use real JS objects for the rest of the DOMExceptions (EventException, RangeException, etc)
      
              - Create JS objects for all the different types of exceptions, each with there own prototype and constructor.
              - Abstract all the logic and storage for exception classes in to an ExceptionBase class.
              - Move specialized ExceptionCodes into the exception classes. (ie. the EventExceptionCode enum is now in EventException).
      
              Tests: fast/dom/DOMException/EventException.html
                     fast/dom/DOMException/RangeException.html
                     fast/dom/DOMException/XPathException.html
                     http/tests/xmlhttprequest/XMLHttpRequestException.html
                     svg/custom/SVGException.html
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSSVGMatrixCustom.cpp:
              (WebCore::JSSVGMatrix::inverse):
              (WebCore::JSSVGMatrix::rotateFromVector):
              * bindings/js/kjs_binding.cpp:
              (KJS::setDOMException):
              * bindings/scripts/CodeGeneratorJS.pm: Use the constant values defined
              in the IDL as the ObjC bindings do.
              * bindings/scripts/CodeGeneratorObjC.pm:
              * dom/DOMCoreException.cpp: Removed.
              * dom/DOMCoreException.h:
              (WebCore::DOMCoreException::DOMCoreException):
              * dom/DOMCoreException.idl:
              * dom/Event.h:
              * dom/EventException.h: Copied from WebCore/dom/DOMCoreException.h.
              (WebCore::EventException::EventException):
              (WebCore::EventException::):
              * dom/EventException.idl: Copied from WebCore/dom/DOMCoreException.idl.
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchEvent):
              * dom/ExceptionBase.cpp: Copied from WebCore/dom/DOMCoreException.cpp.
              (WebCore::ExceptionBase::ExceptionBase):
              (WebCore::ExceptionBase::toString):
              * dom/ExceptionBase.h: Copied from WebCore/dom/DOMCoreException.h.
              (WebCore::ExceptionBase::code):
              * dom/ExceptionCode.cpp:
              (WebCore::getExceptionCodeDescription):
              * dom/ExceptionCode.h:
              (WebCore::):
              * dom/Range.cpp:
              (WebCore::Range::insertNode):
              (WebCore::Range::checkNodeWOffset):
              (WebCore::Range::checkNodeBA):
              (WebCore::Range::selectNode):
              (WebCore::Range::selectNodeContents):
              (WebCore::Range::surroundContents):
              * dom/RangeException.h:
              (WebCore::RangeException::RangeException):
              (WebCore::RangeException::):
              * dom/RangeException.idl:
              * page/DOMWindow.idl:
              * svg/SVGColor.cpp:
              (WebCore::SVGColor::setRGBColor):
              * svg/SVGException.h:
              (WebCore::SVGException::SVGException):
              (WebCore::SVGException::):
              * svg/SVGException.idl:
              * svg/SVGLocatable.cpp:
              (WebCore::SVGLocatable::getTransformToElement):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::dispatchEvent):
              (WebCore::XMLHttpRequest::open):
              (WebCore::XMLHttpRequest::send):
              * xml/XMLHttpRequest.h:
              * xml/XMLHttpRequestException.h: Copied from WebCore/dom/DOMCoreException.h.
              (WebCore::XMLHttpRequestException::XMLHttpRequestException):
              (WebCore::XMLHttpRequestException::):
              * xml/XMLHttpRequestException.idl: Copied from WebCore/dom/DOMCoreException.idl.
              * xml/XPathEvaluator.h:
              * xml/XPathException.h: Copied from WebCore/dom/DOMCoreException.h.
              (WebCore::XPathException::XPathException):
              (WebCore::XPathException::):
              * xml/XPathException.idl: Copied from WebCore/dom/DOMCoreException.idl.
              * xml/XPathParser.cpp:
              (WebCore::XPath::Parser::parseStatement):
              * xml/XPathResult.cpp:
              (WebCore::XPathResult::convertTo):
              (WebCore::XPathResult::numberValue):
              (WebCore::XPathResult::stringValue):
              (WebCore::XPathResult::booleanValue):
              (WebCore::XPathResult::singleNodeValue):
              (WebCore::XPathResult::snapshotLength):
              (WebCore::XPathResult::iterateNext):
              (WebCore::XPathResult::snapshotItem):
      
      LayoutTests:
      
              Reviewed by Darin.
      
              Tests for http://bugs.webkit.org/show_bug.cgi?id=16691
              Use real JS objects for the rest of the DOMExceptions (EventException, RangeException, etc)
      
              * fast/dom/DOMException/EventException-expected.txt: Added.
              * fast/dom/DOMException/EventException.html: Copied from LayoutTests/fast/dom/DOMException/prototype-object.html.
              * fast/dom/DOMException/RangeException-expected.txt: Added.
              * fast/dom/DOMException/RangeException.html: Copied from LayoutTests/fast/dom/DOMException/prototype-object.html.
              * fast/dom/DOMException/XPathException-expected.txt: Added.
              * fast/dom/DOMException/XPathException.html: Copied from LayoutTests/fast/dom/DOMException/prototype-object.html.
              * fast/dom/DOMException/resources/EventException.js: Copied from LayoutTests/fast/dom/DOMException/resources/prototype-object.js.
              * fast/dom/DOMException/resources/RangeException.js: Copied from LayoutTests/fast/dom/DOMException/resources/prototype-object.js.
              * fast/dom/DOMException/resources/XPathException.js: Copied from LayoutTests/fast/dom/DOMException/resources/prototype-object.js.
              * fast/dom/Window/window-properties-expected.txt:
              * http/tests/xmlhttprequest/XMLHttpRequestException-expected.txt: Added.
              * http/tests/xmlhttprequest/XMLHttpRequestException.html: Added.
              * svg/custom/SVGException-expected.txt: Added.
              * svg/custom/SVGException.html: Copied from LayoutTests/fast/dom/DOMException/prototype-object.html.
              * svg/custom/resources/SVGException.js: Copied from LayoutTests/fast/dom/DOMException/resources/prototype-object.js.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      97b2d1e7
    • weinig@apple.com's avatar
      Fix non-mac builds. · bd4e2760
      weinig@apple.com authored
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCoreSources.bkl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd4e2760
  16. 31 Dec, 2007 1 commit
    • darin@apple.com's avatar
      WebCore: · c8da90b9
      darin@apple.com authored
              Reviewed by Darin.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14994
              Support for MessageEvent and cross-domain messaging
      
              Test: http/tests/messaging/cross-domain-message-send.html
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::customGetOwnPropertySlot): Allow cross-domain access to the
              postMessage function.
              (WebCore::JSDOMWindow::postMessage):
              * bindings/js/JSEventCustom.cpp:
              (WebCore::toJS):
              * dom/Event.cpp:
              (WebCore::Event::isMessageEvent):
              * dom/Event.h:
              * dom/EventNames.h: New event name
              * dom/MessageEvent.cpp: Added.
              * dom/MessageEvent.h: Added.
              * dom/MessageEvent.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::postMessage): Added.
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      LayoutTests:
      
              Reviewed by Darin.
      
              Test for http://bugs.webkit.org/show_bug.cgi?id=14994
              Support for MessageEvent and cross-domain messaging
      
              * fast/dom/Window/window-properties-expected.txt:
              * http/tests/messaging: Added.
              * http/tests/messaging/cross-domain-message-send-expected.txt: Added.
              * http/tests/messaging/cross-domain-message-send.html: Added.
              * http/tests/messaging/resources: Added.
              * http/tests/messaging/resources/cross-domain-message-receive.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8da90b9
  17. 25 Dec, 2007 3 commits
  18. 17 Dec, 2007 1 commit
    • weinig@apple.com's avatar
      Reviewed by Mitz. · 41962c5f
      weinig@apple.com authored
              Fix for http://bugs.webkit.org/show_bug.cgi?id=16466
              Move the JS Location object to its own file
      
              - Move Location into its own file and rename it JSLocation.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSDocumentCustom.cpp:
              * bindings/js/JSLocation.cpp: Copied from WebCore/bindings/js/kjs_window.cpp.
              (WebCore::):
              (WebCore::JSLocation::JSLocation):
              (WebCore::JSLocation::getValueProperty):
              (WebCore::JSLocation::getOwnPropertySlot):
              (WebCore::JSLocation::put):
              (WebCore::JSLocationProtoFuncReplace::callAsFunction):
              (WebCore::JSLocationProtoFuncReload::callAsFunction):
              (WebCore::JSLocationProtoFuncAssign::callAsFunction):
              (WebCore::JSLocationProtoFuncToString::callAsFunction):
              * bindings/js/JSLocation.h: Copied from WebCore/bindings/js/kjs_window.h.
              (WebCore::JSLocation::):
              (WebCore::JSLocation::frame):
              (WebCore::JSLocation::classInfo):
              * bindings/js/kjs_window.cpp:
              (KJS::Window::location):
              * bindings/js/kjs_window.h:
              * history/CachedPage.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41962c5f
  19. 16 Dec, 2007 2 commits
    • weinig@apple.com's avatar
      Reviewed by Maciej. · 007f8309
      weinig@apple.com authored
              Yet more of http://bugs.webkit.org/show_bug.cgi?id=16385
              Cleanup kjs_window
      
              - Move ScheduledAction into its own file and put it in the WebCore namespace.
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/PausedTimeouts.cpp:
              * bindings/js/PausedTimeouts.h:
              * bindings/js/ScheduledAction.cpp: Copied from bindings/js/kjs_window.cpp.
              (WebCore::ScheduledAction::ScheduledAction):
              (WebCore::ScheduledAction::execute):
              * bindings/js/ScheduledAction.h: Copied from bindings/js/kjs_window.h.
              (WebCore::ScheduledAction::ScheduledAction):
              * bindings/js/kjs_window.cpp:
              (KJS::DOMWindowTimer::DOMWindowTimer):
              (KJS::DOMWindowTimer::action):
              (KJS::DOMWindowTimer::takeAction):
              (KJS::Window::installTimeout):
              (KJS::Window::timerFired):
              * bindings/js/kjs_window.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      007f8309
    • weinig@apple.com's avatar
      Reviewed by Darin. · a1ad3df6
      weinig@apple.com authored
              More of http://bugs.webkit.org/show_bug.cgi?id=16385
              Cleanup kjs_window
      
              - Move PausedTimeouts into its own file and put it in the WebCore namespace.
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/PausedTimeouts.cpp: Copied from bindings/js/kjs_window.cpp.
              * bindings/js/PausedTimeouts.h: Copied from bindings/js/kjs_window.h.
              * bindings/js/kjs_window.cpp:
              (KJS::Window::pauseTimeouts):
              * bindings/js/kjs_window.h:
              * history/CachedPage.cpp:
              * history/CachedPage.h:
              * page/Chrome.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1ad3df6
  20. 15 Dec, 2007 2 commits
  21. 11 Dec, 2007 1 commit
    • darin@apple.com's avatar
      WebCore: · 5377d7de
      darin@apple.com authored
              Reviewed by Geoff.
      
              - exposed many new commands to the DOM Document executeCommand function by
                merging the JSEditor and Editor executeCommand implementations
              - replaced the execCommand function with a EditorCommand class
              - replaced the WTF::StrHash<> class template with the WebCore::StringHash class
              - replaced the WTF::CaseInsensitiveHash<> class template with the
                WebCore::CaseFoldingHash class
      
              * WebCore.base.exp: Updated.
              * WebCore.pro: Added EditorCommand.cpp, removed JSEditor.cpp.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * WebCoreSources.bkl: Ditto.
      
              * dom/Document.cpp:
              (WebCore::Document::Document): Removed code to set up m_jsEditor.
              (WebCore::Document::~Document): Removed code to delete m_jsEditor.
              (WebCore::command): Added. Helper function that gets an Editor::Command.
              (WebCore::Document::executeCommand): Changed to use Editor::Command instead of
              JSEditor.
              (WebCore::Document::queryCommandEnabled): Ditto.
              (WebCore::Document::queryCommandIndeterm):
              (WebCore::Document::queryCommandState): Ditto.
              (WebCore::Document::queryCommandSupported): Ditto.
              (WebCore::Document::queryCommandValue): Ditto.
      
              * dom/Document.h: Removed JSEditor, jsEditor, m_jsEditor. Changed to
              use CaseFoldingHash.
      
              * editing/Editor.cpp:
              (WebCore::Editor::selectionForCommand): Renamed from selectionForEvent and
              made into a member function so it is accessible from the new EditorCommand.cpp file.
              Also changed to get the selection from the passed-in frame instead of from the
              page, because this should work on the targeted frame unless the event overrides it.
              (WebCore::Editor::handleKeypress): Updated for selectionForCommand change.
              (WebCore::Editor::handleInputMethodKeypress): Ditto.
              (WebCore::imageElementFromImageDocument): Renamed and changed to return
              a HTMLImageElement instead of a Node*.
              (WebCore::Editor::canCopy): Updated for name change.
              (WebCore::Editor::selectionUnorderedListState): Updated for TriState change.
              (WebCore::Editor::selectionOrderedListState): Ditto.
              (WebCore::Editor::selectionStartHasStyle): Make type of local more specific.
              (WebCore::updateState): Moved here from Frame.
              (WebCore::Editor::selectionHasStyle): Ditto.
              (WebCore::Editor::Editor): Initialize m_shouldStartNewKillRingSequence.
              (WebCore::Editor::insertTextWithoutSendingTextEvent): Updated for
              selectionForCommand change.
              (WebCore::Editor::copy): Updated for imageElementFromImageDocument change.
              (WebCore::Editor::toggleBold): Call the ToggleBold command via the command
              machinery since it's no longer in this file as a local function.
              (WebCore::Editor::toggleUnderline): Call the ToggleUnderline command.
              (WebCore::Editor::setBaseWritingDirection): Change type of argument and of
              local variable.
              (WebCore::Editor::addToKillRing): Moved here from EditorMac. Not useful
              without a kill ring, but it's relatively straightforward to implement one.
              (WebCore::Editor::appendToKillRing): Put default implementation here for
              platforms other than Mac. We should probably put a simple kill ring
              implementation here -- doesn't need to be shared with the OS oh platforms
              other than Mac.
              (WebCore::Editor::prependToKillRing): Ditto.
              (WebCore::Editor::yankFromKillRing): Ditto.
              (WebCore::Editor::startNewKillRingSequence): Ditto.
              (WebCore::Editor::setKillRingToYankedState): Ditto.
      
              * editing/Editor.h: Moved the TriState enum here instead of inside the
              Frame class. Added EditorCommandSource enum. Moved selectionHasStyle
              here from the Frame class. Added Editor::Command class with five functions
              for the various things you can do with a command (execute it, check if it
              can be used, and its state and value). Changed hte parameter of
              setBaseWritingDirection to be a const String& rather than a String.
              Got rid of the kill-ring-related operations, but added the kill ring
              functions themselves. Made selectedRange() public. Made the
              m_startNewKillRingSequence not Mac-specific and added "should" to its
              name.
      
              * editing/EditorCommand.cpp: Copied from WebCore/editing/Editor.cpp.
              Retained only the editing commands.
              (WebCore::targetFrame): Moved to the top of the file.
              (WebCore::executeApplyStyle): Added. Helper function for commands
              that need to apply styles.
              (WebCore::executeToggleStyle): Added. Helper function for commands
              that need to toggle styles based on the style of the start of selection.
              (WebCore::executeApplyParagraphStyle): Added. Like executeApplyStyle, but
              for paragraph styles.
              (WebCore::executeInsertFragment): Added. Helper function for commands
              that need to insert a DOM fragment.
              (WebCore::executeInsertNode): Added. Helper function for commands that
              need to insert a tree rooted in a single DOM node.
              (WebCore::stateStyle): Added. Helper function for the state of commands
              that represent style.
              (WebCore::valueStyle): Added. Helper function for the value of commands
              that represent style.
              (WebCore::canScroll): Added. Helper functions for some move and scroll
              commands that need to determine if the renderer they are in can scroll.
              (WebCore::unionDOMRanges): Moved here from EditorMac.
              (WebCore::executeBackColor):
              (WebCore::executeBackwardDelete):
              (WebCore::executeCopy):
              (WebCore::executeCreateLink):
              (WebCore::executeCut):
              (WebCore::executeDelete):
              (WebCore::executeDeleteToMark):
              (WebCore::executeDeleteWordBackward):
              (WebCore::executeDeleteWordForward):
              (WebCore::executeFindString):
              (WebCore::executeFontName):
              (WebCore::executeFontSize):
              (WebCore::executeFontSizeDelta):
              (WebCore::executeForeColor):
              (WebCore::executeFormatBlock):
              (WebCore::executeForwardDelete):
              (WebCore::executeIndent):
              (WebCore::executeInsertBacktab):
              (WebCore::executeInsertHorizontalRule):
              (WebCore::executeInsertHTML):
              (WebCore::executeInsertImage):
              (WebCore::executeInsertLineBreak):
              (WebCore::executeInsertNewline):
              (WebCore::executeInsertNewlineInQuotedContent):
              (WebCore::executeInsertOrderedList):
              (WebCore::executeInsertParagraph):
              (WebCore::executeInsertTab):
              (WebCore::executeInsertText):
              (WebCore::executeInsertUnorderedList):
              (WebCore::executeJustifyCenter):
              (WebCore::executeJustifyFull):
              (WebCore::executeJustifyLeft):
              (WebCore::executeJustifyRight):
              (WebCore::executeMoveBackward):
              (WebCore::executeMoveBackwardAndModifySelection):
              (WebCore::executeMoveDown):
              (WebCore::executeMoveDownAndModifySelection):
              (WebCore::executeMoveDownByPageAndModifyCaret):
              (WebCore::executeMoveForward):
              (WebCore::executeMoveForwardAndModifySelection):
              (WebCore::executeMoveLeft):
              (WebCore::executeMoveLeftAndModifySelection):
              (WebCore::executeMoveRight):
              (WebCore::executeMoveRightAndModifySelection):
              (WebCore::executeMoveToBeginningOfDocument):
              (WebCore::executeMoveToBeginningOfDocumentAndModifySelection):
              (WebCore::executeMoveToBeginningOfLine):
              (WebCore::executeMoveToBeginningOfLineAndModifySelection):
              (WebCore::executeMoveToBeginningOfParagraph):
              (WebCore::executeMoveToBeginningOfParagraphAndModifySelection):
              (WebCore::executeMoveToBeginningOfSentence):
              (WebCore::executeMoveToBeginningOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfDocument):
              (WebCore::executeMoveToEndOfDocumentAndModifySelection):
              (WebCore::executeMoveToEndOfSentence):
              (WebCore::executeMoveToEndOfSentenceAndModifySelection):
              (WebCore::executeMoveToEndOfLine):
              (WebCore::executeMoveToEndOfLineAndModifySelection):
              (WebCore::executeMoveToEndOfParagraph):
              (WebCore::executeMoveToEndOfParagraphAndModifySelection):
              (WebCore::executeMoveParagraphBackwardAndModifySelection):
              (WebCore::executeMoveParagraphForwardAndModifySelection):
              (WebCore::executeMoveUp):
              (WebCore::executeMoveUpAndModifySelection):
              (WebCore::executeMoveUpByPageAndModifyCaret):
              (WebCore::executeMoveWordBackward):
              (WebCore::executeMoveWordBackwardAndModifySelection):
              (WebCore::executeMoveWordForward):
              (WebCore::executeMoveWordForwardAndModifySelection):
              (WebCore::executeMoveWordLeft):
              (WebCore::executeMoveWordLeftAndModifySelection):
              (WebCore::executeMoveWordRight):
              (WebCore::executeMoveWordRightAndModifySelection):
              (WebCore::executeOutdent):
              (WebCore::executePaste):
              (WebCore::executePasteAndMatchStyle):
              (WebCore::executePrint):
              (WebCore::executeRedo):
              (WebCore::executeRemoveFormat):
              (WebCore::executeSelectAll):
              (WebCore::executeSelectToMark):
              (WebCore::executeSetMark):
              (WebCore::executeStrikethrough):
              (WebCore::executeSubscript):
              (WebCore::executeSuperscript):
              (WebCore::executeSwapWithMark):
              (WebCore::executeToggleBold):
              (WebCore::executeToggleItalic):
              (WebCore::executeTranspose):
              (WebCore::executeUnderline):
              (WebCore::executeUndo):
              (WebCore::executeUnlink):
              (WebCore::executeUnscript):
              (WebCore::executeUnselect):
              (WebCore::executeYank):
              (WebCore::executeYankAndSelect):
              (WebCore::supported):
              (WebCore::supportedPaste):
              (WebCore::enabled):
              (WebCore::enabledAnySelection):
              (WebCore::enabledAnySelectionAndMark):
              (WebCore::enableCaretInEditableText):
              (WebCore::enabledCopy):
              (WebCore::enabledCut):
              (WebCore::enabledInEditableText):
              (WebCore::enabledInRichlyEditableText):
              (WebCore::enabledPaste):
              (WebCore::enabledRangeInEditableText):
              (WebCore::enabledRangeInRichlyEditableText):
              (WebCore::enabledRedo):
              (WebCore::enabledUndo):
              (WebCore::stateNone):
              (WebCore::stateBold):
              (WebCore::stateItalic):
              (WebCore::stateOrderedList):
              (WebCore::stateStrikethrough):
              (WebCore::stateSubscript):
              (WebCore::stateSuperscript):
              (WebCore::stateUnderline):
              (WebCore::stateUnorderedList):
              (WebCore::valueNull):
              (WebCore::valueBackColor):
              (WebCore::valueFontName):
              (WebCore::valueFontSize):
              (WebCore::valueFontSizeDelta):
              (WebCore::valueForeColor):
              (WebCore::createCommandMap): Added lots of commands, including all the commands
              from JSEditor. A few commands needed different behavior based on whether they are
              invoked from the DOM or a keyboard binding.
              (WebCore::Editor::command): Added. Gets a command object given a name.
              (WebCore::Editor::Command::Command): Added.
              (WebCore::Editor::Command::execute): Added.
              (WebCore::Editor::Command::isSupported): Added.
              (WebCore::Editor::Command::isEnabled): Added.
              (WebCore::Editor::Command::state): Added.
              (WebCore::Editor::Command::value): Added.
              (WebCore::Editor::execCommand): Changed to call command().execute().
      
              * editing/JSEditor.cpp: Removed.
              * editing/JSEditor.h: Removed.
      
              * editing/mac/EditorMac.mm: Changed to provide kill ring primitives intead of
              kill ring commands, so the kill ring commands can be cross-platform.
              (WebCore::Editor::appendToKillRing): Added.
              (WebCore::Editor::prependToKillRing): Added.
              (WebCore::Editor::yankFromKillRing): Added.
              (WebCore::Editor::startNewKillRingSequence): Added.
              (WebCore::Editor::setKillRingToYankedState): Added.
      
              * page/Frame.cpp: Removed selectionHasStyle, TriState, and updateState.
              * page/Frame.h: Ditto.
      
              * page/mac/WebCoreFrameBridge.mm: Removed selectionHasStyle.
              * page/mac/WebCoreFrameBridge.h: Ditto.
      
              * platform/ContextMenu.cpp:
              (WebCore::ContextMenu::checkOrEnableIfNeeded): Updated for TriState change.
      
              * platform/text/StringHash.h:
              (WebCore::StringHash::hash): Merged the StrHash<> template classes into this.
              (WebCore::StringHash::equal): Ditto.
              (WebCore::CaseFoldingHash::hash): Merged the CaseInsensitiveHash<> template
              classes into this.
              (WebCore::CaseFoldingHash::equal): Ditto.
      
              * platform/text/StringImpl.cpp:
              (WebCore::equal): Changed to invoke StringHash.
              (WebCore::equalIgnoringCase): Changed to invoke CaseFoldingHash.
      
              * dom/DOMImplementation.cpp:
              (WebCore::addString): Updated to use StringHash and CaseFoldingHash.
              (WebCore::isSVG10Feature): Ditto.
              (WebCore::isSVG11Feature): Ditto.
              * loader/FrameLoader.cpp:
              (WebCore::localSchemes): Ditto.
              * platform/graphics/FontCache.cpp:
              (WebCore::computeHash): Ditto.
              * platform/network/HTTPHeaderMap.h: Ditto.
              * platform/text/PlatformString.h: Ditto.
              * platform/text/StringImpl.h: Ditto.
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::updateWidget): Ditto.
              * xml/XMLHttpRequest.cpp:
              (WebCore::canSetRequestHeader): Ditto.
      
              * rendering/RenderTreeAsText.cpp: Removed stray include of JSEditor.h.
      
      WebKit/mac:
      
              Reviewed by Geoff.
      
              - change more editing commands to use WebCore::Editor
              - change to use the new WebCore::Editor::command() function
      
              * WebView/WebHTMLView.mm: Changed alignCenter, alignJustified, alignLeft,
              alignRight, cut, copy, deleteToMark, indent, insertNewlineIgnoringFieldEditor,
              insertTabIgnoringFieldEditor, outdent, selectAll, selectToMark, setMark,
              subscript, superscript, swapWithMark, underline, unscript, yank, and yankAndSelect
              to use the "forward to WebCore" macro instead of having hand-written implementations.
              (kit): Added function to change a TriState to an AppKit-style tri-state value.
              (-[WebHTMLView coreCommandBySelector:]): Added. No longer converts case of the
              first character or copies the selector name, since the Editor commands are not case
              sensitive any more. Returns a command object.
              (-[WebHTMLView coreCommandByName:]): Added.
              (-[WebHTMLView executeCoreCommandBySelector:]): Renamed from callWebCoreCommand:,
              and changed to use the new coreCommandBySelector: method.
              (-[WebHTMLView executeCoreCommandByName:]): Added.
              (-[WebHTMLView validateUserInterfaceItemWithoutDelegate:]): Changed all the
              methods that call through to WebCore to also use the state() and isEnabled()
              functions on the commands for the menu item state and user interface item enabling.
              (-[WebHTMLView _handleStyleKeyEquivalent:]): Use ToggleBold and ToggleItalic by
              name rather than having local methods for them; no need for methods with a single
              call site.
              (-[WebHTMLView insertParagraphSeparator:]): Use executeCoreCommandByName: rather
              than the deprecated execCommand().
              (-[WebHTMLView doCommandBySelector:]): Changed to use command().execute() rather
              than the deprecated execCommand().
              * WebView/WebHTMLViewInternal.h: Removed some unneeded method declarations.
      
      WebKit/win:
      
              * WebView.cpp:
              (WebView::handleEditingKeyboardEvent): Update for change to Editor API.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5377d7de
  22. 10 Dec, 2007 1 commit
    • weinig@apple.com's avatar
      Reviewed by Darin. · 64c4a86a
      weinig@apple.com authored
              More cleanup of kjs_window.
              - Move WindowFeatures from bridge/ to page/
              - Move functions related to WindowFeatures (boolFeature,
                floatFeature, setWindowFeature, parseWindowFeatures) into the class.
              - Fix up whitespace.
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::DOMWindowTimer::~DOMWindowTimer):
              (KJS::createWindow):
              (KJS::showModalDialog):
              (KJS::Window::getOwnPropertySlot):
              (KJS::Window::allowsAccessFrom):
              (KJS::Window::shouldInterruptScript):
              (KJS::WindowProtoFuncAToB::callAsFunction):
              (KJS::WindowProtoFuncOpen::callAsFunction):
              (KJS::Window::setReturnValueSlot):
              (KJS::ScheduledAction::execute):
              (KJS::Window::timerFired):
              (KJS::Location::Location):
              (KJS::Location::getValueProperty):
              (KJS::Location::getOwnPropertySlot):
              (KJS::Location::put):
              (KJS::LocationProtoFuncReplace::callAsFunction): Use better variable names.
              (KJS::LocationProtoFuncAssign::callAsFunction): Ditto.
              (KJS::LocationProtoFuncToString::callAsFunction): Remove extraneous calls to
              allowsAccessFrom, cleanup the function a little.
              (KJS::PausedTimeouts::~PausedTimeouts):
              * bridge/WindowFeatures.h: Removed.
              * page/WindowFeatures.cpp: Added.
              (WebCore::isSeparator):
              (WebCore::WindowFeatures::WindowFeatures):
              (WebCore::WindowFeatures::setWindowFeature):
              (WebCore::WindowFeatures::boolFeature):
              (WebCore::WindowFeatures::floatFeature):
              * page/WindowFeatures.h: Copied from WebCore/bridge/WindowFeatures.h.
              (WebCore::WindowFeatures::WindowFeatures):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64c4a86a
  23. 06 Dec, 2007 1 commit
    • darin@apple.com's avatar
      Reviewed by Sam Weinig. · a309ff78
      darin@apple.com authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=16332
                ObjC DOM exception object descriptions should include the exception name
      
              * WebCore.pro: Added ExceptionCode.cpp.
              * WebCore.vcproj/WebCore.vcproj: Added ExceptionCode.cpp.
              * WebCore.xcodeproj/project.pbxproj: Added ExceptionCode.cpp.
              * WebCoreSources.bkl: Added ExceptionCode.cpp.
      
              * bindings/js/kjs_binding.cpp: (KJS::setDOMException): Moved the code to decompose an
              ExceptionCode into ExceptionCode.h/cpp -- getExceptionCodeDescription. Also removed
              the many unneeded includes that were here. Had to keep one special case here, for
              SECURITY_ERR.
      
              * bindings/objc/ExceptionHandlers.mm: (WebCore::raiseDOMException): Changed to use the
              new getExceptionCodeDescription function so that this shares the exception name
              information that was previously only available to JavaScript.
      
              * dom/ExceptionCode.cpp: Copied from bindings/js/kjs_binding.cpp.
              (WebCore::getExceptionCodeDescription): Added some assertions, and made the function
              handle exception names in a slightly more robust way that is not subject to integer
              overflow. (Not a real world issue since we should never receive a bad exception code.)
      
              * dom/ExceptionCode.h: Added the ExceptionCodeDescription struct and the
              getExceptionCodeDescription function.
      
              * svg/SVGException.h: Added a missing #include and got rid of some comments. Some of
              the comments were mildly helpful, but others were incorrect. This now matches the other
              exception-related headers such as RangeException.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a309ff78
  24. 30 Nov, 2007 2 commits