1. 14 Jun, 2007 6 commits
  2. 13 Jun, 2007 8 commits
    • staikos's avatar
      Compile without trying to link ourself. · c62cabb5
      staikos authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23516 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c62cabb5
    • darin's avatar
      Reviewed by Kevin Decker. · a5dc917c
      darin authored
              - fix <rdar://problem/5264923> Safari frequently "stalls" beneath
                +[NSFont fontWithName:size:] while loading a web page (searching on disk for the font)
      
              * platform/mac/WebFontCache.mm:
              (+[WebFontCache internalFontWithFamily:traits:size:]): Renamed from fontWithFamily.
              Took out the auto-activation code.
              (+[WebFontCache fontWithFamily:traits:size:]): Added. Calls internalFontWithFamily,
              then calls NSFont to trigger activation if that returned nil, then calls
              internalFontWithFamily again.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23514 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5dc917c
    • andersca's avatar
      JavaScriptCore: · 89c5d677
      andersca authored
              Reviewed by Geoff.
      
              Make sure that bindings instances get correct root objects.
              
              * JavaScriptCore.exp:
              * bindings/NP_jsobject.cpp:
              (listFromVariantArgs):
              (_NPN_InvokeDefault):
              (_NPN_Invoke):
              (_NPN_SetProperty):
              * bindings/c/c_instance.cpp:
              (KJS::Bindings::CInstance::invokeMethod):
              (KJS::Bindings::CInstance::invokeDefaultMethod):
              * bindings/c/c_runtime.cpp:
              (KJS::Bindings::CField::valueFromInstance):
              * bindings/c/c_utility.cpp:
              (KJS::Bindings::convertNPVariantToValue):
              * bindings/c/c_utility.h:
              * bindings/objc/objc_instance.mm:
              (ObjcInstance::invokeMethod):
              (ObjcInstance::invokeDefaultMethod):
              (ObjcInstance::getValueOfUndefinedField):
              * bindings/objc/objc_runtime.mm:
              (ObjcField::valueFromInstance):
              (ObjcArray::valueAt):
              * bindings/objc/objc_utility.h:
              * bindings/objc/objc_utility.mm:
              (KJS::Bindings::convertObjcValueToValue):
              * bindings/runtime.h:
      
      WebCore:
      
              Reviewed by Geoff.
      
              Pass the root object to methods that end up creating new ObjcInstance objects.
              
              * bindings/objc/WebScriptObject.mm:
              (listFromNSArray):
              (-[WebScriptObject callWebScriptMethod:withArguments:]):
              (-[WebScriptObject evaluateWebScript:]):
              (-[WebScriptObject setValue:forKey:]):
              (-[WebScriptObject valueForKey:]):
              (-[WebScriptObject removeWebScriptKey:]):
              (-[WebScriptObject setWebScriptValueAtIndex:value:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23512 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89c5d677
    • andersca's avatar
      Reviewed by Darin. · 8b2606e4
      andersca authored
              <rdar://problem/5267992>
              Make sure an alert doesn't allow loading to continue inside a script.
              
              Make sure to defer all loads where it's possible for a second main loop to be running.
              
              * page/Chrome.cpp:
              (WebCore::Chrome::runModal):
              (WebCore::Chrome::runBeforeUnloadConfirmPanel):
              (WebCore::Chrome::runJavaScriptAlert):
              (WebCore::Chrome::runJavaScriptConfirm):
              (WebCore::Chrome::runJavaScriptPrompt):
              (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
              (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):
              
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::ResourceHandle::setDefersLoading):
              Implement this.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23510 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b2606e4
    • bdash's avatar
      2007-06-13 Alp Toker <alp.toker@collabora.co.uk> · 3cb4d7c6
      bdash authored
              Reviewed by Rob.
      
              http://bugs.webkit.org/show_bug.cgi?id=14060
              Cairo SVG support
      
              * WebCore.pro: Add new files to the build.
              * platform/graphics/svg/SVGPaintServerPattern.h:
              * platform/graphics/svg/SVGPaintServerSolid.h:
              * platform/graphics/svg/cairo: Added.
              * platform/graphics/svg/cairo/RenderPathCairo.cpp: Added.
              (WebCore::RenderPath::strokeContains):
              (WebCore::RenderPath::strokeBBox):
              * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Added.
              (WebCore::SVGPaintServer::draw):
              (WebCore::SVGPaintServer::teardown):
              (WebCore::SVGPaintServer::renderPath):
              * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Added.
              (WebCore::SVGPaintServerGradient::setup):
              * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Added.
              (WebCore::SVGPaintServerPattern::setup):
              * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Added.
              (WebCore::SVGPaintServerSolid::setup):
              * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Added.
              (WebCore::SVGResourceClipper::applyClip):
              * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Added.
              (WebCore::SVGResourceMasker::applyMask):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3cb4d7c6
    • hausmann's avatar
      Added a make install target that installs the Qt port and renamed · 4eb8676c
      hausmann authored
      WebKitQt to QtWebKit
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4eb8676c
    • aroben's avatar
      Fix one more BITMAPINFO/BITMAPINFOHEADER typo. · d1848e4b
      aroben authored
              Rubberstamped by Oliver.
      
              * platform/win/DragImageWin.cpp:
              (WebCore::allocImage):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1848e4b
    • oliver's avatar
      WebCore: · 355136e1
      oliver authored
              Reviewed by Darin.
      
              Use correct size for BITMAPINFOHEADER -- whoops.
      
              * platform/win/CursorWin.cpp:
              (WebCore::Cursor::Cursor):
              * platform/win/PasteboardWin.cpp:
              (WebCore::Pasteboard::writeImage):
      
      WebKit:
      
              Reviewed by Darin.
      
              Use correct size for BITMAPINFOHEADER -- whoops.
      
              * win/WebIconDatabase.cpp:
              (createDIB):
              (WebIconDatabase::getOrCreateDefaultIconBitmap):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      355136e1
  3. 12 Jun, 2007 3 commits
    • weinig's avatar
      Reviewed by Oliver. · 950051b7
      weinig authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14109
              Cleanup JSEvent and JSClipboard in preperation for autogeneration
      
              * bindings/js/kjs_events.cpp:
              (KJS::DOMEvent::DOMEvent):
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMEvent::put):
              (KJS::DOMEvent::putValueProperty):
              (KJS::DOMEventPrototypeFunction::callAsFunction):
              (KJS::toJS):
              (KJS::toEvent):
              (KJS::):
              (KJS::JSClipboard::JSClipboard):
              (KJS::JSClipboard::~JSClipboard):
              (KJS::JSClipboard::getOwnPropertySlot):
              (KJS::JSClipboard::getValueProperty):
              (KJS::JSClipboard::put):
              (KJS::JSClipboard::putValueProperty):
              (KJS::JSClipboardPrototypeFunction::callAsFunction):
              (KJS::toClipboard):
              * bindings/js/kjs_events.h:
              (KJS::DOMEvent::):
              (KJS::DOMEvent::impl):
              (KJS::JSClipboard::impl):
              * dom/ClipboardEvent.h:
              * dom/Event.h:
              (WebCore::Event::srcElement):
              (WebCore::Event::returnValue):
              (WebCore::Event::clipboardData):
              (WebCore::Event::dataTransfer):
              (WebCore::Event::clipboard):
              * dom/MouseEvent.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23471 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      950051b7
    • lars's avatar
      Fix compilation, and remove dependency on Qt · ad80162d
      lars authored
              private header.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23469 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad80162d
    • lars's avatar
      Parts of the patch done by Zack. · 89dcd9e2
      lars authored
              Fix up some parts in the implementation of QWebNetworkInterface
              so it can be used by plugins.
              Change the plugin API so we can actually get all the information
              required by the JS bridge from them as well.
              Implement the parts required for the JS bridge
              to know about the plugins.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23468 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89dcd9e2
  4. 10 Jun, 2007 1 commit
  5. 09 Jun, 2007 1 commit
    • weinig's avatar
      LayoutTests: · 0d78994a
      weinig authored
              Reviewed by Oliver.
      
              Update test for http://bugs.webkit.org/show_bug.cgi?id=14044
              Autogenerate the JS bindings for HTMLCollection.
      
              * tables/mozilla/bugs/bug53690-1-expected.txt: Now throws Undefined Error instead of Null Error
      
      WebCore:
      
              Reviewed by Oliver.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14044
              Autogenerate the JS bindings for HTMLCollection
      
              - also moves JSHTMLAllCollection into it's own file.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSHTMLAllCollection.h: Added.
              (WebCore::JSHTMLAllCollection::JSHTMLAllCollection):
              (WebCore::JSHTMLAllCollection::toBoolean):
              (WebCore::JSHTMLAllCollection::masqueradeAsUndefined):
              * bindings/js/JSHTMLCollectionCustom.cpp: Added.
              (WebCore::getNamedItems):
              (WebCore::JSHTMLCollection::callAsFunction):
              (WebCore::JSHTMLCollection::implementsCall):
              (WebCore::JSHTMLCollection::canGetItemsForName):
              (WebCore::JSHTMLCollection::nameGetter):
              (WebCore::JSHTMLCollection::item):
              (WebCore::JSHTMLCollection::namedItem):
              (WebCore::toJS):
              * bindings/js/JSHTMLDocumentCustom.cpp:
              (WebCore::JSHTMLDocument::nameGetter):
              (WebCore::JSHTMLDocument::all):
              * bindings/js/JSXMLHttpRequest.cpp:
              * bindings/js/kjs_html.cpp:
              (WebCore::ImageConstructorImp::ImageConstructorImp):
              (WebCore::ImageConstructorImp::construct):
              * bindings/js/kjs_html.h:
              (WebCore::ImageConstructorImp::implementsConstruct):
              * bindings/js/kjs_window.cpp:
              (KJS::Window::namedItemGetter):
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::tags):
              * html/HTMLCollection.h:
              (WebCore::HTMLCollection::collectionType):
              * html/HTMLCollection.idl:
              * html/HTMLOptionsCollection.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d78994a
  6. 08 Jun, 2007 4 commits
    • justing's avatar
      LayoutTests: · 71306a68
      justing authored
              Reviewed by John.
              
              <rdar://problem/5232159> REGRESSION: Cannot select text in RSS view
      
              * editing/selection/5232159-expected.checksum: Added.
              * editing/selection/5232159-expected.png: Added.
              * editing/selection/5232159-expected.txt: Added.
              * editing/selection/5232159.html: Added.
      
      WebCore:
      
              Reviewed by John.
              
              <rdar://problem/5232159> REGRESSION: Cannot select text in RSS view
      
              The selection is updated both on mouse movement and
              when the autoscroll timer fires.  The autoscroll
              code wasn't converting mouse coordinates to layer
              coordinates correctly, and was then using those
              coordinates to create a bad selection.
      
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::autoscroll): Use convertToLayerCoordinates.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71306a68
    • andersca's avatar
      Reviewed by Geoff. · 40057f5f
      andersca authored
              Store the root object in a hash set, keyed by the plugin view. This is in preparation for 
              letting plugins invalidate the root object upon destruction
      
              * page/Frame.cpp:
              (WebCore::Frame::createRootObject):
              (WebCore::Frame::cleanupScriptObjects):
              * page/FramePrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40057f5f
    • lars's avatar
      Forgot to checkin this part in my last submit. · 19194d17
      lars authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      19194d17
    • justing's avatar
      WebCore: · 8837400f
      justing authored
              Reviewed by Tristan.
              
              <rdar://problem/5250997> A crash occurs when selecting Undo Typing for a page that has been closed in tab
      
              * WebCore.exp: Added clearUndoRedoOperations.
              * page/Page.cpp:
              (WebCore::Page::clearUndoRedoOperations): Added.
              * page/Page.h:
      
      WebKit:
      
              Reviewed by Tristan.
              
              <rdar://problem/5250997> A crash occurs when selecting Undo Typing for a page that has been closed in tab
      
              * WebView/WebView.mm:
              (-[WebView _clearUndoRedoOperations]): Added.
              * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8837400f
  7. 07 Jun, 2007 6 commits
    • hyatt's avatar
      Fix crash. Null check layer. Bug 13984. · 42ffef16
      hyatt authored
              Reviewed by andersca
      
              * WebCore.xcodeproj/project.pbxproj:
              * page/FrameView.cpp:
              (WebCore::FrameView::windowClipRectForLayer):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42ffef16
    • oliver's avatar
      WebCore: · ac7f5658
      oliver authored
              Reviewed by Justin.
      
              Remove incorrect assertions.
              
              These assertions were made on the assumption that 
              TSM would always call with a range that was contained 
              by an editable region.
              
              TSM may call -[WebHTMLView characterIndexForPoint:] on a mouse
              event that is otherwise unrelated to editing, which may
              be outside the current editing region, triggering these 
              assertions.
      
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge convertToNSRange:]):
      
      WebKit:
      
              Reviewed by Justin.
              
              Add checks to make sure we don't try to create, use
              or return invalid ranges to TSM when it calls us despite
              not currently being in an editable region.
      
              * WebView/WebHTMLView.mm:
              (isTextInput):
              (-[WebHTMLView textStorage]):
              (-[WebHTMLView firstRectForCharacterRange:]):
              (-[WebHTMLView selectedRange]):
              (-[WebHTMLView attributedSubstringFromRange:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac7f5658
    • justing's avatar
      LayoutTests: · 47d836d7
      justing authored
              Reviewed by John.
      
              <rdar://problem/5237074> REGRESSION: editing/unsupported-content/table-delete-003 is failing (13931)
              
              Corrected the description and added a FIXME:
              * editing/unsupported-content/table-delete-003-expected.checksum:
              * editing/unsupported-content/table-delete-003-expected.png:
              * editing/unsupported-content/table-delete-003-expected.txt:
              * editing/unsupported-content/table-delete-003.html:
      
      WebCore:
      
              Reviewed by John.
              
              <rdar://problem/5237074> REGRESSION: editing/unsupported-content/table-delete-003 is failing (13931)
              
              * editing/DeleteSelectionCommand.cpp:
              (WebCore::DeleteSelectionCommand::initializeStartEnd):
              We wouldn't expand the selection to include a special element 
              at the start of the selection unless the end of the selection 
              was at the end of a special element. Avoid a special 
              element at the start as long as it's fully selected. Ditto for 
              the end.
              * editing/htmlediting.cpp:
              (WebCore::positionBeforeContainingSpecialElement):
              (WebCore::positionAfterContainingSpecialElement):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47d836d7
    • weinig's avatar
      LayoutTests: · c0e8e2e6
      weinig authored
              Reviewed by Anders.
      
              Update test for http://bugs.webkit.org/show_bug.cgi?id=14028
              Finish autogenerating the JS bindings for Node
      
              * fast/dom/prototype-chain-expected.txt: DOMNodePrototype is no longer in the prototype chain.
      
      WebCore:
      
              Reviewed by Anders.
      
              Patch for  http://bugs.webkit.org/show_bug.cgi?id=14028
              Finish autogenerating the JS bindings for Node
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              (WebCore::createJSHTMLWrapper):
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/JSHTMLOptionElementConstructor.cpp:
              * bindings/js/JSNamedNodeMapCustom.cpp:
              * bindings/js/JSNodeCustom.cpp:
              (WebCore::JSNode::insertBefore):
              (WebCore::JSNode::replaceChild):
              (WebCore::JSNode::removeChild):
              (WebCore::JSNode::appendChild):
              (WebCore::JSNode::mark):
              (WebCore::toJS):
              * bindings/js/JSSVGElementWrapperFactory.cpp:
              (WebCore::createJSSVGWrapper):
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSXSLTProcessor.cpp:
              (KJS::XSLTProcessorPrototypeFunction::callAsFunction):
              * bindings/js/kjs_binding.cpp:
              (KJS::ScriptInterpreter::getDOMNodeForDocument):
              (KJS::ScriptInterpreter::putDOMNodeForDocument):
              (KJS::ScriptInterpreter::markDOMNodesForDocument):
              (KJS::ScriptInterpreter::updateDOMNodeDocument):
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_dom.cpp:
              (WebCore::toAttr):
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_domnode.h: Removed.
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/Node.h:
              (WebCore::Node::parentElement):
              * dom/Node.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0e8e2e6
    • weinig's avatar
      Another Gdk and Qt build fix. · bf8546f6
      weinig authored
              * WebCore.pro:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf8546f6
    • weinig's avatar
      Gdk and Qt build fix. · 1ce48569
      weinig authored
              * WebCore.pro:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ce48569
  8. 06 Jun, 2007 10 commits
    • weinig's avatar
      LayoutTests: · 3843e438
      weinig authored
              Reviewed by Hyatt.
      
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=13973
              Autogenerate most of the rest of kjs_dom.h/cpp
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/prototype-chain-expected.txt:
      
      WebCore:
      
              Reviewed by Hyatt.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13973
              Autogenerate most of the rest of kjs_dom.h/cpp
      
              - Autogenerate JSNodeList and JSNamedNodeMap.
              - Move JSEventTargetNode, JSNamedNodesCollection, and JSDOMExceptionConstructor 
                into their own files.
              - Rename KJS::DOMEventTargeNode to WebCore::JSEventTargetNode to adhere
                to convention and allow easier code generation.
              - Add JS constructors for JSNodeList and JSNamedNodeMap.
              - Moved more toJS methods into the correct (corresponding) header files.
              - Cleaned up code in order for changes to work.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSDOMExceptionConstructor.cpp: Added.
              (WebCore::):
              (WebCore::JSDOMExceptionConstructor::JSDOMExceptionConstructor):
              (WebCore::JSDOMExceptionConstructor::getOwnPropertySlot):
              (WebCore::JSDOMExceptionConstructor::getValueProperty):
              (WebCore::getDOMExceptionConstructor):
              * bindings/js/JSDOMExceptionConstructor.h: Added.
              (WebCore::JSDOMExceptionConstructor::classInfo):
              * bindings/js/JSDOMWindowCustom.cpp: Added.
              (WebCore::JSDOMWindow::customGetOwnPropertySlot):
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::mark):
              (WebCore::toJS):
              * bindings/js/JSEventTargetNode.cpp: Added.
              (WebCore::JSEventTargetNode::JSEventTargetNode):
              (WebCore::JSEventTargetNode::getOwnPropertySlot):
              (WebCore::JSEventTargetNode::getValueProperty):
              (WebCore::JSEventTargetNode::put):
              (WebCore::JSEventTargetNode::putValueProperty):
              (WebCore::JSEventTargetNode::setListener):
              (WebCore::JSEventTargetNode::getListener):
              (WebCore::JSEventTargetNode::pushEventHandlerScope):
              (WebCore::JSEventTargetNodePrototypeFunction::callAsFunction):
              (WebCore::toEventTargetNode):
              * bindings/js/JSEventTargetNode.h: Added.
              (WebCore::JSEventTargetNode::):
              * bindings/js/JSHTMLElementCustom.cpp:
              * bindings/js/JSHTMLFormElementCustom.cpp:
              (WebCore::JSHTMLFormElement::nameGetter):
              * bindings/js/JSHTMLOptionElementConstructor.cpp:
              * bindings/js/JSNamedNodeMapCustom.cpp: Added.
              (WebCore::JSNamedNodeMap::canGetItemsForName):
              (WebCore::JSNamedNodeMap::nameGetter):
              * bindings/js/JSNamedNodesCollection.cpp: Added.
              (WebCore::):
              (WebCore::JSNamedNodesCollection::JSNamedNodesCollection):
              (WebCore::JSNamedNodesCollection::lengthGetter):
              (WebCore::JSNamedNodesCollection::indexGetter):
              (WebCore::JSNamedNodesCollection::getOwnPropertySlot):
              * bindings/js/JSNamedNodesCollection.h: Added.
              (WebCore::JSNamedNodesCollection::classInfo):
              * bindings/js/JSNodeCustom.cpp: Added.
              (WebCore::toJS):
              * bindings/js/JSNodeListCustom.cpp: Added.
              (WebCore::JSNodeList::callAsFunction):
              (WebCore::JSNodeList::implementsCall):
              (WebCore::JSNodeList::canGetItemsForName):
              (WebCore::JSNodeList::nameGetter):
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_domnode.h:
              * bindings/js/kjs_events.cpp:
              (KJS::JSLazyEventListener::parseCode):
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLCollection::getNamedItems):
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_window.cpp:
              (WebCore::toJS):
              * bindings/js/kjs_window.h:
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bridge/mac/WebCoreAXObject.mm:
              * dom/Attr.idl:
              * dom/CharacterData.idl:
              * dom/Document.idl:
              * dom/DocumentFragment.idl:
              * dom/DocumentType.idl:
              * dom/Element.idl:
              * dom/NamedNodeMap.idl:
              * dom/Node.idl:
              * dom/NodeList.idl:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3843e438
    • justing's avatar
      LayoutTests: · c0ada391
      justing authored
              Reviewed by Oliver.
      
              * editing/pasteboard/5245519-expected.checksum: Added.
              * editing/pasteboard/5245519-expected.png: Added.
              * editing/pasteboard/5245519-expected.txt: Added.
              * editing/pasteboard/5245519.html: Added.
      
      WebCore:
      
              Reviewed by Oliver.
              
              <rdar://problem/5245519> CrashTracer: [USER] 457 crashes in Mail at WebCore::CSSComputedStyleDeclaration::copyInheritableProperties()
              
              If the user pastes something into a region that ends up being
              invisible, or if the pasted content contains style spans 
              that are render-less, we'll crash when we try to remove
              redundant styles from style spans.
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::copyInheritableProperties):
              Add null checks.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0ada391
    • justing's avatar
      LayoutTests: · 735d3b21
      justing authored
              Reviewed by Harrison.
      
              <rdar://problem/4889598> Problems with moveDown: and moveUp: in Notes with ToDos
      
              * editing/selection/4889598-expected.checksum: Added.
              * editing/selection/4889598-expected.png: Added.
              * editing/selection/4889598-expected.txt: Added.
              * editing/selection/4889598.html: Added.
      
      WebCore:
      
              Reviewed by Harrison.
      
              <rdar://problem/4889598> Problems with moveDown: and moveUp: in Notes with ToDos
              
              The caret would disappear when moving from content above or below
              a ToDo if that ToDo doesn't have any content in it with the same
              x position as the caret. That's because closestLeafChildForXPos
              would return non-editable leaves, and which turn into non-editable
              VisiblePositions, which are invisible.
      
              * editing/visible_units.cpp:
              (WebCore::previousLinePosition): Ask closestLeafForXPos to only
              return editable leaves.
              (WebCore::nextLinePosition): Ditto.
              * rendering/RootInlineBox.cpp:
              (WebCore::isEditableLeaf): Added.
              (WebCore::RootInlineBox::closestLeafChildForXPos): If requested,
              return the closest editable leaf. Removed an early return if the
              position is before the first leaf, it's not really much of an
              optimization.
              * rendering/RootInlineBox.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      735d3b21
    • weinig's avatar
      Reviewed by Anders. · e6e4a469
      weinig authored
              Fix release build.
      
              * bindings/objc/DOM.mm:
              (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]): Add missing null initialization.
              (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]): Add missing null initialization.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e6e4a469
    • weinig's avatar
      LayoutTests: · 79190704
      weinig authored
              Reviewed by Hyatt.
      
              Update results for http://bugs.webkit.org/show_bug.cgi?id=13947
              Finish autogenerating the JS DOM traversal code
      
              * fast/dom/Window/window-properties-expected.txt:
      
      WebCore:
      
              Reviewed by Hyatt.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13947
              Finish autogenerating the JS DOM traversal code
      
              - Completely generate JSNodeFilter.
              - Move JSNodeFilterCondition into its own file
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSNodeFilterCondition.cpp: Copied from WebCore/bindings/js/kjs_traversal.cpp.
              (WebCore::JSNodeFilterCondition::JSNodeFilterCondition):
              (WebCore::JSNodeFilterCondition::mark):
              (WebCore::JSNodeFilterCondition::acceptNode):
              * bindings/js/JSNodeFilterCondition.h: Copied from WebCore/bindings/js/kjs_traversal.h.
              * bindings/js/JSNodeFilterCustom.cpp: Added.
              (WebCore::JSNodeFilter::mark):
              (WebCore::toNodeFilter):
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_traversal.cpp: Removed.
              * bindings/js/kjs_traversal.h: Removed.
              * bindings/js/kjs_window.cpp:
              * bindings/objc/DOM.mm:
              (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]):
              (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]):
              * bindings/scripts/CodeGeneratorJS.pm:
              * dom/Document.cpp:
              (WebCore::Document::createNodeIterator):
              (WebCore::Document::createTreeWalker):
              * dom/Document.h:
              * dom/NodeFilter.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79190704
    • weinig's avatar
      Reviewed by Eric Seidel. · 7b5cb637
      weinig authored
              http://bugs.webkit.org/show_bug.cgi?id=14017
              Cairo: Unwanted gradient effect for small stretched images
      
              * platform/graphics/cairo/ImageCairo.cpp: Use CAIRO_FILTER_NEAREST to
              work around the issue.
              (WebCore::BitmapImage::draw):
              (WebCore::Image::drawPattern):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b5cb637
    • lars's avatar
      Reviewed by Zack · 0b1e6eb6
      lars authored
              Add an API to create and load plugins.
              Don't include moc files by hand anymore, rather let
              qmake handle them.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b1e6eb6
    • bdash's avatar
      2007-06-06 Mark Rowe <mrowe@apple.com> · 914fff0f
      bdash authored
              Qt build fix.
      
              * rendering/RenderTextControl.cpp: Fix case of #include filename.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      914fff0f
    • lars's avatar
      Reviewed by Maciej. · 40e879a9
      lars authored
              Define WTF_USE_NPOBJECT for Qt. Fix includes
              in HTMLPluginElement and add proper forwarding headers
              from JavaScriptCore.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      40e879a9
    • hyatt's avatar
      Bulletproof windowClipRect, since it can be called at crazy times. · 73fec6f0
      hyatt authored
              Part of fix for 13972.
      
              Reviewed by olliej
      
              * bindings/objc/DOM.mm:
              (-[DOMElement _windowClipRect]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22020 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73fec6f0
  9. 05 Jun, 2007 1 commit