WebKit-https.git
12 years ago2007-06-18 Mitz Pettel <mitz@webkit.org>
bdash [Mon, 18 Jun 2007 16:55:20 +0000 (16:55 +0000)]
2007-06-18  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Adele.

        - fix http://bugs.webkit.org/show_bug.cgi?id=13413
          Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets

        Test: fast/forms/input-zero-height-focus.html

        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::setSelectionRange): Avoid setting the
        selection in a zero-height text control.

2007-06-18  Mitz Pettel  <mitz@webkit.org>

        Reviewed by Adele.

        - test for http://bugs.webkit.org/show_bug.cgi?id=13413
          Failed assertion in RenderTextControl::setSelectionRange in Google Spreadsheets

        * fast/forms/input-zero-height-focus-expected.txt: Added.
        * fast/forms/input-zero-height-focus.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23565 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago2007-06-18 Alp Toker <alp.toker@collabora.co.uk>
bdash [Mon, 18 Jun 2007 16:49:55 +0000 (16:49 +0000)]
2007-06-18  Alp Toker  <alp.toker@collabora.co.uk>

        Reviewed by Sam Weinig.

        http://bugs.webkit.org/show_bug.cgi?id=14052
        Implement SoundGdk

        * WebCore.pro:
        * platform/gdk/SoundGdk.cpp: Added.
        (WebCore::systemBeep):
        * platform/gdk/TemporaryLinkStubs.cpp:
        (WebCore::systemBeep):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23564 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdd support for horizontal mouse wheeling (WebKit part).
hyatt [Mon, 18 Jun 2007 07:16:24 +0000 (07:16 +0000)]
Add support for horizontal mouse wheeling (WebKit part).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23563 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdd support for horizontal mouse wheeling (WebCore part).
hyatt [Mon, 18 Jun 2007 07:14:46 +0000 (07:14 +0000)]
Add support for horizontal mouse wheeling (WebCore part).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23562 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdd support for Ctrl+Mouse Wheel to do text zooming on Win32.
hyatt [Mon, 18 Jun 2007 06:40:31 +0000 (06:40 +0000)]
Add support for Ctrl+Mouse Wheel to do text zooming on Win32.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23561 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Win32 build fix.
weinig [Sun, 17 Jun 2007 20:20:42 +0000 (20:20 +0000)]
    Win32 build fix.

        * WebCore.vcproj/WebCore.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23560 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Back out fix for 13972. Quicktime will no longer clip correctly. :(
hyatt [Sun, 17 Jun 2007 05:51:15 +0000 (05:51 +0000)]
    Back out fix for 13972.  Quicktime will no longer clip correctly. :(
        Too many regressions in Mail caused by inserting an extra view into the
        hierarchy.  Can revisit later.

        Reviewed by olliej

        * Plugins/WebPluginController.mm:
        (-[WebPluginController destroyPlugin:]):
        (-[WebPluginController destroyAllPlugins]):
        * WebCoreSupport/WebFrameBridge.mm:
        (-[WebFrameBridge pluginViewWithPackage:attributeNames:attributeValues:baseURL:DOMElement:loadManually:]):
        * WebView/WebHTMLView.mm:
        (-[WebHTMLView addSubview:]):
        (-[WebHTMLView willRemoveSubview:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23559 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Fix for bugzilla bugs 14183 and 14184, 'repeat' regressed in border-image
hyatt [Sat, 16 Jun 2007 03:14:56 +0000 (03:14 +0000)]
    Fix for bugzilla bugs 14183 and 14184, 'repeat' regressed in border-image
        because of a botched 'round' support removal.  Also update for a change in
        the spec that has the second stretch/round/repeat keyword match the first
        if omitted.

        Reviewed by olliej

        * css/cssparser.cpp:
        (WebCore::BorderImageParseContext::commitBorderImage):
        * platform/graphics/Image.cpp:
        (WebCore::Image::drawTiled):
        * platform/graphics/Image.h:
        (WebCore::Image::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23558 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoLayoutTests:
weinig [Sat, 16 Jun 2007 01:47:23 +0000 (01:47 +0000)]
LayoutTests:

        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: https://svn.webkit.org/repository/webkit/trunk@23557 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Kevin.
andersca [Fri, 15 Jun 2007 22:07:55 +0000 (22:07 +0000)]
    Reviewed by Kevin.

        A better fix for <rdar://problem/5271774>. Only try to access the element if the
        view has an associated window. This also works with GC. (Fix suggested by Kevin.)

        * Plugins/WebKitPluginContainerView.mm:
        (-[WebKitPluginContainerView dealloc]):
        (-[WebKitPluginContainerView visibleRect]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23553 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Kevin.
andersca [Fri, 15 Jun 2007 21:17:47 +0000 (21:17 +0000)]
    Reviewed by Kevin.

        <rdar://problem/5271774> REGRESSION: A crash occurs when closing a window that contains a QT movie

        In some cases, calling [super dealloc] might end up calling visibleRect, so make sure to
        set _element to 0 so we won't send a message to a freed object and crash.

        * Plugins/WebKitPluginContainerView.mm:
        (-[WebKitPluginContainerView dealloc]):
        (-[WebKitPluginContainerView visibleRect]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23552 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdd evaluateJavaScript() method
staikos [Fri, 15 Jun 2007 02:51:14 +0000 (02:51 +0000)]
Add evaluateJavaScript() method

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23546 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdd quite a bit of keyboard handling in editing and non-editing mode for
staikos [Fri, 15 Jun 2007 02:31:55 +0000 (02:31 +0000)]
Add quite a bit of keyboard handling in editing and non-editing mode for
QtWebKit, as well as some focus fixes.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23545 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Fix Windows build.
andersca [Thu, 14 Jun 2007 22:15:04 +0000 (22:15 +0000)]
    Fix Windows build.

        * bindings/runtime_object.cpp:
        (RuntimeObjectImp::canPut):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23540 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoFix for missing text in non-English Windows installs.
hyatt [Thu, 14 Jun 2007 21:58:39 +0000 (21:58 +0000)]
Fix for missing text in non-English Windows installs.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23539 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoJavaScriptCore:
andersca [Thu, 14 Jun 2007 21:43:03 +0000 (21:43 +0000)]
JavaScriptCore:

        Reviewed by Darin.

        <rdar://problem/5103077>
        Crash at _NPN_ReleaseObject when quitting page at http://eshop.macsales.com/shop/ModBook

        <rdar://problem/5183692>
        http://bugs.webkit.org/show_bug.cgi?id=13547
        REGRESSION: Crash in _NPN_ReleaseObject when closing Safari on nba.com (13547)

        <rdar://problem/5261499>
        CrashTracer: [USER] 75 crashes in Safari at com.apple.JavaScriptCore: KJS::Bindings::CInstance::~CInstance + 40

        Have the root object track all live instances of RuntimeObjectImp. When invalidating
        the root object, also invalidate all live runtime objects by zeroing out their instance ivar.
        This prevents instances from outliving their plug-ins which lead to crashes.

        * bindings/c/c_utility.cpp:
        (KJS::Bindings::convertValueToNPVariant):
        * bindings/jni/jni_jsobject.cpp:
        (JavaJSObject::convertValueToJObject):
        * bindings/jni/jni_utility.cpp:
        (KJS::Bindings::convertValueToJValue):
        * bindings/objc/objc_runtime.mm:
        (ObjcFallbackObjectImp::callAsFunction):
        * bindings/runtime_array.cpp:
        (RuntimeArray::RuntimeArray):
        * bindings/runtime_array.h:
        (KJS::RuntimeArray::getConcreteArray):
        * bindings/runtime_method.cpp:
        (RuntimeMethod::callAsFunction):
        * bindings/runtime_method.h:
        * bindings/runtime_object.cpp:
        (RuntimeObjectImp::RuntimeObjectImp):
        (RuntimeObjectImp::~RuntimeObjectImp):
        (RuntimeObjectImp::invalidate):
        (RuntimeObjectImp::fallbackObjectGetter):
        (RuntimeObjectImp::fieldGetter):
        (RuntimeObjectImp::methodGetter):
        (RuntimeObjectImp::getOwnPropertySlot):
        (RuntimeObjectImp::put):
        (RuntimeObjectImp::canPut):
        (RuntimeObjectImp::defaultValue):
        (RuntimeObjectImp::implementsCall):
        (RuntimeObjectImp::callAsFunction):
        (RuntimeObjectImp::getPropertyNames):
        (RuntimeObjectImp::throwInvalidAccessError):
        * bindings/runtime_object.h:
        * bindings/runtime_root.cpp:
        (KJS::Bindings::RootObject::invalidate):
        (KJS::Bindings::RootObject::addRuntimeObject):
        (KJS::Bindings::RootObject::removeRuntimeObject):
        * bindings/runtime_root.h:

LayoutTests:

        Reviewed by Darin.

        Add test that manipulates plug-in script objects after the plug-in has been destroyed.

        * plugins/netscape-destroy-plugin-script-objects-expected.txt: Added.
        * plugins/netscape-destroy-plugin-script-objects.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23538 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Brady.
weinig [Thu, 14 Jun 2007 21:42:56 +0000 (21:42 +0000)]
    Reviewed by Brady.

        Update set of files to download for cygwin to include
        diffutils and regenerate the zip file.  This should fix
        an issue on vista where svn-create-patch doesn't work.

        * CygwinDownloader/cygwin-downloader.py:
        * CygwinDownloader/cygwin-downloader.zip:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23537 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Thu, 14 Jun 2007 21:08:07 +0000 (21:08 +0000)]
    Reviewed by Geoff.

        Add Frame::cleanupScriptObjectsForPlugin which will invalidate the root object
        for a given plug-in.

        * WebCore.exp:
        * page/Frame.cpp:
        (WebCore::Frame::cleanupScriptObjectsForPlugin):
        * page/Frame.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23536 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Thu, 14 Jun 2007 21:06:24 +0000 (21:06 +0000)]
    Reviewed by Geoff.

        Call cleanupScriptObjectsForPlugin on the frame after destroying the plug-in.

        * Plugins/WebBaseNetscapePluginView.mm:
        (-[WebBaseNetscapePluginView _destroyPlugin]):
        * Plugins/WebPluginController.mm:
        (-[WebPluginController destroyPlugin:]):
        (-[WebPluginController destroyAllPlugins]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23535 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago2007-06-14 Mark Rowe <mrowe@apple.com>
bdash [Thu, 14 Jun 2007 18:33:59 +0000 (18:33 +0000)]
2007-06-14  Mark Rowe  <mrowe@apple.com>

        Update script to match new nightly.webkit.org infrastructure.

        * BuildSlaveSupport/build-launcher-dmg:  Upload to the live web server, not the caching proxy.  Let the server know it's a Mac build.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23531 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Thu, 14 Jun 2007 17:21:04 +0000 (17:21 +0000)]
    Reviewed by Geoff.

        <rdar://problem/5211677>
        -[WebPreferences setJavaEnabled:] only disables java inside <applet>, not <object>

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::requestObject):
        If the object is a Java MIME type and Java is disabled, don't load the plug-in.

        * platform/MimeTypeRegistry.cpp:
        (WebCore::MimeTypeRegistry::isJavaAppletMIMEType):
        Clean this up and add another applet MIME type.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23529 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoImplement the javascript dialogs and file chooser dialog, along with some
staikos [Thu, 14 Jun 2007 17:13:54 +0000 (17:13 +0000)]
Implement the javascript dialogs and file chooser dialog, along with some
cleanups.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23528 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdd missing null-init of pointer (will fix an upcoming crash)
staikos [Thu, 14 Jun 2007 16:47:58 +0000 (16:47 +0000)]
Add missing null-init of pointer (will fix an upcoming crash)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23527 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoJavaScriptCore:
andersca [Thu, 14 Jun 2007 16:13:09 +0000 (16:13 +0000)]
JavaScriptCore:

        Reviewed by Mitz.

        <rdar://problem/5244948>
        Safari keeps on complaining about slow script playing NBC TV video (14133)

        http://bugs.webkit.org/show_bug.cgi?id=14133
        Runaway JavaScript timer fires when spinning around in Google Maps street view

        Make sure to start and stop the timeout checker around calls to JS.

        * bindings/NP_jsobject.cpp:
        (_NPN_InvokeDefault):
        (_NPN_Invoke):
        (_NPN_Evaluate):
        * bindings/jni/jni_jsobject.cpp:
        (JavaJSObject::call):
        (JavaJSObject::eval):

WebCore:

        Reviewed by Mitz.

        <rdar://problem/5244948>
        Safari keeps on complaining about slow script playing NBC TV video (14133)

        http://bugs.webkit.org/show_bug.cgi?id=14133
        Runaway JavaScript timer fires when spinning around in Google Maps street view

        Make sure to start and stop the timeout checker around calls to JS.

        * bindings/objc/WebScriptObject.mm:
        (-[WebScriptObject callWebScriptMethod:withArguments:]):
        (-[WebScriptObject evaluateWebScript:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23526 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoRemoved QWebHistoryItem::parent() as it is not implemented and WebCore's
hausmann [Thu, 14 Jun 2007 11:41:01 +0000 (11:41 +0000)]
Removed QWebHistoryItem::parent() as it is not implemented and WebCore's

HistoryItem itself doesn't seem to have a parent pointer either.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23525 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoMake it possible to copy QWebHistoryItem objects.
hausmann [Thu, 14 Jun 2007 11:40:02 +0000 (11:40 +0000)]
Make it possible to copy QWebHistoryItem objects.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23524 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoFix mod-by-zero crash when typeahead is triggered on an empty select.
staikos [Thu, 14 Jun 2007 06:59:23 +0000 (06:59 +0000)]
Fix mod-by-zero crash when typeahead is triggered on an empty select.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23523 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoJavaScriptCore:
darin [Thu, 14 Jun 2007 04:58:04 +0000 (04:58 +0000)]
JavaScriptCore:

        Reviewed by Mark Rowe.

        - fix http://bugs.webkit.org/show_bug.cgi?id=14132
          array sort with > 10000 elements sets elements > 10000 undefined

        Test: fast/js/sort-large-array.html

        * kjs/array_instance.h: Replaced pushUndefinedObjectsToEnd with
        compactForSorting, and removed ExecState parameters.

        * kjs/array_object.cpp:
        (ArrayInstance::sort): Changed to call compactForSorting.
        (ArrayInstance::compactForSorting): Do the get and delete of the
        properties directly on the property map instead of using public
        calls from JSObject. The public calls would just read the undefined
        values from the compacted sort results array!

LayoutTests:

        Reviewed by Mark Rowe.

        - test for http://bugs.webkit.org/show_bug.cgi?id=14132
          array sort with > 10000 elements sets elements > 10000 undefined

        * fast/js/resources/sort-large-array.js: Added.
        * fast/js/sort-large-array-expected.txt: Added.
        * fast/js/sort-large-array.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23521 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Fix a crash when a request from the plugin resulted
lars [Thu, 14 Jun 2007 04:25:16 +0000 (04:25 +0000)]
    Fix a crash when a request from the plugin resulted
        in a HTTP redirect.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23520 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Work around a bug in Qt's QHttp implementation and
lars [Thu, 14 Jun 2007 03:28:36 +0000 (03:28 +0000)]
    Work around a bug in Qt's QHttp implementation and
        get web pages to load again.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23519 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoFix Mac OS X build
staikos [Thu, 14 Jun 2007 02:48:12 +0000 (02:48 +0000)]
Fix Mac OS X build

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23518 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agomissed this in my last checkin - obsolete line
staikos [Thu, 14 Jun 2007 02:32:12 +0000 (02:32 +0000)]
missed this in my last checkin - obsolete line

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23517 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoCompile without trying to link ourself.
staikos [Thu, 14 Jun 2007 02:24:08 +0000 (02:24 +0000)]
Compile without trying to link ourself.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23516 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Disable FastMalloc for the Qt build and make sure we
lars [Thu, 14 Jun 2007 02:23:29 +0000 (02:23 +0000)]
    Disable FastMalloc for the Qt build and make sure we
        don't reimplement the global new/delete operators
        when using the system malloc.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23515 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Kevin Decker.
darin [Thu, 14 Jun 2007 01:11:30 +0000 (01:11 +0000)]
    Reviewed by Kevin Decker.

        - fix <rdar://problem/5264923> Safari frequently "stalls" beneath
          +[NSFont fontWithName:size:] while loading a web page (searching on disk for the font)

        * platform/mac/WebFontCache.mm:
        (+[WebFontCache internalFontWithFamily:traits:size:]): Renamed from fontWithFamily.
        Took out the auto-activation code.
        (+[WebFontCache fontWithFamily:traits:size:]): Added. Calls internalFontWithFamily,
        then calls NSFont to trigger activation if that returned nil, then calls
        internalFontWithFamily again.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23514 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoJavaScriptCore:
andersca [Thu, 14 Jun 2007 00:10:38 +0000 (00:10 +0000)]
JavaScriptCore:

        Reviewed by Geoff.

        Make sure that bindings instances get correct root objects.

        * JavaScriptCore.exp:
        * bindings/NP_jsobject.cpp:
        (listFromVariantArgs):
        (_NPN_InvokeDefault):
        (_NPN_Invoke):
        (_NPN_SetProperty):
        * bindings/c/c_instance.cpp:
        (KJS::Bindings::CInstance::invokeMethod):
        (KJS::Bindings::CInstance::invokeDefaultMethod):
        * bindings/c/c_runtime.cpp:
        (KJS::Bindings::CField::valueFromInstance):
        * bindings/c/c_utility.cpp:
        (KJS::Bindings::convertNPVariantToValue):
        * bindings/c/c_utility.h:
        * bindings/objc/objc_instance.mm:
        (ObjcInstance::invokeMethod):
        (ObjcInstance::invokeDefaultMethod):
        (ObjcInstance::getValueOfUndefinedField):
        * bindings/objc/objc_runtime.mm:
        (ObjcField::valueFromInstance):
        (ObjcArray::valueAt):
        * bindings/objc/objc_utility.h:
        * bindings/objc/objc_utility.mm:
        (KJS::Bindings::convertObjcValueToValue):
        * bindings/runtime.h:

WebCore:

        Reviewed by Geoff.

        Pass the root object to methods that end up creating new ObjcInstance objects.

        * bindings/objc/WebScriptObject.mm:
        (listFromNSArray):
        (-[WebScriptObject callWebScriptMethod:withArguments:]):
        (-[WebScriptObject evaluateWebScript:]):
        (-[WebScriptObject setValue:forKey:]):
        (-[WebScriptObject valueForKey:]):
        (-[WebScriptObject removeWebScriptKey:]):
        (-[WebScriptObject setWebScriptValueAtIndex:value:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23512 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Darin.
andersca [Wed, 13 Jun 2007 23:31:36 +0000 (23:31 +0000)]
    Reviewed by Darin.

        <rdar://problem/5267992>
        Make sure an alert doesn't allow loading to continue inside a script.

        Make sure to defer all loads where it's possible for a second main loop to be running.

        * page/Chrome.cpp:
        (WebCore::Chrome::runModal):
        (WebCore::Chrome::runBeforeUnloadConfirmPanel):
        (WebCore::Chrome::runJavaScriptAlert):
        (WebCore::Chrome::runJavaScriptConfirm):
        (WebCore::Chrome::runJavaScriptPrompt):
        (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
        (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):

        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::ResourceHandle::setDefersLoading):
        Implement this.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23510 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Adele Peterson
sullivan [Wed, 13 Jun 2007 22:26:03 +0000 (22:26 +0000)]
    Reviewed by Adele Peterson

        - fixed <rdar://problem/5267607> Clicking the "Save to Downloads" button in
          PDF overlay too soon results in corrupt file

        * WebView/WebPDFView.mm:
        (-[WebPDFView PDFViewSavePDFToDownloadFolder:]):
        Just beep if the document isn't available yet, since trying to save it as a file
        really isn't a good idea.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23508 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago2007-06-13 Alp Toker <alp.toker@collabora.co.uk>
bdash [Wed, 13 Jun 2007 20:39:42 +0000 (20:39 +0000)]
2007-06-13  Alp Toker  <alp.toker@collabora.co.uk>

        Reviewed by Rob.

        http://bugs.webkit.org/show_bug.cgi?id=14060
        Cairo SVG support

        * WebCore.pro: Add new files to the build.
        * platform/graphics/svg/SVGPaintServerPattern.h:
        * platform/graphics/svg/SVGPaintServerSolid.h:
        * platform/graphics/svg/cairo: Added.
        * platform/graphics/svg/cairo/RenderPathCairo.cpp: Added.
        (WebCore::RenderPath::strokeContains):
        (WebCore::RenderPath::strokeBBox):
        * platform/graphics/svg/cairo/SVGPaintServerCairo.cpp: Added.
        (WebCore::SVGPaintServer::draw):
        (WebCore::SVGPaintServer::teardown):
        (WebCore::SVGPaintServer::renderPath):
        * platform/graphics/svg/cairo/SVGPaintServerGradientCairo.cpp: Added.
        (WebCore::SVGPaintServerGradient::setup):
        * platform/graphics/svg/cairo/SVGPaintServerPatternCairo.cpp: Added.
        (WebCore::SVGPaintServerPattern::setup):
        * platform/graphics/svg/cairo/SVGPaintServerSolidCairo.cpp: Added.
        (WebCore::SVGPaintServerSolid::setup):
        * platform/graphics/svg/cairo/SVGResourceClipperCairo.cpp: Added.
        (WebCore::SVGResourceClipper::applyClip):
        * platform/graphics/svg/cairo/SVGResourceMaskerCairo.cpp: Added.
        (WebCore::SVGResourceMasker::applyMask):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23507 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoFix the build: WebKitQt is now called QtWebKit
hausmann [Wed, 13 Jun 2007 15:01:28 +0000 (15:01 +0000)]
Fix the build: WebKitQt is now called QtWebKit

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23504 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdded a make install target that installs the Qt port and renamed
hausmann [Wed, 13 Jun 2007 14:38:36 +0000 (14:38 +0000)]
Added a make install target that installs the Qt port and renamed
WebKitQt to QtWebKit

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23503 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdded httpHeaderField setter/getter to QWebNetworkRequest for convenience.
hausmann [Wed, 13 Jun 2007 13:05:27 +0000 (13:05 +0000)]
Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23500 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoChanged QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
hausmann [Wed, 13 Jun 2007 13:05:16 +0000 (13:05 +0000)]
Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23499 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdded a QWebNetworkRequest convenience constructor.
hausmann [Wed, 13 Jun 2007 13:05:01 +0000 (13:05 +0000)]
Added a QWebNetworkRequest convenience constructor.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23498 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoChanged the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader...
hausmann [Wed, 13 Jun 2007 13:04:50 +0000 (13:04 +0000)]
Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
overload to take a QWebNetworkRequest instead.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23497 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoIn QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the popul...
hausmann [Wed, 13 Jun 2007 13:04:40 +0000 (13:04 +0000)]
In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
pick the individual fields if we can use them.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23496 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoMinor QWebNetworkRequet API fixlet
hausmann [Wed, 13 Jun 2007 13:04:29 +0000 (13:04 +0000)]
Minor QWebNetworkRequet API fixlet

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23495 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoUse QWebNetworkRequest for QWebPage::navigationRequested.
hausmann [Wed, 13 Jun 2007 13:04:19 +0000 (13:04 +0000)]
Use QWebNetworkRequest for QWebPage::navigationRequested.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23494 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoSome docs for QWebNetworkRequest
hausmann [Wed, 13 Jun 2007 13:04:08 +0000 (13:04 +0000)]
Some docs for QWebNetworkRequest

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23493 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoMoved QWebNetworkJob::Method enum into QWebNetworkRequest.
hausmann [Wed, 13 Jun 2007 13:03:57 +0000 (13:03 +0000)]
Moved QWebNetworkJob::Method enum into QWebNetworkRequest.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23492 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoRename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
hausmann [Wed, 13 Jun 2007 13:03:45 +0000 (13:03 +0000)]
Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23491 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoIntroduce QWebNetworkRequest in the public API.
hausmann [Wed, 13 Jun 2007 13:03:34 +0000 (13:03 +0000)]
Introduce QWebNetworkRequest in the public API.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23490 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoChanged QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting...
hausmann [Wed, 13 Jun 2007 13:03:23 +0000 (13:03 +0000)]
Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23489 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoRename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
hausmann [Wed, 13 Jun 2007 13:03:11 +0000 (13:03 +0000)]
Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23488 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Fix one more BITMAPINFO/BITMAPINFOHEADER typo.
aroben [Wed, 13 Jun 2007 07:25:28 +0000 (07:25 +0000)]
 Fix one more BITMAPINFO/BITMAPINFOHEADER typo.

        Rubberstamped by Oliver.

        * platform/win/DragImageWin.cpp:
        (WebCore::allocImage):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23487 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoWebCore:
oliver [Wed, 13 Jun 2007 06:56:26 +0000 (06:56 +0000)]
WebCore:

        Reviewed by Darin.

        Use correct size for BITMAPINFOHEADER -- whoops.

        * platform/win/CursorWin.cpp:
        (WebCore::Cursor::Cursor):
        * platform/win/PasteboardWin.cpp:
        (WebCore::Pasteboard::writeImage):

WebKit:

        Reviewed by Darin.

        Use correct size for BITMAPINFOHEADER -- whoops.

        * win/WebIconDatabase.cpp:
        (createDIB):
        (WebIconDatabase::getOrCreateDefaultIconBitmap):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23486 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Another build fix.
andersca [Wed, 13 Jun 2007 04:57:29 +0000 (04:57 +0000)]
    Another build fix.

        * bindings/qt/qt_instance.cpp:
        (KJS::Bindings::QtInstance::invokeMethod):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23483 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Wed, 13 Jun 2007 04:52:00 +0000 (04:52 +0000)]
    Reviewed by Geoff.

        Move the notion of field type to the JNI runtime since that's the only
        one that was actually using it.

        * bindings/c/c_runtime.h:
        (KJS::Bindings::CField::CField):
        * bindings/jni/jni_runtime.h:
        * bindings/objc/objc_runtime.h:
        * bindings/objc/objc_runtime.mm:
        * bindings/qt/qt_runtime.h:
        * bindings/runtime.h:
        * bindings/runtime_method.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23482 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Build fix.
andersca [Wed, 13 Jun 2007 04:43:19 +0000 (04:43 +0000)]
    Build fix.

        * bindings/qt/qt_class.cpp:
        (KJS::Bindings::QtClass::methodsNamed):
        * bindings/qt/qt_instance.cpp:
        (KJS::Bindings::QtInstance::invokeMethod):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23481 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoFix from Lars to remove duplicate symbols.
staikos [Wed, 13 Jun 2007 04:42:32 +0000 (04:42 +0000)]
Fix from Lars to remove duplicate symbols.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23480 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Oliver.
andersca [Wed, 13 Jun 2007 04:25:28 +0000 (04:25 +0000)]
    Reviewed by Oliver.

        Get rid of the MethodList class and use a good ol' Vector instead.

        * bindings/c/c_class.cpp:
        (KJS::Bindings::CClass::methodsNamed):
        * bindings/c/c_instance.cpp:
        (KJS::Bindings::CInstance::invokeMethod):
        * bindings/jni/jni_class.cpp:
        (JavaClass::JavaClass):
        (JavaClass::~JavaClass):
        * bindings/jni/jni_instance.cpp:
        (JavaInstance::invokeMethod):
        * bindings/objc/objc_class.mm:
        (KJS::Bindings::ObjcClass::methodsNamed):
        * bindings/objc/objc_instance.mm:
        (ObjcInstance::invokeMethod):
        * bindings/objc/objc_runtime.mm:
        (ObjcFallbackObjectImp::callAsFunction):
        * bindings/runtime.cpp:
        * bindings/runtime.h:
        * bindings/runtime_method.cpp:
        (RuntimeMethod::lengthGetter):
        (RuntimeMethod::callAsFunction):
        * bindings/runtime_object.cpp:
        (RuntimeObjectImp::getOwnPropertySlot):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23479 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Wed, 13 Jun 2007 04:06:59 +0000 (04:06 +0000)]
    Reviewed by Geoff.

        Make RuntimeMethod's method list a pointer so that the object size doesn't
        grow beyond 32 bytes when we later will replace MethodList with a Vector.

        * bindings/runtime_method.cpp:
        (RuntimeMethod::RuntimeMethod):
        (RuntimeMethod::lengthGetter):
        (RuntimeMethod::callAsFunction):
        * bindings/runtime_method.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23478 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Wed, 13 Jun 2007 03:57:56 +0000 (03:57 +0000)]
    Reviewed by Geoff.

        Get rid of the Parameter class.

        * bindings/jni/jni_instance.cpp:
        (JavaInstance::invokeMethod):
        * bindings/jni/jni_runtime.cpp:
        (JavaMethod::signature):
        * bindings/jni/jni_runtime.h:
        (KJS::Bindings::JavaParameter::JavaParameter):
        (KJS::Bindings::JavaParameter::~JavaParameter):
        (KJS::Bindings::JavaParameter::type):
        (KJS::Bindings::JavaMethod::parameterAt):
        (KJS::Bindings::JavaMethod::numParameters):
        * bindings/runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23477 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agogit-svn-id: https://svn.webkit.org/repository/webkit/trunk@23476 268f45cc-cd09-0410...
andersca [Wed, 13 Jun 2007 03:54:56 +0000 (03:54 +0000)]
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23476 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Build fix.
andersca [Wed, 13 Jun 2007 03:54:25 +0000 (03:54 +0000)]
    Build fix.

        * bindings/qt/qt_class.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23475 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago2007-06-12 Mark Rowe <mrowe@apple.com>
bdash [Wed, 13 Jun 2007 03:49:48 +0000 (03:49 +0000)]
2007-06-12  Mark Rowe  <mrowe@apple.com>

        Build fix.

        * bindings/objc/objc_runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23474 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Wed, 13 Jun 2007 03:43:59 +0000 (03:43 +0000)]
    Reviewed by Geoff.

        Get rid of Constructor and its only subclass JavaConstructor.

        * bindings/c/c_class.h:
        * bindings/jni/jni_class.cpp:
        (JavaClass::JavaClass):
        (JavaClass::~JavaClass):
        * bindings/jni/jni_class.h:
        * bindings/jni/jni_runtime.cpp:
        * bindings/jni/jni_runtime.h:
        * bindings/objc/objc_class.h:
        * bindings/runtime.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23473 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Wed, 13 Jun 2007 03:24:48 +0000 (03:24 +0000)]
    Reviewed by Geoff.

        Use RetainPtr throughout the bindings code.

        * bindings/objc/objc_class.h:
        * bindings/objc/objc_class.mm:
        (KJS::Bindings::ObjcClass::ObjcClass):
        (KJS::Bindings::ObjcClass::methodsNamed):
        (KJS::Bindings::ObjcClass::fieldNamed):
        * bindings/objc/objc_instance.h:
        (KJS::Bindings::ObjcInstance::getObject):
        * bindings/objc/objc_instance.mm:
        (ObjcInstance::ObjcInstance):
        (ObjcInstance::~ObjcInstance):
        (ObjcInstance::implementsCall):
        (ObjcInstance::invokeMethod):
        (ObjcInstance::invokeDefaultMethod):
        (ObjcInstance::defaultValue):
        * bindings/objc/objc_runtime.h:
        (KJS::Bindings::ObjcMethod::setJavaScriptName):
        (KJS::Bindings::ObjcMethod::javaScriptName):
        (KJS::Bindings::ObjcArray::getObjcArray):
        * bindings/objc/objc_runtime.mm:
        (ObjcField::name):
        (ObjcArray::ObjcArray):
        (ObjcArray::setValueAt):
        (ObjcArray::valueAt):
        (ObjcArray::getLength):
        * wtf/RetainPtr.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23472 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Oliver.
weinig [Wed, 13 Jun 2007 02:40:00 +0000 (02:40 +0000)]
    Reviewed by Oliver.

        Patch for http://bugs.webkit.org/show_bug.cgi?id=14109
        Cleanup JSEvent and JSClipboard in preperation for autogeneration

        * bindings/js/kjs_events.cpp:
        (KJS::DOMEvent::DOMEvent):
        (KJS::DOMEvent::getValueProperty):
        (KJS::DOMEvent::put):
        (KJS::DOMEvent::putValueProperty):
        (KJS::DOMEventPrototypeFunction::callAsFunction):
        (KJS::toJS):
        (KJS::toEvent):
        (KJS::):
        (KJS::JSClipboard::JSClipboard):
        (KJS::JSClipboard::~JSClipboard):
        (KJS::JSClipboard::getOwnPropertySlot):
        (KJS::JSClipboard::getValueProperty):
        (KJS::JSClipboard::put):
        (KJS::JSClipboard::putValueProperty):
        (KJS::JSClipboardPrototypeFunction::callAsFunction):
        (KJS::toClipboard):
        * bindings/js/kjs_events.h:
        (KJS::DOMEvent::):
        (KJS::DOMEvent::impl):
        (KJS::JSClipboard::impl):
        * dom/ClipboardEvent.h:
        * dom/Event.h:
        (WebCore::Event::srcElement):
        (WebCore::Event::returnValue):
        (WebCore::Event::clipboardData):
        (WebCore::Event::dataTransfer):
        (WebCore::Event::clipboard):
        * dom/MouseEvent.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23471 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Maciej.
andersca [Wed, 13 Jun 2007 01:48:11 +0000 (01:48 +0000)]
    Reviewed by Maciej.

        Have JSCell inherit from Noncopyable.

        * bindings/objc/objc_runtime.h:
        * bindings/runtime_object.h:
        * kjs/value.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23470 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Fix compilation, and remove dependency on Qt
lars [Wed, 13 Jun 2007 01:22:24 +0000 (01:22 +0000)]
    Fix compilation, and remove dependency on Qt
        private header.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23469 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Parts of the patch done by Zack.
lars [Wed, 13 Jun 2007 00:39:08 +0000 (00:39 +0000)]
    Parts of the patch done by Zack.
        Fix up some parts in the implementation of QWebNetworkInterface
        so it can be used by plugins.
        Change the plugin API so we can actually get all the information
        required by the JS bridge from them as well.
        Implement the parts required for the JS bridge
        to know about the plugins.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23468 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Darin and Maciej.
andersca [Wed, 13 Jun 2007 00:22:19 +0000 (00:22 +0000)]
    Reviewed by Darin and Maciej.

        More cleanup. Use our Noncopyable WTF class, add a root object member
        to the Array class.

        * bindings/c/c_class.h:
        * bindings/jni/jni_class.h:
        * bindings/jni/jni_instance.h:
        * bindings/jni/jni_runtime.cpp:
        (JavaArray::JavaArray):
        * bindings/jni/jni_runtime.h:
        * bindings/objc/objc_class.h:
        * bindings/objc/objc_runtime.h:
        * bindings/objc/objc_runtime.mm:
        (ObjcArray::ObjcArray):
        * bindings/objc/objc_utility.mm:
        (KJS::Bindings::convertObjcValueToValue):
        * bindings/runtime.cpp:
        (KJS::Bindings::Array::Array):
        (KJS::Bindings::Array::~Array):
        * bindings/runtime.h:
        * bindings/runtime_object.h:
        * bindings/runtime_root.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23467 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoWebKitTools:
aroben [Tue, 12 Jun 2007 23:58:50 +0000 (23:58 +0000)]
WebKitTools:

        Land CygwinDownloader.

        Rubberstamped by Hyatt.

        * CygwinDownloader/cygwin-downloader.py: Added.
        * CygwinDownloader/cygwin-downloader.zip: Added.
        * CygwinDownloader/make-zip.sh: Added.
        * CygwinDownloader/setup.py: Added.

WebKitSite:

        Update the location of cygwin-downloader.zip.

        Rubberstamped by Hyatt.

        * building/tools.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23466 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoFix build bustage.
hyatt [Tue, 12 Jun 2007 22:40:23 +0000 (22:40 +0000)]
Fix build bustage.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23465 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdd Windows checkout/build instructions to website.
aroben [Tue, 12 Jun 2007 21:53:37 +0000 (21:53 +0000)]
Add Windows checkout/build instructions to website.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23464 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoUpdate scripts and project paths to make the Windows build work.
aroben [Tue, 12 Jun 2007 21:51:33 +0000 (21:51 +0000)]
Update scripts and project paths to make the Windows build work.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23463 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoMerge WindowsMerge to trunk
aroben [Tue, 12 Jun 2007 21:50:34 +0000 (21:50 +0000)]
Merge WindowsMerge to trunk

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@23462 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdded a QWebPage::open overload to allow specifying the http header and post data.
hausmann [Mon, 11 Jun 2007 13:49:56 +0000 (13:49 +0000)]
Added a QWebPage::open overload to allow specifying the http header and post data.
(it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
which would imply that one has to have QT += network in the .pro file for using WebKitQt)

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22096 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdded the possibility to intercept url requests through QWebPage::navigationRequested.
hausmann [Mon, 11 Jun 2007 13:49:46 +0000 (13:49 +0000)]
Added the possibility to intercept url requests through QWebPage::navigationRequested.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22095 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoAdded a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
hausmann [Mon, 11 Jun 2007 13:49:34 +0000 (13:49 +0000)]
Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
to be called from FrameLoaderClientQt in the near future.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22094 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoMoved the postData setup into QWebNetworkRequest::init.
hausmann [Mon, 11 Jun 2007 13:49:24 +0000 (13:49 +0000)]
Moved the postData setup into QWebNetworkRequest::init.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22093 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoMoved HTTP header field propagation to QWebNetworkRequest::init.
hausmann [Mon, 11 Jun 2007 13:49:13 +0000 (13:49 +0000)]
Moved HTTP header field propagation to QWebNetworkRequest::init.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22092 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoStarted moving the code to separate a WebCore::ResourceRequest into a QUrl, postData
hausmann [Mon, 11 Jun 2007 13:48:58 +0000 (13:48 +0000)]
Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData
and QHttpRequestHeader into a separate little QWebNetworkRequest struct.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22091 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoForgot to export the plugin exporter. Fixing it.
zack [Mon, 11 Jun 2007 07:30:43 +0000 (07:30 +0000)]
Forgot to export the plugin exporter. Fixing it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22090 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Beth Dakin.
ggaren [Mon, 11 Jun 2007 01:02:52 +0000 (01:02 +0000)]
    Reviewed by Beth Dakin.

        Made confusing work-around to ObjC bindings bug <rdar://problem/5262101>
        less confusing.

        Fixed test to actually call queueReload.

        * fast/frames/resources/iframe-focus.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22089 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago2007-06-10 Holger Hans Peter Freyther <zecke@selfish.org>
bdash [Sun, 10 Jun 2007 22:58:33 +0000 (22:58 +0000)]
2007-06-10  Holger Hans Peter Freyther  <zecke@selfish.org>

         Reviewed by Maciej.

         Disable whole-view editing for the Gdk port in order to improve the browsing experience.

         * platform/gdk/EditorClientGdk.cpp:
         (WebCore::EditorClientGdk::isEditable): Return false to disable whole-view editing

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22088 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Adele.
bdakin [Sun, 10 Jun 2007 22:18:31 +0000 (22:18 +0000)]
    Reviewed by Adele.

        Fix for http://bugs.webkit.org/show_bug.cgi?id=13933 REGRESSION:
        fast/history/clicked-link-is-visited is failing

        * fast/frames/resources/iframe-focus.html: Cause the page to reload
        with layoutTestController.queueReload instead of using JavaScript
        to reload. Using JS seems to get DRT's history all messed up (off
        by one?!).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22087 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Beth Dakin.
ggaren [Sun, 10 Jun 2007 19:41:08 +0000 (19:41 +0000)]
    Reviewed by Beth Dakin.

        Cleaned up formatting on the check out page.

        * building/checkout.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22085 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Fix for bug 14037, make sure respondsToSelector does the write thing
hyatt [Sun, 10 Jun 2007 07:14:52 +0000 (07:14 +0000)]
    Fix for bug 14037, make sure respondsToSelector does the write thing
        when invoked on a WebKit plugin's container view.

        Reviewed by Mark Rowe

        * Plugins/WebKitPluginContainerView.mm:
        (-[WebKitPluginContainerView respondsToSelector:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22084 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoLayoutTests:
weinig [Sat, 9 Jun 2007 06:00:26 +0000 (06:00 +0000)]
LayoutTests:

        Reviewed by Oliver.

        Update test for http://bugs.webkit.org/show_bug.cgi?id=14044
        Autogenerate the JS bindings for HTMLCollection.

        * tables/mozilla/bugs/bug53690-1-expected.txt: Now throws Undefined Error instead of Null Error

WebCore:

        Reviewed by Oliver.

        Patch for http://bugs.webkit.org/show_bug.cgi?id=14044
        Autogenerate the JS bindings for HTMLCollection

        - also moves JSHTMLAllCollection into it's own file.

        * DerivedSources.make:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSHTMLAllCollection.h: Added.
        (WebCore::JSHTMLAllCollection::JSHTMLAllCollection):
        (WebCore::JSHTMLAllCollection::toBoolean):
        (WebCore::JSHTMLAllCollection::masqueradeAsUndefined):
        * bindings/js/JSHTMLCollectionCustom.cpp: Added.
        (WebCore::getNamedItems):
        (WebCore::JSHTMLCollection::callAsFunction):
        (WebCore::JSHTMLCollection::implementsCall):
        (WebCore::JSHTMLCollection::canGetItemsForName):
        (WebCore::JSHTMLCollection::nameGetter):
        (WebCore::JSHTMLCollection::item):
        (WebCore::JSHTMLCollection::namedItem):
        (WebCore::toJS):
        * bindings/js/JSHTMLDocumentCustom.cpp:
        (WebCore::JSHTMLDocument::nameGetter):
        (WebCore::JSHTMLDocument::all):
        * bindings/js/JSXMLHttpRequest.cpp:
        * bindings/js/kjs_html.cpp:
        (WebCore::ImageConstructorImp::ImageConstructorImp):
        (WebCore::ImageConstructorImp::construct):
        * bindings/js/kjs_html.h:
        (WebCore::ImageConstructorImp::implementsConstruct):
        * bindings/js/kjs_window.cpp:
        (KJS::Window::namedItemGetter):
        * bindings/objc/DOMUtility.mm:
        (KJS::createDOMWrapper):
        * bindings/scripts/CodeGeneratorJS.pm:
        * html/HTMLCollection.cpp:
        (WebCore::HTMLCollection::tags):
        * html/HTMLCollection.h:
        (WebCore::HTMLCollection::collectionType):
        * html/HTMLCollection.idl:
        * html/HTMLOptionsCollection.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22080 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Brady.
bdakin [Fri, 8 Jun 2007 20:03:37 +0000 (20:03 +0000)]
    Reviewed by Brady.

        Fix for http://trac.webkit.org/projects/webkit/changeset/21738

        This test started failing after Adele's r21738. After investigating
        this, it turns out that it just needs updated results. This test
        happened to tickle the very bug that Adele fixed.

        * http/tests/navigation/relativeanchor-goback-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22076 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoLayoutTests:
justing [Fri, 8 Jun 2007 18:10:26 +0000 (18:10 +0000)]
LayoutTests:

        Reviewed by John.

        <rdar://problem/5232159> REGRESSION: Cannot select text in RSS view

        * editing/selection/5232159-expected.checksum: Added.
        * editing/selection/5232159-expected.png: Added.
        * editing/selection/5232159-expected.txt: Added.
        * editing/selection/5232159.html: Added.

WebCore:

        Reviewed by John.

        <rdar://problem/5232159> REGRESSION: Cannot select text in RSS view

        The selection is updated both on mouse movement and
        when the autoscroll timer fires.  The autoscroll
        code wasn't converting mouse coordinates to layer
        coordinates correctly, and was then using those
        coordinates to create a bad selection.

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::autoscroll): Use convertToLayerCoordinates.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22075 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago * WebView/WebViewPrivate.h:
sullivan [Fri, 8 Jun 2007 16:38:11 +0000 (16:38 +0000)]
    * WebView/WebViewPrivate.h:
        Added a FIXME

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22074 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Geoff.
andersca [Fri, 8 Jun 2007 15:17:27 +0000 (15:17 +0000)]
    Reviewed by Geoff.

        Store the root object in a hash set, keyed by the plugin view. This is in preparation for
        letting plugins invalidate the root object upon destruction

        * page/Frame.cpp:
        (WebCore::Frame::createRootObject):
        (WebCore::Frame::cleanupScriptObjects):
        * page/FramePrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22071 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoForgot to checkin this part in my last submit.
lars [Fri, 8 Jun 2007 13:01:38 +0000 (13:01 +0000)]
Forgot to checkin this part in my last submit.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22070 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago Reviewed by Zack.
lars [Fri, 8 Jun 2007 12:44:53 +0000 (12:44 +0000)]
    Reviewed by Zack.

        Add a QWebObjectPluginConnector class. The class will
        facility communication between the plugin and WebKit.
        Currently it's used to make the plugin network capable.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22069 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoFix the Qt build
zack [Fri, 8 Jun 2007 10:08:11 +0000 (10:08 +0000)]
Fix the Qt build

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22067 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years agoWebCore:
justing [Fri, 8 Jun 2007 07:17:49 +0000 (07:17 +0000)]
WebCore:

        Reviewed by Tristan.

        <rdar://problem/5250997> A crash occurs when selecting Undo Typing for a page that has been closed in tab

        * WebCore.exp: Added clearUndoRedoOperations.
        * page/Page.cpp:
        (WebCore::Page::clearUndoRedoOperations): Added.
        * page/Page.h:

WebKit:

        Reviewed by Tristan.

        <rdar://problem/5250997> A crash occurs when selecting Undo Typing for a page that has been closed in tab

        * WebView/WebView.mm:
        (-[WebView _clearUndoRedoOperations]): Added.
        * WebView/WebViewPrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22065 268f45cc-cd09-0410-ab3c-d52691b4dbfc

12 years ago2007-06-08 Mark Rowe <mrowe@apple.com>
bdash [Fri, 8 Jun 2007 06:50:59 +0000 (06:50 +0000)]
2007-06-08  Mark Rowe  <mrowe@apple.com>

        Rubber-stamped by Hyatt.

        Switch to using Internet Explorer's conditional comments to target IE-specific styles rather
        than doing server-side user agent checks.  This resolves an issue some people were seeing where
        caching would lead to a page generated for an Internet Explorer user being served to a Safari
        user.  The visible symptom of this was many of the graphics were missing.

        * blog/wp-content/themes/webkit/header.php:
        * header.inc:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@22064 268f45cc-cd09-0410-ab3c-d52691b4dbfc