- 24 May, 2007 1 commit
-
-
weinig authored
Reviewed by Anders. - update results to account for the new JSHTMLFrameSetElement that is being autogenerated and can now produce a constructor. * fast/dom/Window/element-constructors-on-window-expected.txt: * fast/dom/Window/window-properties-expected.txt: WebCore: Reviewed by Anders. Uncomment HTMLFramesSetElement constructor now that it exists. * page/DOMWindow.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21716 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 23 May, 2007 1 commit
-
-
darin authored
Reviewed by Hyatt. - updated the many tests with an extra newline or two at the end because of the bug where plain-text serialization will consider nodes that are not rendered WebCore: Reviewed by Hyatt. - fix problems where unrendered nodes were affecting on plain text serialization * editing/TextIterator.cpp: (WebCore::TextIterator::advance): Don't call handleXXX functions or exitNode for nodes without renderers. (WebCore::shouldEmitNewlineAfterNode): Only consider rendered nodes when deciding if this is the last node in the document. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21687 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 May, 2007 2 commits
-
-
weinig authored
Reviewed by Darin. - update tests and results for http://bugs.webkit.org/show_bug.cgi?id=13803 to account for the new JSHTMLMarquee that is being autogenerated and can now produce a constructor. * fast/dom/Window/element-constructors-on-window-expected.txt: * fast/dom/Window/element-constructors-on-window.html: * fast/dom/Window/window-properties-expected.txt: WebCore: Reviewed by Darin. Patch for http://bugs.webkit.org/show_bug.cgi?id=13803 Autogenerate the JS bindings for the HTMLMarqueeElement. * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSHTMLElementWrapperFactory.cpp: * bindings/js/kjs_css.cpp: (KJS::DOMCSSRule::getOwnPropertySlot): Fix possible null pointer issue. (KJS::DOMCSSRule::put): Fix possible null pointer issue. * bindings/js/kjs_html.cpp: (KJS::): (KJS::JSHTMLElement::classInfo): (KJS::JSHTMLElement::accessors): (KJS::JSHTMLElement::getOwnPropertySlot): Fix null pointer issue. (KJS::HTMLElementFunction::callAsFunction): (KJS::JSHTMLElement::put): * bindings/js/kjs_html.h: (KJS::JSHTMLElement::): * html/HTMLMarqueeElement.cpp: (WebCore::HTMLMarqueeElement::start): (WebCore::HTMLMarqueeElement::stop): * html/HTMLMarqueeElement.h: Add start() and stop() functions. * html/HTMLMarqueeElement.idl: Added. * page/DOMWindow.idl: Add marquee constructor. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
weinig authored
Reviewed by Adam and Darin. - update results for http://bugs.webkit.org/show_bug.cgi?id=13791 to account for new JSHTMLElements that are being autogenerated and can now produce constructors. * fast/dom/Window/element-constructors-on-window-expected.txt: * fast/dom/Window/window-properties-expected.txt: WebCore: Reviewed by Adam and Darin. Patch for http://bugs.webkit.org/show_bug.cgi?id=13791 Autogenerate the JS bindings for the HTMLIFrameElement and HTMLFrameElement. * DerivedSources.make: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSHTMLAnchorElementCustom.cpp: * bindings/js/JSHTMLElementWrapperFactory.cpp: * bindings/js/kjs_html.cpp: (KJS::): (KJS::JSHTMLElement::classInfo): (KJS::JSHTMLElement::accessors): (KJS::HTMLElementFunction::callAsFunction): * bindings/js/kjs_html.h: (KJS::JSHTMLElement::): * bindings/scripts/CodeGeneratorJS.pm: * html/HTMLFrameElement.idl: * html/HTMLFrameElementBase.cpp: (WebCore::HTMLFrameElementBase::location): * html/HTMLFrameElementBase.h: * html/HTMLFrameOwnerElement.h: (WebCore::HTMLFrameOwnerElement::contentWindow): * html/HTMLIFrameElement.idl: * page/DOMWindow.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 May, 2007 1 commit
-
-
weinig authored
Reviewed by Geoff. - update results to account for new JSHTMLElements that are being auto-generated and can now produce Constructors. * fast/dom/Window/element-constructors-on-window-expected.txt: * fast/dom/Window/window-properties-expected.txt: WebCore: Reviewed by Geoff. Autogenerate the JS bindings for the HTMLTableElement, HTMLTableCaptionElement, HTMLTableCellElement, HTMLTableColElement, HTMLTableRowElement, HTMLTableSectionElement. * DerivedSources.make: * WebCore.pro: * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSHTMLElementWrapperFactory.cpp: (WebCore::createJSHTMLWrapper): * bindings/js/kjs_html.cpp: (KJS::): (KJS::JSHTMLElement::classInfo): (KJS::JSHTMLElement::accessors): (KJS::HTMLElementFunction::callAsFunction): * bindings/js/kjs_html.h: (KJS::JSHTMLElement::): * html/HTMLTableCaptionElement.idl: * html/HTMLTableCellElement.idl: * html/HTMLTableColElement.idl: * html/HTMLTableElement.idl: * html/HTMLTableRowElement.idl: * html/HTMLTableSectionElement.idl: * page/DOMWindow.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 May, 2007 1 commit
-
-
justing authored
* css1/cascade/cascade_order-expected.checksum: * css1/cascade/cascade_order-expected.png: * css2.1/t0402-c71-fwd-parsing-02-f-expected.checksum: * css2.1/t0402-c71-fwd-parsing-02-f-expected.png: * css2.1/t0505-c16-descendant-01-e-expected.checksum: * css2.1/t0505-c16-descendant-01-e-expected.png: * css2.1/t050803-c14-classes-00-e-expected.checksum: * css2.1/t050803-c14-classes-00-e-expected.png: * css2.1/t0509-c15-ids-01-e-expected.checksum: * css2.1/t0509-c15-ids-01-e-expected.png: * css2.1/t0805-c5518-brdr-t-01-e-expected.checksum: * css2.1/t0805-c5518-brdr-t-01-e-expected.png: * css2.1/t0805-c5519-brdr-r-02-e-expected.checksum: * css2.1/t0805-c5519-brdr-r-02-e-expected.png: * css2.1/t0805-c5520-brdr-b-01-e-expected.checksum: * css2.1/t0805-c5520-brdr-b-01-e-expected.png: * css2.1/t0805-c5521-brdr-l-02-e-expected.checksum: * css2.1/t0805-c5521-brdr-l-02-e-expected.png: * css2.1/t1205-c563-list-type-00-b-expected.checksum: * css2.1/t1205-c563-list-type-00-b-expected.png: * css2.1/t1205-c564-list-img-00-b-g-expected.checksum: * css2.1/t1205-c564-list-img-00-b-g-expected.png: * fast/backgrounds/repeat/noRepeatCorrectClip-expected.checksum: * fast/backgrounds/repeat/noRepeatCorrectClip-expected.png: * fast/block/float/014-expected.checksum: * fast/block/float/014-expected.png: * fast/css/001-expected.checksum: * fast/css/001-expected.png: * fast/css/css2-system-fonts-expected.checksum: * fast/css/css2-system-fonts-expected.png: * fast/doctypes/001-expected.checksum: * fast/doctypes/001-expected.png: * fast/doctypes/002-expected.checksum: * fast/doctypes/002-expected.png: * fast/doctypes/003-expected.checksum: * fast/doctypes/003-expected.png: * fast/doctypes/004-expected.checksum: * fast/doctypes/004-expected.png: * fast/dom/Window/window-onFocus-expected.checksum: * fast/dom/Window/window-onFocus-expected.png: * fast/events/keydown-1-expected.checksum: * fast/events/keydown-1-expected.png: * fast/lists/002-expected.checksum: * fast/lists/002-expected.png: * fast/lists/003-expected.checksum: * fast/lists/003-expected.png: * fast/lists/005-expected.checksum: * fast/lists/005-expected.png: * fast/lists/007-expected.checksum: * fast/lists/007-expected.png: * fast/lists/008-expected.checksum: * fast/lists/008-expected.png: * fast/lists/big-list-marker-expected.checksum: * fast/lists/big-list-marker-expected.png: * fast/lists/dynamic-marker-crash-expected.checksum: * fast/lists/dynamic-marker-crash-expected.png: * fast/lists/item-not-in-list-line-wrapping-expected.checksum: * fast/lists/item-not-in-list-line-wrapping-expected.png: * fast/lists/marker-image-error-expected.checksum: * fast/lists/marker-image-error-expected.png: * fast/lists/ol-display-types-expected.checksum: * fast/lists/ol-display-types-expected.png: * fast/lists/scrolled-marker-paint-expected.checksum: * fast/lists/scrolled-marker-paint-expected.png: * fast/overflow/overflow-rtl-expected.checksum: * fast/overflow/overflow-rtl-expected.png: * fast/repaint/list-marker-2-expected.checksum: * fast/repaint/list-marker-2-expected.png: * fast/repaint/list-marker-expected.checksum: * fast/repaint/list-marker-expected.png: * fast/selectors/001-expected.checksum: * fast/selectors/001-expected.png: * fast/selectors/013-expected.checksum: * fast/selectors/013-expected.png: * fast/selectors/015-expected.checksum: * fast/selectors/015-expected.png: * fast/selectors/166-expected.checksum: * fast/selectors/166-expected.png: * tables/mozilla/bugs/bug23235-expected.checksum: * tables/mozilla/bugs/bug23235-expected.png: * tables/mozilla/bugs/bug30692-expected.checksum: * tables/mozilla/bugs/bug30692-expected.png: * tables/mozilla/bugs/bug3191-expected.checksum: * tables/mozilla/bugs/bug3191-expected.png: * tables/mozilla/marvin/backgr_index-expected.checksum: * tables/mozilla/marvin/backgr_index-expected.png: * tables/mozilla/marvin/backgr_layers-opacity-expected.checksum: * tables/mozilla/marvin/backgr_layers-opacity-expected.png: * tables/mozilla_expected_failures/bugs/bug1010-expected.checksum: * tables/mozilla_expected_failures/bugs/bug1010-expected.png: * tables/mozilla_expected_failures/marvin/backgr_fixed-bg-expected.checksum: * tables/mozilla_expected_failures/marvin/backgr_fixed-bg-expected.png: * tables/mozilla_expected_failures/marvin/backgr_layers-show-expected.checksum: * tables/mozilla_expected_failures/marvin/backgr_layers-show-expected.png: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 May, 2007 1 commit
-
-
ap authored
http://bugs.webkit.org/show_bug.cgi?id=13480 window.Attr is undefined Test: fast/dom/Window/attr-constructor.html * dom/Attr.idl: * dom/CDATASection.idl: * dom/CharacterData.idl: * dom/Comment.idl: * dom/DOMImplementation.idl: * dom/DocumentType.idl: * dom/Entity.idl: * dom/EntityReference.idl: * dom/Notation.idl: * dom/ProcessingInstruction.idl: * dom/Text.idl: Added GenerateConstructor. * page/DOMWindow.idl: Added constructor properties for DOM interfaces. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Apr, 2007 1 commit
-
-
bdash authored
Reviewed by Darin. - fix http://bugs.webkit.org/show_bug.cgi?id=13417 Repro crash when the first argument to getMatchedCSSRules is not an element Test: fast/dom/Window/getMatchedCSSRules-null-crash.html * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::styleRulesForElement): Added null check. 2007-04-21 Mitz Pettel <mitz@webkit.org> Reviewed by Darin. - test for http://bugs.webkit.org/show_bug.cgi?id=13417 Repro crash when the first argument to getMatchedCSSRules is not an element * fast/dom/Window/getMatchedCSSRules-null-crash-expected.txt: Added. * fast/dom/Window/getMatchedCSSRules-null-crash.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 09 Apr, 2007 1 commit
-
-
andersca authored
Reviewed by Darin. <rdar://problem/5120801> http://bugs.webkit.org/show_bug.cgi?id=13247 Closing a page during slow cloning causes crash in setJSStatusBarText (13247) * fast/dom/Window/setting-properties-on-closed-window-expected.txt: Added. * fast/dom/Window/setting-properties-on-closed-window.html: Added. WebCore: Reviewed by Darin. <rdar://problem/5120801> http://bugs.webkit.org/show_bug.cgi?id=13247 Closing a page during slow cloning causes crash in setJSStatusBarText (13247) * bindings/js/kjs_window.cpp: (KJS::Window::put): Return early if m_frame is null. A closed window only has one property, "closed" so no properties should be settable in that case. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 18 Mar, 2007 1 commit
-
-
hyatt authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20277 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 16 Mar, 2007 1 commit
-
-
beidson authored
Updated layouttest results because I added a window property * fast/dom/Window/window-properties-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Mar, 2007 1 commit
-
-
justing authored
Reviewed by harrison <http://bugs.webkit.org/show_bug.cgi?id=12244> FCKeditor: Find dialog doesn't work * editing/execCommand/12244-expected.txt: Added. * editing/execCommand/12244.html: Added. * fast/dom/Window/window-properties-expected.txt: WebCore: Reviewed by harrison <http://bugs.webkit.org/show_bug.cgi?id=12244> FCKeditor: Find dialog doesn't work * bindings/js/kjs_window.cpp: (KJS::Window::find): Added. This function doesn't yet support whole word searches, searching in subframes, or opening the find dialog. (KJS::WindowFunc::callAsFunction): * bindings/js/kjs_window.h: (KJS::Window::): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 07 Mar, 2007 1 commit
-
-
darin authored
- change tests that depend on the order of iteration of built-in properties to sort explicitly so they don't depend on the order any more * fast/dom/Window/resources/window-appendages-cleared-results.html: * fast/dom/Window/window-appendages-cleared-expected.txt: * fast/dom/Window/window-properties-expected.txt: * fast/dom/Window/window-properties.html: * fast/js/regexp-caching-expected.txt: * fast/js/regexp-caching.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 06 Mar, 2007 2 commits
-
-
bdash authored
Add dumpAsText to test to match expected results. * fast/dom/Window/window-location-replace-functions.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20002 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
bdash authored
Reviewed by Maciej. - Tests for http://bugs.webkit.org/show_bug.cgi?id=12720 Bug 12720: Re-defining window.location.toString function keeps re-loading forever * fast/dom/Window/window-location-replace-functions-expected.txt: Added. * fast/dom/Window/window-location-replace-functions.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19996 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Feb, 2007 1 commit
-
-
weinig authored
* fast/dom/Window/window-properties-expected.txt: Update results. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Feb, 2007 2 commits
-
-
mjs authored
* fast/dom/Window/resources/window-appendages-cleared-results.html: * fast/dom/Window/window-appendages-cleared-expected.txt: Added. * fast/dom/Window/window-appendages-cleared.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
mjs authored
Regression not reviewed, based loosely on test case from Ian Eng. - test case for <rdar://problem/4988091> objects attached to Window not cleared (memory leak) * fast/dom/Window/resources/window-appendages-cleared-results.html: Added. * fast/dom/Window/window-appendages-cleared.html: Added. WebCore: Reviewed by me, patch from Ian Eng (cleaned up by me some). - fixed <rdar://problem/4988091> objects attached to Window not cleared (memory leak) Test case: fast/dom/Window/window-appendages-cleared.html * bindings/js/kjs_window.cpp: (KJS::Window::clearHelperObjectProperties): (KJS::Window::clear): * bindings/js/kjs_window.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19551 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Jan, 2007 1 commit
-
-
ap authored
http://bugs.webkit.org/show_bug.cgi?id=10934 REGRESSION: prototype.js logs error (HTMLFormElement) on webkit builds Added constructors for most HTML elements; started auto-generating HTMLSelectElement JS binding. Test: fast/dom/Window/element-constructors-on-window.html * DerivedSources.make: Generate JSHTMLSelectElement. * WebCore.xcodeproj/project.pbxproj: Added JSHTMLSelectElement{Custom}. * bindings/js/JSHTMLElementWrapperFactory.cpp: Create a proper binding for SELECT. * bindings/js/kjs_html.cpp: (KJS::): (KJS::JSHTMLElement::classInfo): (KJS::JSHTMLElement::accessors): (KJS::JSHTMLElement::getOwnPropertySlot): (KJS::HTMLElementFunction::callAsFunction): (KJS::JSHTMLElement::put): * bindings/js/kjs_html.h: (KJS::JSHTMLElement::): Removed everything related to SELECT. Renamed getHTMLOptionsCollection to toJS for autogenerated code to be happy, and rewrote it using cacheDOMObject. * bindings/scripts/CodeGeneratorJS.pm: Added HTMLElement to the list of types that cannot fail conversion. * html/HTMLAnchorElement.idl: * html/HTMLAppletElement.idl: * html/HTMLAreaElement.idl: * html/HTMLBRElement.idl: * html/HTMLBaseElement.idl: * html/HTMLBaseFontElement.idl: * html/HTMLBodyElement.idl: * html/HTMLButtonElement.idl: * html/HTMLCanvasElement.idl: * html/HTMLDListElement.idl: * html/HTMLDirectoryElement.idl: * html/HTMLDivElement.idl: * html/HTMLFieldSetElement.idl: * html/HTMLFontElement.idl: * html/HTMLFormElement.idl: * html/HTMLHRElement.idl: * html/HTMLHeadElement.idl: * html/HTMLHeadingElement.idl: * html/HTMLHtmlElement.idl: * html/HTMLImageElement.idl: * html/HTMLInputElement.idl: * html/HTMLIsIndexElement.idl: * html/HTMLLIElement.idl: * html/HTMLLabelElement.idl: * html/HTMLLegendElement.idl: * html/HTMLLinkElement.idl: * html/HTMLMapElement.idl: * html/HTMLMenuElement.idl: * html/HTMLMetaElement.idl: * html/HTMLModElement.idl: * html/HTMLOListElement.idl: * html/HTMLOptGroupElement.idl: * html/HTMLParagraphElement.idl: * html/HTMLParamElement.idl: * html/HTMLPreElement.idl: * html/HTMLQuoteElement.idl: * html/HTMLScriptElement.idl: * html/HTMLStyleElement.idl: * html/HTMLTextAreaElement.idl: * html/HTMLTitleElement.idl: * html/HTMLUListElement.idl: Generate constructors. * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::length): * html/HTMLSelectElement.h: Make length() return unsigned for auto-generated code to be happy. * html/HTMLSelectElement.idl: Adjusted to be usable for JS. * bindings/JSHTMLSelectElementCustom.cpp: Added. Implements remove(). * page/DOMWindow.idl: Added properties for most elements' constructors. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 Jan, 2007 1 commit
-
-
ap authored
http://bugs.webkit.org/show_bug.cgi?id=12268 Give object prototypes their own names JavaScriptCore: * kjs/lookup.h: Append "Prototype" to ClassName in KJS_IMPLEMENT_PROTOTYPE. WebCore: * bindings/scripts/CodeGeneratorJS.pm: Append "Proto" to interface name for the prototype's ClassInfo. * bindings/js/JSHTMLInputElementBase.cpp: (WebCore::JSHTMLInputElementBasePrototypeFunction::callAsFunction): (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase): * bindings/js/JSHTMLInputElementBase.h: * bindings/js/JSXMLHttpRequest.cpp: (KJS::JSXMLHttpRequestConstructorImp::JSXMLHttpRequestConstructorImp): (KJS::JSXMLHttpRequest::JSXMLHttpRequest): (KJS::JSXMLHttpRequestPrototypeFunction::callAsFunction): * bindings/js/JSXMLHttpRequest.h: * bindings/js/JSXSLTProcessor.cpp: (KJS::JSXSLTProcessor::JSXSLTProcessor): (KJS::XSLTProcessorPrototypeFunction::callAsFunction): (KJS::XSLTProcessorConstructorImp::XSLTProcessorConstructorImp): * bindings/js/kjs_css.cpp: (KJS::DOMCSSStyleDeclaration::DOMCSSStyleDeclaration): (KJS::DOMCSSStyleDeclarationPrototypeFunction::callAsFunction): (KJS::DOMMediaList::DOMMediaList): (KJS::KJS::DOMMediaListPrototypeFunction::callAsFunction): (KJS::DOMCSSStyleSheet::DOMCSSStyleSheet): (KJS::DOMCSSStyleSheetPrototypeFunction::callAsFunction): (KJS::DOMCSSValue::DOMCSSValue): (KJS::DOMCSSValuePrototypeFunction::callAsFunction): * bindings/js/kjs_css.h: * bindings/js/kjs_dom.cpp: (KJS::DOMNode::DOMNode): (KJS::DOMNodePrototypeFunction::callAsFunction): (KJS::DOMEventTargetNode::DOMEventTargetNode): (KJS::DOMEventTargetNodePrototypeFunction::callAsFunction): (KJS::DOMNamedNodeMap::DOMNamedNodeMap): (KJS::DOMNamedNodeMapPrototypeFunction::callAsFunction): * bindings/js/kjs_dom.h: * bindings/js/kjs_domnode.h: * bindings/js/kjs_events.cpp: (KJS::DOMEvent::DOMEvent): (KJS::DOMEventPrototypeFunction::callAsFunction): (KJS::Clipboard::Clipboard): (KJS::ClipboardPrototypeFunction::callAsFunction): * bindings/js/kjs_events.h: * bindings/js/kjs_html.cpp: (KJS::JSHTMLDocumentPrototypeFunction::callAsFunction): (KJS::): (KJS::JSHTMLDocument::JSHTMLDocument): (KJS::JSHTMLElementPrototypeFunction::callAsFunction): (KJS::JSHTMLElement::JSHTMLElement): (KJS::JSHTMLCollection::JSHTMLCollection): (KJS::JSHTMLCollectionPrototypeFunction::callAsFunction): * bindings/js/kjs_html.h: * bindings/js/kjs_navigator.cpp: * bindings/js/kjs_traversal.cpp: (KJS::DOMNodeFilter::DOMNodeFilter): (KJS::DOMNodeFilterPrototypeFunction::callAsFunction): * bindings/js/kjs_window.cpp: (KJS::Window::clear): Changed Proto to Prototype, and ProtoFunc to PrototypeFunction. LayoutTests: * fast/dom/Window/window-properties-expected.txt: * fast/dom/prototype-chain-expected.txt: * fast/events/event-view-toString-expected.txt: * fast/events/mouseclick-target-and-positioning-expected.txt: * fast/tokenizer/external-script-document-write-expected.checksum: * fast/tokenizer/external-script-document-write-expected.png: * fast/tokenizer/external-script-document-write-expected.txt: Updated the results. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18912 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Jan, 2007 2 commits
-
-
ap authored
http://bugs.webkit.org/show_bug.cgi?id=7640 Menu items are displayed as "undefined" WebCore: * bindings/js/kjs_dom.cpp: (KJS::DOMNodeProtoFunc::callAsFunction): * bindings/js/kjs_domnode.h: (KJS::DOMNode::): Removed Node::item. No idea why it was there in the first place. * bindings/js/kjs_html.cpp: (KJS::HTMLElementFunction::callAsFunction): * bindings/js/kjs_html.h: (KJS::JSHTMLElement::): Added HTMLSelectElement::item. It is not in DOM2 IDL, but the spec seems to mentions it anyway: "The contained options can be directly accessed through the select element as a collection." * html/HTMLSelectElement.cpp: (WebCore::HTMLSelectElement::namedItem): (WebCore::HTMLSelectElement::item): * html/HTMLSelectElement.h: * html/HTMLSelectElement.idl: Added this method to DOM and IDL, too. Made namedItem() non-virtual. LayoutTests: * fast/dom/Window/window-properties-expected.txt: Updated the results. * fast/dom/node-item-expected.txt: Added. * fast/dom/node-item.html: Added. Check that there is no Node:item or HTMLElement:item. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
darin authored
Reviewed by Beth. - http://bugs.webkit.org/show_bug.cgi?id=12142 render tree dump for test results should include the value of list markers * css1/basic/class_as_selector-expected.txt: * css1/basic/containment-expected.txt: * css1/basic/contextual_selectors-expected.txt: * css1/basic/id_as_selector-expected.txt: * css1/box_properties/border_bottom-expected.txt: * css1/box_properties/border_left-expected.txt: * css1/box_properties/border_right_inline-expected.txt: * css1/box_properties/border_top-expected.txt: * css1/box_properties/clear_float-expected.txt: * css1/box_properties/margin-expected.txt: * css1/box_properties/margin_bottom-expected.txt: * css1/box_properties/margin_left-expected.txt: * css1/box_properties/margin_right-expected.txt: * css1/box_properties/margin_top-expected.txt: * css1/box_properties/padding_left-expected.txt: * css1/box_properties/padding_right-expected.txt: * css1/cascade/cascade_order-expected.txt: * css1/classification/display-expected.txt: * css1/classification/list_style-expected.txt: * css1/classification/list_style_image-expected.txt: * css1/classification/list_style_position-expected.txt: * css1/classification/list_style_type-expected.txt: * css1/conformance/forward_compatible_parsing-expected.txt: * css1/pseudo/anchor-expected.txt: * css2.1/t0402-c71-fwd-parsing-02-f-expected.txt: * css2.1/t0505-c16-descendant-01-e-expected.txt: * css2.1/t050803-c14-classes-00-e-expected.txt: * css2.1/t0509-c15-ids-01-e-expected.txt: * css2.1/t0805-c5518-brdr-t-01-e-expected.txt: * css2.1/t0805-c5519-brdr-r-02-e-expected.txt: * css2.1/t0805-c5520-brdr-b-01-e-expected.txt: * css2.1/t0805-c5521-brdr-l-02-e-expected.txt: * css2.1/t1205-c561-list-displ-00-b-expected.txt: * css2.1/t1205-c563-list-type-00-b-expected.txt: * css2.1/t1205-c563-list-type-01-b-expected.txt: * css2.1/t1205-c564-list-img-00-b-g-expected.txt: * css2.1/t1205-c565-list-pos-00-b-expected.txt: * css2.1/t1205-c566-list-stl-00-e-ag-expected.txt: * editing/deleting/4866671-expected.txt: * editing/deleting/delete-first-list-item-expected.txt: * editing/deleting/delete-link-1-expected.txt: * editing/deleting/delete-listitem-002-expected.txt: * editing/deleting/list-item-1-expected.txt: * editing/deleting/merge-into-empty-block-2-expected.txt: * editing/execCommand/4641880-1-expected.txt: * editing/execCommand/create-list-from-range-selection-expected.txt: * editing/execCommand/create-list-with-hr-expected.txt: * editing/execCommand/indent-list-item-expected.txt: * editing/execCommand/indent-selection-expected.txt: * editing/execCommand/insert-list-and-stitch-expected.txt: * editing/execCommand/remove-list-from-range-selection-expected.txt: * editing/execCommand/remove-list-item-1-expected.txt: * editing/execCommand/remove-list-items-expected.txt: * editing/execCommand/switch-list-type-expected.txt: * editing/inserting/insert-div-022-expected.txt: * editing/inserting/insert-div-023-expected.txt: * editing/inserting/insert-div-024-expected.txt: * editing/pasteboard/4861080-expected.txt: * editing/pasteboard/drop-link-expected.txt: * editing/pasteboard/innerText-inline-table-expected.txt: * editing/pasteboard/input-field-1-expected.txt: * editing/pasteboard/merge-end-list-expected.txt: * editing/pasteboard/merge-start-list-expected.txt: * editing/pasteboard/paste-4039777-fix-expected.txt: * editing/pasteboard/paste-list-001-expected.txt: * editing/pasteboard/select-element-1-expected.txt: * editing/selection/drag-to-contenteditable-iframe-expected.txt: * editing/selection/extend-by-word-002-expected.txt: * editing/selection/move-by-line-002-expected.txt: * editing/selection/select-all-iframe-expected.txt: * editing/selection/selectNode-expected.txt: * editing/selection/selectNodeContents-expected.txt: * editing/unsupported-content/list-delete-001-expected.txt: * editing/unsupported-content/list-type-after-expected.txt: * editing/unsupported-content/list-type-before-expected.txt: * fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt: * fast/block/float/014-expected.txt: * fast/css-generated-content/009-expected.txt: * fast/css/001-expected.txt: * fast/css/continuationCrash-expected.txt: * fast/css/css2-system-fonts-expected.txt: * fast/css/css3-modsel-22-expected.txt: * fast/css/list-outline-expected.txt: * fast/doctypes/001-expected.txt: * fast/doctypes/002-expected.txt: * fast/doctypes/003-expected.txt: * fast/doctypes/004-expected.txt: * fast/dom/Window/window-onFocus-expected.txt: * fast/forms/form-hides-table-expected.txt: * fast/forms/plaintext-mode-2-expected.txt: * fast/lists/001-expected.txt: * fast/lists/002-expected.txt: * fast/lists/003-expected.txt: * fast/lists/004-expected.txt: * fast/lists/005-expected.txt: * fast/lists/006-expected.txt: * fast/lists/007-expected.txt: * fast/lists/008-expected.txt: * fast/lists/alpha-list-wrap-expected.txt: * fast/lists/decimal-leading-zero-expected.txt: * fast/lists/drag-into-marker-expected.txt: * fast/lists/dynamic-marker-crash-expected.txt: * fast/lists/inlineBoxWrapperNullCheck-expected.txt: * fast/lists/li-br-expected.txt: * fast/lists/li-style-alpha-huge-value-crash-expected.txt: * fast/lists/li-values-expected.txt: * fast/lists/markers-in-selection-expected.txt: * fast/lists/numeric-markers-outside-list-expected.txt: * fast/lists/ol-display-types-expected.txt: * fast/lists/olstart-expected.txt: * fast/lists/ordered-list-with-no-ol-tag-expected.txt: * fast/lists/scrolled-marker-paint-expected.txt: * fast/overflow/overflow-rtl-expected.txt: * fast/selectors/001-expected.txt: * fast/selectors/013-expected.txt: * fast/selectors/015-expected.txt: * fast/selectors/166-expected.txt: * fast/table/018-expected.txt: * fast/table/form-with-table-style-expected.txt: * fast/text/whitespace/tab-character-basics-expected.txt: * fast/tokenizer/004-expected.txt: * tables/mozilla/bugs/bug23235-expected.txt: * tables/mozilla/bugs/bug30692-expected.txt: * tables/mozilla/bugs/bug3191-expected.txt: * tables/mozilla/bugs/bug32205-2-expected.txt: * tables/mozilla/marvin/backgr_index-expected.txt: * tables/mozilla/marvin/backgr_layers-opacity-expected.txt: * tables/mozilla/marvin/x_table-expected.txt: * tables/mozilla/other/wa_table_thtd_rowspan-expected.txt: * tables/mozilla/other/wa_table_tr_align-expected.txt: * tables/mozilla_expected_failures/bugs/bug1010-expected.txt: * tables/mozilla_expected_failures/marvin/backgr_fixed-bg-expected.txt: * tables/mozilla_expected_failures/marvin/backgr_layers-show-expected.txt: * traversal/stay-within-root-expected.txt: WebCore: Reviewed by Beth. - http://bugs.webkit.org/show_bug.cgi?id=12142 render tree dump for test results should include the value of list markers * rendering/RenderTreeAsText.cpp: (WebCore::getTagName): Changed to use String instead of DeprecatedString. (WebCore::quoteAndEscapeNonPrintables): Ditto. Also moved up so it can be used in the operator below. (WebCore::operator<<): Added clause for RenderListMarker that dumps the value of the list marker's text. (WebCore::nodePosition): Changed to use String instead of DeprecatedString. * rendering/SVGRenderTreeAsText.cpp: (WebCore::TextStreamSeparator::TextStreamSeparator): Changed to use String instead of DeprecatedString. (WebCore::getTagName): Ditto. (WebCore::write): Ditto. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Dec, 2006 1 commit
-
-
harrison authored
* fast/dom/Window/window-properties-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 13 Dec, 2006 1 commit
-
-
ggaren authored
the selection object. * fast/dom/Window/window-properties-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18198 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 12 Dec, 2006 1 commit
-
-
ap authored
* fast/dom/Window/window-properties-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 11 Dec, 2006 1 commit
-
-
http://bugs.webkit.org/show_bug.cgi?id=9673ap authored
Add support for window.atob() and window.btoa() Reviewed by Darin. JavaScriptCore: * JavaScriptCore.exp: Export UString::is8Bit(). * JavaScriptCore.xcodeproj/project.pbxproj: Added StringExtras.h as a private header. WebCore: * WebCore.xcodeproj/project.pbxproj: Added Base64.{h,cpp} * bindings/js/kjs_window.cpp: (KJS::WindowFunc::callAsFunction): * bindings/js/kjs_window.h: (KJS::Window::): * platform/Base64.cpp: Added. (base64Encode): (base64Decode): * platform/Base64.h: Added. * ForwardingHeaders/wtf/StringExtras.h: Added. * platform/DeprecatedString.cpp: Use strncasecmp from StringExtras. LayoutTests: * fast/dom/Window/atob-btoa-expected.txt: Added. * fast/dom/Window/atob-btoa.html: Added. * fast/dom/Window/btoa-pnglet-expected.checksum: Added. * fast/dom/Window/btoa-pnglet-expected.png: Added. * fast/dom/Window/btoa-pnglet-expected.txt: Added. * fast/dom/Window/btoa-pnglet.html: Added. * fast/dom/Window/window-properties-expected.txt: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18170 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Nov, 2006 1 commit
-
-
ap authored
http://bugs.webkit.org/show_bug.cgi?id=11633 Implement XMLDocument properties xmlEncoding, xmlVersion, xmlStandalone WebCore: * dom/Document.cpp: (WebCore::Document::Document): (WebCore::Document::setXMLVersion): (WebCore::Document::setXMLStandalone): * dom/Document.h: (WebCore::Document::xmlEncoding): (WebCore::Document::xmlVersion): (WebCore::Document::xmlStandalone): (WebCore::Document::setXMLEncoding): * dom/Document.idl: * dom/XMLTokenizer.cpp: (WebCore::XMLTokenizer::startDocument): (WebCore::startDocumentHandler): (WebCore::XMLTokenizer::initializeParserContext): Added support for these properties, getting them from an libxml2 context. * html/HTMLDocument.cpp: (WebCore::HTMLDocument::HTMLDocument): HTMLDocument is the only kind of document that doesn't have xmlVersion default to "1.0". * bindings/scripts/CodeGeneratorJS.pm: * bindings/scripts/CodeGeneratorObjC.pm: Added WK_ucfirst to properly uppercase xmlVersion and xmlStandalone. LayoutTests: * dom/xhtml/level3/core/documentgetxmlencoding01-expected.txt: * dom/xhtml/level3/core/documentgetxmlencoding03-expected.txt * dom/xhtml/level3/core/documentgetxmlstandalone04-expected.txt: * dom/xhtml/level3/core/documentgetxmlversion01-expected.txt: * dom/xhtml/level3/core/documentgetxmlversion02-expected.txt: * dom/xhtml/level3/core/documentgetxmlversion03-expected.txt: These now pass. * dom/xhtml/level3/core/documentgetxmlencoding03.xhtml: Re-added a correct test. * fast/dom/Window/window-properties-expected.txt: Added these new properties. * http/tests/xmlhttprequest/xml-encoding-expected.txt: Added. * http/tests/xmlhttprequest/xml-encoding.html: Added. * http/tests/xmlhttprequest/resources/xml-encoding.xml: Added. * http/tests/xmlhttprequest/resources/post-echo-as-utf-8.cgi: Added. Test how xmlEncoding interacts with XMLHttpRequest. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 Nov, 2006 1 commit
-
-
ggaren authored
Reviewed by Justin Garcia. Used a PERL script to add calls to opt into dumping of editing callbacks in all editing tests that didn't do so already. This is required now that dumping of editing callbacks is opt-in. Updated editing.js so that any test that calls runEditingTest() opt into dumping of editing callbacks. Updated results in all non-editing tests to remove dumping of editing callbacks. Updated results in all editing tests to reflect minor DOM changes due to new <script> elements. [ many tests and results modified ] WebKitTools: Reviewed by Justin Garcia. Made dumping of editing callbacks opt-in, so that editing spew doesn't cloud non-editing tests. * DumpRenderTree/DumpRenderTree.m: (+[LayoutTestController isSelectorExcludedFromWebScript:]): (-[LayoutTestController shouldDumpEditingCallbacks]): (runTest): * DumpRenderTree/EditingDelegate.m: (-[EditingDelegate webView:shouldBeginEditingInDOMRange:]): (-[EditingDelegate webView:shouldEndEditingInDOMRange:]): (-[EditingDelegate webView:shouldInsertNode:replacingDOMRange:givenAction:]): (-[EditingDelegate webView:shouldInsertText:replacingDOMRange:givenAction:]): (-[EditingDelegate webView:shouldDeleteDOMRange:]): (-[EditingDelegate webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:]): (-[EditingDelegate webView:shouldApplyStyle:toElementsInDOMRange:]): (-[EditingDelegate webView:shouldChangeTypingStyle:toStyle:]): (-[EditingDelegate webViewDidBeginEditing:]): (-[EditingDelegate webViewDidChange:]): (-[EditingDelegate webViewDidEndEditing:]): (-[EditingDelegate webViewDidChangeTypingStyle:]): (-[EditingDelegate webViewDidChangeSelection:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Oct, 2006 2 commits
-
-
ggaren authored
Put some layout tests in their place. * fast/dom/Window/window-object-cross-frame-calls-expected.txt: Added. * fast/dom/Window/window-object-cross-frame-calls.html: Added. * fast/dom/Window/window-onFocus-expected.checksum: Added. * fast/dom/Window/window-onFocus-expected.png: Added. * fast/dom/Window/window-onFocus-expected.txt: Added. * fast/dom/Window/window-onFocus.html: Added. * fast/dom/Window/window-xy-properties-expected.txt: Added. * fast/dom/Window/window-xy-properties.html: Added. * fast/dom/window-object-cross-frame-calls-expected.txt: Removed. * fast/dom/window-object-cross-frame-calls.html: Removed. * fast/dom/window-onFocus-expected.checksum: Removed. * fast/dom/window-onFocus-expected.png: Removed. * fast/dom/window-onFocus-expected.txt: Removed. * fast/dom/window-onFocus.html: Removed. * fast/dom/window-xy-properties-expected.txt: Removed. * fast/dom/window-xy-properties.html: Removed. * fast/html/xhtml-serialize-expected.txt: Added. * fast/html/xhtml-serialize.html: Added. * fast/js/resources/xhtml-serialize.js: Removed. * fast/js/resources/xslt-fragment-in-empty-doc.js: Removed. * fast/js/xhtml-serialize-expected.txt: Removed. * fast/js/xhtml-serialize.html: Removed. * fast/js/xslt-fragment-in-empty-doc-expected.txt: Removed. * fast/js/xslt-fragment-in-empty-doc.html: Removed. * fast/xsl/xslt-fragment-in-empty-doc-expected.txt: Added. * fast/xsl/xslt-fragment-in-empty-doc.html: Added. * fast/dom/resources/child.html: Removed. * fast/dom/Window/resources/child.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
ggaren authored
Removed old window property tests because they didn't quite work and they were looking at me funny. Replaced with new, comprehensive test. * fast/dom/Window/window-properties-expected.txt: Added. * fast/dom/Window/window-properties.html: Added. * fast/js/window-properties-expected.txt: Removed. * fast/js/window-properties.html: Removed. * fast/js/window-properties2-expected.txt: Removed. * fast/js/window-properties2.html: Removed. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17181 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 02 Jun, 2006 1 commit
-
-
ddkilzer authored
Reviewed by mjs. http://bugzilla.opendarwin.org/show_bug.cgi?id=9183 Finish renaming of RenderCanvas to RenderView * editing/selection/7152-1-expected.checksum: Layout changed due to text change in HTML file. * editing/selection/7152-1-expected.png: Ditto. * editing/selection/7152-1-expected.txt: Ditto. * editing/selection/7152-1.html: Changed text in HTML content. * editing/selection/7152-2-expected.checksum: Layout changed due to text change in HTML file. * editing/selection/7152-2-expected.png: Ditto. * editing/selection/7152-2-expected.txt: Ditto. * editing/selection/7152-2.html: Changed text in HTML content. * *-expected.txt: Replaced "RenderCanvas" with "RenderView" in 3023 more files. WebCore: Reviewed by mjs. http://bugzilla.opendarwin.org/show_bug.cgi?id=9183 Finish renaming of RenderCanvas to RenderView * rendering/RenderView.h: Changed renderName from "RenderCanvas" to "RenderView". git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14684 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Jun, 2006 1 commit
-
-
darin authored
Reviewed by Hyatt Tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646 Test the window.screen.pixelDepth and window.screen.colorDepth * fast/dom/window/window-screen-properties.html: Added * fast/dom/window/window-screen-properties-expected.txt: Added. WebCore: Reviewed by Hyatt. Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8646 Correcting the value returned for window.screen.pixelDepth and window.screen.colorDepth * platform/mac/ScreenMac.mm (screenDepth): Changed to return the BitsPerPixelFromDepth rather than the WindowDepth git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 27 Apr, 2006 1 commit
-
-
ggaren authored
Reviewed by Maciej - Minor fixups I discovered while working on the autogenerator. * kjs/lookup.cpp: (findEntry): ASSERT that size is not 0, because otherwise we'll % by 0, compute a garbage address, and possibly crash. * kjs/lookup.h: (cacheGlobalObject): Don't enumerate cached objects -- ideally, they would be hidden entirely. LayoutTests: - Updated to remove diff shmutz: * fast/dom/Window/window-special-properties-expected.txt: * fast/dom/Window/window-special-properties.html: - Test for global window properties like window.HTMLDocument: * fast/dom/global-constructors-expected.txt: Added. * fast/dom/global-constructors.html: Added. WebCore: Reviewed by Maciej. - Added global constructor autogeneration for the following, many of which are required by *.live.com: Node, Element, Range, CSSRule, CSSValue, CSSPrimitiveValue, CSSStyleDeclaration, Event, MutationEvent, NodeFilter It works like so: - The autogenerator knows about the "Constructor" data type, which gets special treatment because it exists purely in the bindings. It also knows about the "GenerateConstructor" interface attribute, which does just that. - The window interface has many Constructor attributes - The hash table generator swizzles empty tables to tables with one empty bucket, to prevent crashes in Lookup::findEntry. (The old generator used to work this way, too.) - Window object property lookup gets special treatment to allow shadowing of its built-in global constructor properties. We'll need to expand this mechanism in the future and make it more flexible, but it works for now. * DerivedSources.make: * WebCore.vcproj/WebCore/WebCore.vcproj: * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_css.cpp: (KJS::toJS): * bindings/js/kjs_css.h: * bindings/js/kjs_window.cpp: Removed 'namedFrameGetter' and its use because they were bogus; added FIXME describing what they were attempting to do. (KJS::Window::getValueProperty): (KJS::Window::getOverridePropertySlot): (KJS::Window::getOwnPropertySlot): * bindings/js/kjs_window.h: (KJS::Window::): * bindings/scripts/CodeGeneratorJS.pm: * css/CSSPrimitiveValue.idl: * css/CSSRule.idl: * css/CSSStyleDeclaration.idl: Added. * css/CSSValue.idl: * dom/Document.idl: * dom/Element.idl: * dom/Event.idl: * dom/MutationEvent.idl: * dom/Node.idl: * dom/NodeFilter.idl: * dom/Range.idl: * page/DOMWindow.idl: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 14 Apr, 2006 1 commit
-
-
hyatt authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13869 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 28 Mar, 2006 1 commit
-
-
eseidel authored
Reviewed by adele. Make plug-ins test dump as test. * fast/dom/Window/Plug-ins-expected.txt: * fast/dom/Window/Plug-ins.html: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13546 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Mar, 2006 1 commit
-
-
darin authored
Reviewed by Geoff, except for frame-name-reset, which was done by Alexey. - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=3308 Pop-up blocking blocks window.open for already open windows * fast/dom/Window/open-existing-pop-up-blocking-expected.checksum: Added. * fast/dom/Window/open-existing-pop-up-blocking-expected.png: Added. * fast/dom/Window/open-existing-pop-up-blocking-expected.txt: Added. * fast/dom/Window/open-existing-pop-up-blocking.html: Added. * fast/dom/Window/resources/open-sibling-subframe.html: Added. * fast/dom/Window/resources/sibling-subframe-content.html: Added. - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7422 Setting a frame name to the same value resets it to a generated one * fast/frames/frame-name-reset.html: Added. * fast/frames/frame-name-reset-expected.txt: Added. WebCore: Reviewed by Geoff. - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3308 Pop-up blocking blocks window.open for already open windows - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7422 Setting a frame name to the same value resets it to a generated one - refactor frame-name-related functions into the FrameTree object * WebCore.xcodeproj/project.pbxproj: Update for rename. * bridge/mac/MacFrame.h: Remove generateFrameName. * bridge/mac/MacFrame.mm: Ditto. * bridge/mac/PageMac.h: Added a declaration for WebCorePageBridge. * bridge/mac/WebCoreFrameBridge.h: Remove _frameNamespace, generateFrameName, setFrameNamespace, frameNamespace. * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge childFrameNamed:]): Change to call the new child function on the FrameTree. (-[WebCoreFrameBridge findFrameNamed:]): Change to call the new find function on the FrameTree. (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]): Change since the contentPart function has been renamed to contentFrame. * bridge/mac/WebCoreFrameNamespaces.h: Removed everything except for the one method still used on the WebKit side, framesInNamespace:. * bridge/mac/WebCoreFrameNamespaces.m: Renamed. * bridge/mac/WebCoreFrameNamespaces.mm: Added. Reimplemented the framesInNamespace method to use the namespace in WebCore::Page. * bridge/mac/WebCorePageBridge.h: Added setGroupName and groupName. * bridge/mac/WebCorePageBridge.mm: (-[WebCorePageBridge setGroupName:]): Added. Calls through to Page. (-[WebCorePageBridge groupName]): Ditto. * khtml/ecma/kjs_html.cpp: (KJS::HTMLDocument::namedItemGetter): Changed to call contentFrame by its new name. (KJS::HTMLElement::frameGetter): Ditto. (KJS::HTMLElement::iFrameGetter): Ditto. * khtml/ecma/kjs_window.cpp: (KJS::Window::getValueProperty): Changed to call FrameTree::childCount instead of Frame::frames. (KJS::Window::childFrameGetter): Changed to call FrameTree::child instead of Frame::childFrameNamed. (KJS::Window::namedFrameGetter): Changed to call FrameTree::find instead of Frame::findFrame. (KJS::Window::indexGetter): Changed to call FrameTree::child instead of Frame::frames. (KJS::Window::getOwnPropertySlot): Changed to call FrameTree::child, FrameTree::find, and FrameTree::childCount instead of Frame::childFrameNamed, and Frame::findFrame, and Frame::frames. (KJS::WindowFunc::callAsFunction): Call FrameTree::find to check if the window is already open when considering whether to block a pop-up. (KJS::FrameArray::getValueProperty): Changed to call FrameTree::childCount instead of Frame::frames. (KJS::FrameArray::indexGetter): Changed to call FrameTree::child instead of Frame::frames. (KJS::FrameArray::nameGetter): Changed to call FrameTree::child instead of Frame::findFrame. (KJS::FrameArray::getOwnPropertySlot): Changed to call FrameTree::child, and FrameTree::childCount instead of Frame::findFrame and Frame::frames. * khtml/html/html_baseimpl.h: * khtml/html/html_baseimpl.cpp: (WebCore::HTMLFrameElementImpl::isURLAllowed): Changed to call Page::frameCount instead of Frame::topLevelFrameCount. (WebCore::HTMLFrameElementImpl::openURL): Changed to call FrameTree::child instead of Frame::findFrame. (WebCore::HTMLFrameElementImpl::attach): Changed to call Page::incrementFrameCount instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName instead of Frame::requestFrameName. (WebCore::HTMLFrameElementImpl::close): Changed to call Page::decrementFrameCount instead of Frame::decrementFrameCount. Changed to call FrameTree::child instead of Frame::findFrame. (WebCore::HTMLFrameElementImpl::contentFrame): Renamed from contentPart. Also changed to call FrameTree::child instead of Frame::findFrame. (WebCore::HTMLFrameElementImpl::contentDocument): Updated for name change of contentFrame from contentPart. (WebCore::HTMLIFrameElementImpl::attach): Changed to call Page::incrementFrameCount instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName instead of Frame::requestFrameName. * rendering/render_frames.cpp: (WebCore::isURLAllowed): Changed to call Page::frameCount instead of Frame::topLevelFrameCount. * page/Frame.h: Removed frameNames, frames, childFrameNamed, findFrame, currentFrame, frameExists, incrementFrameCount, decrementFrameCount, topLevelFrameCount, generateFrameName, and requestFrameName functions. * page/Frame.cpp: (WebCore::Frame::requestFrame): Changed to use FrameTree::child instead of Frame::childFrameNamed. * page/FrameTree.h: Changed name to an atomic string. Changed childCount to unsigned. Added isDescendantOf, traverseNext, child, find, uniqueChildName. * page/FrameTree.cpp: (WebCore::FrameTree::setName): Changed to call uniqueChildName to handle name duplication logic. (WebCore::FrameTree::uniqueChildName): Added. Checks for duplication and generates an appropriate frame name if there is a duplicate. (WebCore::FrameTree::child): Added. (WebCore::FrameTree::find): Added. (WebCore::FrameTree::isDescendantOf): Added. (WebCore::FrameTree::traverseNext): Added. * page/Page.h: Added setGroupName, groupName, frameNamespace, incrementFrameCount, decrementFrameCount, and frameCount. * page/Page.cpp: (WebCore::Page::Page): Initialize m_frameCount to 0. (WebCore::Page::~Page): Call setGroupName to remove the page from any group it's in. (WebCore::Page::setGroupName): Added. (WebCore::Page::frameNamespace): Added. * platform/win/TemporaryLinkStubs.cpp: Removed FrameWin::generateFrameName. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 24 Feb, 2006 1 commit
-
-
darin authored
- test <rdar://problem/4456287> REGRESSION: assertion failure at mypage.apple.com in WebCore::TimerBase::nextFireInterval() const + 100 (Timer.cpp:188) * fast/dom/Window/redirect-with-timer.html: Added. * fast/dom/Window/redirect-with-timer-expected.txt: Added. WebCore: Reviewed by Maciej. - fix <rdar://problem/4456287> REGRESSION: assertion failure at mypage.apple.com in WebCore::TimerBase::nextFireInterval() const + 100 (Timer.cpp:188) Test: fast/dom/Window/redirect-with-timer.html * platform/Timer.h: Made isActive no longer inline. Added inHeap function. * platform/Timer.cpp: Changed assertions to use inHeap function for clarity. (WebCore::TimerBase::isActive): Return true for timers that are ready to fire. They have a next fire time of 0, but they should still be considered active. (WebCore::TimerBase::checkConsistency): Correct the consistency check. The new rule is that timers with a next fire time of 0 are not in the heap, and all other timers are. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12985 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 01 Feb, 2006 1 commit
-
-
http://bugzilla.opendarwin.org/show_bug.cgi?id=7018darin authored
REGRESSION: clearTimeout no longer works * fast/dom/Window/clear-timeout.html: Added. * fast/dom/Window/clear-timeout-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12517 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 29 Jan, 2006 1 commit
-
-
darin authored
- tests for http://bugzilla.opendarwin.org/show_bug.cgi?id=6550 REGRESSION: window.open('myurl', '_self') fails to load myurl in current window * fast/dom/Window/window-open-parent.html: Added. * fast/dom/Window/window-open-parent-no-parent.html: Added. * fast/dom/Window/window-open-self.html: Added. * fast/dom/Window/window-open-top.html: Added. * fast/dom/Window/resources: Added. * fast/dom/Window/resources/destination.html: Added. * fast/dom/Window/window-open-parent-expected.txt: Added. * fast/dom/Window/window-open-parent-no-parent-expected.txt: Added. * fast/dom/Window/window-open-self-expected.txt: Added. * fast/dom/Window/window-open-top-expected.txt: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 08 Jan, 2006 1 commit
-
-
mjs authored
Reviewed by Eric. - Update JavaScript tests so they use KDE style http://bugzilla.opendarwin.org/show_bug.cgi?id=6441 * fast/js/Plug-ins-expected.checksum: Removed. * fast/js/Plug-ins-expected.png: Removed. * fast/js/Plug-ins-expected.txt: Removed. * fast/js/Plug-ins.html: Removed. * fast/js/activation-proto-expected.txt: * fast/js/activation-proto.html: * fast/js/array-every-expected.txt: * fast/js/array-every.html: * fast/js/array-float-delete-expected.txt: * fast/js/array-float-delete.html: * fast/js/array-special-accessors-should-ignore-items-expected.txt: Removed. * fast/js/array-special-accessors-should-ignore-items.html: Removed. * fast/js/assign-expected.txt: * fast/js/assign.html: * fast/js/char-at-expected.txt: * fast/js/char-at.html: * fast/js/code-serialize-paren-expected.txt: * fast/js/code-serialize-paren.html: * fast/js/const-expected.txt: * fast/js/const.html: * fast/js/cyclic-ref-toString-expected.txt: * fast/js/cyclic-ref-toString.html: * fast/js/date-DST-pre-1970-expected.txt: * fast/js/date-DST-pre-1970.html: * fast/js/date-big-constructor-expected.txt: * fast/js/date-big-constructor.html: * fast/js/date-big-setdate-expected.txt: * fast/js/date-big-setdate.html: * fast/js/date-big-setmonth-expected.txt: * fast/js/date-big-setmonth.html: * fast/js/date-negative-setmonth-expected.txt: * fast/js/date-negative-setmonth.html: * fast/js/date-parse-comments-test-expected.txt: * fast/js/date-parse-comments-test.html: * fast/js/date-parse-test-expected.txt: * fast/js/date-parse-test.html: * fast/js/date-preserve-milliseconds-expected.txt: * fast/js/date-preserve-milliseconds.html: * fast/js/declaration-in-block-expected.txt: * fast/js/declaration-in-block.html: * fast/js/delete-syntax-expected.txt: * fast/js/delete-syntax.html: * fast/js/eval-var-decl-expected.txt: * fast/js/eval-var-decl.html: * fast/js/exception-linenums-expected.txt: * fast/js/exception-linenums.html: * fast/js/for-in-to-text-expected.txt: * fast/js/for-in-to-text.html: * fast/js/global-opener-function-expected.txt: Removed. * fast/js/global-opener-function.html: Removed. * fast/js/has-own-property-expected.txt: * fast/js/has-own-property.html: * fast/js/integer-extremes-expected.txt: * fast/js/integer-extremes.html: * fast/js/isPrototypeOf-expected.txt: Added. * fast/js/isPrototypeOf.html: Added. * fast/js/kde/Array-expected.txt: * fast/js/kde/Array.html: * fast/js/kde/Boolean-expected.txt: * fast/js/kde/Boolean.html: * fast/js/kde/Date-expected.txt: * fast/js/kde/Date.html: * fast/js/kde/Error-expected.txt: * fast/js/kde/Error.html: * fast/js/kde/GlobalObject-expected.txt: * fast/js/kde/GlobalObject.html: * fast/js/kde/Number-expected.txt: * fast/js/kde/Number.html: * fast/js/kde/Object-expected.txt: * fast/js/kde/Object.html: * fast/js/kde/Prototype-expected.txt: * fast/js/kde/Prototype.html: * fast/js/kde/RegExp-expected.txt: * fast/js/kde/RegExp.html: * fast/js/kde/StringObject-expected.txt: * fast/js/kde/StringObject.html: * fast/js/kde/assignments-expected.txt: * fast/js/kde/assignments.html: * fast/js/kde/cast-expected.txt: * fast/js/kde/cast.html: * fast/js/kde/comment-1-expected.txt: * fast/js/kde/comment-1.html: * fast/js/kde/comment-2-expected.txt: * fast/js/kde/comment-2.html: * fast/js/kde/completion-expected.txt: * fast/js/kde/completion.html: * fast/js/kde/conditional-expected.txt: * fast/js/kde/conditional.html: * fast/js/kde/const-expected.txt: * fast/js/kde/const.html: * fast/js/kde/constructor_length-expected.txt: * fast/js/kde/constructor_length.html: * fast/js/kde/crash-1-expected.txt: * fast/js/kde/crash-1.html: * fast/js/kde/crash-2-expected.txt: * fast/js/kde/crash-2.html: * fast/js/kde/delete-expected.txt: * fast/js/kde/delete.html: * fast/js/kde/empty-expected.txt: * fast/js/kde/empty.html: * fast/js/kde/encode_decode_uri-expected.txt: * fast/js/kde/encode_decode_uri.html: * fast/js/kde/eval-expected.txt: * fast/js/kde/eval.html: * fast/js/kde/evil-n-expected.txt: * fast/js/kde/evil-n.html: * fast/js/kde/exception_propagation-expected.txt: * fast/js/kde/exception_propagation.html: * fast/js/kde/exceptions-expected.txt: * fast/js/kde/exceptions.html: * fast/js/kde/function-expected.txt: * fast/js/kde/function.html: * fast/js/kde/function_arguments-expected.txt: * fast/js/kde/function_arguments.html: * fast/js/kde/function_constructor-expected.txt: * fast/js/kde/function_constructor.html: * fast/js/kde/function_length-expected.txt: * fast/js/kde/function_length.html: * fast/js/kde/garbage-n-expected.txt: * fast/js/kde/garbage-n.html: * fast/js/kde/inbuilt_function_proto-expected.txt: * fast/js/kde/inbuilt_function_proto.html: * fast/js/kde/inbuilt_function_tostring-expected.txt: * fast/js/kde/inbuilt_function_tostring.html: * fast/js/kde/iteration-expected.txt: * fast/js/kde/iteration.html: * fast/js/kde/j-comment-3-expected.txt: * fast/js/kde/j-comment-3.html: * fast/js/kde/j-comment-4-expected.txt: * fast/js/kde/j-comment-4.html: * fast/js/kde/literals-expected.txt: * fast/js/kde/literals.html: * fast/js/kde/math-expected.txt: * fast/js/kde/math.html: * fast/js/kde/md5-1-expected.txt: * fast/js/kde/md5-1.html: * fast/js/kde/md5-2-expected.txt: * fast/js/kde/md5-2.html: * fast/js/kde/object_prototype-expected.txt: * fast/js/kde/object_prototype.html: * fast/js/kde/object_prototype_tostring-expected.txt: * fast/js/kde/object_prototype_tostring.html: * fast/js/kde/operators-expected.txt: * fast/js/kde/operators.html: * fast/js/kde/parse-expected.txt: * fast/js/kde/parse.html: * fast/js/kde/prototype_length-expected.txt: * fast/js/kde/prototype_length.html: * fast/js/kde/prototype_proto-expected.txt: * fast/js/kde/prototype_proto.html: * fast/js/kde/resources/TEMPLATE-n.html: Added. * fast/js/kde/resources/TEMPLATE.html: Added. * fast/js/kde/resources/base.js: Removed. * fast/js/kde/resources/inbuilt_function_tostring.js: * fast/js/kde/resources/shell.js: Removed. * fast/js/kde/scope-expected.txt: * fast/js/kde/scope.html: * fast/js/kde/statements-expected.txt: * fast/js/kde/statements.html: * fast/js/kde/string-1-n-expected.txt: * fast/js/kde/string-1-n.html: * fast/js/kde/string-2-n-expected.txt: * fast/js/kde/string-2-n.html: * fast/js/kde/var_decl_init-expected.txt: * fast/js/kde/var_decl_init.html: * fast/js/location-assign-expected.txt: Removed. * fast/js/location-assign.html: Removed. * fast/js/named-function-expression-expected.txt: * fast/js/named-function-expression.html: * fast/js/objc-big-method-name-expected.txt: Removed. * fast/js/objc-big-method-name.html: Removed. * fast/js/object-by-name-or-id-expected.txt: Removed. * fast/js/object-by-name-or-id.html: Removed. * fast/js/object-prototype-constructor-expected.txt: * fast/js/object-prototype-constructor.html: * fast/js/object-prototype-toLocaleString-expected.txt: * fast/js/object-prototype-toLocaleString.html: * fast/js/postfix-syntax-expected.txt: * fast/js/postfix-syntax.html: * fast/js/prefix-syntax-expected.txt: * fast/js/prefix-syntax.html: * fast/js/property-getters-and-setters-expected.txt: * fast/js/property-getters-and-setters.html: * fast/js/propertyIsEnumerable-expected.txt: Added. * fast/js/propertyIsEnumerable.html: Added. * fast/js/regexp-caching-expected.txt: * fast/js/regexp-extended-characters-crash-expected.txt: * fast/js/regexp-extended-characters-crash.html: * fast/js/regexp-extended-characters-match-expected.txt: * fast/js/regexp-extended-characters-match.html: * fast/js/regexp-lastindex-expected.txt: * fast/js/regexp-lastindex.html: * fast/js/replace-child-siblings-expected.txt: Removed. * fast/js/replace-child-siblings.html: Removed. * fast/js/resources/TEMPLATE.html: Added. * fast/js/resources/activation-proto.js: Added. * fast/js/resources/array-every.js: Added. * fast/js/resources/array-float-delete.js: Added. * fast/js/resources/assign.js: Added. * fast/js/resources/char-at.js: Added. * fast/js/resources/child.html: Removed. * fast/js/resources/code-serialize-paren.js: Added. * fast/js/resources/const.js: Added. * fast/js/resources/cyclic-ref-toString.js: Added. * fast/js/resources/date-DST-pre-1970.js: Added. * fast/js/resources/date-big-constructor.js: Added. * fast/js/resources/date-big-setdate.js: Added. * fast/js/resources/date-big-setmonth.js: Added. * fast/js/resources/date-negative-setmonth.js: Added. * fast/js/resources/date-parse-comments-test.js: Added. * fast/js/resources/date-parse-test.js: Added. * fast/js/resources/date-preserve-milliseconds.js: Added. * fast/js/resources/declaration-in-block.js: Added. * fast/js/resources/delete-syntax.js: Added. * fast/js/resources/eval-var-decl.js: Added. * fast/js/resources/exception-linenums.js: Added. * fast/js/resources/for-in-to-text.js: Added. * fast/js/resources/has-own-property.js: Added. * fast/js/resources/integer-extremes.js: Added. * fast/js/resources/isPrototypeOf.js: Added. * fast/js/resources/js-test-post-n.js: Added. * fast/js/resources/js-test-post.js: Added. * fast/js/resources/js-test-pre.js: Added. * fast/js/resources/js-test-style.css: Added. * fast/js/resources/named-function-expression.js: Added. * fast/js/resources/new-location.html: Removed. * fast/js/resources/object-prototype-constructor.js: Added. * fast/js/resources/object-prototype-toLocaleString.js: Added. * fast/js/resources/postfix-syntax.js: Added. * fast/js/resources/prefix-syntax.js: Added. * fast/js/resources/property-getters-and-setters.js: Added. * fast/js/resources/propertyIsEnumerable.js: Added. * fast/js/resources/regexp-extended-characters-crash.js: Added. * fast/js/resources/regexp-extended-characters-match.js: Added. * fast/js/resources/regexp-lastindex.js: Added. * fast/js/resources/slash-lineterminator-parse.js: Added. * fast/js/resources/string-from-char-code.js: Added. * fast/js/resources/string-index-overflow.js: Added. * fast/js/resources/string-replace-2.js: Added. * fast/js/resources/string-slice-abnormal-values.js: Added. * fast/js/resources/string-split-ignore-case.js: Added. * fast/js/resources/string_replace.js: Added. * fast/js/resources/toString-overrides.js: Added. * fast/js/resources/toString-stack-overflow.js: Added. * fast/js/resources/typeof-syntax.js: Added. * fast/js/slash-lineterminator-parse-expected.txt: * fast/js/slash-lineterminator-parse.html: * fast/js/string-from-char-code-expected.txt: * fast/js/string-from-char-code.html: * fast/js/string-index-overflow-expected.txt: * fast/js/string-index-overflow.html: * fast/js/string-replace-2-expected.txt: * fast/js/string-replace-2.html: * fast/js/string-slice-abnormal-values-expected.txt: * fast/js/string-slice-abnormal-values.html: * fast/js/string-split-ignore-case-expected.txt: * fast/js/string-split-ignore-case.html: * fast/js/string_replace-expected.txt: * fast/js/string_replace.html: * fast/js/toString-overrides-expected.txt: * fast/js/toString-overrides.html: * fast/js/toString-stack-overflow-expected.txt: * fast/js/toString-stack-overflow.html: * fast/js/typeof-syntax-expected.txt: * fast/js/typeof-syntax.html: - move DOM tests from fast/js to fast/dom * fast/dom/HTMLDocument/object-by-name-or-id-expected.txt: Added. * fast/dom/HTMLDocument/object-by-name-or-id.html: Added. * fast/dom/Window/Plug-ins-expected.checksum: Added. * fast/dom/Window/Plug-ins-expected.png: Added. * fast/dom/Window/Plug-ins-expected.txt: Added. * fast/dom/Window/Plug-ins.html: Added. * fast/dom/Window/global-opener-function-expected.txt: Added. * fast/dom/Window/global-opener-function.html: Added. * fast/dom/array-special-accessors-should-ignore-items-expected.txt: Added. * fast/dom/array-special-accessors-should-ignore-items.html: Added. * fast/dom/location-assign-expected.txt: Added. * fast/dom/location-assign.html: Added. * fast/dom/objc-big-method-name-expected.txt: Added. * fast/dom/objc-big-method-name.html: Added. * fast/dom/replace-child-siblings-expected.txt: Added. * fast/dom/replace-child-siblings.html: Added. * fast/dom/resources/child.html: Added. * fast/dom/resources/new-location.html: Added. * fast/dom/resources/xmlhttprequest-get-data.xml: Added. * fast/dom/test-prototypes-expected.txt: Added. * fast/dom/test-prototypes.html: Added. * fast/dom/window-object-cross-frame-calls-expected.txt: Added. * fast/dom/window-object-cross-frame-calls.html: Added. * fast/dom/xmlhttprequest-get-expected.txt: Added. * fast/dom/xmlhttprequest-get.xhtml: Added. WebKitTools: Reviewed by Eric. - script to generate HTML wrappers for JS tests http://bugzilla.opendarwin.org/show_bug.cgi?id=6441 * Scripts/make-js-test-wrappers: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-