WebKit-https.git
11 years ago2009-05-25 Fridrich Strba <fridrich.strba@bluewin.ch>
xan@webkit.org [Mon, 25 May 2009 15:41:21 +0000 (15:41 +0000)]
2009-05-25  Fridrich Strba  <fridrich.strba@bluewin.ch>

        Reviewed by Maciej Stachowiak.

        With Windows compilers older then MSVC 2005, the functions
        gmtime_s and localtime_s don't exist. The gmtime and localtime are
        on Windows always thread safe. So use them in the cases where
        gmtime_s and localtime_s are not present.

        * loader/FTPDirectoryDocument.cpp:
        * loader/FTPDirectoryParser.cpp:

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

11 years ago2009-05-25 Holger Hans Peter Freyther <zecke@selfish.org>
hausmann@webkit.org [Mon, 25 May 2009 12:55:39 +0000 (12:55 +0000)]
2009-05-25  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Simon Hausmann.

        Follow up on r44120. PluginPackageMac.cpp is used
        by Qt on Mac and contained a copy of the m_browserFunc
        assignments and ::equal, ::hash and ::compareFileVersion.
        Change it to use the ones from PluginPackage.cpp as well.

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

11 years ago2009-05-25 Simon Hausmann <simon.hausmann@nokia.com>
hausmann@webkit.org [Mon, 25 May 2009 12:39:15 +0000 (12:39 +0000)]
2009-05-25  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Tor Arne Vestbø.

        https://bugs.webkit.org/show_bug.cgi?id=25612

        Support conditionals in the tag factories, by placing
        feature #ifdefs around the individual factory functions
        and the registration.

        Made the Audio and Video elements conditional in the tag factories

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

11 years ago2009-05-25 Simon Hausmann <simon.hausmann@nokia.com>
hausmann@webkit.org [Mon, 25 May 2009 11:45:23 +0000 (11:45 +0000)]
2009-05-25  Simon Hausmann  <simon.hausmann@nokia.com>

        Fix the Gtk build when video is disabled.

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

11 years ago2009-05-25 Simon Hausmann <simon.hausmann@nokia.com>
hausmann@webkit.org [Mon, 25 May 2009 11:35:05 +0000 (11:35 +0000)]
2009-05-25  Simon Hausmann  <simon.hausmann@nokia.com>

        Fix the Qt build when video is disabled.

        * WebCore.pro: Always generate the IDL files for the media elements. They
        contain proper ENABLE(VIDEO) #ifdefs.

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

11 years agoFix ChangeLog typo.
abarth@webkit.org [Mon, 25 May 2009 08:36:46 +0000 (08:36 +0000)]
Fix ChangeLog typo.

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

11 years agoWebCore:
abarth@webkit.org [Mon, 25 May 2009 08:29:17 +0000 (08:29 +0000)]
WebCore:

2009-05-25  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=26004

        The origin for postMessage should follow lexical scope, not dynamic
        scope.  Yes, this is a super-obscure conner case.

        Test: http/tests/security/postMessage/origin-follows-lexical-scope.html

        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::postMessage):
        * bindings/v8/custom/V8DOMWindowCustom.cpp:
        (WebCore::CALLBACK_FUNC_DECL):

LayoutTests:

2009-05-25  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=26004

        Test that the origin for postMessage follows the lexical scope.

        * http/tests/security/postMessage/origin-follows-lexical-scope-expected.txt: Added.
        * http/tests/security/postMessage/origin-follows-lexical-scope.html: Added.
        * http/tests/security/postMessage/resources/middle-frame-for-lexical.html: Added.

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

11 years ago2009-05-24 Darin Fisher <darin@chromium.org>
darin@chromium.org [Mon, 25 May 2009 06:27:48 +0000 (06:27 +0000)]
2009-05-24  Darin Fisher  <darin@chromium.org>

        Reviewed by Mark Rowe.

        Fix build bustage related to PassOwnPtr changes.

        https://bugs.webkit.org/show_bug.cgi?id=25999

        * platform/graphics/chromium/TransparencyWin.cpp:

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

11 years ago - revert an accidental change from r43964.
mitz@apple.com [Mon, 25 May 2009 05:20:32 +0000 (05:20 +0000)]
    - revert an accidental change from r43964.

        * WebView/WebView.mm:
        (+[WebView _setShouldUseFontSmoothing:]):

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

11 years ago2009-05-24 Holger Hans Peter Freyther <zecke@selfish.org>
zecke@webkit.org [Mon, 25 May 2009 03:29:26 +0000 (03:29 +0000)]
2009-05-24  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=25988

        Minor cleanup in PluginPackage::hash. Let the compiler
        figure out the size of the array. Do not have it in the
        definition and specially not the in the call to
        StringImpl::hash.

        * plugins/PluginPackage.cpp:
        (WebCore::PluginPackage::hash):

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

11 years ago2009-05-24 Holger Hans Peter Freyther <zecke@selfish.org>
zecke@webkit.org [Mon, 25 May 2009 03:29:06 +0000 (03:29 +0000)]
2009-05-24  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=25988

        Move ::hash, ::equal and ::compareFileVersion from
        the duplicated copies in PluginPackageQt.cpp and
        PluginPackageGtk to PluginPackage.cpp. We need to #ifdef
        this for the PluginPackageWin version. Use the new style
        ENABLE() for this feature/policy and enable it in the Gtk+
        and Qt buildsystem.

        * GNUmakefile.am:
        * WebCore.pro:
        * plugins/PluginPackage.cpp:
        (WebCore::PluginPackage::hash):
        (WebCore::PluginPackage::equal):
        (WebCore::PluginPackage::compareFileVersion):
        * plugins/gtk/PluginPackageGtk.cpp:
        * plugins/qt/PluginPackageQt.cpp:

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

11 years ago2009-05-24 Holger Hans Peter Freyther <zecke@selfish.org>
zecke@webkit.org [Mon, 25 May 2009 03:28:41 +0000 (03:28 +0000)]
2009-05-24  Holger Hans Peter Freyther  <zecke@selfish.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=25988

        So far the initialization of the browserfuncs struct
        is done in PluginPackageQt, PluginPackageGtk and
        PluginPackageWin there is no need for this duplication.

        The PluginPackageWin version got copied to PluginPackage

        * plugins/PluginPackage.cpp:
        (WebCore::PluginPackage::initializeBrowserFuncs):
        * plugins/PluginPackage.h:
        * plugins/gtk/PluginPackageGtk.cpp:
        (WebCore::PluginPackage::load):
        * plugins/qt/PluginPackageQt.cpp:
        (WebCore::PluginPackage::load):
        * plugins/win/PluginPackageWin.cpp:
        (WebCore::PluginPackage::load):

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

11 years ago2009-05-24 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Sun, 24 May 2009 22:43:27 +0000 (22:43 +0000)]
2009-05-24  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        WebKit needs cross-platform filter system
        [https://bugs.webkit.org/show_bug.cgi?id=19991]

        Added standard input for filter system.

        No testcases were added. Filter system is still off.

        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * platform/graphics/filters/SourceAlpha.cpp: Added.
        (WebCore::SourceAlpha::create):
        (WebCore::SourceAlpha::effectName):
        (WebCore::SourceAlpha::apply):
        (WebCore::SourceAlpha::dump):
        * platform/graphics/filters/SourceAlpha.h: Added.
        (WebCore::SourceAlpha::SourceAlpha):
        * platform/graphics/filters/SourceGraphic.cpp: Added.
        (WebCore::SourceGraphic::create):
        (WebCore::SourceGraphic::effectName):
        (WebCore::SourceGraphic::apply):
        (WebCore::SourceGraphic::dump):
        * platform/graphics/filters/SourceGraphic.h: Added.
        (WebCore::SourceGraphic::SourceGraphic):
        * svg/FilterBuilder.cpp: Added.
        (WebCore::FilterBuilder::FilterBuilder):
        (WebCore::FilterBuilder::add):
        (WebCore::FilterBuilder::getEffectById):
        (WebCore::FilterBuilder::clearEffects):
        * svg/FilterBuilder.h:

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

11 years ago2009-05-24 Steve Falkenburg <sfalken@apple.com>
sfalken@apple.com [Sun, 24 May 2009 18:13:14 +0000 (18:13 +0000)]
2009-05-24  Steve Falkenburg  <sfalken@apple.com>

        Build fix for experimental PGO Windows target.

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:

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

11 years ago2009-05-24 Simon Hausmann <simon.hausmann@nokia.com>
hausmann@webkit.org [Sun, 24 May 2009 18:10:41 +0000 (18:10 +0000)]
2009-05-24  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=25612

        Add support conditionals in the JSC bindings generator code for attributes,
        by placing feature #ifdefs around the setters/getters.

        Made the audio and video element specific DOM attributes conditional
        in the generated code, by moving the #ifdefs from the IDL files into
        the generated code. This allows for re-using the same generated code
        with or without ENABLE(VIDEO).

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

11 years ago2009-05-24 Darin Adler <darin@apple.com>
darin@apple.com [Sun, 24 May 2009 16:34:52 +0000 (16:34 +0000)]
2009-05-24  Darin Adler  <darin@apple.com>

        Reviewed by Dan Bernstein and Tim Hatcher.

        <rdar://problem/6913045> New console message spewed by automator CLI after installing JetstreamLeo40B21a

        * Misc/WebNSObjectExtras.mm:
        (-[WebMainThreadInvoker initWithTarget:]): Tweaked argument name.
        (-[WebMainThreadInvoker forwardInvocation:]): Removed call to retainArguments.
        This was unneeded and in the case of a newly created but not yet fully initialized
        NSView object it caused the abovementioned bug.
        (-[WebMainThreadInvoker handleException:]): Tweaked argument name. Added assertion.
        (-[NSInvocation _webkit_invokeAndHandleException:]): Tweaked name of local variable
        that holds the exception.

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

11 years ago2009-05-24 Darin Adler <darin@apple.com>
darin@apple.com [Sun, 24 May 2009 15:34:24 +0000 (15:34 +0000)]
2009-05-24  Darin Adler  <darin@apple.com>

        * StringsNotToBeLocalized.txt: Updated for recent changes. Got rid of most full-file exceptions.

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

11 years ago2009-05-24 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Sun, 24 May 2009 07:48:50 +0000 (07:48 +0000)]
2009-05-24  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Mark Rowe.

        https://bugs.webkit.org/show_bug.cgi?id=25987
        [GTK] Clarify WebKitWebView::download-requested documentation

        Explain a bit why this signal is not emitted by default and offer
        a common solution/setup for that issue.

        * webkit/webkitwebview.cpp:
        (webkit_web_view_class_init):

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

11 years agoUnreviewed build fix for Qt. Change signature to have PassOwnPtr.
zecke@webkit.org [Sun, 24 May 2009 06:38:03 +0000 (06:38 +0000)]
Unreviewed build fix for Qt. Change signature to have PassOwnPtr.

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

11 years agoLand the updated version of WebKitLauncher that the nightly builds have been using.
mrowe@apple.com [Sun, 24 May 2009 05:14:44 +0000 (05:14 +0000)]
Land the updated version of WebKitLauncher that the nightly builds have been using.

Reviewed by Oliver Hunt.

Changes include:
1) Support for self-updating via Sparkle.
2) Now respects the "Open using Rosetta" preference.
3) Passes environment variables through to the spawned Safari process.
4) Logs a list of extensions that are detected to the system console.
5) Disables extensions that are known to cause crashes too early in the
   launch process to be detected by the extension-detection code.

* WebKitLauncher/Configurations/Base.xcconfig: Added.
* WebKitLauncher/Configurations/WebKitLauncher.xcconfig: Added.
* WebKitLauncher/Configurations/WebKitNightlyEnabler.xcconfig: Added.
* WebKitLauncher/Info.plist:
* WebKitLauncher/WebKitLauncher.xcodeproj/project.pbxproj:
* WebKitLauncher/WebKitNightlyEnabler.h: Added.
* WebKitLauncher/WebKitNightlyEnabler.m:
(myBundleDidLoad):
(myApplicationWillFinishLaunching):
(poseAsWebKitApp):
(webKitLauncherBundle):
(enableWebKitNightlyBehaviour):
* WebKitLauncher/WebKitNightlyEnablerSparkle.h: Added.
* WebKitLauncher/WebKitNightlyEnablerSparkle.m: Added.
(initializeSparkle):
(updatePermissionPromptDescription):
(skipSignatureVerificationInDownloadDidFinish):
(updateAlertPanel):
(updateAlertInitForAlertPanel):
(-[NSAlert webKitHandleButtonPress:]):
(setMethodImplementation):
* WebKitLauncher/main.m:
(displayErrorAndQuit):
(getLastVersionShown):
(saveLastVersionShown):
(getPathForStartPage):
(getCurrentVersion):
(getShowStartPageVersion):
(startPageDisabled):
(addStartPageToArgumentsIfNeeded):
(preferredArchitecture):
(myExecve):
(locateSafariBundle):
(currentMacOSXVersion):
(checkFrameworkPath):
(main):

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

11 years agoFix typo "am" -> "an" in the Changelog of my previous commit
jmalonzo@webkit.org [Sun, 24 May 2009 04:21:34 +0000 (04:21 +0000)]
Fix typo "am" -> "an" in the Changelog of my previous commit

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

11 years ago2009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sun, 24 May 2009 04:06:57 +0000 (04:06 +0000)]
2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Unreviewed build fix. Add gstreamer-video-0.10 libs to
        GSTREAMER_LIBS to resolve am undefined reference to gst_video_get_size
        - symbol used in MediaPlayerPrivateGstreamer.

        * configure.ac:

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

11 years ago Reviewed by Darin Adler.
mitz@apple.com [Sat, 23 May 2009 23:28:58 +0000 (23:28 +0000)]
    Reviewed by Darin Adler.

        - clean up ColorMac a little

        * platform/graphics/mac/ColorMac.h: Whitespace change.
        * platform/graphics/mac/ColorMac.mm: Removed redundant #import
        statements and sorted the remaining ones.
        (WebCore::makeRGBAFromNSColor): Replaced four Objective-C method calls
        with a single call and removed redundant casts to int.
        (WebCore::nsColor): Removed ".0f" from number literals used as CGFloats.
        In one case, this avoids an intermediate conversion to float before
        conversion to double on 64-bit.
        (WebCore::CGColorFromNSColor): Replaced four Objective-C method calls
        with a single call.
        (WebCore::focusRingColor):
        (+[WebCoreControlTintObserver controlTintDidChange]): Whitespace change.

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

11 years ago2009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sat, 23 May 2009 22:39:33 +0000 (22:39 +0000)]
2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Rubber-stamped by Gustavo Noronha.

        Break the switch once private browsing is selected.

        * webkit/webkitwebsettings.cpp:
        (webkit_web_settings_set_property):
        (webkit_web_settings_get_property):

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

11 years ago2009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sat, 23 May 2009 22:35:15 +0000 (22:35 +0000)]
2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Gustavo Noronha and Xan Lopez.

        [Gtk] Enable database and localStorage support
        https://bugs.webkit.org/show_bug.cgi?id=25629

        Enable storage/ tests for Gtk.

        * platform/gtk/Skipped:

2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Gustavo Noronha and Xan Lopez.

        [Gtk] Enable database and localStorage support
        https://bugs.webkit.org/show_bug.cgi?id=25629

        Add settings to enable or disable database and localStorage
        support and enable them by default. This allows databases to be
        shown in the WebInspector as well as allow us to run the storage
        layout tests.

        * webkit/webkitwebsettings.cpp:
        (webkit_web_settings_class_init):
        (webkit_web_settings_set_property):
        (webkit_web_settings_get_property):
        (webkit_web_settings_copy):
        * webkit/webkitwebview.cpp:
        (webkit_web_view_update_settings):
        (webkit_web_view_settings_notify):

2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Gustavo Noronha and Xan Lopez.

        [Gtk] Enable database and localStorage support
        https://bugs.webkit.org/show_bug.cgi?id=25629

        Enable database and localStorage for running the storage/ tests.

        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (resetWebViewToConsistentStateBeforeTesting):

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

11 years ago2009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sat, 23 May 2009 22:22:52 +0000 (22:22 +0000)]
2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Xan Lopez.

        [Gtk] ROLE_ROW_HEADER should not be used for list item bullets/numbers
        https://bugs.webkit.org/show_bug.cgi?id=25900

        Use ATK_ROLE_TEXT for ListMarkerRole.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (atkRole):

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

11 years ago2009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sat, 23 May 2009 22:20:31 +0000 (22:20 +0000)]
2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Xan Lopez.

        [Gtk] Various autotools build refactoring and fixes
        https://bugs.webkit.org/show_bug.cgi?id=25286

        Refactor library LIBS. Move third-party libs in libwebkit instead
        of libWebCore.

        * GNUmakefile.am:

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

11 years ago Reformat WebCore::requiresContextForWordBoundary()
ddkilzer@apple.com [Sat, 23 May 2009 22:08:53 +0000 (22:08 +0000)]
    Reformat WebCore::requiresContextForWordBoundary()

        * platform/text/TextBoundaries.h:
        (WebCore::requiresContextForWordBoundary):

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

11 years agoNot reviewed. Roll out ResourceHandle patch, that I accidently included in my last...
zimmermann@webkit.org [Sat, 23 May 2009 21:29:20 +0000 (21:29 +0000)]
Not reviewed. Roll out ResourceHandle patch, that I accidently included in my last commit.

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

11 years agoReviewed by Darin Adler.
zimmermann@webkit.org [Sat, 23 May 2009 21:25:22 +0000 (21:25 +0000)]
Reviewed by Darin Adler.

Fixes: https://bugs.webkit.org/show_bug.cgi?id=23808

After a long journey, add the last missing ABC to share form control element support with HTMLSelectElement.
RenderListBox/RenderMenuList operates on SelectElement instead of HTMLSelectElement now, querying selected index etc.
This makes it possible to use these render objects for ie. WML, as it's done before for input & option elements.

WMLSelectElement will be created soon, in a follow-up patch, adding more methods to SelectElement, sharing code between
HTMLSelectElement/WMLSelectElement.

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

11 years ago Fix Gtk/Qt builds for PassOwnPtr
ddkilzer@apple.com [Sat, 23 May 2009 17:32:45 +0000 (17:32 +0000)]
    Fix Gtk/Qt builds for PassOwnPtr

        * platform/graphics/cairo/ImageCairo.cpp:
        (WebCore::Image::drawPattern): Use an OwnPtr<ImageBuffer>
        instead of an std::auto_ptr<ImageBuffer> to store the result of
        ImageBuffer::create() now that it returns a
        PassOwnPtr<ImageBuffer>.
        * platform/graphics/qt/PathQt.cpp:
        (WebCore::Path::strokeContains): Ditto.
        (WebCore::Path::strokeBoundingRect): Ditto.

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

11 years ago Windows build fix for PassOwnPtr
ddkilzer@apple.com [Sat, 23 May 2009 17:16:24 +0000 (17:16 +0000)]
    Windows build fix for PassOwnPtr

        * WebHistory.cpp:
        (WebHistory::visitedURL): Changed
        std::auto_ptr<Vector<String> >() to 0.
        * WebHistoryItem.cpp:
        (WebHistoryItem::initFromDictionaryRepresentation): Changed type
        of redirectURLsVector from std::auto_ptr<Vector<String> > to
        OwnPtr<Vector<String> >.

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

11 years ago Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr
ddkilzer@apple.com [Sat, 23 May 2009 16:39:34 +0000 (16:39 +0000)]
    Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr

        <https://bugs.webkit.org/show_bug.cgi?id=25495>

        Reviewed by Oliver Hunt.

WebCore:

        No test cases added since there is no change in behavior.

        * WebCore.base.exp: Updated export for
        HistoryItem::setRedirectURLs() which now takes a PassOwnPtr.
        * dom/Node.cpp:
        (WebCore::Node::childNodes): Use NodeListsNodeData::create()
        instead of new NodeListsNodeData.
        (WebCore::Node::registerDynamicNodeList): Ditto.
        (WebCore::Node::getElementsByTagNameNS): Ditto.
        (WebCore::Node::getElementsByName): Ditto.
        (WebCore::Node::getElementsByClassName): Ditto.
        * dom/NodeRareData.h:
        (WebCore::NodeListsNodeData::create): Added.  Implements
        create() pattern popularized by RefCounted classes.
        (WebCore::NodeListsNodeData::NodeListsNodeData): Declared
        private constructor.
        (WebCore::NodeRareData::setNodeLists): Now takes a PassOwnPtr<>
        instead of an auto_ptr<>.
        * history/HistoryItem.cpp:
        (WebCore::HistoryItem::setRedirectURLs): Ditto.
        * history/HistoryItem.h:
        (WebCore::HistoryItem::setRedirectURLs): Ditto.
        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::drawTextInternal): Use
        OwnPtr<> instead of auto_ptr<> for stack variable.
        * html/HTMLCanvasElement.cpp:
        (WebCore::HTMLCanvasElement::createImageBuffer): Updated to use
        assignment operator now that ImageBuffer::create() returns a
        PassOwnPtr<>.
        * loader/EmptyClients.h:
        (WebCore::EmptyChromeClient::createHTMLParserQuirks): Return a
        PassOwnPtr<> instead of a raw HTMLParserQuirks pointer.
        * page/ChromeClient.h:
        (WebCore::ChromeClient::createHTMLParserQuirks): Ditto.
        * platform/graphics/GeneratedImage.cpp:
        (WebCore::GeneratedImage::drawPattern): Use OwnPtr<> instead of
        auto_ptr<> for stack variable.
        * platform/graphics/ImageBuffer.h:
        (WebCore::ImageBuffer::create): Return PassOwnPtr<> instead of
        auto_ptr<>.  Use OwnPtr<> instead of auto_ptr<> for stack
        variable.
        * platform/mac/ScrollbarThemeMac.mm:
        (WebCore::ScrollbarThemeMac::paint): Use OwnPtr<> instead of
        auto_ptr<> for stack variable.
        * platform/text/TextCodec.h:
        (WebCore::NewTextCodecFunction): Return PassOwnPtr<> instead of
        auto_ptr<>.
        * platform/text/TextCodecICU.cpp:
        (WebCore::newTextCodecICU): Ditto.
        * platform/text/TextCodecLatin1.cpp:
        (WebCore::newStreamingTextDecoderWindowsLatin1): Ditto.
        * platform/text/TextCodecUTF16.cpp:
        (WebCore::newStreamingTextDecoderUTF16LE): Ditto.
        (WebCore::newStreamingTextDecoderUTF16BE): Ditto.
        * platform/text/TextCodecUserDefined.cpp:
        (WebCore::newStreamingTextDecoderUserDefined): Ditto.
        * platform/text/TextEncodingRegistry.cpp:
        (WebCore::newTextCodec): Ditto.
        * platform/text/TextEncodingRegistry.h:
        (WebCore::newTextCodec): Ditto.
        * platform/text/mac/TextCodecMac.cpp:
        (WebCore::newTextCodecMac): Ditto.
        * rendering/RenderBoxModelObject.cpp:
        (WebCore::RenderBoxModelObject::paintFillLayerExtended): Use
        OwnPtr<> instead of auto_ptr<> for stack variable.
        * svg/SVGMaskElement.cpp:
        (WebCore::SVGMaskElement::drawMaskerContent): Ditto.  Return
        OwnPtr<> instead of auto_ptr<>.
        * svg/SVGMaskElement.h:
        (WebCore::SVGMaskElement::drawMaskerContent): Return OwnPtr<>
        instead of auto_ptr<>.
        * svg/SVGPatternElement.cpp:
        (WebCore::SVGPatternElement::buildPattern): Use OwnPtr<> instead
        of auto_ptr<> for stack variable.
        * svg/graphics/SVGImage.cpp:
        (WebCore::SVGImage::nativeImageForCurrentFrame): Updated to use
        assignment operator now that ImageBuffer::create() returns a
        PassOwnPtr<>.
        * svg/graphics/SVGPaintServerGradient.cpp:
        (WebCore::createMaskAndSwapContextForTextGradient): Use OwnPtr<>
        instead of auto_ptr<> for stack variable.
        * svg/graphics/SVGPaintServerPattern.cpp:
        (WebCore::SVGPaintServerPattern::setTile): Updated to take a
        PassOwnPtr<> instead of an auto_ptr<>.
        (WebCore::SVGPaintServerPattern::setup): Use OwnPtr<> instead of
        auto_ptr<> for stack variable.
        * svg/graphics/SVGPaintServerPattern.h:
        (WebCore::SVGPaintServerPattern::setTile): Updated to take a
        PassOwnPtr<> instead of an auto_ptr<>.
        * svg/graphics/SVGResourceMasker.cpp:
        (WebCore::SVGResourceMasker::applyMask): Updated to use
        assignment operator now that SVGMaskElement::drawMaskerContent()
        returns a PassOwnPtr<>.  Use OwnPtr<> instead of auto_ptr<> for
        stack variable.

WebKit/gtk:

        * WebCoreSupport/ChromeClientGtk.h:
        (WebKit::ChromeClient::createHTMLParserQuirks): Return a
        PassOwnPtr<> instead of a raw HTMLParserQuirks pointer.

WebKit/mac:

        * History/WebHistory.mm:
        (-[WebHistory _visitedURL:withTitle:method:wasFailure:]): Return
        0 instead of an empty auto_ptr<>.
        * History/WebHistoryItem.mm:
        (-[WebHistoryItem initFromDictionaryRepresentation:]): Use
        OwnPtr<> instead of auto_ptr<> for stack variable.
        * WebCoreSupport/WebChromeClient.h:
        (WebChromeClient::createHTMLParserQuirks): Return a PassOwnPtr<>
        instead of a raw HTMLParserQuirks pointer.

WebKit/qt:

        * WebCoreSupport/ChromeClientQt.h:
        (WebCore::ChromeClientQt::createHTMLParserQuirks): Return a
        PassOwnPtr<> instead of a raw HTMLParserQuirks pointer.

WebKit/win:

        * WebCoreSupport/WebChromeClient.h:
        (WebChromeClient::createHTMLParserQuirks): Return a PassOwnPtr<>
        instead of a raw HTMLParserQuirks pointer.

WebKit/wx:

        * WebKitSupport/ChromeClientWx.h:
        (WebCore::ChromeClientWx::createHTMLParserQuirks): Return a
        PassOwnPtr<> instead of a raw HTMLParserQuirks pointer.

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

11 years ago Part 1 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr
ddkilzer@apple.com [Sat, 23 May 2009 16:39:20 +0000 (16:39 +0000)]
    Part 1 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr

        <https://bugs.webkit.org/show_bug.cgi?id=25495>

        Reviewed by Oliver Hunt.

JavaScriptCore:

        * GNUmakefile.am: Added OwnPtrCommon.h and PassOwnPtr.h.
        * JavaScriptCore.vcproj/WTF/WTF.vcproj: Ditto.
        * JavaScriptCore.xcodeproj/project.pbxproj: Ditto.

        * wtf/OwnPtr.h:
        (WTF::OwnPtr::OwnPtr): Added constructors that take a
        PassOwnPtr.  Also added a copy constructor declaration that's
        required when assigning a PassOwnPtr to a stack-based OwnPtr.
        (WTF::operator=): Added assignment operator methods that take a
        PassOwnPtr.
        (WTF::swap): Reformatted.
        (WTF::operator==): Whitespace changes.
        (WTF::operator!=): Ditto.

        * wtf/OwnPtrCommon.h: Added.
        (WTF::deleteOwnedPtr):

        * wtf/PassOwnPtr.h: Added.
        (WTF::PassOwnPtr::PassOwnPtr):
        (WTF::PassOwnPtr::~PassOwnPtr):
        (WTF::PassOwnPtr::get):
        (WTF::PassOwnPtr::clear):
        (WTF::PassOwnPtr::release):
        (WTF::PassOwnPtr::operator*):
        (WTF::PassOwnPtr::operator->):
        (WTF::PassOwnPtr::operator!):
        (WTF::PassOwnPtr::operator UnspecifiedBoolType):
        (WTF::::operator):
        (WTF::operator==):
        (WTF::operator!=):
        (WTF::static_pointer_cast):
        (WTF::const_pointer_cast):
        (WTF::getPtr):

JavaScriptGlue:

        * ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
        * ForwardingHeaders/wtf/PassOwnPtr.h: Added.

WebCore:

        * ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
        * ForwardingHeaders/wtf/PassOwnPtr.h: Added.
        * WebCore.vcproj/WebCore.vcproj: Added OwnPtrCommon.h and
        PassOwnPtr.h.

WebKit/mac:

        * ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
        * ForwardingHeaders/wtf/PassOwnPtr.h: Added.

WebKitTools:

        * DumpRenderTree/ForwardingHeaders/wtf/OwnPtrCommon.h: Added.
        * DumpRenderTree/ForwardingHeaders/wtf/PassOwnPtr.h: Added.

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

11 years ago Fix Mac builds by backing out r44093
ddkilzer@apple.com [Sat, 23 May 2009 16:15:16 +0000 (16:15 +0000)]
    Fix Mac builds by backing out r44093

        * bindings/js/JSCustomPositionCallback.cpp:
        * bindings/js/JSCustomPositionCallback.h:
        * bindings/js/JSCustomPositionErrorCallback.cpp:
        * bindings/js/JSCustomPositionErrorCallback.h:
        * bindings/js/JSGeolocationCustom.cpp:
        * page/Geolocation.cpp:
        * page/Geolocation.idl:
        * page/Geoposition.cpp:
        * page/Geoposition.h:
        * page/Geoposition.idl:
        * page/Navigator.cpp:
        (WebCore::Navigator::disconnectFrame):
        (WebCore::Navigator::geolocation):
        * page/PositionError.idl:
        * platform/GeolocationService.cpp:
        (WebCore::GeolocationService::create):

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

11 years ago2009-05-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
zecke@webkit.org [Sat, 23 May 2009 15:28:14 +0000 (15:28 +0000)]
2009-05-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        Add GEOLOCATION guards around Geolocation API code
        https://bugs.webkit.org/show_bug.cgi?id=25756

        * bindings/js/JSCustomPositionCallback.cpp:
        * bindings/js/JSCustomPositionCallback.h:
        * bindings/js/JSCustomPositionErrorCallback.cpp:
        * bindings/js/JSCustomPositionErrorCallback.h:
        * bindings/js/JSGeolocationCustom.cpp:
        * page/Geolocation.cpp:
        * page/Geolocation.idl:
        * page/Geoposition.cpp:
        * page/Geoposition.h:
        * page/Geoposition.idl:
        * page/Navigator.cpp:
        (WebCore::Navigator::disconnectFrame):
        (WebCore::Navigator::geolocation):
        * page/PositionError.idl:
        * platform/GeolocationService.cpp:

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

11 years ago resolve-ChangeLogs: Add missing newline to status message
ddkilzer@apple.com [Sat, 23 May 2009 15:21:34 +0000 (15:21 +0000)]
    resolve-ChangeLogs: Add missing newline to status message

        * Scripts/resolve-ChangeLogs: Added newline to status message
        that is printed when the -c|--continue switch is used but there
        are unmerged files remaining in the git working directory.

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

11 years ago Rename startupdateStyleIfNeededDispatcher to startUpdateStyleIfNeededDispatcher
ddkilzer@apple.com [Sat, 23 May 2009 15:07:14 +0000 (15:07 +0000)]
    Rename startupdateStyleIfNeededDispatcher to startUpdateStyleIfNeededDispatcher

        In r42377, startUpdateRenderingDispatcher() was renamed to
        startupdateStyleIfNeededDispatcher(), but the camelCase "U" was
        dropped.  This change restores it.

        * WebCore.order:
        * page/animation/AnimationController.cpp:
        (WebCore::AnimationControllerPrivate::startUpdateStyleIfNeededDispatcher):
        (WebCore::AnimationControllerPrivate::addEventToDispatch):
        (WebCore::AnimationControllerPrivate::addNodeChangeToDispatch):
        (WebCore::AnimationControllerPrivate::pauseAnimationAtTime):
        (WebCore::AnimationControllerPrivate::pauseTransitionAtTime):
        * page/animation/AnimationControllerPrivate.h:

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

11 years ago2009-05-23 Jakob Truelsen <antialize@gmail.com>
zecke@webkit.org [Sat, 23 May 2009 14:03:57 +0000 (14:03 +0000)]
2009-05-23  Jakob Truelsen  <antialize@gmail.com>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=25863

        Expose the default text encoding property to Qt.

        * Api/qwebsettings.cpp:
        (QWebSettingsPrivate::apply):
        (QWebSettings::setDefaultTextEncoding):
        (QWebSettings::defaultTextEncoding):
        * Api/qwebsettings.h:

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

11 years agoUnreviewed build-fix for Qt. Disable SVG Filters.
zecke@webkit.org [Sat, 23 May 2009 13:55:12 +0000 (13:55 +0000)]
Unreviewed build-fix for Qt. Disable SVG Filters.

SVG Filters can not be built right now and Qt should not have
them enabled anyway as they did not carry out any filtering.

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

11 years agoRemove interpreter specific logic from the JIT builds
oliver@apple.com [Sat, 23 May 2009 11:08:58 +0000 (11:08 +0000)]
Remove interpreter specific logic from the JIT builds

Reviewed by Maciej Stachowiak.

This saves ~100k in JSC release builds.

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

11 years agoAdd tests to cover exceptions thrown from non-object results of get_by_id
oliver@apple.com [Sat, 23 May 2009 09:06:07 +0000 (09:06 +0000)]
Add tests to cover exceptions thrown from non-object results of get_by_id

Reviewed by Maciej Stachowiak

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

11 years agoAdd an error message to a die statement
eric@webkit.org [Sat, 23 May 2009 08:25:48 +0000 (08:25 +0000)]
Add an error message to a die statement

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

11 years ago2009-05-23 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Sat, 23 May 2009 07:32:10 +0000 (07:32 +0000)]
2009-05-23  Dirk Schulze  <krit@webkit.org>

        Unreviewed build-fix for gtk. Remove source input files
        for SVG filter system from the build for the moment and
        add them later again.

        * GNUmakefile.am:

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

11 years ago2009-05-23 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sat, 23 May 2009 07:22:57 +0000 (07:22 +0000)]
2009-05-23  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Unreviewed. Skip new tests introduced in r44010. These tests
        require an eventSender implementation which the gtk port
        currently do not have.

        Also remove gtk-specific result for
        fast/canvas/canvas-composite-alpha. The non-platform specific
        result now works.

        * platform/gtk/Skipped:
        * platform/gtk/fast/canvas/canvas-composite-alpha-expected.txt: Removed.

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

11 years ago2009-05-23 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Sat, 23 May 2009 07:19:21 +0000 (07:19 +0000)]
2009-05-23  Dirk Schulze  <krit@webkit.org>

        Reviewed by Eric Seidel.

        WebKit needs cross-platform filter system
        [https://bugs.webkit.org/show_bug.cgi?id=19991]

        Preparing Filter primitves for the new filter system.

        No testcases were added. SVG filters are off by default.

        * GNUmakefile.am:
        * platform/graphics/filters/FEBlend.cpp:
        (WebCore::FEBlend::apply):
        * platform/graphics/filters/FEBlend.h:
        * platform/graphics/filters/FEColorMatrix.cpp:
        (WebCore::FEColorMatrix::apply):
        * platform/graphics/filters/FEColorMatrix.h:
        * platform/graphics/filters/FEComponentTransfer.cpp:
        (WebCore::FEComponentTransfer::apply):
        * platform/graphics/filters/FEComponentTransfer.h:
        * platform/graphics/filters/FEComposite.cpp:
        (WebCore::FEComposite::apply):
        * platform/graphics/filters/FEComposite.h:
        * svg/Filter.h:
        * svg/FilterBuilder.h:
        (WebCore::FilterBuilder::lastFilter):
        * svg/FilterEffect.cpp:
        (WebCore::FilterEffect::FilterEffect):
        * svg/FilterEffect.h:
        (WebCore::FilterEffect::xBoundingBoxMode):
        (WebCore::FilterEffect::setXBoundingBoxMode):
        (WebCore::FilterEffect::yBoundingBoxMode):
        (WebCore::FilterEffect::setYBoundingBoxMode):
        (WebCore::FilterEffect::widthBoundingBoxMode):
        (WebCore::FilterEffect::setWidthBoundingBoxMode):
        (WebCore::FilterEffect::heightBoundingBoxMode):
        (WebCore::FilterEffect::setHeightBoundingBoxMode):
        (WebCore::FilterEffect::subRegion):
        (WebCore::FilterEffect::setSubRegion):
        (WebCore::FilterEffect::resultImage):
        (WebCore::FilterEffect::setEffectBuffer):
        * svg/graphics/filters/SVGFEConvolveMatrix.cpp:
        (WebCore::FEConvolveMatrix::apply):
        * svg/graphics/filters/SVGFEConvolveMatrix.h:
        * svg/graphics/filters/SVGFEDiffuseLighting.cpp:
        (WebCore::FEDiffuseLighting::apply):
        * svg/graphics/filters/SVGFEDiffuseLighting.h:
        * svg/graphics/filters/SVGFEDisplacementMap.cpp:
        (WebCore::FEDisplacementMap::apply):
        * svg/graphics/filters/SVGFEDisplacementMap.h:
        * svg/graphics/filters/SVGFEFlood.cpp:
        (WebCore::FEFlood::apply):
        * svg/graphics/filters/SVGFEFlood.h:
        * svg/graphics/filters/SVGFEGaussianBlur.cpp:
        (WebCore::FEGaussianBlur::apply):
        * svg/graphics/filters/SVGFEGaussianBlur.h:
        * svg/graphics/filters/SVGFEImage.cpp:
        (WebCore::FEImage::apply):
        * svg/graphics/filters/SVGFEImage.h:
        * svg/graphics/filters/SVGFEMerge.cpp:
        (WebCore::FEMerge::apply):
        * svg/graphics/filters/SVGFEMerge.h:
        * svg/graphics/filters/SVGFEMorphology.cpp:
        (WebCore::FEMorphology::apply):
        * svg/graphics/filters/SVGFEMorphology.h:
        * svg/graphics/filters/SVGFEOffset.cpp:
        (WebCore::FEOffset::apply):
        * svg/graphics/filters/SVGFEOffset.h:
        * svg/graphics/filters/SVGFESpecularLighting.cpp:
        (WebCore::FESpecularLighting::apply):
        * svg/graphics/filters/SVGFESpecularLighting.h:
        * svg/graphics/filters/SVGFETile.cpp:
        (WebCore::FETile::apply):
        * svg/graphics/filters/SVGFETile.h:
        * svg/graphics/filters/SVGFETurbulence.cpp:
        (WebCore::FETurbulence::apply):
        * svg/graphics/filters/SVGFETurbulence.h:

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

11 years ago2009-05-22 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Sat, 23 May 2009 06:25:57 +0000 (06:25 +0000)]
2009-05-22  Dirk Schulze  <krit@webkit.org>

        Unreviewed build-fix for gtk. Breakage caused by a wrong call of ImageBuffer.

        * platform/graphics/cairo/ImageCairo.cpp:
        (WebCore::Image::drawPattern):

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

11 years ago2009-05-22 Dirk Schulze <vbs85@gmx.de>
krit@webkit.org [Sat, 23 May 2009 06:00:12 +0000 (06:00 +0000)]
2009-05-22  Dirk Schulze  <vbs85@gmx.de>

        Reviewed by Eric Seidel.

        Added the use of tileRect() for a correct drawing of
        border-images.

        Testcases for border-image are in fast/borders like
        border-image-01.html and will be activated for cairo, once
        gtk supports pixel tests.

        https://bugs.webkit.org/show_bug.cgi?id=19652
        [CAIRO] wrong drawing of border-image

        * platform/graphics/cairo/ImageCairo.cpp:
        (WebCore::Image::drawPattern):

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

11 years agoPart two of an attempted Windows build fix.
mrowe@apple.com [Sat, 23 May 2009 05:47:53 +0000 (05:47 +0000)]
Part two of an attempted Windows build fix.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore_debug.def:

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

11 years agoAsk the Scrollbar for the orientation.
zecke@webkit.org [Sat, 23 May 2009 05:47:53 +0000 (05:47 +0000)]
Ask the Scrollbar for the orientation.

https://bugs.webkit.org/show_bug.cgi?id=25684

Use Scrollbar::orientation to figure out the
direction of scrolling.

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

11 years agoPart one of an attempted Windows build fix.
mrowe@apple.com [Sat, 23 May 2009 05:13:27 +0000 (05:13 +0000)]
Part one of an attempted Windows build fix.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore_debug.def:

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

11 years agoImprove network request docs
kov@webkit.org [Sat, 23 May 2009 04:51:42 +0000 (04:51 +0000)]
Improve network request docs

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

11 years ago2009-05-21 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Sat, 23 May 2009 01:48:32 +0000 (01:48 +0000)]
2009-05-21  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Geoff Garen.

        op_method_check

        Optimize method calls, by caching specific function values within the Structure.
        The new opcode is used almost like an x86 opcode prefix byte to optimize op_get_by_id,
        where the property access is being used to read a function to be passed to op-call (i.e.
        'foo.bar();').  This patch modifies the Structure class such that when a property is
        put to an object for the first time we will check if the value is a function.  If it is,
        we will cache the function value on the Structure.  A Structure in such a state guarantees
        that not only does a property with the given identifier exist on the object, but also that
        its value is unchanged.  Upon any further attempt to put a property with the same identifier
        (but a different value) to the object, it will transition back to a normal Structure (where
        it will guarantee the presence but not the value of the property).

        op_method_check makes use of the new information made available by the Structure, by
        augmenting the functionality of op_get_by_id.  Upon generating a FunctionCallDotNode a
        check will be emitted prior to the property access reading the function value, and the JIT
        will generate an extra (initially unlinked but patchable) set of checks prior to the regular
        JIT code for get_by_id.  The new code will do inline structure and prototype structure check
        (unlike a regular get_by_id, which can only handle 'self' accesses inline), and then performs
        an immediate load of the function value, rather than using memory accesses to load the value
        from the obejct's property storage array.  If the method check fails it will revert, or if
        the access is polymorphic, the op_get_by_id will continue to operate - and optimize itself -
        just as any other regular op_get_by_id would.

        ~2.5% on v8-tests, due to a ~9% progression on richards.

        * API/JSCallbackObjectFunctions.h:
        (JSC::::put):
        (JSC::::staticFunctionGetter):
        * API/JSObjectRef.cpp:
        (JSObjectMakeConstructor):
        * JavaScriptCore.exp:
        * assembler/AbstractMacroAssembler.h:
        (JSC::AbstractMacroAssembler::differenceBetween):
        * assembler/MacroAssemblerX86.h:
        (JSC::MacroAssemblerX86::moveWithPatch):
        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::dump):
        * bytecode/CodeBlock.h:
        (JSC::getMethodCallLinkInfoReturnLocation):
        (JSC::CodeBlock::getMethodCallLinkInfo):
        (JSC::CodeBlock::addMethodCallLinkInfos):
        (JSC::CodeBlock::methodCallLinkInfo):
        * bytecode/Opcode.h:
        * bytecompiler/BytecodeGenerator.cpp:
        (JSC::BytecodeGenerator::emitMethodCheck):
        * bytecompiler/BytecodeGenerator.h:
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::privateExecute):
        * jit/JIT.cpp:
        (JSC::JIT::privateCompileMainPass):
        (JSC::JIT::privateCompileSlowCases):
        (JSC::JIT::privateCompile):
        * jit/JIT.h:
        (JSC::MethodCallCompilationInfo::MethodCallCompilationInfo):
        * jit/JITOpcodes.cpp:
        * jit/JITPropertyAccess.cpp:
        (JSC::JIT::emit_op_method_check):
        (JSC::JIT::emitSlow_op_method_check):
        (JSC::JIT::emit_op_get_by_id):
        (JSC::JIT::emitSlow_op_get_by_id):
        (JSC::JIT::emit_op_put_by_id):
        (JSC::JIT::emitSlow_op_put_by_id):
        (JSC::JIT::compileGetByIdHotPath):
        (JSC::JIT::compileGetByIdSlowCase):
        (JSC::JIT::patchMethodCallProto):
        * jit/JITStubs.cpp:
        (JSC::JITStubs::cti_op_get_by_id_method_check):
        (JSC::JITStubs::cti_op_get_by_id_method_check_second):
        * jit/JITStubs.h:
        * jsc.cpp:
        (GlobalObject::GlobalObject):
        * parser/Nodes.cpp:
        (JSC::FunctionCallDotNode::emitBytecode):
        * runtime/Arguments.cpp:
        (JSC::Arguments::put):
        * runtime/ArrayConstructor.cpp:
        (JSC::ArrayConstructor::ArrayConstructor):
        * runtime/BooleanConstructor.cpp:
        (JSC::BooleanConstructor::BooleanConstructor):
        * runtime/DateConstructor.cpp:
        (JSC::DateConstructor::DateConstructor):
        * runtime/ErrorConstructor.cpp:
        (JSC::ErrorConstructor::ErrorConstructor):
        (JSC::constructError):
        * runtime/ErrorPrototype.cpp:
        (JSC::ErrorPrototype::ErrorPrototype):
        * runtime/FunctionConstructor.cpp:
        (JSC::FunctionConstructor::FunctionConstructor):
        * runtime/FunctionPrototype.cpp:
        (JSC::FunctionPrototype::FunctionPrototype):
        * runtime/InternalFunction.cpp:
        (JSC::InternalFunction::InternalFunction):
        * runtime/JSActivation.cpp:
        (JSC::JSActivation::put):
        (JSC::JSActivation::putWithAttributes):
        * runtime/JSByteArray.cpp:
        (JSC::JSByteArray::JSByteArray):
        * runtime/JSFunction.cpp:
        (JSC::JSFunction::JSFunction):
        (JSC::JSFunction::getOwnPropertySlot):
        * runtime/JSGlobalObject.cpp:
        (JSC::JSGlobalObject::putWithAttributes):
        (JSC::JSGlobalObject::reset):
        (JSC::JSGlobalObject::mark):
        * runtime/JSGlobalObject.h:
        (JSC::JSGlobalObject::JSGlobalObjectData::JSGlobalObjectData):
        (JSC::JSGlobalObject::methodCallDummy):
        * runtime/JSObject.cpp:
        (JSC::JSObject::put):
        (JSC::JSObject::putWithAttributes):
        (JSC::JSObject::deleteProperty):
        (JSC::JSObject::defineGetter):
        (JSC::JSObject::defineSetter):
        (JSC::JSObject::getPropertyAttributes):
        (JSC::JSObject::getPropertySpecificFunction):
        (JSC::JSObject::putDirectFunction):
        (JSC::JSObject::putDirectFunctionWithoutTransition):
        * runtime/JSObject.h:
        (JSC::getJSFunction):
        (JSC::JSObject::getDirectLocation):
        (JSC::JSObject::putDirect):
        (JSC::JSObject::putDirectWithoutTransition):
        * runtime/LiteralParser.cpp:
        (JSC::LiteralParser::parseObject):
        * runtime/Lookup.cpp:
        (JSC::setUpStaticFunctionSlot):
        * runtime/Lookup.h:
        (JSC::lookupPut):
        * runtime/MathObject.cpp:
        (JSC::MathObject::MathObject):
        * runtime/NativeErrorConstructor.cpp:
        (JSC::NativeErrorConstructor::NativeErrorConstructor):
        (JSC::NativeErrorConstructor::construct):
        * runtime/NativeErrorPrototype.cpp:
        (JSC::NativeErrorPrototype::NativeErrorPrototype):
        * runtime/NumberConstructor.cpp:
        (JSC::NumberConstructor::NumberConstructor):
        * runtime/ObjectConstructor.cpp:
        (JSC::ObjectConstructor::ObjectConstructor):
        * runtime/PropertyMapHashTable.h:
        (JSC::PropertyMapEntry::PropertyMapEntry):
        * runtime/PrototypeFunction.cpp:
        (JSC::PrototypeFunction::PrototypeFunction):
        * runtime/PutPropertySlot.h:
        (JSC::PutPropertySlot::):
        (JSC::PutPropertySlot::PutPropertySlot):
        (JSC::PutPropertySlot::setNewProperty):
        (JSC::PutPropertySlot::setDespecifyFunctionProperty):
        (JSC::PutPropertySlot::isCacheable):
        (JSC::PutPropertySlot::cachedOffset):
        * runtime/RegExpConstructor.cpp:
        (JSC::RegExpConstructor::RegExpConstructor):
        * runtime/StringConstructor.cpp:
        (JSC::StringConstructor::StringConstructor):
        * runtime/StringPrototype.cpp:
        (JSC::StringPrototype::StringPrototype):
        * runtime/Structure.cpp:
        (JSC::Structure::Structure):
        (JSC::Structure::~Structure):
        (JSC::Structure::materializePropertyMap):
        (JSC::Structure::addPropertyTransitionToExistingStructure):
        (JSC::Structure::addPropertyTransition):
        (JSC::Structure::changeFunctionTransition):
        (JSC::Structure::addPropertyWithoutTransition):
        (JSC::Structure::get):
        (JSC::Structure::despecifyFunction):
        (JSC::Structure::put):
        (JSC::Structure::remove):
        * runtime/Structure.h:
        (JSC::Structure::get):
        (JSC::Structure::specificFunction):
        * runtime/StructureTransitionTable.h:
        (JSC::StructureTransitionTableHashTraits::emptyValue):
        * wtf/Platform.h:

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

11 years agoWebCore:
mitz@apple.com [Sat, 23 May 2009 01:34:48 +0000 (01:34 +0000)]
WebCore:

2009-05-22  Darin Adler  <darin@apple.com>

        Reviewed by Dan Bernstein.

        <rdar://problem/6916082> Incorrect handling of % as CSS value.

        Test: fast/css/percent-character-as-value.html

        * css/CSSGrammar.y: Make a stray % character reliably cause
        CSS parsing to succeed, but the CSS value to be ignored because
        of incorrect type. A type of 0 has this effect.

LayoutTests:

2009-05-22  Dan Bernstein  <mitz@apple.com>

        Reviewed by Darin Adler.

        <rdar://problem/6916082> Incorrect handling of % as CSS value.

        * fast/css/percent-character-as-value-expected.txt: Added.
        * fast/css/percent-character-as-value.html: Added.

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

11 years agoAdd bugs.webkit.org URL for r44046
ddkilzer@apple.com [Sat, 23 May 2009 01:01:26 +0000 (01:01 +0000)]
Add bugs.webkit.org URL for r44046

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

11 years agoWebCore:
bfulgham@webkit.org [Sat, 23 May 2009 00:59:25 +0000 (00:59 +0000)]
WebCore:

2009-05-22  Brent Fulgham  <bfulgham@webkit.org>

        Reviewed by Adam Roben.

        https://bugs.webkit.org/show_bug.cgi?id=25971
        Correct a handful of build errors in the Windows Cairo variant
        due to missing VIDEO support.

        * WebCore.vcproj/WebCore.vcproj: Exclude RenderMediaControls for
          the Cairo-based Windows target.
        * rendering/RenderThemeWin.cpp: Avoid #include of RenderMediaControls
          for non-VIDEO builds.

WebKit/win:

2009-05-22  Brent Fulgham  <bfulgham@webkit.org>

        Reviewed by Adam Roben.

        https://bugs.webkit.org/show_bug.cgi?id=25971
        Correct some build errors for Windows Cairo variant.

        * WebKit.vcproj/WebKit.vcproj: Remove WTF.lib link commands as
          the new JavaScriptCore.dll supplies this now.

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

11 years ago One <limits> is enough
ddkilzer@apple.com [Sat, 23 May 2009 00:48:19 +0000 (00:48 +0000)]
    One <limits> is enough

        * html/HTMLMediaElement.cpp: Removed duplicate #include <limits>.

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

11 years ago2009-05-22 Darin Adler <darin@apple.com>
mitz@apple.com [Fri, 22 May 2009 22:58:36 +0000 (22:58 +0000)]
2009-05-22  Darin Adler  <darin@apple.com>

        Reviewed by Dan Bernstein.

        - Fix <rdar://problem/6913765> REGRESSION (r42331-r42334): Extra scroll
          bars appearing on Welcome panels of iLife '09 apps

        * WebView/WebView.mm:
        (needsUnwantedScrollBarWorkaround): Added. Checks if this is a panel
        where scroll bars are unwanted. For safety, limited to only Apple applications.
        (-[WebView viewDidMoveToWindow]): If the workaround is needed, disallow
        scrolling the main frame. This prevents scroll bars from appearing.

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

11 years ago2009-05-22 Jon Honeycutt <jhoneycutt@apple.com>
jhoneycutt@apple.com [Fri, 22 May 2009 21:30:21 +0000 (21:30 +0000)]
2009-05-22  Jon Honeycutt  <jhoneycutt@apple.com>

        <rdar://problem/6915957> REGRESSION: Hang when leaving page with VLC
        plug-in

        Reviewed by Steve Falkenburg.

        * plugins/win/PluginPackageWin.cpp:
        (WebCore::PluginPackage::determineQuirks):
        Look for the VLC plug-in's new name.

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

11 years ago2009-05-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 22 May 2009 21:15:47 +0000 (21:15 +0000)]
2009-05-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Fisher.

        https://bugs.webkit.org/show_bug.cgi?id=25966

        Remove redudant member from Chromium's ResourceRequest.  We already
        have this data in the cross-platform ResourceRequestBase.  Also, rename
        ChromiumBridge parameter to be consistant with the new name for this
        piece of data.

        * platform/chromium/ChromiumBridge.h:
        * platform/network/chromium/ResourceRequest.h:

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

11 years agoModify projects to use CFLite when not building the Apple Windows port.
bfulgham@webkit.org [Fri, 22 May 2009 21:11:16 +0000 (21:11 +0000)]
Modify projects to use CFLite when not building the Apple Windows port.

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

11 years ago2009-05-22 Darin Adler <darin@apple.com>
mitz@apple.com [Fri, 22 May 2009 20:48:54 +0000 (20:48 +0000)]
2009-05-22  Darin Adler  <darin@apple.com>

        Reviewed by Dan Bernstein.

        - Made the global-function-resolve test independent of hashing order
          by using a fixed set of properties. This also removes the need for us
          to update this test every time we add something to the window object or
          the js-test-pre.js family of scripts.

        * fast/js/global-function-resolve-expected.txt: Updated.
        * fast/js/resources/global-function-resolve.js: Use a fixed array instead
        of using all property names from the global object; also made other small
        changes that don't have an effect on the substance of the test.

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

11 years agoReviewed by Kevin Ollivier.
kevino@webkit.org [Fri, 22 May 2009 20:35:40 +0000 (20:35 +0000)]
Reviewed by Kevin Ollivier.

Triple-click support for wx port. Also, switch to allocating GraphicsContext
on the stack in OnPaint since we only need it within that function.

https://bugs.webkit.org/show_bug.cgi?id=25962

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

11 years agoDate fix on ChangeLog.
kevino@webkit.org [Fri, 22 May 2009 20:32:12 +0000 (20:32 +0000)]
Date fix on ChangeLog.

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

11 years ago Reviewed by Darin Adler.
mitz@apple.com [Fri, 22 May 2009 20:31:39 +0000 (20:31 +0000)]
    Reviewed by Darin Adler.

        - remove a test that was supposed to test the text/* change to MIME
          types from r43979, since the change was rolled out, and the test seems
          to be ineffective anyway, since it was passing on Mac after rolling
          out the change.

        * http/tests/mime/accept-all-text-types-expected.txt: Removed.
        * http/tests/mime/accept-all-text-types.html: Removed.

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

11 years agoReviewed by Kevin Ollivier.
kevino@webkit.org [Fri, 22 May 2009 20:11:59 +0000 (20:11 +0000)]
Reviewed by Kevin Ollivier.

Only account for overhang for multi-character strings.

https://bugs.webkit.org/show_bug.cgi?id=25961

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

11 years agowx build fix. Switch to CURL cookies so we can benefit from API updates.
kevino@webkit.org [Fri, 22 May 2009 20:03:52 +0000 (20:03 +0000)]
wx build fix. Switch to CURL cookies so we can benefit from API updates.

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

11 years agoFixing changelog message
kov@webkit.org [Fri, 22 May 2009 19:41:47 +0000 (19:41 +0000)]
Fixing changelog message

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

11 years ago2009-05-22 Antonio Gomes <antonio.gomes@openbossa.org>
kov@webkit.org [Fri, 22 May 2009 19:40:08 +0000 (19:40 +0000)]
2009-05-22  Antonio Gomes   <antonio.gomes@openbossa.org>

        Reviewed by Gustavo Noronha.

        Make Gtk build not bail out if gtk-doc-tools is not installed.

        Warning message dumped instead.

        * autogen.sh:

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

11 years ago2009-05-22 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Fri, 22 May 2009 19:07:10 +0000 (19:07 +0000)]
2009-05-22  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        Add big warnings about the glib unicode backend being slow and
        incomplete, since it is a work in progress.

        * autotools/webkit.m4:
        * configure.ac:

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

11 years ago2009-05-21 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 22 May 2009 19:06:07 +0000 (19:06 +0000)]
2009-05-21  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=24818
        [GTK] http auth dialog pops up twice after a cancelled atempt

        Workaround libsoup bug
        http://bugzilla.gnome.org/show_bug.cgi?id=583462, which made
        libsoup emit the 'authenticate' signal more often than it was
        expected.

        We'll be able to remove this when we depend on libsoup > 2.26.2.

        * webkit/webkitsoupauthdialog.c:
        (session_authenticate):

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

11 years ago2009-05-22 Peter Kasting <pkasting@google.com>
pkasting@chromium.org [Fri, 22 May 2009 18:39:04 +0000 (18:39 +0000)]
2009-05-22  Peter Kasting  <pkasting@google.com>

        Reviewed by Darin Fisher.

        https://bugs.webkit.org/show_bug.cgi?id=25709 part one
        Indent contents of namespaces in header files, to comply with the
        style guide.  No functional change.

        * platform/image-decoders/ImageDecoder.h:
        (WebCore::RGBA32Buffer::):
        (WebCore::RGBA32Buffer::RGBA32Buffer):
        (WebCore::RGBA32Buffer::clear):
        (WebCore::RGBA32Buffer::bytes):
        (WebCore::RGBA32Buffer::rect):
        (WebCore::RGBA32Buffer::height):
        (WebCore::RGBA32Buffer::status):
        (WebCore::RGBA32Buffer::duration):
        (WebCore::RGBA32Buffer::disposalMethod):
        (WebCore::RGBA32Buffer::hasAlpha):
        (WebCore::RGBA32Buffer::setRect):
        (WebCore::RGBA32Buffer::ensureHeight):
        (WebCore::RGBA32Buffer::setStatus):
        (WebCore::RGBA32Buffer::setDuration):
        (WebCore::RGBA32Buffer::setDisposalMethod):
        (WebCore::RGBA32Buffer::setHasAlpha):
        (WebCore::RGBA32Buffer::setRGBA):
        (WebCore::ImageDecoder::m_failed):
        (WebCore::ImageDecoder::~ImageDecoder):
        (WebCore::ImageDecoder::setData):
        (WebCore::ImageDecoder::size):
        (WebCore::ImageDecoder::frameCount):
        (WebCore::ImageDecoder::repetitionCount):
        (WebCore::ImageDecoder::supportsAlpha):
        (WebCore::ImageDecoder::failed):
        (WebCore::ImageDecoder::setFailed):
        (WebCore::ImageDecoder::clearFrameBufferCache):
        * platform/image-decoders/bmp/BMPImageDecoder.h:
        (WebCore::BMPImageDecoder::filenameExtension):
        * platform/image-decoders/gif/GIFImageDecoder.h:
        (WebCore::GIFImageDecoder::filenameExtension):
        (WebCore::GIFImageDecoder::frameDurationAtIndex):
        (WebCore::GIFImageDecoder::):
        * platform/image-decoders/ico/ICOImageDecoder.h:
        (WebCore::ICOImageDecoder::filenameExtension):
        * platform/image-decoders/jpeg/JPEGImageDecoder.h:
        (WebCore::JPEGImageDecoder::filenameExtension):
        (WebCore::JPEGImageDecoder::supportsAlpha):
        (WebCore::JPEGImageDecoder::reader):
        (WebCore::JPEGImageDecoder::setSize):
        * platform/image-decoders/png/PNGImageDecoder.h:
        (WebCore::PNGImageDecoder::filenameExtension):
        (WebCore::PNGImageDecoder::reader):
        (WebCore::PNGImageDecoder::decodingFailed):
        * platform/image-decoders/xbm/XBMImageDecoder.h:
        (WebCore::XBMImageDecoder::filenameExtension):

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

11 years agoWebCore
kov@webkit.org [Fri, 22 May 2009 18:06:51 +0000 (18:06 +0000)]
WebCore

2009-05-22  Dominik Röttsches  <dominik.roettsches@access-company.com>

        Reviewed by Gustavo Noronha.

        https://bugs.webkit.org/show_bug.cgi?id=15914
        [GTK] Implement Unicode functionality using GLib

        Minor changes that allow building a hybrid version of WebKit
        that has WTF Unicode backend based on GLib functions while
        text codecs and TextBreakIterator remain based on ICU.

        Fixed some includes that were assuming a WTF ICU backend and
        introduced temporary usage of WTF_USE_GLIB_ICU_UNICODE_HYBRID
        macro.

        * platform/ThreadGlobalData.cpp:
        (WebCore::ThreadGlobalData::ThreadGlobalData):
        (WebCore::ThreadGlobalData::~ThreadGlobalData):
        * platform/ThreadGlobalData.h:
        * platform/text/TextBoundariesICU.cpp:
        * platform/text/TextCodecICU.h:
        * platform/text/TextEncoding.cpp:
        (WebCore::TextEncoding::encode):
        * platform/text/TextEncodingRegistry.cpp:
        (WebCore::buildBaseTextCodecMaps):
        (WebCore::extendTextCodecMaps):

JavaScriptCore

2009-05-22  Dominik Röttsches  <dominik.roettsches@access-company.com>

        Reviewed by Gustavo Noronha.

        https://bugs.webkit.org/show_bug.cgi?id=15914
        [GTK] Implement Unicode functionality using GLib

        Original patch by Jürg Billeter and Naiem Shaik.
        Implementing WTF Unicode functionality based on GLib.

        * GNUmakefile.am:
        * wtf/unicode/Unicode.h:
        * wtf/unicode/glib: Added.
        * wtf/unicode/glib/UnicodeGLib.cpp: Added.
        (WTF::Unicode::foldCase):
        (WTF::Unicode::toLower):
        (WTF::Unicode::toUpper):
        (WTF::Unicode::direction):
        (WTF::Unicode::umemcasecmp):
        * wtf/unicode/glib/UnicodeGLib.h: Added.
        (WTF::Unicode::):
        (WTF::Unicode::toLower):
        (WTF::Unicode::toUpper):
        (WTF::Unicode::toTitleCase):
        (WTF::Unicode::isArabicChar):
        (WTF::Unicode::isFormatChar):
        (WTF::Unicode::isSeparatorSpace):
        (WTF::Unicode::isPrintableChar):
        (WTF::Unicode::isDigit):
        (WTF::Unicode::isPunct):
        (WTF::Unicode::mirroredChar):
        (WTF::Unicode::category):
        (WTF::Unicode::isLower):
        (WTF::Unicode::digitValue):
        (WTF::Unicode::combiningClass):
        (WTF::Unicode::decompositionType):
        * wtf/unicode/glib/UnicodeMacrosFromICU.h: Added.

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

11 years agoUnreviewed build fix.
abarth@webkit.org [Fri, 22 May 2009 16:59:58 +0000 (16:59 +0000)]
Unreviewed build fix.

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

11 years agoWebCore:
abarth@webkit.org [Fri, 22 May 2009 16:45:32 +0000 (16:45 +0000)]
WebCore:

2009-05-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=25955

        Remove the policyBaseURL parameter from setCookie.  This parameter is
        redundant with the document parameter.

        * WebCore.base.exp:
        * WebCore.order:
        * dom/Document.cpp:
        (WebCore::Document::setCookie):
        * platform/CookieJar.h:
        * platform/mac/CookieJar.mm:
        (WebCore::setCookies):
        * platform/network/ResourceRequestBase.cpp:
        (WebCore::ResourceRequestBase::firstPartyForCookies):
        (WebCore::ResourceRequestBase::setFirstPartyForCookies):
        * platform/network/chromium/CookieJarChromium.cpp:
        (WebCore::setCookies):
        * platform/network/curl/CookieJarCurl.cpp:
        (WebCore::setCookies):
        * platform/network/soup/CookieJarSoup.cpp:
        (WebCore::setCookies):
        * platform/network/win/CookieJarCFNetWin.cpp:
        (WebCore::setCookies):
        * platform/network/win/CookieJarWin.cpp:
        (WebCore::setCookies):
        * platform/qt/CookieJarQt.cpp:
        (WebCore::setCookies):

WebKit/mac:

2009-05-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=25955

        Remove the policyBaseURL parameter from setCookie.  This parameter is
        redudant with the document parameter.

        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::setCookies):
        * Plugins/WebNetscapePluginView.mm:
        (-[WebNetscapePluginView setVariable:forURL:value:length:]):

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

11 years ago2009-05-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 22 May 2009 16:44:47 +0000 (16:44 +0000)]
2009-05-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Maciej Stachowiak.

        Rename policyBaseURL and mainDocumentURL to firstPartyForCookies.  The
        previous names were confusing and inaccurate.

        * WebCore.order:
        * dom/Document.cpp:
        (WebCore::Document::setCookie):
        * dom/Document.h:
        (WebCore::Document::firstPartyForCookies):
        (WebCore::Document::setFirstPartyForCookies):
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::begin):
        (WebCore::FrameLoader::updateFirstPartyForCookies):
        (WebCore::FrameLoader::setFirstPartyForCookies):
        (WebCore::FrameLoader::open):
        (WebCore::FrameLoader::addExtraFieldsToRequest):
        (WebCore::FrameLoader::loadResourceSynchronously):
        * loader/FrameLoader.h:
        * loader/MainResourceLoader.cpp:
        (WebCore::MainResourceLoader::willSendRequest):
        * platform/CookieJar.h:
        * platform/mac/CookieJar.mm:
        (WebCore::setCookies):
        * platform/network/ResourceRequestBase.cpp:
        (WebCore::ResourceRequestBase::adopt):
        (WebCore::ResourceRequestBase::copyData):
        (WebCore::ResourceRequestBase::firstPartyForCookies):
        (WebCore::ResourceRequestBase::setFirstPartyForCookies):
        (WebCore::equalIgnoringHeaderFields):
        * platform/network/ResourceRequestBase.h:
        * platform/network/cf/ResourceRequestCFNet.cpp:
        (WebCore::ResourceRequest::doUpdatePlatformRequest):
        (WebCore::ResourceRequest::doUpdateResourceRequest):
        * platform/network/chromium/CookieJarChromium.cpp:
        (WebCore::setCookies):
        * platform/network/mac/ResourceRequestMac.mm:
        (WebCore::ResourceRequest::doUpdateResourceRequest):
        (WebCore::ResourceRequest::doUpdatePlatformRequest):

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

11 years ago Fix the call to editingCancelled to be this._editingCancelled, since
timothy@apple.com [Fri, 22 May 2009 16:08:58 +0000 (16:08 +0000)]
    Fix the call to editingCancelled to be this._editingCancelled, since
        editingCancelled doesn't exist and throws an exception.

        Reviewed by Timothy Hatcher.

        * inspector/front-end/ElementsTreeOutline.js:
        (WebInspector.ElementsTreeElement.prototype._attributeEditingCommitted):

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

11 years ago2009-05-22 Andre Pedralho <andre.pedralho@openbossa.org>
hausmann@webkit.org [Fri, 22 May 2009 15:33:21 +0000 (15:33 +0000)]
2009-05-22  Andre Pedralho  <andre.pedralho@openbossa.org>

        Reviewed by Simon Hausmann.

        Fixed --makeargs usage in Qt build.

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

11 years ago Reviewed by Eric Seidel.
ap@webkit.org [Fri, 22 May 2009 15:00:39 +0000 (15:00 +0000)]
    Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=25928
        Several errors detected by cppcheck

        Fix all (the only one) problem in cross-platform code found by the tool. Port maintainers
        should take a look at other reports.

        * css/CSSParser.cpp: (WebCore::CSSParser::addProperty): Don't leak the property even if there
        are billions of those.

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

11 years ago2009-05-22 Zoltan Horvath <horvath.zoltan.6@stud.u-szeged.hu>
hausmann@webkit.org [Fri, 22 May 2009 14:26:50 +0000 (14:26 +0000)]
2009-05-22  Zoltan Horvath  <horvath.zoltan.6@stud.u-szeged.hu>

        Reviewed by Simon Hausmann.

        Correcting error message on missing WEBKIT_TESTFONTS
        environment varible in Qt-port.

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

11 years ago2009-05-22 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
hausmann@webkit.org [Fri, 22 May 2009 14:26:39 +0000 (14:26 +0000)]
2009-05-22  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>

        Reviewed by Simon Hausmann.

        Skip tests depending on platform dependent results.

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

11 years ago2009-05-22 Shinichiro Hamaji <hamaji@google.com>
eric@webkit.org [Fri, 22 May 2009 13:24:06 +0000 (13:24 +0000)]
2009-05-22  Shinichiro Hamaji  <hamaji@google.com>

        Reviewed by Oliver Hunt.

        Remove optimization path alpha=0 case from GraphicContext(CG|Skia).
        This optimization doesn't make sense for some composite mode (e.g., 'copy' operation).

        https://bugs.webkit.org/show_bug.cgi?id=25956

        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::drawRect):
        (WebCore::GraphicsContext::drawLine):
        (WebCore::GraphicsContext::strokeArc):
        (WebCore::GraphicsContext::drawConvexPolygon):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::fillRect):
        (WebCore::GraphicsContext::fillRoundedRect):
        (WebCore::GraphicsContext::strokeRect):
        * platform/graphics/skia/GraphicsContextSkia.cpp:
        (WebCore::GraphicsContext::drawConvexPolygon):
        (WebCore::GraphicsContext::drawEllipse):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::fillRect):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::strokeRect):

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

11 years ago2009-05-21 Antonio Gomes <antonio.gomes@openbossa.org>
hausmann@webkit.org [Fri, 22 May 2009 13:12:04 +0000 (13:12 +0000)]
2009-05-21  Antonio Gomes   <antonio.gomes@openbossa.org>

        Reviewed by Simon Hausmann.

        [Qt] Additional test for resource load (CSS file) for QWebFrame.

        * tests/qwebframe/qwebframe.qrc:
        * tests/qwebframe/style.css: Added.
        * tests/qwebframe/tst_qwebframe.cpp:

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

11 years ago2009-05-22 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 22 May 2009 08:37:05 +0000 (08:37 +0000)]
2009-05-22  Xan Lopez  <xlopez@igalia.com>

        Unreviewed build fix.

        Revert the whole thing, since we can't figure out a way to make it
        work in all platforms.

        * rendering/SVGInlineTextBox.cpp:
        (WebCore::pathForDecoration):
        * svg/SVGLength.cpp:
        (WebCore::SVGLength::PercentageOfViewport):

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

11 years ago2009-05-22 Simon Hausmann <simon.hausmann@nokia.com>
hausmann@webkit.org [Fri, 22 May 2009 08:36:57 +0000 (08:36 +0000)]
2009-05-22  Simon Hausmann  <simon.hausmann@nokia.com>

        Unreviewed Qt build fix.

        Provide dummy implementation of pure virtual EditorClient method.

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

11 years ago2009-05-22 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 22 May 2009 08:20:33 +0000 (08:20 +0000)]
2009-05-22  Xan Lopez  <xlopez@igalia.com>

        Try to fix Windows build.

        Apparently it can't tell if '1.0f' is float or double, so cast to
        float.

        * rendering/SVGInlineTextBox.cpp:
        (WebCore::pathForDecoration):

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

11 years ago2009-05-22 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 22 May 2009 08:11:03 +0000 (08:11 +0000)]
2009-05-22  Xan Lopez  <xlopez@igalia.com>

        Try to fix breakage from the previous patch.

        * rendering/SVGInlineTextBox.cpp:
        (WebCore::pathForDecoration):
        * svg/SVGLength.cpp:
        (WebCore::SVGLength::PercentageOfViewport):

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

11 years ago2009-05-15 Fridrich Strba <fridrich.strba@bluewin.ch>
xan@webkit.org [Fri, 22 May 2009 07:28:03 +0000 (07:28 +0000)]
2009-05-15  Fridrich Strba  <fridrich.strba@bluewin.ch>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=25805
        In debug build, mingw win32 build has problems with powf

        Change C-style calls to powf and sqrtf to C++-style calls to
        overloaded pow and sqrt. This solves also a problem with mingw
        compiler during the debug build.

        * rendering/SVGInlineTextBox.cpp:
        (WebCore::pathForDecoration):
        * svg/SVGLength.cpp:
        (WebCore::SVGLength::PercentageOfViewport):

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

11 years ago2009-05-21 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Fri, 22 May 2009 06:20:44 +0000 (06:20 +0000)]
2009-05-21  Xan Lopez  <xlopez@igalia.com>

        Unreviewed build fix.

        Add MacroAssemblerCodeRef.h to file list.

        * GNUmakefile.am:

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

11 years ago2009-05-21 Stephanie Lewis <slewis@apple.com>
slewis@apple.com [Fri, 22 May 2009 03:57:33 +0000 (03:57 +0000)]
2009-05-21  Stephanie Lewis  <slewis@apple.com>

        Reviewed by Mark Rowe.

        <rdar://problem/6913680> Update image caching options.
        Disable extra ImageIO cache because we already handle caching decoded image data.

        * platform/graphics/cg/ImageSourceCG.cpp:
        (WebCore::imageSourceOptions):

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

11 years ago2009-05-21 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Fri, 22 May 2009 02:34:41 +0000 (02:34 +0000)]
2009-05-21  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Darin Adler.
        Addition of MacroAssemblerCodeRef.h rubber stamped by Geoff Garen.

        Refactor JIT code-handle objects.  The representation of generated code is currently
        a bit of a mess.  We have a class JITCode which wraps the pointer to a block of
        generated code, but this object does not reference the executable pool meaning that
        external events (the pool being derefed) could make the pointer become invalid.
        To overcome this both the JIT and Yarr implement further (and similar) objects to
        wrap the code pointer with a RefPtr to the pool.  To add to the mire, as well as the
        CodeBlock containing a handle onto the code the FunctionBodyNode also contains a
        copy of the code pointer which is used almost (but not entirely) uniquely to access
        the JIT code for a function.

        Rationalization of all this:

            * Add a new type 'MacroAssembler::CodeRef' as a handle for a block of JIT generated code.
            * Change the JIT & Yarr to internally handle code using CodeRefs.
            * Move the CodeRef (formerly anow defunct JITCodeRef) from CodeBlock to its owner node.
            * Remove the (now) redundant code pointer from FunctionBodyNode.

        While tidying this up I've made the PatchBuffer return code in new allocations using a CodeRef,
        and have enforced an interface that the PatchBuffer will always be used, and 'finalizeCode()' or
        'finalizeCodeAddendum()' will always be called exactly once on the PatchBuffer to complete code generation.

        This gives us a potentially useful hook ('PatchBuffer::performFinalization()') at the end of generation,
        which may have a number of uses.  It may be helpful should we wish to switch our generation
        model to allow RW/RX exclusive memory, and it may be useful on non-cache-coherent platforms to
        give us an oportunity to cache flush as necessary.

        No performance impact.

        * assembler/AbstractMacroAssembler.h:
        (JSC::AbstractMacroAssembler::ProcessorReturnAddress::relinkCallerToTrampoline):
        (JSC::AbstractMacroAssembler::CodeRef::CodeRef):
        (JSC::AbstractMacroAssembler::CodeRef::trampolineAt):
        (JSC::AbstractMacroAssembler::PatchBuffer::PatchBuffer):
        (JSC::AbstractMacroAssembler::PatchBuffer::~PatchBuffer):
        (JSC::AbstractMacroAssembler::PatchBuffer::link):
        (JSC::AbstractMacroAssembler::PatchBuffer::linkTailRecursive):
        (JSC::AbstractMacroAssembler::PatchBuffer::patch):
        (JSC::AbstractMacroAssembler::PatchBuffer::complete):
        (JSC::AbstractMacroAssembler::PatchBuffer::finalize):
        (JSC::AbstractMacroAssembler::PatchBuffer::entry):
        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::CodeBlock):
        (JSC::CodeBlock::reparseForExceptionInfoIfNecessary):
        (JSC::CodeBlock::setJITCode):
        * bytecode/CodeBlock.h:
        (JSC::CodeBlock::getBytecodeIndex):
        (JSC::CodeBlock::executablePool):
        * interpreter/CallFrameClosure.h:
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::execute):
        (JSC::Interpreter::prepareForRepeatCall):
        * jit/JIT.cpp:
        (JSC::JIT::privateCompile):
        (JSC::JIT::privateCompileCTIMachineTrampolines):
        (JSC::JIT::linkCall):
        * jit/JIT.h:
        * jit/JITCode.h:
        (JSC::JITCode::JITCode):
        (JSC::JITCode::operator bool):
        (JSC::JITCode::addressForCall):
        (JSC::JITCode::offsetOf):
        (JSC::JITCode::execute):
        (JSC::JITCode::size):
        (JSC::JITCode::executablePool):
        (JSC::JITCode::HostFunction):
        * jit/JITPropertyAccess.cpp:
        (JSC::JIT::privateCompilePutByIdTransition):
        (JSC::JIT::privateCompilePatchGetArrayLength):
        (JSC::JIT::privateCompileGetByIdProto):
        (JSC::JIT::privateCompileGetByIdSelfList):
        (JSC::JIT::privateCompileGetByIdProtoList):
        (JSC::JIT::privateCompileGetByIdChainList):
        (JSC::JIT::privateCompileGetByIdChain):
        * jit/JITStubs.cpp:
        (JSC::JITStubs::cti_vm_dontLazyLinkCall):
        (JSC::JITStubs::cti_vm_lazyLinkCall):
        * parser/Nodes.cpp:
        (JSC::ProgramNode::generateJITCode):
        (JSC::EvalNode::generateJITCode):
        (JSC::FunctionBodyNode::FunctionBodyNode):
        (JSC::FunctionBodyNode::createNativeThunk):
        (JSC::FunctionBodyNode::generateJITCode):
        * parser/Nodes.h:
        (JSC::ScopeNode::generatedJITCode):
        (JSC::ScopeNode::getExecutablePool):
        (JSC::ScopeNode::setJITCode):
        (JSC::ProgramNode::jitCode):
        (JSC::EvalNode::jitCode):
        (JSC::FunctionBodyNode::jitCode):
        * runtime/RegExp.cpp:
        (JSC::RegExp::match):
        * yarr/RegexJIT.cpp:
        (JSC::Yarr::RegexGenerator::compile):
        (JSC::Yarr::jitCompileRegex):
        (JSC::Yarr::executeRegex):
        * yarr/RegexJIT.h:
        (JSC::Yarr::RegexCodeBlock::RegexCodeBlock):
        (JSC::Yarr::RegexCodeBlock::pcreFallback):
        (JSC::Yarr::RegexCodeBlock::setFallback):
        (JSC::Yarr::RegexCodeBlock::operator bool):
        (JSC::Yarr::RegexCodeBlock::set):
        (JSC::Yarr::RegexCodeBlock::execute):

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

11 years ago2009-05-21 Albert J. Wong <ajwong@chromium.org>
levin@chromium.org [Fri, 22 May 2009 01:55:25 +0000 (01:55 +0000)]
2009-05-21  Albert J. Wong  <ajwong@chromium.org>

        Reviewed by Eric Seidel.

        Bug 25903: Create a default UI theme for media controls in Chromium.
        https://bugs.webkit.org/show_bug.cgi?id=25903

        Implement a default UI for chromium.  Add a style sheet for Chromium
        media controls with good defaults and implemented basic draw functions
        for play/pause & mute buttons.

        * css/mediaControlsChromium.css: Added.
        * rendering/RenderThemeChromiumLinux.cpp:
        (WebCore::RenderThemeChromiumWin::extraMediaControlsStyleSheet): Export
        our custom media controls style sheet.
        (WebCore::RenderThemeChromiumLinux::paintMediaButtonInternal): Paint
        buttons respecting chromium media controls color scheme.
        (WebCore::RenderThemeChromiumLinux::paintMediaPlayButton): Paint logic
        specific to play/pause button.
        (WebCore::RenderThemeChromiumLinux::paintMediaMuteButton): Paint
        specific to mute button.
        * rendering/RenderThemeChromiumLinux.h: Appropriate header changes.
        * rendering/RenderThemeChromiumWin.cpp:
        (WebCore::RenderThemeChromiumWin::extraMediaControlsStyleSheet): Export
        our custom media controls style sheet.
        (WebCore::RenderThemeChromiumWin::paintMediaButtonInternal): Paint
        buttons respecting chromium media controls color scheme.
        (WebCore::RenderThemeChromiumWin::paintMediaPlayButton): Paint logic
        specific to play/pause button.
        (WebCore::RenderThemeChromiumWin::paintMediaMuteButton): Paint specific
        to mute button.
        (WebCore::RenderThemeChromiumWin::setDefaultFontSize): Appropriate
        header changes.
        * rendering/RenderThemeChromiumWin.h:

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

11 years agoChecked in layout tests I accidentally left out of my last check-in.
ggaren@apple.com [Fri, 22 May 2009 01:46:49 +0000 (01:46 +0000)]
Checked in layout tests I accidentally left out of my last check-in.

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

11 years ago2009-05-21 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 22 May 2009 01:35:59 +0000 (01:35 +0000)]
2009-05-21  Eric Seidel  <eric@webkit.org>

        Rubber-stamped by Antti Koivisto.

        Make it possible to write js-only http tests by exposing a /js-test-resources alias.
        https://bugs.webkit.org/show_bug.cgi?id=25915

        Second attempt at landing, now using -c instead of -C to make sure
        that mod_alias is loaded on Apache 1.x instances before using Alias.

        * Scripts/run-webkit-httpd:
        * Scripts/run-webkit-tests:

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

11 years agoReviewed by Kevin Ollivier.
kevino@webkit.org [Fri, 22 May 2009 01:10:32 +0000 (01:10 +0000)]
Reviewed by Kevin Ollivier.

When stripping the query from a file:// URL, do not leave a trailing question mark.

https://bugs.webkit.org/show_bug.cgi?id=25940

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

11 years agoReviewed by Kevin Ollivier.
kevino@webkit.org [Fri, 22 May 2009 00:57:40 +0000 (00:57 +0000)]
Reviewed by Kevin Ollivier.

Notify ImageObserver::didDraw to help the cache purge alive resources.

https://bugs.webkit.org/show_bug.cgi?id=25942

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

11 years ago<rdar://problem/6910264> REGRESSION: Cached DOM global object property access fails...
oliver@apple.com [Fri, 22 May 2009 00:28:22 +0000 (00:28 +0000)]
<rdar://problem/6910264> REGRESSION: Cached DOM global object property access fails in browser (25921)
<https://bugs.webkit.org/show_bug.cgi?id=25921>

Reviewed by Maciej Stachowiak.

When caching properties on the global object we need to ensure that we're
not attempting to cache through a shell object.

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

11 years ago2009-05-21 Evan Martin <evan@chromium.org>
levin@chromium.org [Fri, 22 May 2009 00:15:48 +0000 (00:15 +0000)]
2009-05-21  Evan Martin  <evan@chromium.org>

        Reviewed by Eric Seidel.

        Flesh out font fallback for Chromium's Skia port.
        getLastResortFallbackFont should fall back on well-known fonts.
        https://bugs.webkit.org/show_bug.cgi?id=25860

        * platform/graphics/chromium/FontCacheLinux.cpp:
        (WebCore::FontCache::getLastResortFallbackFont): try known font names.

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

11 years ago Windows build fix.
sfalken@apple.com [Fri, 22 May 2009 00:09:13 +0000 (00:09 +0000)]
    Windows build fix.

        * JavaScriptCore.vcproj/jsc/jscCommon.vsprops:

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

11 years ago Reviewed by John Sullivan.
mitz@apple.com [Thu, 21 May 2009 23:32:40 +0000 (23:32 +0000)]
    Reviewed by John Sullivan.

        - speculative fix for <rdar://problem/6890716> crash at
          FontCache::purgeInactiveFontData + 199

        * platform/graphics/FontCache.cpp:
        (WebCore::FontCache::purgeInactiveFontData): Deleting a SimpleFontData
        can cause releaseFontData() to be called, which modifies
        gInactiveFontData. Therefore, avoid deleting SimpleFontData instances
        while iterating over gInactiveFontData and delete them afterwards.

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