1. 10 Nov, 2007 1 commit
  2. 01 Nov, 2007 1 commit
  3. 30 Oct, 2007 1 commit
    • antti's avatar
      Reviewed by Maciej. · 0fec7152
      antti authored
              
              Media tests from feature branch.
      
              * fast/dom/Window/window-properties-expected.txt: Replaced.
              * fast/dom/Window/window-properties.html: Replaced.
              * media: Added.
              * media/audio-constructor-expected.txt: Added.
              * media/audio-constructor-src-expected.txt: Added.
              * media/audio-constructor-src.html: Added.
              * media/audio-constructor.html: Added.
              * media/content: Added.
              * media/content/test.mp4: Added.
              * media/content/test.wav: Added.
              * media/progress-event-expected.txt: Added.
              * media/progress-event.html: Added.
              * media/video-append-source-expected.txt: Added.
              * media/video-append-source.html: Added.
              * media/video-autoplay-expected.txt: Added.
              * media/video-autoplay.html: Added.
              * media/video-buffered-expected.txt: Added.
              * media/video-buffered.html: Added.
              * media/video-cuepoint-add-expected.txt: Added.
              * media/video-cuepoint-add.html: Added.
              * media/video-cuepoint-multiple-expected.txt: Added.
              * media/video-cuepoint-multiple.html: Added.
              * media/video-cuepoint-pause-expected.txt: Added.
              * media/video-cuepoint-pause.html: Added.
              * media/video-cuepoint-remove-expected.txt: Added.
              * media/video-cuepoint-remove-multiple-expected.txt: Added.
              * media/video-cuepoint-remove-multiple.html: Added.
              * media/video-cuepoint-remove.html: Added.
              * media/video-currentTime-expected.txt: Added.
              * media/video-currentTime-set-expected.txt: Added.
              * media/video-currentTime-set.html: Added.
              * media/video-currentTime-set2-expected.txt: Added.
              * media/video-currentTime-set2.html: Added.
              * media/video-currentTime.html: Added.
              * media/video-dom-autoplay-expected.txt: Added.
              * media/video-dom-autoplay.html: Added.
              * media/video-dom-end-expected.txt: Added.
              * media/video-dom-end.html: Added.
              * media/video-dom-loopcount-expected.txt: Added.
              * media/video-dom-loopcount.html: Added.
              * media/video-dom-loopend-expected.txt: Added.
              * media/video-dom-loopend.html: Added.
              * media/video-dom-loopstart-expected.txt: Added.
              * media/video-dom-loopstart.html: Added.
              * media/video-dom-src-expected.txt: Added.
              * media/video-dom-src.html: Added.
              * media/video-dom-start-expected.txt: Added.
              * media/video-dom-start.html: Added.
              * media/video-end-expected.txt: Added.
              * media/video-end.html: Added.
              * media/video-error-abort-expected.txt: Added.
              * media/video-error-abort.html: Added.
              * media/video-error-does-not-exist-expected.txt: Added.
              * media/video-error-does-not-exist.html: Added.
              * media/video-load-networkState-expected.txt: Added.
              * media/video-load-networkState.html: Added.
              * media/video-load-readyState-expected.txt: Added.
              * media/video-load-readyState.html: Added.
              * media/video-loopcount-expected.txt: Added.
              * media/video-loopcount.html: Added.
              * media/video-loopend-expected.txt: Added.
              * media/video-loopend.html: Added.
              * media/video-loopstart-expected.txt: Added.
              * media/video-loopstart.html: Added.
              * media/video-muted-expected.txt: Added.
              * media/video-muted.html: Added.
              * media/video-no-autoplay-expected.txt: Added.
              * media/video-no-autoplay.html: Added.
              * media/video-seekable-expected.txt: Added.
              * media/video-seekable.html: Added.
              * media/video-size-expected.txt: Added.
              * media/video-size.html: Added.
              * media/video-source-expected.txt: Added.
              * media/video-source-media-expected.txt: Added.
              * media/video-source-media.html: Added.
              * media/video-source-type-expected.txt: Added.
              * media/video-source-type.html: Added.
              * media/video-source.html: Added.
              * media/video-src-expected.txt: Added.
              * media/video-src-source-expected.txt: Added.
              * media/video-src-source.html: Added.
              * media/video-src.html: Added.
              * media/video-start-expected.txt: Added.
              * media/video-start.html: Added.
              * media/video-test.js: Added.
              * media/video-volume-expected.txt: Added.
              * media/video-volume.html: Added.
              * platform/qt/Skipped:
              * platform/win/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0fec7152
  4. 27 Oct, 2007 1 commit
    • weinig's avatar
      WebCore: · 5e5675ed
      weinig authored
              Reviewed by Adam Roben.
      
              Fix http://bugs.webkit.org/show_bug.cgi?id=14953
              Implement window.console in WebCore
      
              - Adds a window.console object that has 4 methods (log, info, warn, and error)
                that send messages to the Chrome.  This moves functionality that was in the
                app down into WebCore.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/scripts/CodeGeneratorJS.pm: Add extended attribute
              to mark attributes as [Replacable] which indicates they can 
              overridden when set.
              * page/Chrome.cpp:
              (WebCore::Chrome::addMessageToConsole): Allow all messages to go
              up to the ChromeClient.
              * page/Console.cpp: Added.
              (WebCore::Console::Console):
              (WebCore::Console::disconnectFrame):
              (WebCore::Console::error):
              (WebCore::Console::info):
              (WebCore::Console::log):
              (WebCore::Console::warn):
              * page/Console.h: Added.
              * page/Console.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::clear):
              (WebCore::DOMWindow::console):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      LayoutTests:
      
              Reviewed by Adam Roben.
      
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=14953
              Implement window.console in WebCore
      
              * fast/dom/Window/window-properties-expected.txt:
              * http/tests/security/cross-frame-access-put-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@27161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5e5675ed
  5. 19 Oct, 2007 1 commit
  6. 12 Oct, 2007 4 commits
    • oliver's avatar
      2007-10-07 Sam Weinig <sam@webkit.org> · 7a6a508d
      oliver authored
              Reviewed by Darin & Nikolas.  Landed by eseidel.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14455
              Autogenerate the JS bindings for the StyleSheetList
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSStyleSheetListCustom.cpp: Added.
              (WebCore::JSStyleSheetList::canGetItemsForName):
              (WebCore::JSStyleSheetList::nameGetter):
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.h:
              * bindings/objc/DOMUtility.mm:
              * bindings/scripts/CodeGeneratorJS.pm:
              * css/StyleSheetList.cpp:
              (WebCore::StyleSheetList::StyleSheetList):
              (WebCore::StyleSheetList::documentDestroyed):
              (WebCore::StyleSheetList::getNamedItem):
              * css/StyleSheetList.h: Add Document member variable and
              getNamedItem function to accommodate the odd javascript
              name getter functionality.
              * css/StyleSheetList.idl:
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::~Document):
              * page/DOMWindow.idl: Add StyleSheetListConstructor
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a6a508d
    • oliver's avatar
      Reviewed by Darin. · 9119a9c0
      oliver authored
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13707
              REGRESSION: JavaScript exceptions on quotes.burntelectrons.org
      
              http://bugs.webkit.org/show_bug.cgi?id=12628
              document.body is not supported in XHTML documents
      
              http://bugs.webkit.org/show_bug.cgi?id=14213
              On page with MIME type application/xhtml+xml, cookie don't work
      
      WebCore:
              Moved a bunch of methods and properties from HTMLDocument down into Document to make
              them available for all documents (xml, svg).
              What was kept in HTMLDocument:
              - some methods and properties that are not in HTML5 (yet?);
              - open/write/writeln/close, as they will need to be modified to work on XML documents, and aren't
              of much use for those anyway;
              - designMode, because its definition in HTML5 is incompatible with our implementation.
      
              Covered by existing tests.
      
              * bindings/js/JSDocumentCustom.cpp:
              (WebCore::JSDocument::location):
              (WebCore::JSDocument::setLocation):
              * bindings/js/JSHTMLDocumentCustom.cpp:
              * bindings/objc/PublicDOMInterfaces.h:
              * dom/Document.cpp:
              (WebCore::Document::setBody):
              (WebCore::Document::cookie):
              (WebCore::Document::setCookie):
              (WebCore::Document::lastModified):
              * dom/Document.h:
              (WebCore::Document::title):
              * dom/Document.idl:
              * html/HTMLDocument.cpp:
              * html/HTMLDocument.h:
              * html/HTMLDocument.idl:
      
      LayoutTests:
              * dom/xhtml/level2/html/HTMLBaseElement01-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBaseElement01-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBaseElement01-expected.txt:
              * dom/xhtml/level2/html/HTMLBaseElement01.xhtml:
              * dom/xhtml/level2/html/HTMLBaseElement02-expected.checksum: Removed.
              * dom/xhtml/level2/html/HTMLBaseElement02-expected.png: Removed.
              * dom/xhtml/level2/html/HTMLBaseElement02-expected.txt:
              * dom/xhtml/level2/html/HTMLBaseElement02.xhtml:
              * dom/xhtml/level2/html/HTMLBodyElement07-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement08-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement09-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement10-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement11-expected.txt:
              * dom/xhtml/level2/html/HTMLBodyElement12-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument01-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument02-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument03-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument05-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument07-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument08-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument09-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument10-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument11-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument12-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument13-expected.txt:
              * dom/xhtml/level2/html/HTMLDocument14-expected.txt:
              * dom/xhtml/level2/html/doc01-expected.txt:
              These now pass. Changed HTMLBaseElement* to dump as text.
      
              * fast/dom/Window/window-properties-expected.txt: Added Document.prototype.getElementsByName
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9119a9c0
    • oliver's avatar
      Correcting expected layout test results · 86eb8a19
      oliver authored
      RS = Eric
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/images/svg-as-image-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      86eb8a19
    • oliver's avatar
      Reviewed by Sam. · db4c3158
      oliver authored
      Recognizee <textPath> in SVG JS bindings.
      Add JSSVGTextPathElement to JSSVGElementWrapperFactory.
      
      Add SVGException.idl just for the JS generation.
      Turn on all SVG JS constructors and add them to DOMWindow.idl.
      
      Testcase added: LayoutTests/svg/custom/js-svg-constructors.svg
      
      Forgot to commit the ChangeLog and two files in my last commit!
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@26420 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db4c3158
  7. 05 Sep, 2007 1 commit
    • weinig's avatar
      Reviewed by Geoff Garen. · c0e0ec90
      weinig authored
              Don't log DumpRenderTree injected properties in fast/dom/Window/window-properties.html.  This change makes
              it pass on Windows so it can be removed from the Skipped list.
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/Window/window-properties.html:
              * platform/win/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25376 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0e0ec90
  8. 27 Jun, 2007 1 commit
    • weinig's avatar
      LayoutTests: · b0c299a9
      weinig authored
              Reviewed by Geoff.
      
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=14319
              Move the Selection object out of the JS bindings
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/js/toString-and-valueOf-override-expected.txt:
              * http/tests/security/cross-frame-access-expected.txt:
      
      WebCore:
      
              Reviewed by Geoff.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14319
              Move the Selection object out of the JS bindings
      
              - Renames JS Object Selection to DOMSelection to avoid a name
                conflict.
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::clearHelperObjectProperties):
              (KJS::WindowFunc::callAsFunction):
              (KJS::Window::disconnectFrame):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * page/DOMSelection.cpp: Added.
              (WebCore::DOMSelection::DOMSelection):
              (WebCore::DOMSelection::frame):
              (WebCore::DOMSelection::disconnectFrame):
              (WebCore::DOMSelection::anchorNode):
              (WebCore::DOMSelection::baseNode):
              (WebCore::DOMSelection::anchorOffset):
              (WebCore::DOMSelection::baseOffset):
              (WebCore::DOMSelection::focusNode):
              (WebCore::DOMSelection::extentNode):
              (WebCore::DOMSelection::focusOffset):
              (WebCore::DOMSelection::extentOffset):
              (WebCore::DOMSelection::isCollapsed):
              (WebCore::DOMSelection::type):
              (WebCore::DOMSelection::rangeCount):
              (WebCore::DOMSelection::collapse):
              (WebCore::DOMSelection::collapseToEnd):
              (WebCore::DOMSelection::collapseToStart):
              (WebCore::DOMSelection::empty):
              (WebCore::DOMSelection::setBaseAndExtent):
              (WebCore::DOMSelection::setPosition):
              (WebCore::DOMSelection::modify):
              (WebCore::DOMSelection::getRangeAt):
              (WebCore::DOMSelection::removeAllRanges):
              (WebCore::DOMSelection::addRange):
              (WebCore::DOMSelection::toString):
              * page/DOMSelection.h: Added.
              * page/DOMSelection.idl: Added.
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::getSelection):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b0c299a9
  9. 26 Jun, 2007 1 commit
    • weinig's avatar
      LayoutTests: · f8e2e224
      weinig authored
              Reviewed by Maciej.
      
              Make sure not to enumerate the toString() function.
              <rdar://problem/5297118>
      
              * fast/dom/Window/window-appendages-cleared-expected.txt:
              * fast/dom/Window/window-properties-expected.txt:
              * fast/js/toString-dontEnum-expected.txt: Added.
              * fast/js/toString-dontEnum.html: Added.
      
      WebCore:
      
              Reviewed by Maciej.
      
              Make sure not to enumerate the toString() function.
              <rdar://problem/5297118>
      
              * bindings/js/kjs_window.cpp:
              * bindings/scripts/CodeGeneratorJS.pm: Add support for [DontEnum].
              * html/HTMLAnchorElement.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8e2e224
  10. 18 Jun, 2007 2 commits
    • weinig's avatar
      LayoutTests: · b8d23237
      weinig authored
              Reviewed by Geoff.
      
              Updates tests for http://bugs.webkit.org/show_bug.cgi?id=14193
              Move the Screen object out of the JS bindings
      
              * fast/dom/Window/window-appendages-cleared-expected.txt:
              * fast/dom/Window/window-properties-expected.txt:
      
      WebCore:
      
              Reviewed by Geoff.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14193
              Move the Screen object out of the JS bindings
      
              - Renames Screen.h to PlatformScreen.h to accommodate new class.
              - Autogenerates JSScreen.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::getValueProperty):
              (KJS::Window::clearHelperObjectProperties):
              * bindings/js/kjs_window.h:
              (KJS::Window::):
              * css/MediaQueryEvaluator.cpp:
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::DOMWindow):
              (WebCore::DOMWindow::~DOMWindow):
              (WebCore::DOMWindow::frame):
              (WebCore::DOMWindow::disconnectFrame):
              (WebCore::DOMWindow::screen):
              * page/DOMWindow.h:
              * page/DOMWindow.idl:
              * page/Screen.cpp: Added.
              (WebCore::Screen::Screen):
              (WebCore::Screen::disconnectFrame):
              (WebCore::Screen::height):
              (WebCore::Screen::width):
              (WebCore::Screen::colorDepth):
              (WebCore::Screen::pixelDepth):
              (WebCore::Screen::availLeft):
              (WebCore::Screen::availTop):
              (WebCore::Screen::availHeight):
              (WebCore::Screen::availWidth):
              * page/Screen.h: Added.
              * page/Screen.idl: Added.
              * page/mac/WebCoreFrameBridge.mm:
              * platform/PlatformScreen.h: Copied from WebCore/platform/Screen.h.
              * platform/Screen.h: Removed.
              * platform/gdk/PlatformScreenGdk.cpp: Copied from WebCore/platform/gdk/ScreenGdk.cpp.
              * platform/gdk/ScreenGdk.cpp: Removed.
              * platform/mac/PlatformMouseEventMac.mm:
              * platform/mac/PlatformScreenMac.mm: Copied from WebCore/platform/mac/ScreenMac.mm.
              * platform/mac/ScreenMac.mm: Removed.
              * platform/qt/PlatformScreenQt.cpp: Added.
              (WebCore::WebCore::screenDepth):
              (WebCore::WebCore::screenDepthPerComponent):
              (WebCore::WebCore::screenIsMonochrome):
              (WebCore::WebCore::screenRect):
              (WebCore::WebCore::screenAvailableRect):
              * platform/qt/TemporaryLinkStubs.cpp:
              * platform/win/PlatformScreenWin.cpp: Copied from WebCore/platform/win/ScreenWin.cpp.
              * platform/win/ScreenWin.cpp: Removed.
              * rendering/RenderObject.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8d23237
    • weinig's avatar
      LayoutTests: · fb0910db
      weinig authored
              Reviewed by Darin.
      
              Update tests now that window.frames points to window and not FrameArray
              (which has been removed).
      
              * fast/dom/Window/resources/window-appendages-cleared-results.html:
              * fast/dom/Window/window-appendages-cleared-expected.txt:
              * fast/dom/Window/window-appendages-cleared.html:
              * fast/dom/Window/window-properties-expected.txt:
              * fast/js/toString-and-valueOf-override-expected.txt:
              * fast/js/toString-and-valueOf-override.html:
      
      WebCore:
      
              Reviewed by Darin.
      
              Remove the FrameArray class and instead make window.frames another
              self-reference for window (like window.window, window.self, etc).
              This is what Firefox and what the HTML5 dictates.
      
              * bindings/js/kjs_window.cpp:
              (KJS::WindowPrivate::WindowPrivate):
              (KJS::Window::mark):
              (KJS::Window::getValueProperty):
              (KJS::Window::clearHelperObjectProperties):
              (KJS::Window::disconnectFrame):
              * bindings/js/kjs_window.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb0910db
  11. 15 Jun, 2007 1 commit
    • weinig's avatar
      LayoutTests: · a6188e22
      weinig authored
              Reviewed by Darin.
      
              Update test for http://bugs.webkit.org/show_bug.cgi?id=14053
              Autogenerate JS binding for Rect
      
              * fast/dom/Window/window-properties-expected.txt:
      
      WebCore:
      
              Reviewed by Darin.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14053
              Autogenerate JS binding for Rect
      
              - Renames RectImpl to Rect, DOMStyleSheetList to JSStyleSheetList 
                and DOMRGBColor to JSRGBColor
              - Moves JSStyleSheetList and JSRGBColor into the WebCore namespace.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_css.cpp:
              (WebCore::):
              (WebCore::JSStyleSheetList::JSStyleSheetList):
              (WebCore::JSStyleSheetList::~JSStyleSheetList):
              (WebCore::JSStyleSheetList::getValueProperty):
              (WebCore::JSStyleSheetList::indexGetter):
              (WebCore::JSStyleSheetList::nameGetter):
              (WebCore::JSStyleSheetList::getOwnPropertySlot):
              (WebCore::toJS):
              (WebCore::JSStyleSheetListFunc::callAsFunction):
              (WebCore::JSRGBColor::JSRGBColor):
              (WebCore::JSRGBColor::~JSRGBColor):
              (WebCore::JSRGBColor::getOwnPropertySlot):
              (WebCore::JSRGBColor::getValueProperty):
              (WebCore::getJSRGBColor):
              * bindings/js/kjs_css.h:
              (WebCore::JSStyleSheetList::classInfo):
              (WebCore::JSStyleSheetList::):
              (WebCore::JSStyleSheetList::impl):
              (WebCore::JSRGBColor::classInfo):
              (WebCore::JSRGBColor::):
              (WebCore::JSRGBColor::impl):
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              * css/CSSBorderImageValue.cpp:
              (WebCore::CSSBorderImageValue::CSSBorderImageValue):
              * css/CSSBorderImageValue.h:
              * css/CSSPrimitiveValue.cpp:
              (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
              (WebCore::CSSPrimitiveValue::cssText):
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::getRectValue):
              (WebCore::CSSPrimitiveValue::):
              * css/DashboardRegion.h:
              * css/Rect.h: Copied from css/RectImpl.h.
              (WebCore::Rect::~Rect):
              (WebCore::Rect::top):
              (WebCore::Rect::right):
              (WebCore::Rect::bottom):
              (WebCore::Rect::left):
              (WebCore::Rect::setTop):
              (WebCore::Rect::setRight):
              (WebCore::Rect::setBottom):
              (WebCore::Rect::setLeft):
              * css/Rect.idl:
              * css/RectImpl.h: Removed.
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseShape):
              (WebCore::BorderImageParseContext::commitBorderImage):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * page/DOMWindow.idl:
      
      WebKit:
      
              Reviewed by Darin.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=14053
              Autogenerate JS binding for Rect
      
              - Fix conflicts by using ::Rect instead of Rect.
      
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView saveAndSetNewPortStateForUpdate:]):
              (-[WebBaseNetscapePluginView sendEvent:]):
              (-[WebBaseNetscapePluginView tellQuickTimeToChill]):
              (-[WebBaseNetscapePluginView invalidateRegion:]):
              (-[WebBaseNetscapePluginView _printedPluginBitmap]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a6188e22
  12. 06 Jun, 2007 2 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
    • 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
  13. 30 May, 2007 3 commits
    • weinig's avatar
      LayoutTests: · aeca636b
      weinig authored
              Reviewed by Oliver.
      
              Update results for http://bugs.webkit.org/show_bug.cgi?id=13943
              Autogenerate the JS bindings for the CSSStyleSheet
      
              * fast/dom/Window/window-properties-expected.txt:
      
      WebCore:
      
              Reviewed by Oliver.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13943
              Autogenerate the JS bindings for the CSSStyleSheet
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSStyleSheetCustom.cpp:
              (WebCore::toJS):
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.h:
              * bindings/scripts/CodeGeneratorJS.pm:
              * css/CSSStyleSheet.cpp:
              (WebCore::CSSStyleSheet::addRule):
              (WebCore::CSSStyleSheet::cssRules):
              * css/CSSStyleSheet.h:
              (WebCore::CSSStyleSheet::rules):
              (WebCore::CSSStyleSheet::removeRule):
              * css/CSSStyleSheet.idl:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21911 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aeca636b
    • weinig's avatar
      LayoutTests: · 9253dad1
      weinig authored
              Reviewed by Oliver the Hun.
      
              Update results for http://bugs.webkit.org/show_bug.cgi?id=13944
              Generate and add missing JS constructors
      
              * fast/dom/Window/window-properties-expected.txt:
      
      WebCore:
      
              Reviewed by Oliver the Hun.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13944
              Generate and add missing JS constructors
      
              * css/CSSRuleList.idl:
              * css/CSSValueList.idl:
              * css/Counter.idl:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21909 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9253dad1
    • weinig's avatar
      LayoutTests: · 638c3d52
      weinig authored
              Reviewed by Darin.
      
              - Update results for http://bugs.webkit.org/show_bug.cgi?id=13919
                Autogenerate the JS bindings for the CSSRule and its subclasses
      
              * fast/dom/Window/window-properties-expected.txt: adds new constructors
              * fast/dom/wrapper-classes-expected.txt: CSSStyleRule now passes!!
      
      WebCore:
      
              Reviewed by Darin.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13919
              Autogenerate the JS bindings for the CSSRule and its subclasses
      
              - subclasses generated are CSSCharsetRule, CSSFontFaceRule, CSSImportRule
                CSSMediaRule, CSSPageRule and CSSStyleRule.
      
              * DerivedSources.make:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSCSSRuleCustom.cpp: Added.
              (WebCore::toJS):
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.h:
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * css/CSSCharsetRule.h:
              (WebCore::CSSCharsetRule::setEncoding):
              * css/CSSCharsetRule.idl:
              * css/CSSFontFaceRule.idl:
              * css/CSSImportRule.idl:
              * css/CSSMediaRule.idl:
              * css/CSSPageRule.cpp:
              (WebCore::CSSPageRule::setSelectorText):
              * css/CSSPageRule.h:
              * css/CSSPageRule.idl:
              * css/CSSRule.cpp:
              (WebCore::CSSRule::setCssText):
              * css/CSSRule.h:
              * css/CSSRule.idl:
              * css/CSSStyleRule.cpp:
              (WebCore::CSSStyleRule::setSelectorText):
              * css/CSSStyleRule.h:
              * css/CSSStyleRule.idl:
              * page/DOMWindow.idl: add new constructors.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21896 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      638c3d52
  14. 29 May, 2007 2 commits
    • weinig's avatar
      LayoutTests: · 993adb85
      weinig authored
              Reviewed by Oliver.
      
              Update results for http://bugs.webkit.org/show_bug.cgi?id=13912
              Autogenerate the JS bindings for the MediaList
      
              * fast/dom/Window/window-properties-expected.txt: new constructors added.
      
      WebCore:
      
              Reviewed by Oliver.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13912
              Autogenerate the JS bindings for the MediaList
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_css.h:
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * css/MediaList.idl:
              * page/DOMWindow.idl: Add constructor.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21881 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      993adb85
    • weinig's avatar
      LayoutTests: · b4cc524b
      weinig authored
              Reviewed by Oliver.
      
              Update results after http://bugs.webkit.org/show_bug.cgi?id=13908
              Autogenerate the JS bindings for the StyleSheet
      
              * fast/dom/Window/window-properties-expected.txt: Adds StyleSheet constructor
      
      WebCore:
      
              Reviewed by Oliver.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13908
              Autogenerate the JS bindings for the StyleSheet
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSStyleSheetCustom.cpp: Added.
              (WebCore::toJS):
              (WebCore::JSStyleSheet::toBoolean):
              * bindings/js/kjs_css.cpp:
              (KJS::):
              (KJS::DOMCSSStyleSheet::DOMCSSStyleSheet):
              (KJS::DOMCSSStyleSheet::getOwnPropertySlot):
              * bindings/js/kjs_css.h:
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper):
              * bindings/scripts/CodeGeneratorJS.pm:
              * css/StyleSheet.idl:
              * page/DOMWindow.idl: Add new constructor.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4cc524b
  15. 28 May, 2007 1 commit
    • weinig's avatar
      LayoutTests: · 3975ff64
      weinig authored
              Reviewed by Darin.
      
              Update tests for http://bugs.webkit.org/show_bug.cgi?id=13894
              Remove the legacy class KJS::JSHTMLElement
      
              - Corrects prototype chain for all HTMLElement subclasses which
                now only have one HTMLElement prototype and not two.
      
              * fast/dom/Window/window-properties-expected.txt:
              * fast/dom/prototype-chain-expected.txt:
      
      WebCore:
      
              Reviewed by Darin.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13894
              Remove the legacy class KJS::JSHTMLElement
      
              - Now that all of the subclasses of JSHTMLElement are
                autogenerated and no longer rely on the legacy parent,
                we can remove it and update all the HTML idl files to
                reflect so.
      
              - Also adds JSHTMLBlockquoteElement's JS constructor which
                was mistakingly missing.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSHTMLAnchorElementCustom.cpp:
              (WebCore::JSHTMLAnchorElement::toString):
              * bindings/js/JSHTMLElementCustom.cpp: Added.
              (WebCore::JSHTMLElement::pushEventHandlerScope):
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              (WebCore::createJSHTMLWrapper):
              * bindings/js/JSHTMLInputElementBase.cpp:
              (WebCore::):
              (WebCore::JSHTMLInputElementBase::JSHTMLInputElementBase):
              (WebCore::JSHTMLInputElementBase::getOwnPropertySlot):
              (WebCore::JSHTMLInputElementBase::put):
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLSelectElementCustom.cpp:
              * bindings/js/kjs_html.cpp:
              (KJS::runtimeObjectCustomGetOwnPropertySlot):
              * bindings/js/kjs_html.h:
              * bindings/scripts/CodeGeneratorJS.pm:
              * html/HTMLAnchorElement.idl:
              * html/HTMLAppletElement.idl:
              * html/HTMLAreaElement.idl:
              * html/HTMLBRElement.idl:
              * html/HTMLBaseElement.idl:
              * html/HTMLBaseFontElement.idl:
              * html/HTMLBlockquoteElement.idl:
              * html/HTMLBodyElement.idl:
              * html/HTMLButtonElement.idl:
              * html/HTMLCanvasElement.idl:
              * html/HTMLDListElement.idl:
              * html/HTMLDirectoryElement.idl:
              * html/HTMLDivElement.idl:
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::formForEventHandlerScope):
              * html/HTMLElement.h:
              * html/HTMLElement.idl:
              * html/HTMLEmbedElement.idl:
              * html/HTMLFieldSetElement.idl:
              * html/HTMLFontElement.idl:
              * html/HTMLFormElement.idl:
              * html/HTMLFrameElement.idl:
              * html/HTMLFrameSetElement.idl:
              * html/HTMLGenericFormElement.cpp:
              (WebCore::HTMLGenericFormElement::formForEventHandlerScope):
              * html/HTMLGenericFormElement.h:
              * html/HTMLHRElement.idl:
              * html/HTMLHeadElement.idl:
              * html/HTMLHeadingElement.idl:
              * html/HTMLHtmlElement.idl:
              * html/HTMLIFrameElement.idl:
              * html/HTMLImageElement.idl:
              * html/HTMLIsIndexElement.idl:
              * html/HTMLLIElement.idl:
              * html/HTMLLabelElement.cpp:
              (WebCore::HTMLLabelElement::form):
              (WebCore::HTMLLabelElement::formForEventHandlerScope):
              * html/HTMLLabelElement.h:
              * html/HTMLLabelElement.idl:
              * html/HTMLLegendElement.idl:
              * html/HTMLLinkElement.idl:
              * html/HTMLMapElement.idl:
              * html/HTMLMarqueeElement.idl:
              * html/HTMLMenuElement.idl:
              * html/HTMLMetaElement.idl:
              * html/HTMLModElement.idl:
              * html/HTMLOListElement.idl:
              * html/HTMLObjectElement.cpp:
              (WebCore::HTMLObjectElement::formForEventHandlerScope):
              * html/HTMLObjectElement.h:
              * html/HTMLObjectElement.idl:
              * html/HTMLOptGroupElement.idl:
              * html/HTMLOptionElement.idl:
              * html/HTMLParagraphElement.idl:
              * html/HTMLParamElement.idl:
              * html/HTMLPreElement.idl:
              * html/HTMLQuoteElement.idl:
              * html/HTMLScriptElement.idl:
              * html/HTMLSelectElement.idl:
              * html/HTMLStyleElement.idl:
              * html/HTMLTableCaptionElement.idl:
              * html/HTMLTableCellElement.idl:
              * html/HTMLTableColElement.idl:
              * html/HTMLTableElement.idl:
              * html/HTMLTableRowElement.idl:
              * html/HTMLTableSectionElement.idl:
              * html/HTMLTextAreaElement.idl:
              * html/HTMLTitleElement.idl:
              * html/HTMLUListElement.idl:
              * page/DOMWindow.idl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21842 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3975ff64
  16. 27 May, 2007 1 commit
    • weinig's avatar
      LayoutTests: · 4fd93a68
      weinig authored
              Reviewed by Hyatt.
      
              Update results for http://bugs.webkit.org/show_bug.cgi?id=13893
              Autogenerate the JS bindings for the HTMLObjectElement, 
              HTMLEmbedElement and HTMLAppletElement
      
              - account for the new JSHTMLObjectElement and JSHTMLEmbedElement 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 Hyatt.
      
              Patch for http://bugs.webkit.org/show_bug.cgi?id=13893
              Autogenerate the JS bindings for the HTMLObjectElement, 
              HTMLEmbedElement and HTMLAppletElement
      
              * DerivedSources.make:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSHTMLAppletElementCustom.cpp: Added.
              (WebCore::JSHTMLAppletElement::customGetOwnPropertySlot):
              (WebCore::JSHTMLAppletElement::customPut):
              (WebCore::JSHTMLAppletElement::implementsCall):
              (WebCore::JSHTMLAppletElement::callAsFunction):
              (WebCore::JSHTMLAppletElement::canGetItemsForName):
              (WebCore::JSHTMLAppletElement::nameGetter):
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSHTMLEmbedElementCustom.cpp: Added.
              (WebCore::JSHTMLEmbedElement::customGetOwnPropertySlot):
              (WebCore::JSHTMLEmbedElement::customPut):
              (WebCore::JSHTMLEmbedElement::implementsCall):
              (WebCore::JSHTMLEmbedElement::callAsFunction):
              (WebCore::JSHTMLEmbedElement::canGetItemsForName):
              (WebCore::JSHTMLEmbedElement::nameGetter):
              * bindings/js/JSHTMLObjectElementCustom.cpp: Added.
              (WebCore::JSHTMLObjectElement::customGetOwnPropertySlot):
              (WebCore::JSHTMLObjectElement::customPut):
              (WebCore::JSHTMLObjectElement::implementsCall):
              (WebCore::JSHTMLObjectElement::callAsFunction):
              (WebCore::JSHTMLObjectElement::canGetItemsForName):
              (WebCore::JSHTMLObjectElement::nameGetter):
              * bindings/js/kjs_html.cpp:
              (KJS::):
              (KJS::JSHTMLElement::toString):
              (KJS::JSHTMLElement::pushEventHandlerScope):
              (KJS::runtimeObjectGetter):
              (KJS::runtimeObjectPropertyGetter):
              (KJS::runtimeObjectCustomGetOwnPropertySlot):
              (KJS::runtimeObjectCustomPut):
              (KJS::runtimeObjectImplementsCall):
              (KJS::runtimeObjectCallAsFunction):
              * bindings/js/kjs_html.h:
              (KJS::JSHTMLElement::classInfo):
              * bindings/scripts/CodeGeneratorJS.pm: Add support for 
              CustomGetOwnPropertySlot, CustomPutFunction, CustomCall,
              and SVGCheckSecurityDocument properties.
              * html/HTMLAppletElement.idl:
              * html/HTMLEmbedElement.idl:
              * html/HTMLObjectElement.idl:
              * page/DOMWindow.idl: Uncomment constructors.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4fd93a68
  17. 24 May, 2007 1 commit
    • weinig's avatar
      LayoutTests: · deaa7704
      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
      deaa7704
  18. 21 May, 2007 2 commits
    • weinig's avatar
      LayoutTests: · 4d7ce9a5
      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
      4d7ce9a5
    • weinig's avatar
      LayoutTests: · 16885ff7
      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
      16885ff7
  19. 18 May, 2007 1 commit
    • weinig's avatar
      LayoutTests: · a211a4ba
      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
      a211a4ba
  20. 08 May, 2007 1 commit
    • ap's avatar
      Reviewed by Hyatt. · 104861ed
      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
      104861ed
  21. 16 Mar, 2007 1 commit
  22. 08 Mar, 2007 1 commit
  23. 07 Mar, 2007 1 commit
    • darin's avatar
      Reviewed by Geoff. · 593ac5a5
      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
      593ac5a5
  24. 13 Feb, 2007 1 commit
  25. 21 Jan, 2007 1 commit
    • ap's avatar
      Reviewed by Darin. · 9ce7dcca
      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
      9ce7dcca
  26. 17 Jan, 2007 1 commit
    • ap's avatar
      Reviewed by Maciej. · 26e78cb1
      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
      26e78cb1
  27. 08 Jan, 2007 1 commit
    • ap's avatar
      Reviewed by Darin. · 04df0076
      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
      04df0076
  28. 20 Dec, 2006 1 commit
  29. 13 Dec, 2006 1 commit
  30. 12 Dec, 2006 1 commit
  31. 11 Dec, 2006 1 commit
    • ap's avatar
      http://bugs.webkit.org/show_bug.cgi?id=9673 · dcae628b
      ap 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
      dcae628b