1. 18 May, 2009 1 commit
  2. 14 May, 2009 1 commit
  3. 05 May, 2009 1 commit
  4. 13 Oct, 2008 1 commit
  5. 23 Sep, 2008 1 commit
    • bdakin@apple.com's avatar
      WebCore: · aab5d69d
      bdakin@apple.com authored
      2008-09-23  Beth Dakin  <bdakin@apple.com>
      
              Reviewed by Sam Weinig.
      
              Fix for https://bugs.webkit.org/show_bug.cgi?id=21041 "Add Contact" 
              link at gmail does not support AXPress action
              and corresponding: <rdar://problem/6216178>
      
              I fixed this bug by making AccessibilityObject::anchorElement 
              support ARIA links.
      
              * page/AccessibilityImageMapLink.cpp:
              (WebCore::AccessibilityImageMapLink::anchorElement):
              * page/AccessibilityImageMapLink.h:
              * page/AccessibilityObject.cpp:
              (WebCore::AccessibilityObject::anchorElement):
              * page/AccessibilityObject.h:
              (WebCore::AccessibilityObject::isNativeAnchor):
              * page/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::isNativeAnchor):
              (WebCore::AccessibilityRenderObject::anchorElement):
              (WebCore::AccessibilityRenderObject::internalLinkElement):
              (WebCore::AccessibilityRenderObject::url):
              * page/AccessibilityRenderObject.h:
              * page/mac/AccessibilityObjectWrapper.mm:
              (AXLinkElementForNode):
      
      WebKitTools:
      
      2008-09-23  Beth Dakin  <bdakin@apple.com>
      
              Reviewed by Sam Weinig.
      
              This patch extends DumpRenderTree's AccessibilityController to ask 
              if the focused element supports the press action.
      
              * DumpRenderTree/AccessibilityUIElement.cpp:
              (getSupportsPressActionCallback):
              (AccessibilityUIElement::getJSClass):
              * DumpRenderTree/AccessibilityUIElement.h:
              * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
              (AccessibilityUIElement::supportsPressAction):
      
      LayoutTests:
      
      2008-09-23  Beth Dakin  <bdakin@apple.com>
      
              Reviewed by Sam Weinig.
      
              Test for https://bugs.webkit.org/show_bug.cgi?id=21041 "Add 
              Contact" link at gmail does not support AXPress action
              and corresponding: <rdar://problem/6216178>
      
              * accessibility/aria-link-supports-press-expected.txt: Added.
              * accessibility/aria-link-supports-press.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@36818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aab5d69d
  6. 14 Jul, 2008 1 commit
  7. 05 Jun, 2008 1 commit
  8. 25 May, 2008 1 commit
  9. 15 May, 2008 1 commit
    • alice.liu@apple.com's avatar
      2008-05-15 Alice Liu <alice.liu@apple.com> · cac21cab
      alice.liu@apple.com authored
              Reviewed by Beth Dakin.
      
              Fixed <rdar://problem/5882283> Implement ARIA aria-activedescendant
              Also added support for aria roles listbox and option, and aria-selected, 
              and aria-multiselectable for listboxes
      
              * dom/Element.cpp:
              (WebCore::Element::attributeChanged):
              * dom/Element.h:
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::attributeChanged):
              * html/HTMLAttributeNames.in:
              * page/AXObjectCache.cpp:
              (WebCore::AXObjectCache::handleActiveDescendantChanged):
              * page/AXObjectCache.h:
              (WebCore::AXObjectCache::accessibilityEnabled):
              (WebCore::AXObjectCache::handleActiveDescendantChanged):
              * page/AccessibilityListBox.cpp:
              (WebCore::AccessibilityListBox::selectedChildren):
              (WebCore::AccessibilityListBox::visibleChildren):
              * page/AccessibilityListBox.h:
              * page/AccessibilityListBoxOption.h:
              (WebCore::AccessibilityListBoxOption::selectedChildren):
              (WebCore::AccessibilityListBoxOption::visibleChildren):
              * page/AccessibilityObject.cpp:
              * page/AccessibilityObject.h:
              (WebCore::AccessibilityObject::isListBox):
              (WebCore::AccessibilityObject::shouldFocusActiveDescendant):
              (WebCore::AccessibilityObject::activeDescendant):
              (WebCore::AccessibilityObject::handleActiveDescendantChanged):
              * page/AccessibilityRenderObject.cpp:
              (WebCore::AccessibilityRenderObject::title):
              (WebCore::AccessibilityRenderObject::accessibilityShouldUseUniqueId):
              (WebCore::AccessibilityRenderObject::focusedUIElement):
              (WebCore::AccessibilityRenderObject::shouldFocusActiveDescendant):
              (WebCore::AccessibilityRenderObject::activeDescendant):
              (WebCore::AccessibilityRenderObject::handleActiveDescendantChanged):
              (WebCore::RoleEntry::):
              (WebCore::AccessibilityRenderObject::ariaRoleAttribute):
              (WebCore::AccessibilityRenderObject::ariaListboxSelectedChildren):
              (WebCore::AccessibilityRenderObject::selectedChildren):
              (WebCore::AccessibilityRenderObject::ariaListboxVisibleChildren):
              (WebCore::AccessibilityRenderObject::visibleChildren):
              * page/AccessibilityRenderObject.h:
              (WebCore::AccessibilityRenderObject::isDetached):
              * page/mac/AccessibilityObjectWrapper.mm:
              (-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@33510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cac21cab
  10. 06 May, 2008 1 commit
  11. 02 May, 2008 1 commit
  12. 23 Feb, 2008 1 commit
    • darin@apple.com's avatar
      JavaScriptCore: · e25e04e3
      darin@apple.com authored
              Reviewed by Anders.
      
              - http://bugs.webkit.org/show_bug.cgi?id=17067
                eliminate attributes parameter from JSObject::put for speed/clarity
      
              * API/JSCallbackObject.h: Removed attribute arguments.
              * API/JSCallbackObjectFunctions.h:
              (KJS::JSCallbackObject<Base>::put): Ditto.
              * API/JSObjectRef.cpp:
              (JSObjectSetProperty): Use initializeVariable or putDirect when necessary
              to set attribute values.
              * JavaScriptCore.exp: Updated.
              * bindings/objc/objc_runtime.h: Removed attribute arguments.
              * bindings/objc/objc_runtime.mm:
              (ObjcFallbackObjectImp::put): Ditto.
              * bindings/runtime_array.cpp:
              (RuntimeArray::put): Ditto.
              * bindings/runtime_array.h: Ditto.
              * bindings/runtime_object.cpp:
              (RuntimeObjectImp::put): Ditto.
              * bindings/runtime_object.h: Ditto. Also removed canPut which was only
              called from one place in WebCore that can use hasProperty instead.
      
              * kjs/Activation.h: Removed attribute argument from put and added the new
              initializeVariable function that's used to put variables in variable objects.
              Also made isActivationObject a const member.
      
              * kjs/JSGlobalObject.cpp:
              (KJS::JSGlobalObject::put): Removed attribute argument.
              (KJS::JSGlobalObject::initializeVariable): Added. Used to give variables
              their initial values, which can include the read-only property.
              (KJS::JSGlobalObject::reset): Removed obsolete comments about flags.
              Removed Internal flag, which is no longer needed.
              * kjs/JSGlobalObject.h: More of the same.
      
              * kjs/JSVariableObject.h: Added pure virtual initializeVariable function.
              (KJS::JSVariableObject::symbolTablePut): Removed checkReadOnly flag; we always
              check read-only.
              (KJS::JSVariableObject::symbolTableInitializeVariable): Added.
      
              * kjs/array_instance.cpp:
              (KJS::ArrayInstance::put): Removed attribute argument.
              * kjs/array_instance.h: Ditto.
      
              * kjs/function.cpp:
              (KJS::FunctionImp::put): Ditto.
              (KJS::Arguments::put): Ditto.
              (KJS::ActivationImp::put): Ditto.
              (KJS::ActivationImp::initializeVariable): Added.
              * kjs/function.h: Removed attribute arguments.
      
              * kjs/function_object.cpp:
              (KJS::FunctionObjectImp::construct): Removed Internal flag.
      
              * kjs/lookup.h:
              (KJS::lookupPut): Removed attributes argument. Also changed to use putDirect
              instead of calling JSObject::put.
              (KJS::cacheGlobalObject): Ditto.
      
              * kjs/nodes.cpp:
              (KJS::ConstDeclNode::handleSlowCase): Call initializeVariable to initialize
              the constant.
              (KJS::ConstDeclNode::evaluateSingle): Ditto.
              (KJS::TryNode::execute): Use putDirect to set up the new object.
              (KJS::FunctionBodyNode::processDeclarations): Removed Internal.
              (KJS::ProgramNode::processDeclarations): Ditto.
              (KJS::EvalNode::processDeclarations): Call initializeVariable to initialize
              the variables and functions.
              (KJS::FuncDeclNode::makeFunction): Removed Internal.
              (KJS::FuncExprNode::evaluate): Ditto.
      
              * kjs/object.cpp: Removed canPut, which was only being used in one code path,
              not the normal high speed one.
              (KJS::JSObject::put): Removed attribute argument. Moved the logic from
              canPut here, in the one code ath that was still using it.
              * kjs/object.h: Removed Internal attribute, ad canPut function. Removed the
              attributes argument to the put function. Made isActivationObject const.
      
              * kjs/regexp_object.cpp:
              (KJS::RegExpImp::put): Removed attributes argument.
              (KJS::RegExpImp::putValueProperty): Ditto.
              (KJS::RegExpObjectImp::put): Ditto.
              (KJS::RegExpObjectImp::putValueProperty): Ditto.
              * kjs/regexp_object.h: Ditto.
      
              * kjs/string_object.cpp:
              (KJS::StringInstance::put): Removed attributes argument.
              * kjs/string_object.h: Ditto.
      
      WebCore:
      
              Reviewed by Anders.
      
              - http://bugs.webkit.org/show_bug.cgi?id=17067
                eliminate attributes parameter from JSObject::put for speed/clarity
      
              * bindings/js/JSCSSStyleDeclarationCustom.cpp:
              (WebCore::JSCSSStyleDeclaration::customPut): Remove attributes argument.
      
              * bindings/js/JSCanvasPixelArrayCustom.cpp:
              (WebCore::JSCanvasPixelArray::indexGetter): Use early exit idiom.
              (WebCore::JSCanvasPixelArray::indexSetter): Moved length check into the
              CanvasPixelArray object, for consistency with the getter. Removed attributes
              argument.
      
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::customPut): Removed special case for variable
              initialization, which is not needed since that does use put any more.
              Removed attributes argument.
      
              * bindings/js/JSEventTargetBase.h:
              (WebCore::JSEventTargetBase::putValueProperty): Removed attributes argument.
              (WebCore::JSEventTargetBase::put): Ditto.
              (WebCore::JSEventTargetPrototype::self): Removed Internal flag.
              * bindings/js/JSEventTargetNode.cpp:
              (WebCore::JSEventTargetNode::put): Removed attributes argument.
              (WebCore::JSEventTargetNode::putValueProperty): Ditto.
              * bindings/js/JSEventTargetNode.h: Ditto.
              * bindings/js/JSHTMLAppletElementCustom.cpp:
              (WebCore::JSHTMLAppletElement::customPut): Ditto.
              * bindings/js/JSHTMLEmbedElementCustom.cpp:
              (WebCore::JSHTMLEmbedElement::customPut): Ditto.
              * bindings/js/JSHTMLInputElementBase.cpp:
              (WebCore::JSHTMLInputElementBase::put): Ditto.
              (WebCore::JSHTMLInputElementBase::putValueProperty): Ditto.
              * bindings/js/JSHTMLInputElementBase.h: Ditto.
              * bindings/js/JSHTMLObjectElementCustom.cpp:
              (WebCore::JSHTMLObjectElement::customPut): Ditto.
              * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
              (WebCore::JSHTMLOptionsCollection::indexSetter): Ditto.
              * bindings/js/JSHTMLSelectElementCustom.cpp:
              (WebCore::JSHTMLSelectElement::indexSetter): Ditto.
              * bindings/js/JSHistoryCustom.cpp:
              (WebCore::JSHistory::customPut): Ditto.
              * bindings/js/JSLocation.cpp:
              (WebCore::JSLocation::put): Ditto.
              * bindings/js/JSLocation.h: Ditto.
              * bindings/js/JSXMLHttpRequest.cpp:
              (WebCore::JSXMLHttpRequest::put): Ditto.
              (WebCore::JSXMLHttpRequest::putValueProperty): Ditto.
              * bindings/js/JSXMLHttpRequest.h: Ditto.
      
              * bindings/js/kjs_dom.cpp:
              (WebCore::getRuntimeObject): Changed return type to JSObject*.
              * bindings/js/kjs_dom.h: Ditto.
      
              * bindings/js/kjs_events.cpp:
              (WebCore::JSClipboard::put): Removed attributes argument.
              (WebCore::JSClipboard::putValueProperty): Ditto.
              * bindings/js/kjs_events.h: Ditto.
      
              * bindings/js/kjs_html.cpp:
              (WebCore::runtimeObjectGetter): Updated for change to getRuntimeObject to
              return a JSObject. Used early exit idiom.
              (WebCore::runtimeObjectPropertyGetter): Ditto.
              (WebCore::runtimeObjectCustomGetOwnPropertySlot): Ditto.
              (WebCore::runtimeObjectCustomPut): Use hasProperty to check for properties
              that we should put with the property syntax instead of canPut.
              (WebCore::runtimeObjectImplementsCall): Ditto.
              (WebCore::runtimeObjectCallAsFunction): Ditto.
              * bindings/js/kjs_html.h: Removed attributes argument to runtimeObjectCustomPut.
      
              * bindings/js/kjs_window.cpp:
              (KJS::Window::put): Removed attributes argument.
              * bindings/js/kjs_window.h: Ditto.
      
              * bindings/scripts/CodeGeneratorJS.pm: Removed attributes argument from put,
              putValueProperty, customPut, and indexSetter.
      
              * html/CanvasPixelArray.h:
              (WebCore::CanvasPixelArray::set): Added index checking here, as in the get
              function. Before, the checking was done in the JavaScript bindings for set.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e25e04e3
  13. 22 Feb, 2008 1 commit
    • oliver@apple.com's avatar
      Bug 17486: Support HTML5 Canvas.getImageData API · ae996a97
      oliver@apple.com authored
      Support Canvas.getImageData and Canvas.createImageData
      
      Reviewed by Sam W.
      
      This patch adds support for all the pixel reading portions
      of the HTML5 Canvas spec.  There are two new types ImageData
      and CanvasPixelArray which are used to provide the HTML5
      ImageData object, and the required semantics for assignment
      to the ImageData data array.
      
      We only implement the CG version of ImageBuffer::getImageData,
      but the logic is null safe, so this will not introduce any
      crashes into other platforms, unfortunately it will result in
      JS Object detection "lying" on non-CG platforms.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae996a97
  14. 04 Feb, 2008 2 commits
    • mrowe@apple.com's avatar
      Gtk build fix. Use std::numeric_limits in place of ULLONG_MAX as some Linux... · 940bf797
      mrowe@apple.com authored
      Gtk build fix.  Use std::numeric_limits in place of ULLONG_MAX as some Linux machines do not have ULLONG_MAX.
      
      OriginUsageRecord::unknownDiskUsage becomes a static function to avoid the global initialiser which would otherwise be generated.
      
      Reviewed by Tim Hatcher.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29988 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      940bf797
    • beidson@apple.com's avatar
      Reviewed by Darin · d314198d
      beidson@apple.com authored
              Fix for <rdar://problem/5628468> - Quotas need to be implemented per-origin, and not per-database
      
              To accomplish this, we need to track the sizes of all databases in an origin to constantly keep an up to date
              count of the origin's total disk usage.  I've introduced the OriginQuotaManager and OriginUsageRecord classes
              to accomplish this.
      
              Whenever a transaction is known to mutate the size of a database (tracked by the DatabaseAuthorizer), it marks
              that database as unknown in the OriginQuotaManager.  When a transaction later comes along to ask the 
              OriginQuotaManager the usage for that origin, it stat's all of the unknown databases in the origin and returns
              the result.
      
              Since the OriginQuotaManager is interesting from both the main thread and a DatabaseThread, all accessors it 
              provides require it to be locked first.  ASSERTs help guarantee this is always the case.
      
              Layout test will involve adding functionality to DRT on multiple platforms and will be coming up shortly
      
              * WebCore.xcodeproj/project.pbxproj:
      
              * platform/SecurityOrigin.h: Changed to be ThreadSafeShared instead of RefCounted
      
              * storage/Database.cpp:
              (WebCore::Database::databaseSize): Return the current filesize of this database on disk
              (WebCore::Database::maximumSize): Added - calculates maximum size of this database based on quota and usage
              * storage/Database.h: Add databaseSize() accessor, and get rid of unused declared methods that *were* going 
                to be the solution for this bug.
      
              * storage/DatabaseTracker.cpp:
              (WebCore::DatabaseTracker::originQuotaManager): Accessor to the OriginQuotaManager which is lazily created
              (WebCore::DatabaseTracker::canEstablishDatabase): Fetch the usage for this database slightly earlier, which
                will ensure that the OriginQuotaManager is primed to track this origin
              (WebCore::DatabaseTracker::fullPathForDatabase): Ditto
              (WebCore::DatabaseTracker::populateOrigins): Create the OriginQuotaManager here.
              (WebCore::DatabaseTracker::usageForOrigin): Use the OriginQuotaManager instead of looping through each database
                in the origin
              (WebCore::DatabaseTracker::deleteOrigin): Remove this origin from the OriginQuotaManager as it is no longer 
                interesting
              (WebCore::DatabaseTracker::deleteDatabase): Remove this database from the OriginQuotaManager as it is no longer
                interesting
              * storage/DatabaseTracker.h:
      
              * storage/OriginQuotaManager.cpp: Added.
              (WebCore::OriginQuotaManager::OriginQuotaManager):
              (WebCore::OriginQuotaManager::lock):
              (WebCore::OriginQuotaManager::unlock):
              (WebCore::OriginQuotaManager::trackOrigin): Add an origin to be tracked.  Useful for when the very first database 
                in a new origin is still in the process of being created
              (WebCore::OriginQuotaManager::tracksOrigin):
              (WebCore::OriginQuotaManager::addDatabase):
              (WebCore::OriginQuotaManager::removeDatabase):
              (WebCore::OriginQuotaManager::removeOrigin): Removes all records in a certain origin from being tracked
              (WebCore::OriginQuotaManager::markDatabase): Mark a specific database as having an unknown size - called when the
                DatabaseAuthorizer in a SQLTransaction knows the file size might change.
              (WebCore::OriginQuotaManager::diskUsage): Returns the disk usage for the given origin
              * storage/OriginQuotaManager.h: Added.
      
              * storage/OriginUsageRecord.cpp: Added.
              (WebCore::OriginUsageRecord::OriginUsageRecord):
              (WebCore::OriginUsageRecord::addDatabase): Adds an entry for the database in this origin's record
              (WebCore::OriginUsageRecord::removeDatabase): Removes that entry
              (WebCore::OriginUsageRecord::markDatabase): Marks the database as of unknown size
              (WebCore::OriginUsageRecord::diskUsage): Returns the cached disk usage value, or recalculates it if any databases
                are marked
              * storage/OriginUsageRecord.h: Added.
      
              * storage/SQLTransaction.cpp:
              (WebCore::SQLTransaction::openTransactionAndPreflight): Use Database::maximumSize() instead of attributing the
                entire quota to each database.
              (WebCore::SQLTransaction::runStatements): Use Database::maximumSize() instead of attributing the entire quota
                to each database.
              (WebCore::SQLTransaction::runCurrentStatement): Mark this databases's size as unknown in the 
                OriginQuotaManager if this statement will change the size of the database
              * storage/SQLTransaction.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d314198d
  15. 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
  16. 13 Nov, 2007 1 commit
    • 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
  17. 31 Oct, 2007 1 commit
    • andersca's avatar
      Reviewed by Darin. · 5a5889b6
      andersca authored
              Add new SQLError implementation.
              
              * DerivedSources.make:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * storage/SQLError.h: Added.
              (WebCore::SQLError::SQLError):
              (WebCore::SQLError::code):
              (WebCore::SQLError::message):
              * storage/SQLError.idl: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5a5889b6
  18. 19 Oct, 2007 1 commit
    • 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
  19. 14 Sep, 2007 1 commit
    • oliver's avatar
      Need to use _wstat instead of _stat to stat files on windows · 600e81c0
      oliver authored
      _stat doesn't handle multibyte character sequences, unless (afaict)
      the current codepage supports them, and then it uses the current
      codepage.  In order to correctly handle multibyte characters in a
      file path we have to use _wstat.
      
      In deference to the fact that the CF implementation may be used on
      platforms other than windows i've added fileSize to the FileSystem
      helper functions, and added a windows impl.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      600e81c0
  20. 14 Aug, 2007 1 commit
    • beidson's avatar
      WebCore: · 9b723725
      beidson authored
              Reviewed by Darin, John, Maciej, Oliver, and Tim
      
              <rdar://problem/5394708> - Crash on launch with corrupt icon database
      
              The main part of the fix is to not disable SQLite's default level of protection - to leave the sync options at their normal,
              mostly safe levels.  
      
              But in case lightning strikes at the exact right moment and someone ends up with a corrupt database, add some support code to
              detect that condition and recover from it.  
      
              This is mainly accomplished by exposing the "PRAGMA integrity_check;" facilities of sqlite through IconDatabase SPI as well as
              running that integrity check if a journal file is detected at launch (a strong indication that the last quit was not clean).
              There's also a method exposed to allow clients to tell the icon database "I suspect something bad happened, please check integrity"
      
              * loader/icon/IconDatabase.cpp:
              (WebCore::IconDatabase::checkIntegrityBeforeOpening): Allow clients to suggest an integrity check
              (WebCore::IconDatabase::open): Add a check to see if the journal file for the database exists.  If it does, run the integrity
                check.  Also run the check if a client has suggested it to be necessary.
                If the integrity-check fails, we sadly have to destroy the database and recreate from scratch.
                Also - quite importantly - do not adjust the default sync preferences for the SQLDatabase.  They were an optimization that 
                might have been valid at one time but no longer affects any benchmarks we care about.
              (WebCore::IconDatabase::checkIntegrity): Perform the SQLite integrity_check pragma
              * loader/icon/IconDatabase.h:
      
              * loader/icon/IconDatabaseNone.cpp:
              (WebCore::IconDatabase::checkIntegrity): Keep IconDatabaseNone users building
              (WebCore::IconDatabase::checkIntegrityBeforeOpening): Ditto
      
              * loader/icon/SQLDatabase.cpp:
              (WebCore::SQLDatabase::open): Make a copy of the path string so we don't accidentally mutate anyone else's string on ::close()
      
              * platform/FileSystem.h: Added. Begin a long-needed platform file system abstraction
              * platform/mac/FileSystemMac.mm: Added.
              (WebCore::fileExists): Check if a file exists
              (WebCore::deleteFile): Delete a file
      
              * platform/gdk/TemporaryLinkStubs.cpp:
              (WebCore::fileExists):
              (WebCore::deleteFile):
              * platform/qt/TemporaryLinkStubs.cpp:
              (WebCore::fileExists):
              (WebCore::deleteFile):
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::fileExists):
              (WebCore::deleteFile):
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
      
      WebKit:
      
              Reviewed by Darin, John, Maciej, Oliver, and Tim
      
              <rdar://problem/5394708> - Crash on launch with corrupt icon database
      
              Expose some new SPI to help recover from this case should it happen again
      
              * Misc/WebIconDatabase.mm:
              (-[WebIconDatabase init]): Use the new _databaseDirectory to determine where to open the database on disk
              (+[WebIconDatabase _checkIntegrityBeforeOpening]): Tell the icon database to check integrity when it opens
              (-[WebIconDatabase _databaseDirectory]): Moved the database-directory-determining logic here as it's now used in two places
              * Misc/WebIconDatabasePrivate.h: Added _checkIntegrityBeforeOpening SPI for clients to give hints about when the
                integrity check should run
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9b723725
  21. 04 Jul, 2007 1 commit
    • aliceli1's avatar
      Reviewed by Adam. · 7f9f8407
      aliceli1 authored
              Fixed <rdar://problem/5225119> support smart pasting on Windows
      
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
                  Added new files
              * editing/SmartReplace.cpp: Added.
              (WebCore::isCharacterSmartReplaceExempt):
                  Added non-CF implementation placeholder
              * editing/SmartReplace.h: Added.
              * editing/SmartReplaceCF.cpp: Added.
              (WebCore::getSmartSet):
              (WebCore::isCharacterSmartReplaceExempt):
                  Added new implementation
      
              * bridge/win/FrameWin.cpp:
              * page/Frame.h:
              * page/mac/FrameMac.mm:
                  Removed old declaration and implementation
      
              * editing/ReplaceSelectionCommand.cpp:
              (WebCore::ReplaceSelectionCommand::doApply):
                  Changed to call the new function instead of old
      
              * page/mac/WebCoreFrameBridge.h:
              * page/mac/WebCoreFrameBridge.mm:
                  Removed old declaration and implementation
              (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
                  Changed to call the new function instead of old
      
              * platform/win/PasteboardWin.cpp:
              (WebCore::Pasteboard::Pasteboard):
                  Register new clipboard format
              (WebCore::Pasteboard::writeSelection):
                  Set data for smartpaste format on clipboard
              (WebCore::Pasteboard::canSmartReplace):
                  Added non-stub implementation
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f9f8407
  22. 12 Apr, 2007 1 commit
    • sullivan's avatar
      WebCore: · db1947fe
      sullivan authored
              Reviewed by Anders
      
              - WebCore part of fix for:
              <rdar://problem/5128697> REGRESSION: At least one PDF context menu item isn't appearing on Leopard
      
              * platform/ContextMenuItem.h:
              (WebCore::):
              add two PDF-related context menu items to enum to keep it in sync with WebKit
      
              * platform/ContextMenu.cpp:
              (WebCore::ContextMenu::checkOrEnableIfNeeded):
              add the new context menu items to the do-nothing case of a big switch statement
      
      WebKit:
      
              Reviewed by Anders
      
              - WebKit part of fix for:
              <rdar://problem/5128697> REGRESSION: At least one PDF context menu item isn't appearing on Leopard
      
              * Misc/WebNSArrayExtras.h: Added.
              * Misc/WebNSArrayExtras.m: Added.
              (-[NSMutableArray _webkit_removeUselessMenuItemSeparators]):
              New file, includes this method to strip leading, trailing, and duplicate separators from arrays
              of NSMenuItems (copied from Safari)
      
              * WebView/WebUIDelegatePrivate.h:
              new MenuItemTag enum values for new PDFKit context menu items
      
              * WebKit.xcodeproj/project.pbxproj:
              updated for new files
      
              * WebView/WebPDFView.mm:
              (-[WebPDFView _anyPDFTagsFoundInMenu:]):
              check for new PDFKit context menu items
              (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
              associate new PDFKit context menu item selectors with the new tags; skip certain selectors that
              correspond to menu items that WebKit already includes; remove useless menu item separators when
              we're done, since we might have removed arbitrarily-placed menu items
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db1947fe
  23. 20 Feb, 2007 1 commit
    • thatcher's avatar
      WebCore: · a1d52ddf
      thatcher authored
              Reviewed by Darin.
      
              <rdar://problem/4900579> WebKit -finalize methods are not thread-safe; design change needed
      
              Call WebCoreObjCFinalizeOnMainThread from the initialize method of all the classes
              that have a finalizer that needs called on the main thread.
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/WebScriptObject.mm:
              (+[WebScriptObject initialize]):
              * bridge/mac/WebCoreScriptDebugger.mm:
              (+[WebCoreScriptDebugger initialize]):
              * platform/mac/SharedBufferMac.mm:
              (+[SharedBufferData initialize]):
              * platform/mac/WebCoreObjCExtras.c: Added.
              (WebCoreObjCFinalizeOnMainThread):
              * platform/mac/WebCoreObjCExtras.h: Added.
      
      WebKit:
      
              Reviewed by Darin.
      
              <rdar://problem/4900579> WebKit -finalize methods are not thread-safe; design change needed
      
              Call WebCoreObjCFinalizeOnMainThread from the initialize method of all the classes
              that have a finalizer that needs called on the main thread. Assert in finalize that we
              are on the main thread.
      
              * Carbon/CarbonWindowAdapter.m:
              (+[CarbonWindowAdapter initialize]):
              (-[CarbonWindowAdapter finalize]):
              * History/WebBackForwardList.mm:
              (+[WebBackForwardList initialize]):
              (-[WebBackForwardList finalize]):
              * History/WebHistoryItem.mm:
              (+[WebHistoryItem initialize]):
              * Misc/WebElementDictionary.mm:
              (+[WebElementDictionary initialize]):
              (-[WebElementDictionary finalize]):
              * Plugins/WebBaseNetscapePluginStream.m:
              (+[WebBaseNetscapePluginStream initialize]):
              (-[WebBaseNetscapePluginStream finalize]):
              * Plugins/WebBaseNetscapePluginView.mm:
              (+[WebBaseNetscapePluginView initialize]):
              (-[WebBaseNetscapePluginView finalize]):
              * Plugins/WebBasePluginPackage.m:
              (+[WebBasePluginPackage initialize]):
              (-[WebBasePluginPackage finalize]):
              * Plugins/WebNetscapePluginStream.mm:
              (-[WebNetscapePluginStream finalize]):
              * WebCoreSupport/WebEditorClient.mm:
              (+[WebEditCommand initialize]):
              (-[WebEditCommand finalize]):
              * WebCoreSupport/WebFrameBridge.mm:
              (+[WebFrameBridge initialize]):
              (-[WebFrameBridge finalize]):
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (+[WebFramePolicyListener initialize]):
              (-[WebFramePolicyListener finalize]):
              * WebView/WebHTMLView.mm:
              (+[WebHTMLView initialize]):
              (-[WebHTMLView finalize]):
              * WebView/WebView.mm:
              (+[WebViewPrivate initialize]):
              (-[WebViewPrivate finalize]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a1d52ddf
  24. 11 Oct, 2006 1 commit
    • darin's avatar
      Reviewed by Adele. · 842ea0c3
      darin authored
              - preparations for making more code C++
      
              * WebKitPrefix.h: Fixed ifdef so that C++ files get all the precompiled stuff
              that non-C++ files get.
      
              * Misc/WebKitLogging.h:
              * Misc/WebKitSystemBits.h:
              * Misc/WebLocalizableStrings.h:
              * WebCoreSupport/WebSystemInterface.h:
              Added extern "C".
      
              * Misc/WebNSViewExtras.h:
              * WebView/WebDataSource.m: (addTypesFromClass):
              * WebView/WebFrameView.m: (addTypesFromClass):
              Eliminated use of the identifier "class".
      
              * WebView/WebView.m: (-[WebView _goToItem:withLoadType:]): Added a type cast.
      
              * Plugins/WebBaseNetscapePluginView.m: Added lots of type casts.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17000 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      842ea0c3
  25. 20 Apr, 2006 1 commit
    • darin's avatar
      WebCore: · 331b6de1
      darin authored
              Reviewed by Adele.
      
              - WebCore part of http://bugzilla.opendarwin.org/show_bug.cgi?id=8505
                eliminate WebCoreGraphics bridge, demonstrate new SystemInterface technique
      
              * platform/mac/WebCoreGraphicsBridge.h: Removed.
              * platform/mac/WebCoreGraphicsBridge.m: Removed.
              * platform/mac/WebCoreSystemInterface.h: Added.
              * platform/mac/WebCoreSystemInterface.mm: Added.
      
              * WebCore.exp: Add new SystemInterface globals, remove WebCoreGraphicsBridge.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
              Sorted files.
      
              * bridge/mac/FrameMac.mm: Removed unneeded include of WebCoreGraphicsBridge.h.
      
              * platform/mac/ClipboardMac.mm: (WebCore::ClipboardMac::setDragImage):
              Moved code from WebGraphicsBridge here, using WebCoreSystemInterface so we can
              call wkSetDragImage.
      
              * platform/mac/GraphicsContextMac.mm: (WebCore::GraphicsContext::drawFocusRing):
              Moved code from WebGraphicsBridge here, using WebCoreSystemInterface so we can
              call wkDrawFocusRing.
      
              * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::paintTextField):
              Call wkDrawBezeledTextFieldCell from WebCoreSystemInterface instead of using
              WebGraphicsBridge to do the same thing.
      
      WebKit:
      
              Reviewed by Adele.
      
              - WebKit part of http://bugzilla.opendarwin.org/show_bug.cgi?id=8505
                eliminate WebCoreGraphics bridge, demonstrate new SystemInterface technique
      
              * WebCoreSupport/WebGraphicsBridge.h: Removed.
              * WebCoreSupport/WebGraphicsBridge.m: Removed.
              * WebCoreSupport/WebSystemInterface.h: Added.
              * WebCoreSupport/WebSystemInterface.m: Added.
      
              * WebKit.xcodeproj/project.pbxproj: Updated for removed and added files.
      
              * WebCoreSupport/WebImageData.m: Removed unneeded include of WebGraphicsBridge.h.
              * WebCoreSupport/WebImageRenderer.m: Ditto.
              * WebCoreSupport/WebTextRenderer.m: Ditto.
      
              * WebView/WebFrameView.m: (-[WebFrameView initWithFrame:]): Guarded all the one-time
              initialization inside a boolean, just in case some things take a little time. Added
              a call to InitWebCoreSystemInterface to the one-time initialization here. Later, we
              will need to add it in some other places if we call code that requires the use of
              WebCoreSystemInterface functions from anywhere that can be invoked before creations
              of the first WebFrameView, but for now there is no need.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13989 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      331b6de1
  26. 05 Jun, 2005 2 commits
  27. 26 Feb, 2004 1 commit
    • kocienda's avatar
      WebCore: · 03a86c79
      kocienda authored
              Reviewed by Chris
      
              * WebCore.pbproj/project.pbxproj:
              * khtml/xml/dom2_rangeimpl.h: Now includes createInstance glue function as do the other
              khtml DOM objects that we reflect into ObjC.
              * kwq/DOM-compat.h: Added. Compatibility declarations for DOM SPI. Note that this file
              is copied into WebKit by the build system as needed.
              * kwq/DOM.h: Added. New home for DOM SPI. Note that this file is copied into WebKit by the build
              system as needed.
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::recordFormValue): Updated usage to new DOM SPI.
              * kwq/WebCoreBridge.h: Updated usage to new DOM SPI.
              * kwq/WebCoreBridge.mm: Updated usage to new DOM SPI. Needed to add DOM range impl include since
              includes jiggered around and this needed header was no longer included indirectly.
              (-[WebCoreBridge elementForView:]): Ditto.
              (inputElementFromDOMElement): Ditto.
              (formElementFromDOMElement): Ditto.
              (-[WebCoreBridge elementWithName:inForm:]): Ditto.
              (-[WebCoreBridge elementDoesAutoComplete:]): Ditto.
              (-[WebCoreBridge elementIsPassword:]): Ditto.
              (-[WebCoreBridge currentForm]): Ditto.
              (-[WebCoreBridge controlsInForm:]): Ditto.
              (-[WebCoreBridge searchForLabels:beforeElement:]): Ditto.
              (-[WebCoreBridge matchLabels:againstElement:]): Ditto.
              (-[WebCoreBridge elementAtPoint:]): Ditto.
              (-[WebCoreBridge DOMDocument]): Ditto.
              (-[WebCoreBridge setSelectionFrom:startOffset:to:endOffset:]): Ditto.
              (-[WebCoreBridge attributedStringFrom:startOffset:to:endOffset:]): Ditto.
              (-[WebCoreBridge selectionStart]): Ditto.
              (-[WebCoreBridge selectionEnd]): Ditto.
              * kwq/WebCoreDOM.h: New home for all private declarations needed for reflecting DOM into ObjC.
              * kwq/WebCoreDOM.mm: Added. New home for all implementations needed for reflecting DOM into ObjC.
              * kwq/WebCoreDOMDocument.mm: Removed. All ObjC DOM implementation now in WebCoreDOM.mm.
              * kwq/WebCoreDOMNode.mm: Removed. All ObjC DOM implementation now in WebCoreDOM.mm.
              * kwq/WebCoreDOMPrivate.h: Removed.
              * kwq/WebDOMDocument.h: Removed.
              * kwq/WebDOMElement.h: Removed.
              * kwq/WebDOMNode.h: Removed.
      
      WebKit:
      
              Reviewed by Chris
      
              Updated usage of DOM SPI to use new names and conventions.
      
              Unless indicated otherwise, the changes were to update protocol names for, which
              changed from using a "WebDOM" prefix to a "DOM" prefix, and changing now need
              only include the DOM.h header from WebKit to get everything.
      
              * DOM.subproj/DOM-compat.h: Added. This header contains some compatibility declarations
              to work with older clients of our DOM SPI. Though this file is checked into WebKit,
              it really lives and should be updated in WebCore. It is copied into WebKit by the build
              system as needed.
              * DOM.subproj/DOM.h: Added. This file includes the new "guts" of the DOM SPI. As above,
              this file is checked into WebKit, it really lives and should be updated in WebCore.
              It is copied into WebKit by the build system as needed.
              * DOM.subproj/WebDOMDocument.h: Removed declarations. Now just includes DOM.h and DOM-compat.h
              * DOM.subproj/WebDOMDocument.m: Removed.
              * DOM.subproj/WebDOMElement.h: Removed declarations. Now just includes DOM.h and DOM-compat.h
              * DOM.subproj/WebDOMElement.m: Removed.
              * DOM.subproj/WebDOMNode.h: Removed declarations. Now just includes DOM.h and DOM-compat.h
              * DOM.subproj/WebDOMNode.m: Removed.
              * WebCoreSupport.subproj/WebBridge.m:
              (-[WebBridge loadURL:referrer:reload:onLoadEvent:target:triggeringEvent:form:formValues:])
              (-[WebBridge postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:])
              * WebKit.pbproj/project.pbxproj:
              * WebView.subproj/WebDefaultContextMenuDelegate.m:
              * WebView.subproj/WebFormDelegate.h:
              * WebView.subproj/WebFormDelegate.m:
              (-[WebFormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:])
              * WebView.subproj/WebFrame.h: Unrelated change. Removed -undoManager accessor from public header. Moved to private header.
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:])
              (-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:])
              (-[WebFrame undoManager]): Moved -undoManager accessor to private category implementation.
              (-[WebFormState initWithForm:values:sourceFrame:])
              (-[WebFormState form])
              (-[WebFrame childFrames])
              * WebView.subproj/WebFramePrivate.h: Moved in -undoManager accessor.
              * WebView.subproj/WebHTMLRepresentation.h:
              * WebView.subproj/WebHTMLRepresentation.m:
              (-[WebHTMLRepresentation DOMDocument])
              (-[WebHTMLRepresentation setSelectionFrom:startOffset:to:endOffset:])
              (-[WebHTMLRepresentation attributedStringFrom:startOffset:to:endOffset:])
              (-[WebHTMLRepresentation elementWithName:inForm:])
              (-[WebHTMLRepresentation elementForView:])
              (-[WebHTMLRepresentation elementDoesAutoComplete:])
              (-[WebHTMLRepresentation elementIsPassword:])
              (-[WebHTMLRepresentation formForElement:])
              (-[WebHTMLRepresentation controlsInForm:])
              (-[WebHTMLRepresentation searchForLabels:beforeElement:])
              (-[WebHTMLRepresentation matchLabels:againstElement:])
              * WebView.subproj/WebHTMLView.m:
              * copy-webcore-files-to-webkit: Added. Copies DOM.h and DOM-compat.h from WebCore when they
              have been updated there.
      
      WebBrowser:
      
              Reviewed by Chris
      
              Updated usage of DOM SPI to use new names and conventions.
      
              In each case, protocol names for DOM objects were changed from using a
              "WebDOM" prefix to a "DOM" prefix, and clients now need only include the
              DOM.h header from WebKit to get everything.
      
              * BrowserWebController.m:
              (-[FormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:])
              * Debug/SnippetController.m:
              (lastNode)
              (-[SnippetController loadComplete])
              * FormCompletionController.h:
              * FormCompletionController.m:
              (+[FormCompletionController loginInfoForForm:inFrame:])
              (+[FormCompletionController _frame:sourceFrame:willSubmitLoginForm:withValues:formInfo:submissionListener:])
              (+[FormCompletionController _frame:sourceFrame:willSubmitRegularForm:withValues:])
              (+[FormCompletionController frame:sourceFrame:willSubmitForm:withValues:submissionListener:])
              (+[FormCompletionController currentFormInFrame:])
              (+[FormCompletionController currentFrameAndForm:inWebView:])
              (+[FormCompletionController autoFillInWebView:])
              (+[FormCompletionController autoFillPasswordInFrame:])
              (-[FormCompletionController initWithSourceField:frame:])
              (-[FormCompletionController maxStringLength])
              (+[AutoFillController autoFillerForFrame:form:create:])
              (+[AutoFillController abMatchInFrame:form:fieldName:])
              (+[AutoFillController recordABMatch:inFrame:form:fieldName:])
              (+[AutoFillController clearAutoFilledView:inFrame:form:])
              (-[AutoFillController _fieldNameForAutoFillOfView:rep:])
              (-[FormToABBinder abPointerForFieldName:view:rep:foundByPageScan:])
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6117 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03a86c79
  28. 02 May, 2003 1 commit
    • mjs's avatar
      WebFoundation: · 832ecbd3
      mjs authored
              Reviewed by Richard.
      
      	- reformatted method prototypes to match AppKit style
      
              * AuthenticationManager.subproj/NSHTTPAuthenticator.h:
              * AuthenticationManager.subproj/NSURLConnectionAuthenticationChallenge.h:
              * AuthenticationManager.subproj/NSURLDownloadAuthenticationChallenge.h:
              * AuthenticationManager.subproj/NSURLProtectionSpace.h:
              * AuthenticationManager.subproj/WebCredentialStorage.h:
              * AuthenticationManager.subproj/WebKeychainCredential.h:
              * CacheLoader.subproj/NSURLCache.h:
              * CacheLoader.subproj/NSURLCachePrivate.h:
              * CacheLoader.subproj/NSURLConnection.h:
              * CacheLoader.subproj/NSURLConnectionPrivate.h:
              * CacheLoader.subproj/NSURLConnectionQueue.h:
              * CacheLoader.subproj/NSURLProtocol.h:
              * CacheLoader.subproj/NSURLProtocolClient.h:
              * CacheLoader.subproj/NSURLProtocolPrivate.h:
              * CacheLoader.subproj/NSURLRequest.h:
              * CacheLoader.subproj/NSURLRequestPrivate.h:
              * CacheLoader.subproj/NSURLResponse.h:
              * CacheLoader.subproj/NSURLResponsePrivate.h:
              * CacheLoader.subproj/WebCache.h:
              * CacheLoader.subproj/WebCachePrivate.h:
              * CacheLoader.subproj/WebDiskCache.h:
              * CacheLoader.subproj/WebNetworkSettings.h:
              * CacheLoader.subproj/WebSynchronousDelegate.h:
              * CookieManager.subproj/NSHTTPCookiePrivate.h:
              * CookieManager.subproj/NSHTTPCookieStorage.h:
              * CookieManager.subproj/NSHTTPCookieStoragePrivate.h:
              * CookieManager.subproj/WebCookieStorage.h:
              * CookieManager.subproj/WebCookieStorageServer.h:
              * Database.subproj/WebDatabase.h:
              * Database.subproj/WebFileDatabase.h:
              * Misc.subproj/WebBinaryHeap.h:
              * Misc.subproj/WebFileTypeMappings.h:
              * Misc.subproj/WebHostNameAddressInfo.h:
              * Misc.subproj/WebKeyValuePair.h:
              * Misc.subproj/WebMonitor.h:
              * Misc.subproj/WebMultipartForm.h:
              * Misc.subproj/WebNSArrayExtras.h:
              * Misc.subproj/WebNSCalendarDateExtras.h:
              * Misc.subproj/WebNSDataExtras.h:
              * Misc.subproj/WebNSDictionaryExtras.h:
              * Misc.subproj/WebNSErrorExtras.h:
              * Misc.subproj/WebNSObjectExtras.h:
              * Misc.subproj/WebNSStringExtras.h:
              * Misc.subproj/WebNSThreadExtras.h:
              * Misc.subproj/WebNSValueExtensions.h:
              * Misc.subproj/WebOrderable.h:
              * Misc.subproj/WebQueue.h:
              * Misc.subproj/WebReadWriteLock.h:
              * Misc.subproj/WebRecursiveReadWriteLock.h:
              * Misc.subproj/WebSpinLock.h:
              * ProtocolHandlers.subproj/WebCFNetworkHTTPProtocol.h:
              * ProtocolHandlers.subproj/WebFTPProtocol.h:
              * ProtocolHandlers.subproj/WebHTTPProtocol.h:
      
      WebCore:
      
              Reviewed by Richard.
      
      	- reformatted method prototypes to match AppKit style
      
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreDOMPrivate.h:
              * kwq/WebCoreHistory.h:
              * kwq/WebCoreResourceLoader.h:
              * kwq/WebCoreTextRenderer.h:
              * kwq/WebDOMDocument.h:
              * kwq/WebDOMElement.h:
              * kwq/WebDOMNode.h:
      
      WebKit:
      
              Reviewed by Richard.
      
      	- reformatted method prototypes to match AppKit style
      	- remove "Public header file" from headers that are not public
      	- fix header doc @method names to match actual method names
      
              * Carbon.subproj/CarbonWindowAdapter.h:
              * Carbon.subproj/HIViewAdapter.h:
              * DOM.subproj/WebDOMDocument.h:
              * DOM.subproj/WebDOMNode.h:
              * History.subproj/WebBackForwardList.h:
              * History.subproj/WebHistoryItemPrivate.h:
              * History.subproj/WebHistoryPrivate.h:
              * History.subproj/WebURLsWithTitles.h:
              * Misc.subproj/WebIconDatabase.h:
              * Misc.subproj/WebIconLoader.h:
              * Misc.subproj/WebKitNSStringExtras.h:
              * Misc.subproj/WebUnicode.h:
              * Panels.subproj/WebPanelAuthenticationHandler.h:
              * Plugins.subproj/WebBasePluginPackage.h:
              * Plugins.subproj/WebNetscapePluginStream.h:
              * Plugins.subproj/WebNullPluginView.h:
              * Plugins.subproj/WebPluginViewFactory.h:
              * WebCoreSupport.subproj/WebGlyphBuffer.h:
              * WebCoreSupport.subproj/WebTextRenderer.h:
              * WebCoreSupport.subproj/WebTextRendererFactory.h:
              * WebView.subproj/WebBaseResourceHandleDelegate.h:
              * WebView.subproj/WebControllerSets.h:
              * WebView.subproj/WebDataProtocol.h:
              * WebView.subproj/WebDataSource.h:
              * WebView.subproj/WebDataSourcePrivate.h:
              * WebView.subproj/WebDebugDOMNode.h:
              * WebView.subproj/WebDocument.h:
              * WebView.subproj/WebFrame.h:
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebFrameView.h:
              * WebView.subproj/WebHTMLRepresentation.h:
              * WebView.subproj/WebHTMLView.h:
              * WebView.subproj/WebMainResourceClient.h:
              * WebView.subproj/WebPolicyDelegate.h:
              * WebView.subproj/WebPolicyDelegatePrivate.h:
              * WebView.subproj/WebPreferencesPrivate.h:
              * WebView.subproj/WebRenderNode.h:
              * WebView.subproj/WebResourceLoadDelegate.h:
              * WebView.subproj/WebUIDelegate.h:
              * WebView.subproj/WebView.h:
              * WebView.subproj/WebViewPrivate.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      832ecbd3
  29. 08 Oct, 2002 1 commit
    • rjw's avatar
      Fixes to the DOM API. · ff90f422
      rjw authored
              * DOM.subproj/WebDOMDocument.h:
              * DOM.subproj/WebDOMDocument.m:
              * DOM.subproj/WebDOMNode.h:
              * DOM.subproj/WebDOMNode.m:
              * DOM.subproj/WebDOMNamedNodeMap.h: Removed.
              * DOM.subproj/WebDOMNamedNodeMap.m: Removed.
              * WebKit.pbproj/project.pbxproj:
      
      
              First cut at ObjC stubs for DOM API.  Finished the
              main classes.  Need to finish
              WebDOMElement, WebDOMElement, WebDOMElement,
              WebDOMCDATASection, WebDOMText, WebDOMComment,
              WebDOMCharacterData and
      
              * WebCore.pbproj/project.pbxproj:
              * khtml/dom/dom_doc.h:
              * khtml/dom/dom_element.h:
              * khtml/dom/dom_node.h:
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.h:
              * kwq/WebCoreDOM.h: Added.
              * kwq/WebCoreDOMDocument.mm: Added.
              (DOM::DOMImplementationImpl::createInstance):
              (DOM::DocumentTypeImpl::createInstance):
              (DOM::DocumentImpl::createInstance):
              (domStringToNSString):
              (NSStringToDOMString):
              (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
              (-[WebCoreDOMDocumentType initWithImpl:DOM::]):
              (-[WebCoreDOMDocumentType dealloc]):
              (-[WebCoreDOMDocumentType DOM::]):
              (-[WebCoreDOMDocumentType name]):
              (-[WebCoreDOMDocumentType entities]):
              (-[WebCoreDOMDocumentType notations]):
              (-[WebCoreDOMDocumentType publicId]):
              (-[WebCoreDOMDocumentType systemId]):
              (-[WebCoreDOMDocumentType internalSubset]):
              (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
              (-[WebCoreDOMImplementation initWithImpl:DOM::]):
              (-[WebCoreDOMImplementation dealloc]):
              (-[WebCoreDOMImplementation DOM::]):
              (-[WebCoreDOMImplementation hasFeature::]):
              (-[WebCoreDOMImplementation createDocument:::]):
              (+[WebCoreDOMDocument documentWithImpl:DOM::]):
              (-[WebCoreDOMDocument initWithImpl:DOM::]):
              (-[WebCoreDOMDocument dealloc]):
              (-[WebCoreDOMDocument DOM::]):
              (-[WebCoreDOMDocument doctype]):
              (-[WebCoreDOMDocument implementation]):
              (-[WebCoreDOMDocument documentElement]):
              (-[WebCoreDOMDocument createElement:]):
              (-[WebCoreDOMDocument createElementNS::]):
              (-[WebCoreDOMDocument createDocumentFragment]):
              (-[WebCoreDOMDocument createTextNode:]):
              (-[WebCoreDOMDocument createComment:]):
              (-[WebCoreDOMDocument createCDATASection:]):
              (-[WebCoreDOMDocument createProcessingInstruction::]):
              (-[WebCoreDOMDocument createAttribute:]):
              (-[WebCoreDOMDocument createAttributeNS::]):
              (-[WebCoreDOMDocument createEntityReference:]):
              (-[WebCoreDOMDocument getElementById:]):
              (-[WebCoreDOMDocument getElementsByTagName:]):
              (-[WebCoreDOMDocument getElementsByTagNameNS::]):
              (-[WebCoreDOMDocument importNode::]):
              * kwq/WebCoreDOMNode.mm: Added.
              (DOM::NamedNodeMapImpl::createInstance):
              (DOM::AttrImpl::createInstance):
              (+[WebCoreDOMNode nodeWithImpl:DOM::]):
              (-[WebCoreDOMNode initWithImpl:DOM::]):
              (-[WebCoreDOMNode DOM::]):
              (-[WebCoreDOMNode dealloc]):
              (-[WebCoreDOMNode nodeName]):
              (-[WebCoreDOMNode nodeValue]):
              (-[WebCoreDOMNode setNodeValue:]):
              (-[WebCoreDOMNode nodeType]):
              (-[WebCoreDOMNode parentNode]):
              (-[WebCoreDOMNode firstChild]):
              (-[WebCoreDOMNode lastChild]):
              (-[WebCoreDOMNode previousSibling]):
              (-[WebCoreDOMNode nextSibling]):
              (-[WebCoreDOMNode ownerDocument]):
              (-[WebCoreDOMNode insert:before:]):
              (-[WebCoreDOMNode replace:child:]):
              (-[WebCoreDOMNode removeChild:]):
              (-[WebCoreDOMNode hasChildNodes]):
              (-[WebCoreDOMNode cloneNode:]):
              (-[WebCoreDOMNode normalize]):
              (-[WebCoreDOMNode isSupported::]):
              (-[WebCoreDOMNode namespaceURI]):
              (-[WebCoreDOMNode prefix]):
              (-[WebCoreDOMNode setPrefix:]):
              (-[WebCoreDOMNode localName]):
              (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
              (-[WebCoreDOMNodeList initWithImpl:DOM::]):
              (-[WebCoreDOMNodeList DOM::]):
              (-[WebCoreDOMNodeList dealloc]):
              (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
              (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
              (-[WebCoreDOMNamedNodeMap DOM::]):
              (-[WebCoreDOMNamedNodeMap dealloc]):
              (-[WebCoreDOMNamedNodeMap length]):
              (-[WebCoreDOMNamedNodeMap getNamedItem:]):
              (-[WebCoreDOMNamedNodeMap setNamedItem:]):
              (+[WebCoreDOMAttr attrWithImpl:DOM::]):
              (-[WebCoreDOMAttr initWithImpl:DOM::]):
              (-[WebCoreDOMAttr DOM::]):
              (-[WebCoreDOMAttr dealloc]):
              (-[WebCoreDOMAttr name]):
              (-[WebCoreDOMAttr specified]):
              (-[WebCoreDOMAttr value]):
              (-[WebCoreDOMAttr ownerElement]):
              (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
              (-[WebCoreDOMCDATASection initWithImpl:DOM::]):
              (-[WebCoreDOMCDATASection DOM::]):
              (-[WebCoreDOMCDATASection dealloc]):
              * kwq/WebCoreDOMPrivate.h: Added.
              * kwq/WebDOMDocument.h: Added.
              * kwq/WebDOMElement.h: Added.
              * kwq/WebDOMNode.h: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff90f422
  30. 04 Oct, 2002 1 commit
    • rjw's avatar
      Stubs for DOM level 2 core API. · e804476d
      rjw authored
              * DOM.subproj/WebDOMDocument.h: Added.
              * DOM.subproj/WebDOMDocument.m: Added.
              * DOM.subproj/WebDOMElement.h: Added.
              * DOM.subproj/WebDOMElement.m: Added.
              * DOM.subproj/WebDOMNamedNodeMap.h: Added.
              * DOM.subproj/WebDOMNamedNodeMap.m: Added.
              * DOM.subproj/WebDOMNode.h: Added.
              * DOM.subproj/WebDOMNode.m: Added.
              * WebKit.pbproj/project.pbxproj:
      
              * WebView.subproj/WebHTMLViewPrivate.m: tweak.
      
              Removed import of header that was removed earlier.
      
              * BookmarksController.m:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e804476d