1. 30 Nov, 2007 2 commits
  2. 28 Nov, 2007 1 commit
  3. 24 Nov, 2007 1 commit
    • aroben@apple.com's avatar
      Get rid of WebCoreSystemInterface on Windows · 63cfcda5
      aroben@apple.com authored
       WebCore:
      
               Get rid of WebCoreSystemInterface on Windows
      
               The one function defined in that file is now in WebKitSystemInterface.
      
               Reviewed by Tim.
      
               * WebCore.vcproj/WebCore.vcproj: Removed
               WebCoreSystemInterface.{cpp,h}.
               * platform/graphics/cg/ImageCG.cpp: Made #include of
               WebCoreSystemInterface.h Mac-only.
               * platform/win/GraphicsContextWin.cpp: Ditto.
               * platform/win/WebCoreSystemInterface.cpp: Removed.
               * platform/win/WebCoreSystemInterface.h: Removed.
      
       WebKitLibraries:
      
               Add wkSetPatternPhaseInUserSpace to WebKitSystemInterface on Windows
      
               Reviewed by Tim.
      
               * win/include/WebKitSystemInterface/WebKitSystemInterface.h: Added
               declaration.
               * win/lib/WebKitSystemInterface.lib: Updated.
               * win/lib/WebKitSystemInterface_debug.lib: Updated.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@28005 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      63cfcda5
  4. 23 Nov, 2007 1 commit
    • ap@webkit.org's avatar
      Reviewed by Maciej. · fbee6ca0
      ap@webkit.org authored
              http://bugs.webkit.org/show_bug.cgi?id=16077
              <rdar://problem/5609785> XSLT processor <xsl:sort> algorithm is incompatible with other
              browser implementations
      
              Test: fast/xsl/sort-unicode.xml
      
              * xml/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::transformToString): Set a custom sort function.
      
              * xml/XSLTUnicodeSort.cpp: Added.
              (init_xsltTransformError):
              (xsltTransformError):
              (WebCore::xsltUnicodeSortFunction):
              * xml/XSLTUnicodeSort.h: Added.
              ICU-based implementation of xsl:sort, using an example from libxslt distribution.
              Only minimal coding style fixes to ease synchronization with upstream in the future.
      
              * icu/unicode/ucol.h: Added.
              * icu/unicode/uset.h: Added.
              Taken from ICU 3.2
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Added XSLTUnicodeSort.cpp.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27984 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbee6ca0
  5. 16 Nov, 2007 2 commits
    • beidson@apple.com's avatar
      Reviewed by Sam · 0d3aee36
      beidson@apple.com authored
              Further purify DatabaseTracker to use SecurityOriginData instead of "a String"
      
              * WebCore.base.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCore.vcproj/WebCore.vcproj
              * WebCore.pro
      
              * platform/SecurityOriginData.cpp: Added.
              (WebCore::SecurityOriginData::SecurityOriginData): Add a constructor that takes a "stringIdentifier"-style string,
                since that form is what will be stored in the Databases.db on disk
              (WebCore::SecurityOriginData::stringIdentifier):
              * platform/SecurityOriginData.h:
              (WebCore::SecurityOriginData::protocol):
              (WebCore::SecurityOriginData::host):
              (WebCore::SecurityOriginData::port):
      
              * storage/DatabaseTracker.cpp:
              (WebCore::SecurityOriginDataHash::hash): Follow the pattern Darin set in FontCache.cpp to make a decent hash for
                a SecurityOriginData object
              (WebCore::SecurityOriginDataHash::equal):
              (WebCore::SecurityOriginDataTraits::deletedValue): "file::1" will never exist in normal operation
              (WebCore::SecurityOriginDataTraits::emptyValue): "file::2" will never exist in normal operation
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::origins):
              (WebCore::DatabaseTracker::addDatabase):
              * storage/DatabaseTracker.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27851 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d3aee36
    • ap@webkit.org's avatar
      Windows build fix. · 55086b66
      ap@webkit.org authored
              * WebCore.vcproj/WebCore.vcproj: Removed VoidCallback.cpp, added JSCustomVoidCallback.{h,cpp}.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55086b66
  6. 15 Nov, 2007 1 commit
    • andersca@apple.com's avatar
      Reviewed by Brady. · 56448435
      andersca@apple.com authored
              Pass a VoidCallback to Database::transaction and Database::changeVersion.
              This is not yet hooked up to the database machinery.
              
              * WebCore.vcproj/WebCore.vcproj:
              * bindings/js/JSDatabaseCustom.cpp:
              (WebCore::JSDatabase::changeVersion):
              (WebCore::JSDatabase::transaction):
              * storage/Database.cpp:
              (WebCore::Database::changeVersion):
              (WebCore::Database::transaction):
              * storage/Database.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56448435
  7. 13 Nov, 2007 3 commits
    • aroben@apple.com's avatar
      Fix <rdar://5346832> Infinite recursion when opening Web Inspector on more than one tab · bf5d850e
      aroben@apple.com authored
       WebCore:
      
               Add WindowMessageBroadcaster
      
               This class is used to listen in on messages sent to HWNDs. Multiple
               WindowMessageListeners can be notified about messages sent to a single
               HWND, and one WindowMessageListener can listen to messages from
               multiple HWNDs.
      
               Reviewed by Ada.
      
               * WebCore.vcproj/WebCore.vcproj: Added new files to project.
               * platform/win/WindowMessageBroadcaster.cpp: Added.
               (WebCore::instancesMap): Static helper.
               (WebCore::WindowMessageBroadcaster::addListener): Registers a listener
               for a particular HWND.
               (WebCore::WindowMessageBroadcaster::removeListener): Removes a
               listener for a particular HWND.
               (WebCore::WindowMessageBroadcaster::WindowMessageBroadcaster):
               (WebCore::WindowMessageBroadcaster::~WindowMessageBroadcaster):
               (WebCore::WindowMessageBroadcaster::destroy): Removes this broadcaster
               from the instancesMap, removes all of its listeners, unsubclasses the
               window, and deletes the broadcaster.
               (WebCore::WindowMessageBroadcaster::unsubclassWindow): Unsubclasses
               the window (which means that SubclassedWndProc won't be called again
               for this window).
               (WebCore::WindowMessageBroadcaster::SubclassedWndProc): Notifies all
               the listeners about every message sent to the HWND
               * platform/win/WindowMessageBroadcaster.h: Added.
               (WebCore::WindowMessageBroadcaster::listeners):
               (WebCore::WindowMessageBroadcaster::originalWndProc):
               * platform/win/WindowMessageListener.h: Added.
      
       WebKit/win:
      
               Fix <rdar://5346832> Infinite recursion when opening Web Inspector on more than one tab
      
               The bug was that multiple WebNodeHighlights would subclass the same
               browser window, leading to infinite recursion within
               SubclassedWndProc.
      
               WebNodeHighlight is now a WindowMessageListener, and lets
               WindowMessageBroadcaster handle subclassing the window.
      
               Reviewed by Ada.
      
               * WebNodeHighlight.cpp:
               (WebNodeHighlight::WebNodeHighlight): Initialize m_observedWindow
               member.
               (WebNodeHighlight::~WebNodeHighlight): Unregister as a listener for
               m_observedWindow.
               (WebNodeHighlight::highlight): Register as a listener.
               (WebNodeHighlight::windowReceivedMessage): Do the work that used to be
               done in SubclassedWndProc.
               * WebNodeHighlight.h: Made WebNodeHighlight a WindowMessageListener,
               and renamed m_subclassedWindow to m_observedWindow.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf5d850e
    • ggaren@apple.com's avatar
      JavaScriptCore: · 7911af29
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Deployed
              Shared in places where JSCore previously had hand-rolled ref-counting
              classes.
      
              * API/JSClassRef.cpp:
              (OpaqueJSClass::OpaqueJSClass):
              * API/JSClassRef.h:
              * API/JSObjectRef.cpp:
              (JSClassRetain):
              (JSClassRelease):
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/interpreter.cpp:
              (KJS::Interpreter::init):
              * kjs/interpreter.h:
              * kjs/regexp.cpp:
              (KJS::RegExp::RegExp):
              * kjs/regexp.h:
              * wtf/Shared.h: Copied from WebCore/platform/Shared.h.
      
      JavaScriptGlue:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
      
      WebCore:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places. Retained 
              TreeShared, but moved it to its own file, TreeShared.h.
      
              * ForwardingHeaders/wtf/Shared.h: Added.
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * css/CSSFontFace.h:
              * css/CSSRuleList.h:
              * css/Counter.h:
              * css/Pair.h:
              * css/Rect.h:
              * css/StyleBase.h:
              * css/StyleSheetList.h:
              * dom/Clipboard.h:
              * dom/DOMImplementation.h:
              * dom/Event.h:
              * dom/EventListener.h:
              * dom/NamedNodeMap.h:
              * dom/NodeFilterCondition.h:
              * dom/NodeList.h:
              * dom/Range.h:
              * dom/RangeException.h:
              * dom/RegisteredEventListener.h:
              * dom/Traversal.h:
              * history/BackForwardList.h:
              * history/CachedPage.h:
              * history/HistoryItem.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/HTMLCollection.h:
              * html/MediaError.h:
              * html/TimeRanges.h:
              * html/VoidCallback.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * loader/DocumentLoader.h:
              * loader/FormState.h:
              * loader/ResourceLoader.h:
              * loader/TextResourceDecoder.h:
              * loader/icon/IconRecord.h:
              * page/BarInfo.h:
              * page/Console.h:
              * page/DOMSelection.h:
              * page/DOMWindow.h:
              * page/History.h:
              * page/InspectorController.cpp:
              * page/Plugin.h:
              * page/Screen.h:
              * platform/ArrayImpl.h:
              * platform/CString.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/FontFallbackList.h:
              * platform/FontFamily.h:
              * platform/FontSelector.h:
              * platform/GlyphPageTreeNode.h:
              * platform/PopupMenu.h:
              * platform/RegularExpression.cpp:
              * platform/ScrollBar.h:
              * platform/Shared.h: Removed.
              * platform/SharedBuffer.h:
              * platform/StringImpl.h:
              * platform/graphics/Icon.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/network/FormData.h:
              * platform/network/ResourceHandleClient.h:
              * rendering/RenderStyle.h:
              * rendering/SVGCharacterLayoutInfo.h:
              * storage/SQLResultSetRowList.h:
              * xml/DOMParser.h:
              * xml/XMLSerializer.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathNSResolver.h:
              * xml/XPathResult.h:
      
      WebKit/mac:
      
              Reviewed by Sam Weinig.
      
              Moved Shared.h into wtf so it could be used in more places.
      
              * ChangeLog:
              * WebCoreSupport/WebContextMenuClient.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7911af29
    • beidson@apple.com's avatar
      Squashed commit of the following: · effd1c72
      beidson@apple.com authored
      commit 3e6cb737b3b823b4bf177b9e0c2fcfcc38baf46d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 16:22:36 2007 -0800
      
          Changelog for commit
      
      commit 4be13a5ef17685368e68a76292b785c99da1d7f2
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 16:19:34 2007 -0800
      
          Make inspector work with new API
      
      commit c500ed90c32b31fbc37a183c8ae5427f36b9ccc2
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 14:37:16 2007 -0800
      
          Woops!
      
      commit c61b147f35a2801c340f82054d177914da6ccde5
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 13 11:45:40 2007 -0800
      
          Ander's review comments
      
      commit f3dc2683acc5730cbab8758226adae3e35f7263b
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 12 18:05:21 2007 -0800
      
          Initial vcproj changes after the rebase
      
      commit c8cf9be275479ff1fb39b911e5165f07fcd5ae34
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 12 18:02:30 2007 -0800
      
          Fixed Changelog a bit
      
      commit c9790cde9b79e25690f1c0b34b9c1e77d2f4449f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 12 16:53:48 2007 -0800
      
          Finish the rebase/trunk merge
      
      commit 663ad85619ec677eb5c52bed3c59b8b3f50de624
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Nov 6 11:54:26 2007 -0800
      
          VCProj changes for new SQL api + blind attempt at keeping qt/gtk going
      
      commit 2aceeb3bdfa6894bb4e93c0b129867059e9cdad7
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 15:27:55 2007 -0800
      
          Changelog edit cleanup
      
      commit a05f11fa4fa0ba935eb28df6d9628f29a4074d7a
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 15:25:27 2007 -0800
      
          Changelog entries and small style cleanup
      
      commit a2d34a78d06f446f4bdb6ea1797dfb91cfc336fe
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:37:10 2007 -0800
      
          Minor edit
      
      commit eaf0aa9c07cfeb54df312c130677ecbc60728c5f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:32:20 2007 -0800
      
          Do version check at time of executeSql
      
      commit 3bac84615badcc810f44ebf14d1679bffd4cc8fb
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:04:14 2007 -0800
      
          Newline = t3h gone
      
      commit de7cfcf737b1a6143b74f1cc60955c317877ca27
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 13:02:11 2007 -0800
      
          Example + inspector fixes
      
      commit 536b119c219de72c97fe6756e226a36bef5e6880
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 11:47:30 2007 -0800
      
          DatabaseExample works
      
      commit fff79aa99dbf47955bc37ca325928460fc41a59e
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 10:36:59 2007 -0800
      
          Remove the old, now unused DatabaseCallback
      
      commit 06bc8e16ad346b755f767ce8e7849da819ccf96f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 09:57:36 2007 -0800
      
          Sort project file
      
      commit 741084d108ec994ff513e18c3d7a3153f6dd6bb5
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Nov 5 09:30:37 2007 -0800
      
          Sort the project file
      
      commit 2e77cec4337db174f56269b7fb406d81ebb1de7d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 16:01:03 2007 -0700
      
          Yay!  Change version even works!
      
      commit 05c2ed1f22e3b689dd453ea300154492937f46db
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 15:19:56 2007 -0700
      
          Nuke some DRT changes
      
      commit 9b5b9b25c45d7d4720e4ddf4a31f163fb4f7faf2
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 15:05:59 2007 -0700
      
          Nuke some printfs
      
      commit 8503eecdefa95278a15246bb4eed2dccb69af12a
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 13:44:32 2007 -0700
      
          Added "current transaction" to Database and reworked how scheduling goes
      
      commit f70354c9a84d654d28894ab3c6b13679ce494fc3
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 11:49:26 2007 -0700
      
          Things are largely working.  Still need to clean up loose ends in the sticky notes demo and do further testing
      
      commit 417665cd15f020c22af5691577e5c8a072630839
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Nov 1 00:00:47 2007 -0700
      
          Transaction steps are almost locked up completely.  Still need the SQLError for the transaction error callback and actually implementing ::execute() on the SQLStatement
      
      commit 752d572acd4d1d9832976b4869284e554845205a
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 18:52:55 2007 -0700
      
          Forgot this.
      
      commit 2c8f2689d212296961a841c579a2f93609858862
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 18:31:05 2007 -0700
      
          Merge.
      
      commit 7540d4fa7ef858400d9f834cba976a439394412d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Wed Oct 31 17:14:30 2007 -0700
      
          Even closer!
      
      commit 143a70a5d026ab9fab1b5de91f826effcd481527
      Author: Brady Eidson <beidson@apple.com>
      Date:   Wed Oct 31 16:43:31 2007 -0700
      
          Merge project file correctly
      
      commit 11207e7b6e391a4052fc41f6db42ce30449c7e3e
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 11:04:35 2007 -0700
      
          Remove more unused methods.
      
      commit 9a0d306d467eb9aa8c19825da03b7abe318c609c
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 11:01:35 2007 -0700
      
          Add SQLTransactionCallback.idl
      
      commit 12e2fa2858145e3895320293462ec441c35a7e3d
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 31 10:47:17 2007 -0700
      
          Fix build.
      
      commit 02f4631705b0f6e0bd3c715c64f4938ea53f4670
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 23:36:24 2007 -0700
      
          All steps now take place in the right order, following the right rules - only thing missing is the actual SQL executing!
      
      commit 6a8c0d7d2beb745c070c55b14beac9a47d373fc4
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 18:20:35 2007 -0700
      
          Closer and closer we roll
      
      commit f945446453ae48a28d6e2f3dcce4660feae0da79
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 17:59:25 2007 -0700
      
          Things are really rolling - transaction steps 1-5 are called as expected.  Downhill from here
      
      commit 138b49b62bc8f3d05b1171e280d403e8b15ef9c4
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 14:50:14 2007 -0700
      
          Use pointer-to-member functions for the transaction steps...  !!!
      
      commit 3eb4f794861827f5c88cd8c36efb144cdc537bd5
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Tue Oct 30 14:45:59 2007 -0700
      
          Remove more old cruft.
      
      commit f18835f0709b4aff00903738974dbebb11a224f0
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 13:55:05 2007 -0700
      
          Restore that comment
      
      commit 35b2eac5ac3ec338cc2a8a4fe611f85e62c72dd6
      Author: Brady Eidson <beidson@apple.com>
      Date:   Tue Oct 30 12:08:29 2007 -0700
      
          Closer, still, to the new model working.  Lotsa little tweaks
      
      commit a8476702a7d9bb38b8e15966e837ceca5858e9b2
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Tue Oct 30 11:23:02 2007 -0700
      
          Wrap changeVersion.
      
      commit aa0d8cc6aaaf674de341996555306eb9f122de3c
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 22:35:16 2007 -0700
      
          Dummy callback as part of transaction steps acheived!  And other architectural changes
      
      commit 01c0a92daf764375be79753bc7bc417aa0205168
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 18:23:00 2007 -0700
      
          Have a the first chunk of transaction steps occuring asynchronously with stubs and printf()s - should be downhill from here.  Also updated the DatabaseExample.html for the portion of the new API that works so far.
      
      commit 6b6e9e7a064424cd6b70489de80c79e7ae950b38
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 17:32:30 2007 -0700
      
          Made DatabaseTasks create mutex/conditions on demand, and renamed the internal sqlitedatabase
      
      commit 99d06513090c2b4e04edda82d82108cf97da245a
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Mon Oct 29 16:30:52 2007 -0700
      
          Fix bug.
      
      commit 83def2ce73fa001f5bda3e152ca60e58c563dbed
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Mon Oct 29 15:17:45 2007 -0700
      
          Remove some cruft.
      
      commit 9f2c8c21d06d6b379426449357f1ee00a25faeee
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Mon Oct 29 14:45:54 2007 -0700
      
          More bindings.
      
      commit 9eae9135ed17179b7bcd225648272d24b76de8b9
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 14:19:34 2007 -0700
      
          Adapt to new openDatabase() method
      
      commit 2e1dad857b190634f4394475e925d2dc518ae1fe
      Author: Brady Eidson <beidson@apple.com>
      Date:   Mon Oct 29 12:05:53 2007 -0700
      
          More infrastructure changes for the new spec, getting really close now!
      
      commit b0d8ca9dc7ffe1a424070d5f8587346eca56b76b
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 17:25:41 2007 -0700
      
          More stubbing of infrastructure
      
      commit bb8c6528208a24f129af9a8c09763989e5723157
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 15:38:16 2007 -0700
      
          Remove SQLVersionChangeCallback.h
      
      commit c77ec8b1d2a7c8cb7a6a0bc42b089c34541cdf83
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 15:28:08 2007 -0700
      
          Make it build (removed the old changeVersion)
      
      commit e205fd2d6cb0cd4e6dd47cf4b6609196d0d8e87d
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 14:53:15 2007 -0700
      
          Even more progress in the architecture change
      
      commit 322f576e2ed8c584244335f918302169c81ea39f
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 14:52:22 2007 -0700
      
          Add JSSQLTransactionCustom.cpp.
      
      commit 22d0b184e1d5d92574b5caf2b73eb6c7faae84be
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 13:21:55 2007 -0700
      
          Add new API to Database.
      
      commit 910660c7668f2728850990f8984045de9e41423f
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Fri Oct 26 11:48:33 2007 -0700
      
          Add more .IDL files
      
      commit 4d0cbb5b3e8c57076ce0cb743f8a52a5e31c0219
      Author: Brady Eidson <beidson@apple.com>
      Date:   Fri Oct 26 11:20:54 2007 -0700
      
          Further groundwork for new API (does not build)
      
      commit d6420aacd1bf610ca53eced12e61ecd074f31bd7
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Oct 25 18:02:23 2007 -0700
      
          Further stubs and adaptations to the new API
      
      commit ea80b0c14037cfbdccf322146b26b62df2aa8211
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Oct 25 15:51:43 2007 -0700
      
          Remove closeTransaction()
      
      commit 4e701837674e07111da80a476135f5b73e25210f
      Author: Brady Eidson <beidson@apple.com>
      Date:   Thu Oct 25 14:05:40 2007 -0700
      
          Further stubbing and API-matching cleanup
      
      commit f667cf3c7847069a6720296710876394954611bd
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 24 16:32:58 2007 -0700
      
          Add extra arguments to Window.openDatabase.
      
      commit efbbe3016a31a9c4a717de25d831406288f8126d
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 24 14:21:22 2007 -0700
      
          cleanup.
      
      commit b70a8252a588eee36d06835bad5793361ced35c5
      Author: Anders Carlsson <andersca@apple.com>
      Date:   Wed Oct 24 12:31:06 2007 -0700
      
          Stub out a couple of new classes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      effd1c72
  8. 12 Nov, 2007 1 commit
  9. 09 Nov, 2007 1 commit
    • weinig's avatar
      WebCore: · 38baa376
      weinig authored
              Reviewed by Adam Roben.
      
              <rdar://problem/5435940>
              The COM bindings for the DOM should be autogenerated like the other DOM bindings
      
              Initial commit of the autogeneration of the COM DOM Bindings.  No behavior change
              is being introduced in this patch and to insure that no conflicts arise, a temporary
              prefix of "GEN_" has been used for all the new classes.
      
              The build architecture for these bindings differs slightly from the other autogenerated
              bindings.  Instead of building in WebCore and migrating the resuting code to WebKit (as
              is done for the Objective-C bindigs currently), the IDLs and generation scripts are
              migrated to WebKit and built there.  This is done with a series of scripts and Makefiles.
      
              This commit includes:
                  - Hand rolled root class/Interface GEN_DOMObject used to facilated object creation
                    and ref-counting.
                  - Generating all of the Core DOM and most of HTML and CSS
                  - Generating Event, EventTarget, and EventListener
      
              * WebCore.vcproj/MigrateIDLAndScripts.make: Added.
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcproj/migrate-idls.sh: Added.
              * bindings/scripts/CodeGenerator.pm:
              * bindings/scripts/CodeGeneratorCOM.pm: Added.
              * dom/EventListener.h: Make the isWindowEvent parameter default to false
              to allow autogeneration based on the IDL.
      
      WebKit/win:
      
              Reviewed by Adam Roben.
      
              <rdar://problem/5435940>
              The COM bindings for the DOM should be autogenerated like the other DOM bindings
      
              Initial commit of the autogeneration of the COM DOM Bindings.  No behavior change
              is being introduced in this patch and to insure that no conflicts arise, a temporary
              prefix of "GEN_" has been used for all the new classes.
      
              The build architecture for these bindings differs slightly from the other autogenerated
              bindings.  Instead of building in WebCore and migrating the resuting code to WebKit (as
              is done for the Objective-C bindigs currently), the IDLs and generation scripts are
              migrated to WebKit and built there.  This is done with a series of scripts and Makefiles.
      
              This commit includes:
                  - Hand rolled root class/Interface GEN_DOMObject used to facilated object creation
                    and ref-counting.
                  - Generating all of the Core DOM and most of HTML and CSS
                  - Generating Event, EventTarget, and EventListener
      
              * DOMCreateInstance.cpp: Added.
              (domWrapperCache):
              (getDOMWrapper):
              (setDOMWrapper):
              (removeDOMWrapper):
              (GEN_DOMNode::createInstance):
              (GEN_DOMImplementation::createInstance):
              (GEN_DOMCSSRule::createInstance):
              (GEN_DOMStyleSheet::createInstance):
              (GEN_DOMCSSValue::createInstance):
              * DOMCreateInstance.h: Added.
              Temporary location for createInstance/object caching methods.  This will be broken up
              into seperate files in the near future.
      
              * GEN_DOMObject.cpp: Added.
              (GEN_DOMObject::GEN_DOMObject):
              (GEN_DOMObject::~GEN_DOMObject):
              (GEN_DOMObject::QueryInterface):
              (GEN_DOMObject::AddRef):
              (GEN_DOMObject::Release):
              * GEN_DOMObject.h: Added.
              Hand rolled base class.
      
              * Interfaces/IGEN_DOMObject.idl: Added. 
              Hand rolled base interface.
      
              * WebKit.vcproj/DerivedSources.make: Added.
              * WebKit.vcproj/FixMIDLHeaders.pl: Added.
              This script is required because MIDL is producing un-buildable code due to
              circular dependencies.
      
              * WebKit.vcproj/Interfaces.vcproj:
              * WebKit.vcproj/WebKit.vcproj:
              * WebKit.vcproj/WebKitGUID.vcproj:
              * WebKit.vcproj/build-generated-files.sh: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      38baa376
  10. 05 Nov, 2007 1 commit
  11. 01 Nov, 2007 1 commit
  12. 31 Oct, 2007 2 commits
  13. 29 Oct, 2007 1 commit
    • hyatt's avatar
      Land the back end for CSS animated property transitions. I am landing... · 02b766f2
      hyatt authored
              Land the back end for CSS animated property transitions.  I am landing this in stages, so the AnimationController
              class is deliberately left empty.
      
              Reviewed by darin/aroben
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSPropertyNames.in:
              * css/CSSTimingFunctionValue.cpp: Added.
              (WebCore::CSSTimingFunctionValue::cssText):
              * css/CSSTimingFunctionValue.h: Added.
              (WebCore::CSSTimingFunctionValue::CSSTimingFunctionValue):
              (WebCore::CSSTimingFunctionValue::firstPoint):
              (WebCore::CSSTimingFunctionValue::secondPoint):
              * css/CSSValueKeywords.in:
              * history/CachedPage.cpp:
              (WebCore::CachedPage::restore):
              * page/AnimationController.cpp: Added.
              (WebCore::AnimationController::AnimationController):
              (WebCore::AnimationController::~AnimationController):
              (WebCore::AnimationController::cancelTransitions):
              (WebCore::AnimationController::updateTransitions):
              (WebCore::AnimationController::suspendAnimations):
              (WebCore::AnimationController::resumeAnimations):
              * page/AnimationController.h: Added.
              * page/Frame.cpp:
              (WebCore::Frame::animationController):
              (WebCore::Frame::clearTimers):
              * page/Frame.h:
              * page/FramePrivate.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::destroy):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::animationController):
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              (WebCore::Transition::Transition):
              (WebCore::Transition::~Transition):
              (WebCore::Transition::operator=):
              (WebCore::Transition::operator==):
              (WebCore::Transition::fillUnsetProperties):
              (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::~StyleRareNonInheritedData):
              (WebCore::StyleRareNonInheritedData::operator==):
              (WebCore::StyleRareNonInheritedData::transitionDataEquivalent):
              (WebCore::RenderStyle::diff):
              (WebCore::RenderStyle::adjustTransitions):
              (WebCore::RenderStyle::accessTransitions):
              * rendering/RenderStyle.h:
              (WebCore::BackgroundLayer::next):
              (WebCore::):
              (WebCore::TimingFunction::TimingFunction):
              (WebCore::TimingFunction::operator==):
              (WebCore::Transition::next):
              (WebCore::Transition::isTransitionDurationSet):
              (WebCore::Transition::isTransitionRepeatCountSet):
              (WebCore::Transition::isTransitionTimingFunctionSet):
              (WebCore::Transition::isTransitionPropertySet):
              (WebCore::Transition::isEmpty):
              (WebCore::Transition::clearTransitionDuration):
              (WebCore::Transition::clearTransitionRepeatCount):
              (WebCore::Transition::clearTransitionTimingFunction):
              (WebCore::Transition::clearTransitionProperty):
              (WebCore::Transition::transitionDuration):
              (WebCore::Transition::transitionRepeatCount):
              (WebCore::Transition::transitionTimingFunction):
              (WebCore::Transition::transitionProperty):
              (WebCore::Transition::setTransitionDuration):
              (WebCore::Transition::setTransitionRepeatCount):
              (WebCore::Transition::setTransitionTimingFunction):
              (WebCore::Transition::setTransitionProperty):
              (WebCore::Transition::setNext):
              (WebCore::Transition::operator!=):
              (WebCore::RenderStyle::transitions):
              (WebCore::RenderStyle::clearTransitions):
              (WebCore::RenderStyle::inheritTransitions):
              (WebCore::RenderStyle::initialTransitionDuration):
              (WebCore::RenderStyle::initialTransitionRepeatCount):
              (WebCore::RenderStyle::initialTransitionTimingFunction):
              (WebCore::RenderStyle::initialTransitionProperty):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::destroy):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27228 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02b766f2
  14. 27 Oct, 2007 2 commits
    • weinig's avatar
      WebCore: · 5e5675ed
      weinig authored
              Reviewed by Adam Roben.
      
              Fix http://bugs.webkit.org/show_bug.cgi?id=14953
              Implement window.console in WebCore
      
              - Adds a window.console object that has 4 methods (log, info, warn, and error)
                that send messages to the Chrome.  This moves functionality that was in the
                app down into WebCore.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/scripts/CodeGeneratorJS.pm: Add extended attribute
              to mark attributes as [Replacable] which indicates they can 
              overridden when set.
              * page/Chrome.cpp:
              (WebCore::Chrome::addMessageToConsole): Allow all messages to go
              up to the ChromeClient.
              * page/Console.cpp: Added.
              (WebCore::Console::Console):
              (WebCore::Console::disconnectFrame):
              (WebCore::Console::error):
              (WebCore::Console::info):
              (WebCore::Console::log):
              (WebCore::Console::warn):
              * page/Console.h: Added.
              * page/Console.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::clear):
              (WebCore::DOMWindow::console):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      LayoutTests:
      
              Reviewed by Adam Roben.
      
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=14953
              Implement window.console in WebCore
      
              * fast/dom/Window/window-properties-expected.txt:
              * http/tests/security/cross-frame-access-put-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e5675ed
    • ap's avatar
      Reviewed by Darin. · 7b67568d
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=15555
              XMLHttpRequest does not support charset "x-user-defined", which can
              facilitate loading of binary data
      
              Test: http/tests/xmlhttprequest/binary-x-user-defined.html
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * platform/TextCodecUserDefined.cpp: Added.
              (WebCore::TextCodecUserDefined::registerEncodingNames):
              (WebCore::newStreamingTextDecoderUserDefined):
              (WebCore::TextCodecUserDefined::registerCodecs):
              (WebCore::TextCodecUserDefined::decode):
              (WebCore::encodeComplexUserDefined):
              (WebCore::TextCodecUserDefined::encode):
              * platform/TextCodecUserDefined.h: Added.
              * platform/TextEncodingRegistry.cpp:
              (WebCore::buildBaseTextCodecMaps):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27145 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b67568d
  15. 25 Oct, 2007 1 commit
    • beidson's avatar
      Reviewed by Anders · 250d101e
      beidson authored
              Bulk rename of platform/sql/SQL* to platform/sql/SQLite*
      
              This is more accurate in that there is no realistic "SQL" abstraction, the classes are obviously
              tied extremely close to SQLite, and is necessitated by the introduction of "SQLTransaction" in
              the HTML5 database API which we are adopting.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      250d101e
  16. 24 Oct, 2007 3 commits
    • aroben's avatar
      Fix <rdar://5549919> Add font database initialization code to WebCore and call it from WebKit · 2829b3c4
      aroben authored
       WebCore:
      
               Add font database initialization code to WebCore
      
               Reviewed by Ada.
      
               * WebCore.vcproj/WebCore.vcproj: Added FontDatabase.{cpp,h}.
               * platform/win/FontDatabase.cpp: Added.
               (WebCore::systemFontsDirectory):
               (WebCore::fontsPlistPath):
               (WebCore::systemHasFontsNewerThanFontsPlist):
               (WebCore::readFontPlist):
               (WebCore::populateFontDatabaseFromPlist):
               (WebCore::populateFontDatabaseFromFileSystem):
               (WebCore::writeFontDatabaseToPlist):
               (WebCore::populateFontDatabase): This is the only function callable
               from outside this file. It populates the font database once, either
               from the fonts plist, or from the filesystem (and then saves a new
               fonts plist).
               * platform/win/FontDatabase.h: Added.
      
       WebKitTools:
      
               Remove now-unnecessary call to InitializeCoreGraphics
      
               WebKit takes care of this now.
      
               Reviewed by Ada.
      
               * DumpRenderTree/win/DumpRenderTree.cpp:
               (initialize):
      
       WebKit/win:
      
               Fix <rdar://5549919> Initialize the font database before any font code is invoked
      
               We initialize the database in two places:
                  1. When instantiating WebKitClassFactory, which is guaranteed to
                  happen before any WebView is instantiated.
                  2. When making a WebCore::Font in WebKitGraphics.
      
               This ensures that the font database will be populated before any font
               code is invoked. We rely on WebCore to only populate the database
               once.
      
               Reviewed by Ada.
      
               * WebKitClassFactory.cpp:
               (WebKitClassFactory::WebKitClassFactory): Populate the font database.
               * WebKitGraphics.cpp:
               (makeFont): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2829b3c4
    • weinig's avatar
      Build fix. · b302a4a9
      weinig authored
              * WebCore.vcproj/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27008 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b302a4a9
    • beidson's avatar
      WebCore: · dce9e4a3
      beidson authored
              Reviewed by Anders
      
              <rdar://5554130> DatabaseTracker.o has a global initializer
      
              Since DatabaseTracker is a singleton, it makes much more sense to keep the database path as a member variable.
              Now constructing the shared DatabaseTracker no longer implicitly opens it - It is only opened when the databases 
              path is set.
              
              * WebCore.vcproj/WebCore.vcproj: Copy WebCore/storage headers for WebKit build
              
              * storage/Database.cpp:
              (WebCore::Database::~Database): Remove bogus assertion
              
              * storage/DatabaseTracker.cpp:
              (WebCore::DatabaseTracker::DatabaseTracker): Does nothing now!  Move this code to openTrackerDatabase
              (WebCore::DatabaseTracker::setDatabasePath): Set the member variable, also closing/opening the database if needed
              (WebCore::DatabaseTracker::databasePath):
              (WebCore::DatabaseTracker::openTrackerDatabase): To open and validate the Databases db, moved from the c'tor
              (WebCore::DatabaseTracker::fullPathForDatabase): Return the member variable
              * storage/DatabaseTracker.h:
              
      WebKit/win:
              Reviewed by Anders
      
              Windows portion of <rdar://5554130> 
              
              Slowly introduce Windows WebKit portion of the Database API that sets the 
              on-disk location for databases
              
              * WebDatabaseManager.cpp: Added.
              (WebKitSetWebDatabasesPathIfNecessary):
              * WebDatabaseManager.h: Added.
              
              * WebKit.vcproj/WebKit.vcproj:
              
              * WebView.cpp:
              (WebView::initWithFrame): Call WebKitSetWebDatabasesPathIfNecessary()
              
      WebKit:
              Reviewed by Anders
      
              <rdar://problem/5554130> DatabaseTracker.o has a global initializer
      
              * Misc/WebDatabaseManager.mm:
              (WebKitSetWebDatabasesPathIfNecessary): Call the member function instead of a static one
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dce9e4a3
  17. 22 Oct, 2007 2 commits
    • eseidel's avatar
      2007-10-22 Eric Seidel <eric@webkit.org> · baf9f6b8
      eseidel authored
              Reviewed by Maciej.
      
              Fix build by properly exposing SVG font-face dom bindings.
      
              * DerivedSources.make:
              * WebCore.vcproj/WebCore.vcproj: add font-face files to build
              * WebCore.xcodeproj/project.pbxproj: add missing DOM bindings files
              * bindings/js/JSSVGElementWrapperFactory.cpp:
              * bindings/objc/DOM.mm:
              (WebCore::createElementClassMap):
              * bindings/objc/DOMSVG.h:
              * ksvg2/svg/SVGDefinitionSrcElement.idl: inherit from SVGElement
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26907 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      baf9f6b8
    • aroben's avatar
      Windows build fix · 6f7967b4
      aroben authored
      JavaScriptCore:
      
              Windows build fix
      
              Reviewed by NOBODY.
      
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Turn off
              warning about implicit conversion to bool.
      
      WebCore:
      
              Windows build fix
      
              Reviewed by NOBODY.
      
              * WebCore.vcproj/WebCore.vcproj: Copy header files from platform/sql.
              * page/Page.cpp: Touched to force the header files to be copied.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26889 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f7967b4
  18. 20 Oct, 2007 1 commit
    • alp's avatar
      2007-10-20 Alp Toker <alp@atoker.com> · 9177ecfd
      alp authored
              Reviewed by Eric.
      
              Support text boundary detection.
              Move TextBoundariesWin.cpp to platform/ since it's portable and useful.
              Split out and implement some TemporaryLinkStubs.
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * platform/TextBoundariesICU.cpp: Copied from WebCore/platform/win/TextBoundariesWin.cpp.
              * platform/gtk/Language.cpp: Added.
              (WebCore::defaultLanguage):
              * platform/gtk/TemporaryLinkStubs.cpp:
              * platform/gtk/TextBreakIteratorInternalICUGtk.cpp: Added.
              (WebCore::currentTextBreakLocaleID):
              * platform/win/TextBoundariesWin.cpp: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26831 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9177ecfd
  19. 19 Oct, 2007 4 commits
    • andersca's avatar
      Reviewed by Brady. · 1f21e614
      andersca authored
              Move some SQL-related classes to platform/sql.
              
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * loader/icon/SQLDatabase.cpp: Removed.
              * loader/icon/SQLDatabase.h: Removed.
              * loader/icon/SQLStatement.cpp: Removed.
              * loader/icon/SQLStatement.h: Removed.
              * loader/icon/SQLTransaction.cpp: Removed.
              * loader/icon/SQLTransaction.h: Removed.
              * platform/sql/SQLDatabase.cpp: Copied from loader/icon/SQLDatabase.cpp.
              * platform/sql/SQLDatabase.h: Copied from loader/icon/SQLDatabase.h.
              * platform/sql/SQLStatement.cpp: Copied from loader/icon/SQLStatement.cpp.
              * platform/sql/SQLStatement.h: Copied from loader/icon/SQLStatement.h.
              * platform/sql/SQLTransaction.cpp: Copied from loader/icon/SQLTransaction.cpp.
              * platform/sql/SQLTransaction.h: Copied from loader/icon/SQLTransaction.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1f21e614
    • andersca's avatar
      Release build fix. · 578b1e9b
      andersca authored
              
              * WebCore.vcproj/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26796 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      578b1e9b
    • beidson's avatar
      JavaScriptCore: · e5def340
      beidson authored
      2007-10-19  Brady Eidson  <beidson@apple.com>
      
              Reviewed by Sam
      
              Queue -> Deque! and small style tweaks
      
              * JavaScriptCore.vcproj/WTF/WTF.vcproj:
              * JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
              * wtf/Deque.h: Added.
              (WTF::DequeNode::DequeNode):
              (WTF::Deque::Deque):
              (WTF::Deque::~Deque):
              (WTF::Deque::size):
              (WTF::Deque::isEmpty):
              (WTF::Deque::append):
              (WTF::Deque::prepend):
              (WTF::Deque::first):
              (WTF::Deque::last):
              (WTF::Deque::removeFirst):
              (WTF::Deque::clear):
              * wtf/Queue.h: Removed.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver
      
              Added a simple LinkedList based Queue to wtf
              We can make a better, more sophisticated an efficient one later, but have
              needed one for some time, now!
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * wtf/Queue.h: Added.
              (WTF::QueueNode::QueueNode):
              (WTF::Queue::Queue):
              (WTF::Queue::~Queue):
              (WTF::Queue::size):
              (WTF::Queue::isEmpty):
              (WTF::Queue::append):
              (WTF::Queue::prepend):
              (WTF::Queue::first):
              (WTF::Queue::last):
              (WTF::Queue::removeFirst):
              (WTF::Queue::clear):
      
      WebCore:
      2007-10-19  Brady Eidson  <beidson@apple.com>
              Reviewed by Anders
      
              Windows specific changes, as well as renaming Queue -> Deque
      
              * ForwardingHeaders/wtf/Deque.h: Added.
              * ForwardingHeaders/wtf/Queue.h: Removed.
              * platform/win/FileSystemWin.cpp:
              (WebCore::fileSize):
              (WebCore::fileExists):
              (WebCore::deleteFile):
              (WebCore::pathByAppendingComponent):
              (WebCore::fileSystemRepresentation):
              (WebCore::makeAllDirectories):
              (WebCore::homeDirectoryPath):
              * storage/Database.h:
              * storage/DatabaseThread.cpp:
              (WebCore::DatabaseThread::documentGoingAway):
              (WebCore::DatabaseThread::databaseGoingAway):
              (WebCore::DatabaseThread::dispatchNextTaskIdentifier):
              (WebCore::DatabaseThread::scheduleTask):
              (WebCore::DatabaseThread::scheduleImmediateTask):
              * storage/DatabaseThread.h:
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Tim and Anders
      
              Preliminary support for HTML5 local database storage (http://www.whatwg.org/specs/web-apps/current-work/)
      
              The specification is still in flux but the fundamentals are pretty solid and we can start using and testing
              this implementation even while filing bugs to track changes in the spec as it becomes more final
      
              There are some implementation details in this patch that seem unused or useless, but they remain in place
              while the spec is in flux and might go one way or another.
      
              * platform/Logging.cpp: Add StorageAPI logging channel
              * platform/Logging.h:
      
              * storage/Database.cpp: Added.
              (WebCore::Database::databaseInfoTableName):
              (WebCore::databaseVersionKey):
              (WebCore::Database::openDatabase): C++ version of the window.openDatabase() javascript API
              (WebCore::Database::Database):
              (WebCore::Database::~Database):
              (WebCore::Database::openAndVerifyVersion):
              (WebCore::retrieveTextResultFromDatabase):
              (WebCore::Database::getVersionFromDatabase):
              (WebCore::setTextValueInDatabase):
              (WebCore::Database::setVersionInDatabase):
              (WebCore::Database::databaseThreadGoingAway): May be removed in the future
              (WebCore::Database::disableAuthorizer): For internal (WebInspector) use to get around the authorizer's restrictions
              (WebCore::Database::enableAuthorizer):
              (WebCore::Database::guidForOriginAndName): Candidate for refactoring and/or moving to the database tracker.
                The GUID for each database identifier is currently for tracking the database version, but might be rescoped in the future
              (WebCore::Database::resetAuthorizer):
              (WebCore::Database::performPolicyChecks): Currently, the only post-executeSql policy check planned is the origin size usage
              (WebCore::Database::scheduleDatabaseCallback):
              (WebCore::Database::performOpenAndVerify):
              (WebCore::Database::performChangeVersion):
              (WebCore::Database::performExecuteSql):
              (WebCore::Database::performCloseTransaction):
              (WebCore::Database::performGetTableNames):
              (WebCore::Database::version): C++ version of the javascript API
              (WebCore::Database::changeVersion): Ditto
              (WebCore::Database::executeSql): Ditto
              (WebCore::Database::closeTransaction): Ditto
              (WebCore::Database::tableNames): For internal (WebInspector) use
              (WebCore::Database::deliverAllPendingCallbacks):
              (WebCore::Database::deliverPendingCallbacks):
              * storage/Database.h: Added.
              (WebCore::Database::databaseDebugName): For debug logging purposes
              * storage/Database.idl: Added.
      
              * storage/DatabaseAuthorizer.cpp: Added.
                The DatabaseAuthorizer is used to both prevent the script from doing "illegal" things in sql as well as
                tracking when effects certain sql statements might have (such as increasing the size of the database)
              (WebCore::DatabaseAuthorizer::DatabaseAuthorizer):
              (WebCore::DatabaseAuthorizer::reset):
              (WebCore::DatabaseAuthorizer::createTable):
              (WebCore::DatabaseAuthorizer::createTempTable):
              (WebCore::DatabaseAuthorizer::dropTable):
              (WebCore::DatabaseAuthorizer::dropTempTable):
              (WebCore::DatabaseAuthorizer::allowAlterTable):
              (WebCore::DatabaseAuthorizer::createIndex):
              (WebCore::DatabaseAuthorizer::createTempIndex):
              (WebCore::DatabaseAuthorizer::dropIndex):
              (WebCore::DatabaseAuthorizer::dropTempIndex):
              (WebCore::DatabaseAuthorizer::createTrigger):
              (WebCore::DatabaseAuthorizer::createTempTrigger):
              (WebCore::DatabaseAuthorizer::dropTrigger):
              (WebCore::DatabaseAuthorizer::dropTempTrigger):
              (WebCore::DatabaseAuthorizer::createVTable):
              (WebCore::DatabaseAuthorizer::dropVTable):
              (WebCore::DatabaseAuthorizer::allowDelete):
              (WebCore::DatabaseAuthorizer::allowInsert):
              (WebCore::DatabaseAuthorizer::allowUpdate):
              (WebCore::DatabaseAuthorizer::allowRead):
              (WebCore::DatabaseAuthorizer::allowAnalyze):
              (WebCore::DatabaseAuthorizer::allowPragma):
              (WebCore::DatabaseAuthorizer::allowAttach):
              (WebCore::DatabaseAuthorizer::allowDetach):
              (WebCore::DatabaseAuthorizer::allowFunction):
              (WebCore::DatabaseAuthorizer::disable):
              (WebCore::DatabaseAuthorizer::enable):
              (WebCore::DatabaseAuthorizer::denyBasedOnTableName): Don't allow access to the __WebKit meta info table as
                it should be invisible to scripts
              * storage/DatabaseAuthorizer.h: Added.
              (WebCore::DatabaseAuthorizer::lastActionWasInsert):
              (WebCore::DatabaseAuthorizer::lastActionIncreasedSize):
      
              * storage/DatabaseCallback.cpp: Added.
                Generic item to queue up for callbacks on the main thread for database activities that take place on
                a secondary thread
              (WebCore::DatabaseChangeVersionCallback::DatabaseChangeVersionCallback):
              (WebCore::DatabaseChangeVersionCallback::performCallback):
              (WebCore::DatabaseExecuteSqlCallback::DatabaseExecuteSqlCallback):
              (WebCore::DatabaseExecuteSqlCallback::performCallback):
              * storage/DatabaseCallback.h: Added.
              (WebCore::DatabaseCallback::~DatabaseCallback):
              (WebCore::DatabaseChangeVersionCallback::~DatabaseChangeVersionCallback):
              (WebCore::DatabaseExecuteSqlCallback::~DatabaseExecuteSqlCallback):
      
              * storage/DatabaseTask.h: Added.
                Generic work-item to be queued up on the background database thread
              (WebCore::DatabaseTask::isComplete):
              (WebCore::DatabaseOpenTask::exceptionCode):
              (WebCore::DatabaseOpenTask::openSuccessful):
              (WebCore::DatabaseTableNamesTask::tableNames):
              * storage/DatabaseTask.cpp: Added.
              (WebCore::DatabaseTask::DatabaseTask):
              (WebCore::DatabaseTask::~DatabaseTask):
              (WebCore::DatabaseTask::performTask):
              (WebCore::DatabaseTask::lockForSynchronousScheduling): Used when the main thread needs this task accomplished
                synchronously
              (WebCore::DatabaseTask::waitForSynchronousCompletion):
      
              (WebCore::DatabaseOpenTask::DatabaseOpenTask):
              (WebCore::DatabaseOpenTask::doPerformTask):
      
              (WebCore::DatabaseExecuteSqlTask::DatabaseExecuteSqlTask):
              (WebCore::DatabaseExecuteSqlTask::doPerformTask):
      
              (WebCore::DatabaseChangeVersionTask::DatabaseChangeVersionTask):
              (WebCore::DatabaseChangeVersionTask::doPerformTask):
      
              (WebCore::DatabaseTableNamesTask::DatabaseTableNamesTask):
              (WebCore::DatabaseTableNamesTask::doPerformTask):
      
              * storage/DatabaseThread.cpp: Added.
                The current design is that each Document will have its own DatabaseThread.  This makes scripts on each
                individual document more response at the cost of adding more threads and potentially creating concurrency
                issues when the same database is open twice from two different documents
              (WebCore::DatabaseThread::DatabaseThread):
              (WebCore::DatabaseThread::~DatabaseThread):
              (WebCore::DatabaseThread::start):
              (WebCore::DatabaseThread::documentGoingAway): Called to shut the thread down when the document is destroyed
              (WebCore::DatabaseThread::databaseGoingAway): Remove all pending tasks for this database
              (WebCore::DatabaseThread::databaseThreadStart):
              (WebCore::DatabaseThread::databaseThread):
              (WebCore::DatabaseThread::dispatchNextTaskIdentifier):
              (WebCore::DatabaseThread::scheduleTask):
              (WebCore::DatabaseThread::scheduleImmediateTask): Schedule a task that gets to "cut to the front of the line" when
                the main thread requires a task be performed synchronously
              (WebCore::DatabaseThread::wakeWorkThread):
              * storage/DatabaseThread.h: Added.
      
              * storage/DatabaseTracker.cpp: Added.
                The DatabaseTracker is the master management of all databases.  It will keep track of the filename for a given
                unique database, keep track of the total disk usage per-origin, and policys per database/origin
              (WebCore::DatabaseTracker::setDatabasePath):
              (WebCore::DatabaseTracker::databasePath):
              (WebCore::DatabaseTracker::tracker):
              (WebCore::DatabaseTracker::DatabaseTracker):
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::origins):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::addDatabase):
              (WebCore::DatabaseTracker::deleteAllDatabases):
              (WebCore::DatabaseTracker::deleteAllDatabasesForOrigin):
              * storage/DatabaseTracker.h: Added.
      
              * storage/SQLCallback.h: Added. C++ version of the javascript executeSql() callback
              (WebCore::SQLCallback::~SQLCallback):
              * storage/SQLCallback.idl: Added.
      
              * storage/SQLResultSet.cpp: Added. C++ version of the javascript SQLResultSet object
              (WebCore::SQLResultSet::SQLResultSet):
              (WebCore::SQLResultSet::insertId):
              (WebCore::SQLResultSet::rowsAffected):
              (WebCore::SQLResultSet::errorCode):
              (WebCore::SQLResultSet::error):
              (WebCore::SQLResultSet::rows):
              (WebCore::SQLResultSet::setInsertId):
              (WebCore::SQLResultSet::setRowsAffected):
              (WebCore::SQLResultSet::setErrorCode):
              (WebCore::SQLResultSet::setErrorMessage):
              * storage/SQLResultSet.h: Added.
              * storage/SQLResultSet.idl: Added.
      
              * storage/SQLResultSetRowList.cpp: Added. C++ version of the javascript SQLResultSetRowList object
              (WebCore::SQLResultSetRowList::length):
              * storage/SQLResultSetRowList.h: Added.
              (WebCore::SQLResultSetRowList::columnNames):
              (WebCore::SQLResultSetRowList::values):
              (WebCore::SQLResultSetRowList::addColumn):
              (WebCore::SQLResultSetRowList::addResult):
              * storage/SQLResultSetRowList.idl: Added.
      
              * storage/VersionChangeCallback.h: Added. C++ version of the javascript changeVersion() callback
              (WebCore::VersionChangeCallback::~VersionChangeCallback):
              * storage/VersionChangeCallback.idl: Added.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver + Same
      
              Forwarding header for the new wtf/Queue.h
      
              * ForwardingHeaders/wtf/Queue.h: Added.
      
      2007-10-19  Anders Carlsson <beidson@apple.com>
      
             	Reviewed by Sam Weinig
      
             	Most of the Javascript binding support for the Storage API
      
             	* bindings/js/JSCustomSQLCallback.cpp: Added.
             	(WebCore::JSCustomSQLCallback::JSCustomSQLCallback):
             	(WebCore::JSCustomSQLCallback::handleEvent):
             	* bindings/js/JSCustomSQLCallback.h: Added.
      		Add JSCustomSQLCallback which is an SQLCallback implementation that dispatches
      		handleEvent to a JS function or a JS object with a handleEvent function.
      
             	* bindings/js/JSCustomVersionChangeCallback.cpp: Added.
             	(WebCore::JSCustomVersionChangeCallback::JSCustomVersionChangeCallback):
             	(WebCore::JSCustomVersionChangeCallback::handleEvent):
             	* bindings/js/JSCustomVersionChangeCallback.h: Added.
      		Add JSCustomSQLCallback which is an SQLCallback implementation that dispatches
      		handleEvent to a JS function or a JS object with a handleEvent function.
      
             	* bindings/js/JSDatabaseCustom.cpp: Added.
             	(WebCore::JSDatabase::executeSql):
      		Custom implementation of executeSql that takes an array of parameters.
      
             	(WebCore::JSDatabase::changeVersion):
      		Custom implementation of changeVersion.
      
             	* bindings/js/JSSQLResultSetRowListCustom.cpp: Added.
             	(WebCore::JSSQLResultSetRowList::item):
      		Custom method that returns a JS object that corresponds to a given row in the database.
      
             	* bindings/scripts/CodeGeneratorJS.pm:
      
             	* page/DOMWindow.cpp:
             	(WebCore::DOMWindow::openDatabase):
             	* page/DOMWindow.h:
             	* page/DOMWindow.idl:
      		Add openDatabase implementation.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Oliver
      
              Added tons of utility to the FileSystem abstractions, including moving
              some stuff over from IconDatabase
      
              * platform/FileSystem.h:
      
              * platform/cf/FileSystemCF.cpp: Added.
              (WebCore::fileSystemRepresentation):
      
              * platform/mac/FileSystemMac.mm:
      
              * platform/posix/FileSystemPOSIX.cpp: Added.
              (WebCore::fileExists):
              (WebCore::deleteFile):
              (WebCore::fileSize):
              (WebCore::pathByAppendingComponent):
              (WebCore::makeAllDirectories):
      
      2007-10-19  Timothy Hatcher  <timothy@apple.com>
      
              Reviewed by Adam Roben
      
              Preliminary Web Inspector support for the Storage API
              (This patch does not include the support artwork)
      
              * page/InspectorController.cpp:
              (WebCore::InspectorDatabaseResource::InspectorDatabaseResource):
              (WebCore::InspectorDatabaseResource::setScriptObject):
              (WebCore::databaseTableNames): Return the table names for a Database object.
              (WebCore::InspectorController::setWindowVisible):
              (WebCore::InspectorController::windowScriptObjectAvailable):
              (WebCore::InspectorController::populateScriptResources):
              (WebCore::InspectorController::addDatabaseScriptResource): Add the script object for the database.
              (WebCore::InspectorController::removeDatabaseScriptResource): Remove the script object for the database.
              (WebCore::InspectorController::clearDatabaseScriptResources): Remove all the database resources.
              (WebCore::InspectorController::didCommitLoad): Call clearDatabaseScriptResources().
              (WebCore::InspectorController::didOpenDatabase): Make a new InspectorDatabaseResource and add it to m_databaseResources.
              * page/InspectorController.h:
              * page/inspector/Database.js: Added.
              * page/inspector/DatabasePanel.js: Added.
              * page/inspector/ResourceCategory.js: Make resource categories assume less about the resource.
              * page/inspector/inspector.css: Add styles for the database panel.
              * page/inspector/inspector.html: Include DatabasePanel.js
              * page/inspector/inspector.js: Support for adding and removing Database resources.
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Tim Hatcher
      
              Added support for Chrome prompts required by the Storage API
      
              * page/Chrome.cpp:
              (WebCore::Chrome::runDatabaseSizeLimitPrompt):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Contributions and Review by Anders
      
              Various SQLite tweaks in preparation for the storage API
      
              * loader/icon/SQLDatabase.cpp:
              (WebCore::SQLDatabase::~SQLDatabase):
              (WebCore::SQLDatabase::authorizerFunction): Static callback from sqlite for authorizer functions
              (WebCore::SQLDatabase::setAuthorizer):
              (WebCore::SQLDatabase::lock):
              (WebCore::SQLDatabase::unlock):
              * loader/icon/SQLDatabase.h:
      
              * loader/icon/SQLStatement.cpp:
              (WebCore::SQLStatement::prepare): Switch to prepare16_v2
              (WebCore::SQLStatement::bindDouble): Added
              (WebCore::SQLStatement::bindValue): Bind a wrapped SQLValue object (described later)
              (WebCore::SQLStatement::bindParameterCount): Accessor to the sqlite3 API for validating statements
              * loader/icon/SQLStatement.h:
              (WebCore::SQLStatement::isPrepared):
      
              * platform/sql/SQLAuthorizer.cpp: Added.  Fully virtual interface to implement your own SQLite authorizer
              * platform/sql/SQLAuthorizer.h: Added.
              (WebCore::SQLAuthorizer::~SQLAuthorizer):
              (WebCore::SQLAuthorizer::createTable):
              (WebCore::SQLAuthorizer::createTempTable):
              (WebCore::SQLAuthorizer::dropTable):
              (WebCore::SQLAuthorizer::dropTempTable):
              (WebCore::SQLAuthorizer::allowAlterTable):
              (WebCore::SQLAuthorizer::createIndex):
              (WebCore::SQLAuthorizer::createTempIndex):
              (WebCore::SQLAuthorizer::dropIndex):
              (WebCore::SQLAuthorizer::dropTempIndex):
              (WebCore::SQLAuthorizer::createTrigger):
              (WebCore::SQLAuthorizer::createTempTrigger):
              (WebCore::SQLAuthorizer::dropTrigger):
              (WebCore::SQLAuthorizer::dropTempTrigger):
              (WebCore::SQLAuthorizer::createView):
              (WebCore::SQLAuthorizer::createTempView):
              (WebCore::SQLAuthorizer::dropView):
              (WebCore::SQLAuthorizer::dropTempView):
              (WebCore::SQLAuthorizer::createVTable):
              (WebCore::SQLAuthorizer::dropVTable):
              (WebCore::SQLAuthorizer::allowDelete):
              (WebCore::SQLAuthorizer::allowInsert):
              (WebCore::SQLAuthorizer::allowUpdate):
              (WebCore::SQLAuthorizer::allowTransaction):
              (WebCore::SQLAuthorizer::allowSelect):
              (WebCore::SQLAuthorizer::allowRead):
              (WebCore::SQLAuthorizer::allowAttach):
              (WebCore::SQLAuthorizer::allowDetach):
              (WebCore::SQLAuthorizer::allowReindex):
              (WebCore::SQLAuthorizer::allowAnalyze):
              (WebCore::SQLAuthorizer::allowFunction):
      
              * platform/sql/SQLValue.cpp: Added.  Contains a value for a SQLite database that can be one of a few types.
                For now, just a String or a double
              (WebCore::SQLValue::SQLValue):
              (WebCore::SQLValue::string):
              (WebCore::SQLValue::number):
              * platform/sql/SQLValue.h: Added.
              (WebCore::SQLValue::):
              (WebCore::SQLValue::SQLValue):
              (WebCore::SQLValue::type):
      
      2007-10-19  Brady Eidson <beidson@apple.com>
      
              Reviewed by Maciej
      
              Changed IconDatabase over to use new FileSystem apis
      
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::open):
      
      WebKit:
      
              Reviewed by Tim Hatcher
      
              Added support for Chrome prompts required by the Storage API
              Added support API for future managing of databases from the WebKit client
              Added preference and initialization for the databases path
      
              * Misc/WebDatabaseManager.h: Added.  WebDatabaseManager is how a WebKit application can list and
                remove the current available databases
              * Misc/WebDatabaseManager.mm: Added.
              (+[WebDatabaseManager origins]):
              (+[WebDatabaseManager databasesWithOrigin:]):
              (+[WebDatabaseManager deleteAllDatabases]):
              (+[WebDatabaseManager deleteAllDatabasesWithOrigin:]):
              (+[WebDatabaseManager deleteDatabaseWithOrigin:named:]):
              (WebKitSetWebDatabasesPathIfNecessary): Setup the database path
              * Misc/WebDatabaseManagerPrivate.h: Added.
      
              * WebCoreSupport/WebChromeClient.h: Support for calling the delegate to run the prompt for
                an origin exceeding its size limit
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::runDatabaseSizeLimitPrompt):
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebUIDelegate.h:
      
              * WebView/WebView.mm:
              (-[WebView _commonInitializationWithFrameName:groupName:]): Setup the database path
              * WebView/WebViewInternal.h:
      
      WebKitSite:
      
              Reviewed by Tim Hatcher
      
              Sample database API usage
      
              * misc/DatabaseExample.html: Added.
      
      WebKit/win:
      
              Reviewed by Anders
      
              Keep windows building with new Chrome additions
      
              * WebChromeClient.cpp:
              * WebChromeClient.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26787 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5def340
    • weinig's avatar
      Fix Windows, Qt and GTK builds. · aba49b64
      weinig authored
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aba49b64
  20. 18 Oct, 2007 1 commit
  21. 17 Oct, 2007 1 commit
    • andersca's avatar
      JavaScriptCore: · 2468bda7
      andersca authored
              Reviewed by Oliver.
      
              * wtf/Platform.h:
              #define USE_PTHREADS on Mac.
      
      WebCore:
      
              Reviewed by Oliver.
      
              * WebCore.xcodeproj/project.pbxproj:
              * WebCore.vcproj/WebCore.vcproj:
              
              * config.h:
              #define USE_PTHREADS on Windows.
              
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::getOrCreateIconRecord):
              (WebCore::IconDatabase::getOrCreatePageURLRecord):
              Update for mutex changes.
              
              * platform/Threading.h:
              (WebCore::):
              (WebCore::ThreadSafeShared::ThreadSafeShared):
              (WebCore::ThreadSafeShared::ref):
              (WebCore::ThreadSafeShared::deref):
              (WebCore::ThreadSafeShared::hasOneRef):
              (WebCore::ThreadSafeShared::refCount):
              (WebCore::ThreadSafeShared::isThreadSafe):
              Add a new Shared base class that uses a mutex to manage its refcount.
              
              (WebCore::createThread):
              (WebCore::waitForThreadCompletion):
              (WebCore::detachThread):
              New functions for thread creation.
              
              (WebCore::Mutex::Mutex):
              (WebCore::Mutex::~Mutex):
              (WebCore::Mutex::lock):
              (WebCore::Mutex::tryLock):
              (WebCore::Mutex::unlock):
              Move the definitions to ThreadingPthreads.cpp
              
              (WebCore::ThreadCondition::ThreadCondition):
              (WebCore::ThreadCondition::~ThreadCondition):
              (WebCore::ThreadCondition::wait):
              (WebCore::ThreadCondition::signal):
              (WebCore::ThreadCondition::broadcast):
              Move the definitions to ThreadingPthreads.cpp
              
              * platform/pthreads: Added.
              * platform/pthreads/ThreadingPthreads.cpp: Added.
              Add pthread specific implementation of the thread creation functions, Mutex and ThreadCondition.
      
      win:
      
              Update for locking primitive changes.
      
              * WebIconDatabase.cpp:
              (WebIconDatabase::scheduleNotificationDelivery):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2468bda7
  22. 16 Oct, 2007 1 commit
    • darin's avatar
      WebCore: · d4efa444
      darin authored
              Reviewed by Adele.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=15525
                transpose (control-T) should do the last two characters on a line if at end of line
              - remove unused CommandByName class
              - move transpose command implementation here from Mac OS X WebKit
      
              * editing/Editor.h:
              * editing/Editor.cpp:
              (WebCore::execTranspose): Added.
              (WebCore::Editor::transpose): Added. This has the transpose implementation from
              WebCoreFrameBridge and WebHTMLView, translated into WebCore-style C++ and with
              a special case for the end of a paragraph.
      
              * page/Frame.h: Removed unused command() function member.
              * page/FramePrivate.h: Removed unused m_command data member.
              * page/Frame.cpp: Ditto.
      
              * page/mac/WebCoreFrameBridge.h: Removed rangeOfCharactersAroundCaret method.
              * page/mac/WebCoreFrameBridge.mm: Ditto.
      
              * WebCore.pro: Removed CommandByName.h/cpp.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * editing/CommandByName.cpp: Removed.
              * editing/CommandByName.h: Removed.
      
      WebKit:
      
              Reviewed by Adele.
      
              - moved transpose command implementation into WebCore
      
              * WebView/WebHTMLView.mm: Removed transpose: and replaced it with standard WebCore forwarding.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26683 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4efa444
  23. 15 Oct, 2007 1 commit
    • hyatt's avatar
      The CSS WG has been discussing the concept of rotation. In the latest... · 23096d55
      hyatt authored
              The CSS WG has been discussing the concept of rotation.  In the latest draft specification, two properties
              have been introduced: rotation and rotation-point.  I believe these properties should be generalized to
              allow for arbitrary transformations (e.g., translation, skew, rotate, scale).
      
              This patch adds support for the back-end parsing of two new CSS properties: transform and transform-origin.
              They are directly analogous to the properties specified by the CSS WG, except that they are designed to allow
              for arbitrary affine transforms rather than just rotation.
      
              Reviewed by Beth Dakin
      
              * WebCore.xcodeproj/project.pbxproj:
              * WebCore.vcproj/WebCore.vcproj:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::TransformParseContext:::m_list):
              (WebCore::TransformParseContext::list):
              (WebCore::TransformParseContext::failed):
              (WebCore::TransformParseContext::addValue):
              (WebCore::TransformOperationInfo::TransformOperationInfo):
              (WebCore::TransformOperationInfo::type):
              (WebCore::TransformOperationInfo::argCount):
              (WebCore::TransformOperationInfo::unit):
              (WebCore::TransformOperationInfo::unknown):
              (WebCore::TransformOperationInfo::hasCorrectArgCount):
              (WebCore::CSSParser::parseTransform):
              (WebCore::CSSParser::parseTransformOrigin):
              * css/CSSParser.h:
              * css/CSSPropertyNames.in:
              * css/CSSTransformValue.cpp: Added.
              (WebCore::CSSTransformValue::CSSTransformValue):
              (WebCore::CSSTransformValue::~CSSTransformValue):
              (WebCore::CSSTransformValue::addValue):
              (WebCore::CSSTransformValue::cssText):
              * css/CSSTransformValue.h: Added.
              (WebCore::CSSTransformValue::):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      23096d55
  24. 14 Oct, 2007 1 commit
    • zimmermann's avatar
      Reviewed by Eric. · 961374c7
      zimmermann authored
      Fix bad abstraction in ImageBuffer class.
      While the class itself is platform-aware and thus it's location in platform/graphics
      is fine, it contains the "renderSubtreeToImage" method which operates on RenderObject.
      
      As it's SVG specific I decided to move this method into SVGRenderSupport, to avoid
      implicit platform/ <-> rendering/ dependencies.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      961374c7
  25. 13 Oct, 2007 1 commit
    • oliver's avatar
      Fixing a few testcases by enabling SVG_EXPERIMENTAL on windows, and making the... · 26956a1a
      oliver authored
      Fixing a few testcases by enabling SVG_EXPERIMENTAL on windows, and making the required fixes and corrections.
      
      Reviewed by Maciej
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.vcproj/build-generated-files.sh:
              * bindings/scripts/CodeGeneratorJS.pm:
              * ksvg2/scripts/make_names.pl:
              * ksvg2/svg/SVGColor.cpp:
              (WebCore::SVGColor::colorFromRGBColorString):
              * page/DOMWindow.idl:
              * platform/graphics/svg/cg/SVGResourceFilterCg.cpp:
              * platform/win/WebCoreTextRenderer.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      26956a1a
  26. 12 Oct, 2007 3 commits
    • bdash's avatar
      2007-10-12 Mark Rowe <mrowe@apple.com> · 93e282ab
      bdash authored
              Windows, Gtk and Qt build fixes.  Add new files to projects.
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26545 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93e282ab
    • oliver's avatar
      2007-10-10 Mark Rowe <mrowe@apple.com> · 161a9f73
      oliver authored
              Windows build fix after r26109.
      
              * WebCore.vcproj/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      161a9f73
    • oliver's avatar
      2007-10-07 Sam Weinig <sam@webkit.org> · 7a6a508d
      oliver authored
              Reviewed by Darin & Nikolas.  Landed by eseidel.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14455
              Autogenerate the JS bindings for the StyleSheetList
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSStyleSheetListCustom.cpp: Added.
              (WebCore::JSStyleSheetList::canGetItemsForName):
              (WebCore::JSStyleSheetList::nameGetter):
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.h:
              * bindings/objc/DOMUtility.mm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * css/StyleSheetList.cpp:
              (WebCore::StyleSheetList::StyleSheetList):
              (WebCore::StyleSheetList::documentDestroyed):
              (WebCore::StyleSheetList::getNamedItem):
              * css/StyleSheetList.h: Add Document member variable and
              getNamedItem function to accommodate the odd javascript
              name getter functionality.
              * css/StyleSheetList.idl:
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::~Document):
              * page/DOMWindow.idl: Add StyleSheetListConstructor
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a6a508d