13 years agoWebCore:
ddkilzer@apple.com [Sun, 27 Jul 2008 21:08:29 +0000 (21:08 +0000)]

2008-07-21  Anatoli Papirovski  <apapirovski@mac.com>

        Reviewed by Dave Hyatt.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=14346
        Modified the css parser:
        - not to fail when closing braces are not found for
          a declaration at the end of the file
        - not to accept "!important fail" as valid
        - to keep accepting @import when it comes after invalid @ rules
        - not to drop the whole @media block when there's an error before the
          closing brace
        + some other minor css parsing revisions.

        CSSGrammar.y tweaked by David Kilzer to fix Tiger builds.

        * css/CSSGrammar.y:


2008-07-21  Anatoli Papirovski  <apapirovski@mac.com>

        Reviewed by Dave Hyatt.

        Updated layout CSS2.1 test suite tests related to css parsing:

        * platform/mac/css2.1/t040105-import-01-b-expected.checksum:
        * platform/mac/css2.1/t040105-import-01-b-expected.png:
        * platform/mac/css2.1/t040105-import-01-b-expected.txt:
        * platform/mac/css2.1/t0402-syntax-05-f-expected.checksum:
        * platform/mac/css2.1/t0402-syntax-05-f-expected.png:
        * platform/mac/css2.1/t0402-syntax-05-f-expected.txt:
        * platform/mac/css2.1/t0402-syntax-06-f-expected.checksum:
        * platform/mac/css2.1/t0402-syntax-06-f-expected.png:
        * platform/mac/css2.1/t0402-syntax-06-f-expected.txt:

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

13 years ago2008-07-27 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sun, 27 Jul 2008 10:43:35 +0000 (10:43 +0000)]
2008-07-27  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Eric Seidel.

        Use --outputDir instead of --output when invoking make_names.pl
        There's no option named "output" in make_names.pl

        * GNUmakefile.am:
        * WebCore.pro:
        * DerivedSources.make: Remove --output. Not necessary here.
        * bindings/scripts/generate-bindings.pl: Rename --outputdir to
          --outputDir for consistency with make_names.pl

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

13 years ago2008-07-26 Mark Rowe <mrowe@apple.com>
mrowe@apple.com [Sun, 27 Jul 2008 06:56:33 +0000 (06:56 +0000)]
2008-07-26  Mark Rowe  <mrowe@apple.com>

        Update some layout test results.

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/domListEnumeration-expected.txt:

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

13 years ago2008-07-26 Mark Rowe <mrowe@apple.com>
mrowe@apple.com [Sun, 27 Jul 2008 06:08:50 +0000 (06:08 +0000)]
2008-07-26  Mark Rowe  <mrowe@apple.com>

        Rubber-stamped by Oliver Hunt.

        Update the Squirrelfish bytecode documentation.

        * specs/squirrelfish-bytecode.html:

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

13 years ago2008-07-26 Dirk Schulze <vbs85@gmx.de>
mrowe@apple.com [Sun, 27 Jul 2008 06:02:19 +0000 (06:02 +0000)]
2008-07-26  Dirk Schulze  <vbs85@gmx.de>

        Reviewed by Eric Seidel.

        [CAIRO] Problem with rotation in a given matrix in SVG

        Changed values given to AffineTransform.

        * platform/graphics/cairo/AffineTransformCairo.cpp:

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

13 years ago2008-07-25 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sun, 27 Jul 2008 06:00:36 +0000 (06:00 +0000)]
2008-07-25  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Mark Rowe.

        Copy the way Gtk detects jpeglib. Hinted by Wouter Bolsterlee.

        [Gtk] Improve detection jpeglib

        * GNUmakefile.am:
        * configure.ac:

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

13 years ago2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
mrowe@apple.com [Sun, 27 Jul 2008 05:59:20 +0000 (05:59 +0000)]
2008-07-26  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>

        Reviewed by Simon Hausmann.

        [Qt] Add API access to scrolling

        * Api/qwebframe.cpp: Added access to a frame scroll offset.
        * Api/qwebframe.h:

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

13 years ago Rubber-stamped by Sam Weinig.
mitz@apple.com [Sun, 27 Jul 2008 05:58:37 +0000 (05:58 +0000)]
    Rubber-stamped by Sam Weinig.

        - update test and expected results for attributes added to
          HTMLFormElement and HTMLSelectElement.

        * fast/dom/domListEnumeration-expected.txt:
        * fast/dom/resources/domListEnumeration.js:

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

13 years ago2008-07-26 Robert Blaut <webkit@blaut.biz>
mrowe@apple.com [Sun, 27 Jul 2008 05:53:12 +0000 (05:53 +0000)]
2008-07-26  Robert Blaut  <webkit@blaut.biz>

        Reviewed by Eric Seidel.

        Fix for <https://bugs.webkit.org/show_bug.cgi?id=19712>
        Corrected validation errors in main.css file.

        * css/main.css:

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

13 years ago2008-07-26 Jan Michael Alonzo <jmalonzo@webkit.org>
mrowe@apple.com [Sun, 27 Jul 2008 05:52:08 +0000 (05:52 +0000)]
2008-07-26  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Mark Rowe.

        Call curl_global_cleanup() to release resources acquired by curl_global_init()

        * platform/network/curl/ResourceHandleManager.cpp:

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

13 years ago2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
mrowe@apple.com [Sun, 27 Jul 2008 05:49:10 +0000 (05:49 +0000)]
2008-07-26  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>

        Reviewed by Simon Hausmann.

        Bug 18938: [GTK] Plugins not resized

        * plugins/PluginView.cpp:
        (WebCore::PluginView::setFrameGeometry): When viewing a full-page
        plugin in unix, geometry changes have to be passed to the plugin.

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

13 years ago2008-07-26 Keishi Hattori <casey.hattori@gmail.com>
mrowe@apple.com [Sun, 27 Jul 2008 05:44:30 +0000 (05:44 +0000)]
2008-07-26  Keishi Hattori  <casey.hattori@gmail.com>

        Reviewed by Adam Roben.

        Add console.time/timeEnd.

        * manual-tests/inspector/console-time.html: Added. Test cases for console.time/timeEnd.
        * page/Console.cpp:
        (WebCore::Console::time): Added.
        (WebCore::Console::timeEnd): Added.
        * page/Console.h:
        * page/Console.idl: Added console.time/timeEnd.
        * page/InspectorController.cpp:
        (WebCore::InspectorController::startTiming): Added.
        (WebCore::InspectorController::stopTiming): Added.
        * page/InspectorController.h:

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

13 years ago2008-07-26 Dirk Schulze <vbs85@gmx.de>
mrowe@apple.com [Sun, 27 Jul 2008 05:40:58 +0000 (05:40 +0000)]
2008-07-26  Dirk Schulze  <vbs85@gmx.de>

        Reviewed by Nikolas Zimmermann.

        Fixes rendering issues with gradients in SVG/Cairo.

        * platform/graphics/cairo/PathCairo.cpp:
        * svg/graphics/cairo/SVGPaintServerGradientCairo.cpp:

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

13 years ago2008-07-26 Dirk Schulze <vbs85@gmx.de>
mrowe@apple.com [Sun, 27 Jul 2008 05:38:28 +0000 (05:38 +0000)]
2008-07-26  Dirk Schulze  <vbs85@gmx.de>

        Reviewed by Nikolas Zimmermann.

        Added pattern-support for SVG in Cairo.

        * svg/graphics/cairo/SVGPaintServerPatternCairo.cpp:

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

13 years ago2008-07-26 Robert Blaut <webkit@blaut.biz>
mrowe@apple.com [Sun, 27 Jul 2008 05:32:47 +0000 (05:32 +0000)]
2008-07-26  Robert Blaut  <webkit@blaut.biz>

        Reviewed by Alexey Proskuryakov.

        Fix for bug: <https://bugs.webkit.org/show_bug.cgi?id=18186>
        Added notes about unsupported Visual Studio versions.

        * building/tools.html:

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

13 years ago2008-07-26 Mark Rowe <mrowe@apple.com>
mrowe@apple.com [Sun, 27 Jul 2008 05:29:00 +0000 (05:29 +0000)]
2008-07-26  Mark Rowe  <mrowe@apple.com>

        Speculative fix for the wx build.

        * JavaScriptCoreSources.bkl:  Add JSStaticScopeObject.cpp to the list of source files.

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

13 years ago2008-07-26 Mark Rowe <mrowe@apple.com>
mrowe@apple.com [Sun, 27 Jul 2008 05:27:08 +0000 (05:27 +0000)]
2008-07-26  Mark Rowe  <mrowe@apple.com>

        Build fix.  Changes to accommodate newly named/signatured loading methods in WebCore.

        * WebCoreSupport/FrameLoaderClientGtk.cpp:

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

13 years ago2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
mrowe@apple.com [Sun, 27 Jul 2008 05:23:04 +0000 (05:23 +0000)]
2008-07-26  Daniel Jalkut  <jalkut@red-sweater.com>

        Build fix.  Adjust to updated WebCore FrameLoader method names & signatures.

        * Api/qwebpage.cpp:
        * WebCoreSupport/FrameLoaderClientQt.cpp:

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

13 years ago2008-07-26 Robert Blaut <webkit@blaut.biz>
mrowe@apple.com [Sun, 27 Jul 2008 05:20:36 +0000 (05:20 +0000)]
2008-07-26  Robert Blaut  <webkit@blaut.biz>

        Reviewed by Eric Seidel.

        Fix for <https://bugs.webkit.org/show_bug.cgi?id=16719>
        Removed basic requirements for undetected version of WebKit.

        * quality/reporting.html:

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

13 years ago2008-07-26 Robert Blaut <webkit@blaut.biz>
mrowe@apple.com [Sun, 27 Jul 2008 05:18:08 +0000 (05:18 +0000)]
2008-07-26  Robert Blaut  <webkit@blaut.biz>

        Reviewed by Adele Petersen.

        Fix for bug 7436: Truncated title on webkit DOM page.

        * projects/dom/index.html: Added basic project informations.

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

13 years ago2008-07-26 Keishi Hattori <casey.hattori@gmail.com>
mrowe@apple.com [Sun, 27 Jul 2008 05:14:19 +0000 (05:14 +0000)]
2008-07-26  Keishi Hattori  <casey.hattori@gmail.com>

        Reviewed by Adam Roben.

        Fixed bug 18540: console.log('multiple', 'strings') quotes all strings after the first

        * page/inspector/Console.js:
        (WebInspector.ConsoleMessage.prototype._format): String arguments are appended without formatting.

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

13 years ago2008-07-26 Anthony Ricaud <rik24d@gmail.com>
mrowe@apple.com [Sun, 27 Jul 2008 05:10:17 +0000 (05:10 +0000)]
2008-07-26  Anthony Ricaud  <rik24d@gmail.com>

        Reviewed by Tim Hatcher.

        <https://bugs.webkit.org/show_bug.cgi?id=17589> Line highlighting should last longer

        Restore the fade out effect after highlighting.

        * page/inspector/SourceFrame.js: Add a class for fade-out effects and sets it at the end of highlighting time.

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

13 years ago2008-07-26 Michelangelo De Simone <michelangelo@me.com>
mrowe@apple.com [Sun, 27 Jul 2008 05:08:31 +0000 (05:08 +0000)]
2008-07-26  Michelangelo De Simone  <michelangelo@me.com>

        Reviewed by Adele Petersen.

        Added the simple willValidate attribute to form controls according to
        WebForms 2 spec.

        URL: http://www.w3.org/TR/web-forms-2/#willvalidate

        Tests: fast/forms/willvalidate-000.html

        * html/HTMLButtonElement.h: Added willValidate(), always false.
        * html/HTMLButtonElement.idl: willValidate attribute exposed.
        * html/HTMLFieldSetElement.h: Added willValidate(), always false.
        * html/HTMLFieldSetElement.idl: willValidate attribute exposed.
        * html/HTMLFormControlElement.cpp: (WebCore::HTMLFormControlElement::willValidate):
        Added base willValidate() implementation.
        * html/HTMLFormControlElement.h: Added willValidate().
        * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::willValidate):
        Added willValidate(), checks for input type.
        * html/HTMLInputElement.h: Added willValidate()
        * html/HTMLInputElement.idl: willValidate attribute exposed.
        * html/HTMLSelectElement.idl: willValidate attribute exposed.
        * html/HTMLTextAreaElement.idl: willValidate attribute exposed.

2008-07-26  Michelangelo De Simone  <m.des@mac.com>

        Reviewed by Adele Petersen.

        Test suite for the willValidate form controls attribute.

        * fast/forms/willvalidate-000-expected.txt: Added.
        * fast/forms/willvalidate-000.html: Added.
        * fast/forms/willvalidate-001-expected.txt: Added.
        * fast/forms/willvalidate-001.html: Added.
        * fast/forms/willvalidate-002-expected.txt: Added.
        * fast/forms/willvalidate-002.html: Added.
        * fast/forms/willvalidate-003-expected.txt: Added.
        * fast/forms/willvalidate-003.html: Added.
        * fast/forms/willvalidate-004-expected.txt: Added.
        * fast/forms/willvalidate-004.html: Added.
        * fast/forms/willvalidate-005-expected.txt: Added.
        * fast/forms/willvalidate-005.html: Added.
        * fast/forms/willvalidate-006-expected.txt: Added.
        * fast/forms/willvalidate-006.html: Added.
        * fast/forms/willvalidate-007-expected.txt: Added.
        * fast/forms/willvalidate-007.html: Added.
        * fast/forms/willvalidate-008-expected.txt: Added.
        * fast/forms/willvalidate-008.html: Added.
        * fast/forms/willvalidate-009-expected.txt: Added.
        * fast/forms/willvalidate-009.html: Added.

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

13 years agoBuild fix.
mrowe@apple.com [Sun, 27 Jul 2008 04:21:18 +0000 (04:21 +0000)]
Build fix.

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

13 years ago Rubber-stamped by Mark Rowe.
mitz@apple.com [Sun, 27 Jul 2008 04:10:25 +0000 (04:10 +0000)]
    Rubber-stamped by Mark Rowe.

        * platform/win/Skipped: Added fast/text/international/bidi-AN-after-empty-run.html
        (<rdar://problem/5075790>) and svg/custom/stroke-width-click.svg
        * platform/win/svg/hixie/viewbox/preserveAspectRatio/001-expected.txt:
        Updated results for the new way path data is dumped after

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

13 years agoBuild fix.
mrowe@apple.com [Sun, 27 Jul 2008 04:07:19 +0000 (04:07 +0000)]
Build fix.

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

13 years ago2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
mrowe@apple.com [Sun, 27 Jul 2008 03:49:29 +0000 (03:49 +0000)]
2008-07-26  Daniel Jalkut  <jalkut@red-sweater.com>

        Reviewed by Geoff Garen.

        Revised the FrameLoader class to clean up a variety of load methods, and hopefully
        move things closer to integrating into a smaller set of load methods. To this
        end, I renamed many of the overloaded load() methods to have more meaningful and
        easier to search names.  I added comments to the header file to provide clues as
        to how many of the load methods are being used, and how they fit into the loading
        process. I suspect that the renamed methods and comments indicating their present
        usage will facilitate easier cleanup by myself and others as inspiration strikes.

        Updated clients of FrameLoader where necessary to adapt to the new method names and signatures.

        Combined the 3 canLoad() methods into a single canLoad which expresses the
        intended logic of the 3 with a single method interface.

        Removed unnecessary "treatAsLocal" attribute of CachedResource. It was only called from
        one place in FrameLoader.cpp, and it derived at initialization time by calling back to FrameLoader.

        Removed unused userGesture parameter to one variant of the urlSelected method, and
        moved one of the urlSelected methods so that it lives nearer to its overloaded

        * WebCore.base.exp:
        * loader/Cache.cpp:
        * loader/CachedResource.cpp:
        * loader/CachedResource.h:
        * loader/FrameLoader.cpp:
        * loader/FrameLoader.h:
        * loader/SubresourceLoader.cpp:
        * page/ContextMenuController.cpp:

2008-07-26  Daniel Jalkut  <jalkut@red-sweater.com>

        Reviewed by Geoff Garen.

        Changes to accommodate newly named/signatured loading methods in WebCore.

        * Plugins/WebNetscapePluginStream.mm:
        (-[WebNetscapePluginStream initWithRequest:plugin:notifyData:sendNotification:]):
        * Plugins/WebPluginContainerCheck.mm:
        (-[WebPluginContainerCheck _isForbiddenFileLoad]):
        * WebView/WebPDFView.mm:
        (-[WebPDFView PDFViewWillClickOnLink:withURL:]):

2008-07-26  Matt Lilek  <webkit@mattlilek.com>

        Reviewed by Geoff Garen.

        Changes to accommodate newly named/signatured loading methods in WebCore.

        * WebCoreSupport/WebContextMenuClient.cpp:
        * WebCoreSupport/WebFrameLoaderClient.cpp:

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

13 years agoAdd radar number to ChangeLog
weinig@apple.com [Sun, 27 Jul 2008 02:47:47 +0000 (02:47 +0000)]
Add radar number to ChangeLog

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

13 years agoWebCore:
weinig@apple.com [Sun, 27 Jul 2008 02:45:06 +0000 (02:45 +0000)]

2008-07-26  Sam Weinig  <sam@webkit.org>

        Reviewed by Dan Bernstein.

        Fix https://bugs.webkit.org/show_bug.cgi?id=20122
        REGRESSION (r35075-r35110): Cannot enlarge images at Apple Store product page

        Use strict parsing when in AlmostStrict mode.

        Tests: fast/dom/SelectorAPI/dumpNodeList-almost-strict.html

        * dom/Node.cpp:


2008-07-26  Sam Weinig  <sam@webkit.org>

        Reviewed by Dan Bernstein.

        Fix https://bugs.webkit.org/show_bug.cgi?id=20122
        REGRESSION (r35075-r35110): Cannot enlarge images at Apple Store product page

        - Additionally, fix some errors introduced in old tests.

        * fast/dom/SelectorAPI/dumpNodeList-almost-strict-expected.txt: Added.
        * fast/dom/SelectorAPI/dumpNodeList-almost-strict.html: Added.
        * fast/dom/SelectorAPI/dumpNodeList-expected.txt:
        * fast/dom/SelectorAPI/dumpNodeList.html:
        * fast/dom/SelectorAPI/id-fastpath-almost-strict-expected.txt: Added.
        * fast/dom/SelectorAPI/id-fastpath-almost-strict.html: Added.
        * fast/dom/SelectorAPI/id-fastpath-strict-expected.txt: Added.
        * fast/dom/SelectorAPI/id-fastpath-strict.html: Added.
        * fast/dom/SelectorAPI/resources/id-fastpath-almost-strict.js: Added.
        * fast/dom/SelectorAPI/resources/id-fastpath-strict.js: Added.
        * fast/dom/SelectorAPI/resources/id-fastpath.js:

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

13 years ago - move Leopard-only expected failure results back to mac-leopard; these
mitz@apple.com [Sat, 26 Jul 2008 23:59:11 +0000 (23:59 +0000)]
    - move Leopard-only expected failure results back to mac-leopard; these
          are covered by <rdar://problem/5539818> and <rdar://problem/5539820>.

        * platform/mac-leopard/http: Added.
        * platform/mac-leopard/http/tests: Added.
        * platform/mac-leopard/http/tests/security: Copied from platform/mac/http/tests/security.
        * platform/mac-leopard/security: Copied from platform/mac/security.
        * platform/mac/http/tests/security: Removed.
        * platform/mac/http/tests/security/dataURL: Removed.
        * platform/mac/http/tests/security/dataURL/xss-DENIED-to-data-url-sub-frame-uppercase-expected.txt: Removed.
        * platform/mac/security: Removed.
        * platform/mac/security/block-test-expected.txt: Removed.

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

13 years ago Reviewed by Oliver Hunt.
mitz@apple.com [Sat, 26 Jul 2008 23:37:43 +0000 (23:37 +0000)]
    Reviewed by Oliver Hunt.

        - clean up expected layout test results

        * fast/encoding/idn-security-expected.txt: Replaced with LayoutTests/platform/mac/fast/encoding/idn-security-expected.txt,
        which is the version of the results for platforms that have "newer ICU".
        * platform/mac-leopard/Skipped: Added svg/custom/stroke-width-click.svg.
        * platform/mac-tiger/fast/encoding: Added.
        * platform/mac-tiger/fast/encoding/idn-security-expected.txt: Copied from LayoutTests/fast/encoding/idn-security-expected.txt,
        as Tiger still needs the "older ICU" version of the results.
        * platform/mac/fast/encoding/idn-security-expected.txt: Removed.
        * platform/mac/svg/custom/stroke-width-click-expected.checksum: Removed
        pixel results for a text-only test.
        * platform/mac/svg/custom/stroke-width-click-expected.png: Ditto.
        * platform/mac/svg/custom/stroke-width-click-expected.txt: Removed
        platform-specific results for a text-only test.

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

13 years ago Rubber-stamped by Nikolas Zimmermann.
mitz@apple.com [Sat, 26 Jul 2008 18:59:13 +0000 (18:59 +0000)]
    Rubber-stamped by Nikolas Zimmermann.

        - move platform-independent results back to the generic location

        * platform/mac/svg/dom/SVGRectElement/rect-modify-rx-expected.txt: Removed.
        * svg/dom/SVGRectElement/rect-modify-rx-expected.txt: Copied from LayoutTests/platform/mac/svg/dom/SVGRectElement/rect-modify-rx-expected.txt.

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

13 years ago2008-07-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
hausmann@webkit.org [Sat, 26 Jul 2008 13:03:02 +0000 (13:03 +0000)]
2008-07-25  Ariya Hidayat  <ariya.hidayat@trolltech.com>

        Reviewed by Simon.

        Switch off QPainter's anti aliasing when painting the widgets using QStyle
        because otherwise the widgets will look blurry and not crisp.

        * platform/qt/RenderThemeQt.cpp:
        * platform/qt/RenderThemeQt.h:

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

13 years agoWhoops, forgot to save style correction.
oliver@apple.com [Sat, 26 Jul 2008 05:18:26 +0000 (05:18 +0000)]
Whoops, forgot to save style correction.

RS=Cameron Zwarich

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

13 years agoBug 19718: Named anonymous functions are slow accessing global variables
oliver@apple.com [Sat, 26 Jul 2008 03:52:24 +0000 (03:52 +0000)]
Bug 19718: Named anonymous functions are slow accessing global variables

Reviewed by Cameron Zwarich.

To fix this we switch over to an activation-like scope object for
on which we attach the function name property, and add logic to
prevent cross scope assignment to read only properties.

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

13 years agoOn wx/Win, including windows.h in Threading.h causes multiply-defined symbol errors...
kevino@webkit.org [Sat, 26 Jul 2008 02:28:57 +0000 (02:28 +0000)]
On wx/Win, including windows.h in Threading.h causes multiply-defined symbol errors for libjpeg and wx, and also wx needs to include windows.h itself first for wx includes to work right. So until we can find a better solution to this problem on wx, we work around the need to include windows.h here.

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

13 years ago Rubber-stamped by Sam Weinig.
mitz@apple.com [Sat, 26 Jul 2008 00:35:29 +0000 (00:35 +0000)]
    Rubber-stamped by Sam Weinig.

        - moved expected results from platform/mac-leopard to platform/mac.
        Where the mac baseline differed from the Leopard results, moved the
        results from mac to mac-tiger.

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

13 years ago2008-07-25 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Sat, 26 Jul 2008 00:34:01 +0000 (00:34 +0000)]
2008-07-25  Jan Michael Alonzo  <jmalonzo@webkit.org>

        DRT/Gtk build fix for r35362

        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:

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

13 years ago Reviewed by Anders Carlsson.
mitz@apple.com [Sat, 26 Jul 2008 00:00:15 +0000 (00:00 +0000)]
    Reviewed by Anders Carlsson.

        - fix crash due to re-entering purgeInactiveFontData() now that it is
          called by releaseFontData()

        Not testable in DumpRenderTree

        * platform/graphics/FontCache.cpp:
        (WebCore::FontCache::purgeInactiveFontData): Added a reentry guard.

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

13 years agoNeed to check this in, too *sigh*
beidson@apple.com [Fri, 25 Jul 2008 23:22:44 +0000 (23:22 +0000)]
Need to check this in, too  *sigh*

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

13 years agoWebCore:
beidson@apple.com [Fri, 25 Jul 2008 23:20:47 +0000 (23:20 +0000)]

2008-07-25  Brady Eidson  <beidson@apple.com>

        Reviewed by Sam

        Test: security/set-form-autocomplete-attribute.html

        Part of the fix for <rdar://problem/6093281> - Improper handling of autocomplete

        The autocomplete attribute works on both <form> and <input> elements, but was not
        inherited properly when someone asked an <input> if it should autocomplete.

        I fixed this up based on the rules in the current WF2 spec so if the <input> element
        has its own autocomplete attribute set, it will follow that but otherwise it will
        inherit from its parent <form>

        * WebCore.base.exp:

        * html/HTMLInputElement.cpp:
        * html/HTMLInputElement.h:


2008-07-25  Brady Eidson  <beidson@apple.com>

        Reviewed by Sam

        Add the ability to dump whether-or-not an element should have autocomplete enabled,
        from the perspective of the WebKit API

        * DumpRenderTree/LayoutTestController.cpp:

        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::elementDoesAutoCompleteForElementWithId): Stub for now until I can get on Windows


2008-07-25  Brady Eidson  <beidson@apple.com>

        Reviewed by Sam

        Test for autocomplete attribute cleanup

        * platform/win/Skipped:
        * security/set-form-autocomplete-attribute-expected.txt: Added.
        * security/set-form-autocomplete-attribute.html: Added.

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

13 years ago2008-07-25 Wouter Bolsterlee <uws+webkit@xs4all.nl>
jmalonzo@webkit.org [Fri, 25 Jul 2008 23:16:51 +0000 (23:16 +0000)]
2008-07-25  Wouter Bolsterlee  <uws+webkit@xs4all.nl>

        Reviewed by Holger Freyther.

        [GTK] Use G_* macros instead of deprecated GTK_* macros in gtk2xtbin.h

        * plugins/gtk/gtk2xtbin.h:

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

13 years ago2008-07-25 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Fri, 25 Jul 2008 23:12:31 +0000 (23:12 +0000)]
2008-07-25  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam.

        Add workaround for a Leopard bug which causes webarchive/test-xml-stylesheet.xml to fail.

        * platform/network/mac/WebCoreURLResponse.mm:
        (-[NSURLResponse _webcore_MIMEType]):

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

13 years ago2008-07-25 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Fri, 25 Jul 2008 22:43:00 +0000 (22:43 +0000)]
2008-07-25  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mitz.

        Make the willCacheResponse test more robust.

        * http/tests/misc/resources/willCacheResponse-success.html: Added.
        * http/tests/misc/willCacheResponse-delegate-callback-expected.txt:
        * http/tests/misc/willCacheResponse-delegate-callback.html:

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

13 years agoAdd result for hex color test
hyatt@apple.com [Fri, 25 Jul 2008 22:13:03 +0000 (22:13 +0000)]
Add result for hex color test

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

13 years ago Reviewed by Anders Carlsson.
mitz@apple.com [Fri, 25 Jul 2008 21:42:18 +0000 (21:42 +0000)]
    Reviewed by Anders Carlsson.

        * http/tests/misc/acid3.html: Updated test 77 from acidtests.org. Added
        alert()ing the log when the score is less than 100.

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

13 years ago Rubber-stamped by Brady Eidson.
mitz@apple.com [Fri, 25 Jul 2008 20:59:48 +0000 (20:59 +0000)]
    Rubber-stamped by Brady Eidson.

        - add missing pixel results and move the render tree results under the platform directory

        * platform/mac/svg/dom/SVGRectElement: Added.
        * platform/mac/svg/dom/SVGRectElement/rect-modify-rx-expected.checksum: Added.
        * platform/mac/svg/dom/SVGRectElement/rect-modify-rx-expected.png: Added.
        * platform/mac/svg/dom/SVGRectElement/rect-modify-rx-expected.txt: Added.
        * platform/mac/webarchive: Added.
        * platform/mac/webarchive/loading: Added.
        * platform/mac/webarchive/loading/cache-expired-subresource-expected.checksum: Added.
        * platform/mac/webarchive/loading/cache-expired-subresource-expected.png: Added.
        * platform/mac/webarchive/loading/cache-expired-subresource-expected.txt: Added.
        * svg/dom/SVGRectElement/rect-modify-rx-expected.txt: Removed.
        * webarchive/loading/cache-expired-subresource-expected.txt: Removed.

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

13 years ago<rdar://problem/6084806> AX: REGRESSION: returned line number from TextArea is incorrect
cfleizach@apple.com [Fri, 25 Jul 2008 20:35:18 +0000 (20:35 +0000)]
<rdar://problem/6084806> AX: REGRESSION: returned line number from TextArea is incorrect

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

13 years agoWebCore:
mitz@apple.com [Fri, 25 Jul 2008 20:21:06 +0000 (20:21 +0000)]

2008-07-25  Jacob Refstrup  <jacob.refstrup@hp.com>

        Reviewed by mitz.

        - fix https://bugs.webkit.org/show_bug.cgi?id=17906
        <rdar://problem/5805741> white-space: pre-wrap or -webkit-line-break: after-white-space text can overlap float at end of line

        Test: fast/block/float/editable-text-overlapping-float.html

        * rendering/RenderBlock.h:
        * rendering/bidi.cpp:
        - renamed to reflect usage and removed call to position floats;
          they only get added
        - renamed to reflect usage
        - use skipTrailingWhitespace at end of line (as before but with new


2008-07-25  Jacob Refstrup  <jacob.refstrup@hp.com>

        Reviewed by mitz.

        - added test case for float being added in trailing whitespace
          of an already full line (with pre-wrap or after-white-space set).
          <rdar://problem/5805741> https://bugs.webkit.org/show_bug.cgi?id=17906

        * fast/block/float/editable-text-overlapping-float.html: Added.
        * platform/mac/fast/block/float/editable-text-overlapping-float-expected.checksum: Added.
        * platform/mac/fast/block/float/editable-text-overlapping-float-expected.png: Added.
        * platform/mac/fast/block/float/editable-text-overlapping-float-expected.txt: Added.
        * platform/qt/fast/block/float/editable-text-overlapping-float-expected.txt: Added.

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

13 years ago Try to fix the Windows build bot
aroben@apple.com [Fri, 25 Jul 2008 19:27:12 +0000 (19:27 +0000)]
    Try to fix the Windows build bot

        * DumpRenderTree/win/DumpRenderTree.vcproj: Don't try to copy files
        that don't exist for people outside of Apple.

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

13 years ago2008-07-25 Dan Bernstein <mitz@apple.com>
mitz@apple.com [Fri, 25 Jul 2008 19:10:50 +0000 (19:10 +0000)]
2008-07-25  Dan Bernstein  <mitz@apple.com>

        Reviewed by Sam Weinig.

        - Finish fixing https://bugs.webkit.org/show_bug.cgi?id=17097
          <rdar://problem/5715471> CGFontRefs (and HFONTs on Windows) leak because FontCache grows without bound

        * platform/graphics/FontCache.cpp:
        (WebCore::FontDataCacheKeyTraits): Changed needsDestruction to true because FontPlatformData
        instances hold references to the platform resources and release them in the destructor.
        (WebCore::cTargetInactiveFontData): Added, replacing cInactiveFontDataPurgeRatio with the
        number of inactive FontData instances to leave in the cache when automatically purging.
        (WebCore::FontCache::getCachedFontData): Moved the code that checks if there are too many
        inactive FontData instances and if so calls purgeInactiveFontData() from here...
        (WebCore::FontCache::releaseFontData): ... to here.
        (WebCore::FontCache::purgeInactiveFontData): Added code to also purge the platform font data
        cache. All FontPlatformData instances that do not have entries in the font data cache are
        removed, thus releasing the platform resources (such as HFONTs and NSFonts).

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

13 years agoWebCore:
hyatt@apple.com [Fri, 25 Jul 2008 18:33:45 +0000 (18:33 +0000)]

2008-07-24  David Hyatt  <hyatt@apple.com>

        Add support for an alternate syntax for CSS variables.  Testers on www-style will be able to try out
        both versions of the syntax in WebKit to help us make a decision regarding which one to go with.

        Reviewed by Dan

        Added fast/css/variables/alternate-syntax/ (duplicated all existing CSS variables tests)

        * css/CSSGrammar.y:
        * css/CSSParser.cpp:
        * css/CSSParser.h:
        * css/CSSParserValues.cpp:
        * css/CSSParserValues.h:
        * css/CSSPrimitiveValue.cpp:
        * css/CSSPrimitiveValue.h:
        * css/CSSStyleSelector.cpp:
        * css/CSSVariablesRule.cpp:
        * css/CSSVariablesRule.h:
        * css/maketokenizer:
        * css/tokenizer.flex:


2008-07-24  David Hyatt  <hyatt@apple.com>

        Add support for an alternate proposed syntax for CSS variables.  This alternate syntax will allow
        testers on www-style to try out both versions of the syntax (to help make a decision regarding
        which one should be used).

        Reviewed by Dan

        * fast/css/variables/alternate-syntax: Added.
        * fast/css/variables/alternate-syntax/color-hex-test.html: Added.
        * fast/css/variables/alternate-syntax/colors-test.html: Added.
        * fast/css/variables/alternate-syntax/font-test.html: Added.
        * fast/css/variables/alternate-syntax/image-test.html: Added.
        * fast/css/variables/alternate-syntax/import-test.html: Added.
        * fast/css/variables/alternate-syntax/inline-style-test.html: Added.
        * fast/css/variables/alternate-syntax/invalid-variable-test.html: Added.
        * fast/css/variables/alternate-syntax/margin-test.html: Added.
        * fast/css/variables/alternate-syntax/misplaced-import-test.html: Added.
        * fast/css/variables/alternate-syntax/misplaced-variables-test.html: Added.
        * fast/css/variables/alternate-syntax/multiple-term-test.html: Added.
        * fast/css/variables/alternate-syntax/override-test.html: Added.
        * fast/css/variables/alternate-syntax/print-test.html: Added.
        * fast/css/variables/alternate-syntax/remove-variable-test.html: Added.
        * fast/css/variables/alternate-syntax/resources: Added.
        * fast/css/variables/alternate-syntax/resources/bad.css: Added.
        * fast/css/variables/alternate-syntax/resources/good.css: Added.
        * fast/css/variables/alternate-syntax/resources/listmark.gif: Added.
        * fast/css/variables/alternate-syntax/set-variable-test.html: Added.
        * fast/css/variables/alternate-syntax/shorthand-test.html: Added.
        * fast/css/variables/alternate-syntax/variable-iteration-test.html: Added.

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

13 years ago2008-07-25 Maxime Britto <britto@apple.com>
britto@apple.com [Fri, 25 Jul 2008 18:30:14 +0000 (18:30 +0000)]
2008-07-25  Maxime Britto  <britto@apple.com>

        Reviewed by Anders Carlsson.

        <rdar://6102387> "REGRESSION: horizontal scroll with the mouse wheel is inverted on some subframes"

        * page/EventHandler.cpp:
        (WebCore::EventHandler::handleWheelEvent): Inverted the scroll direction relative to the delta value (positive scrolls left,negative scrolls right)

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

13 years ago Try to fix the Windows build bot
aroben@apple.com [Fri, 25 Jul 2008 17:46:48 +0000 (17:46 +0000)]
    Try to fix the Windows build bot

        * WebKit.vcproj/WebKit.sln: Linearize the project dependencies. Each
        project now depends only on the project that should immediately
        precede it in the build. For the frameworks, this order makes sense.
        For the applications built on top of the frameworks, the order is
        arbitrary (but roughly follows the applications' complexity).

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

13 years ago2008-07-25 Adele Peterson <adele@apple.com>
adele@apple.com [Fri, 25 Jul 2008 17:11:29 +0000 (17:11 +0000)]
2008-07-25  Adele Peterson  <adele@apple.com>

        Another build fix.

        * platform/win/PlatformScrollBarSafari.cpp:

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

13 years ago2008-07-25 Adele Peterson <adele@apple.com>
adele@apple.com [Fri, 25 Jul 2008 16:54:10 +0000 (16:54 +0000)]
2008-07-25  Adele Peterson  <adele@apple.com>

        More build fixes.

        * platform/win/PlatformScrollBarSafari.cpp:

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

13 years ago2008-07-25 Adele Peterson <adele@apple.com>
adele@apple.com [Fri, 25 Jul 2008 16:30:30 +0000 (16:30 +0000)]
2008-07-25  Adele Peterson  <adele@apple.com>

        Build fix.

        * platform/win/PlatformScrollBarSafari.cpp:

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

13 years ago Windows build fix
aroben@apple.com [Fri, 25 Jul 2008 15:58:03 +0000 (15:58 +0000)]
    Windows build fix

        * JavaScriptCore.vcproj/testapi/testapi.vcproj: Add API/ to the
        include path.

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

13 years ago2008-07-25 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 25 Jul 2008 13:11:08 +0000 (13:11 +0000)]
2008-07-25  Simon Hausmann  <hausmann@webkit.org>

        Fix the build of jsc on Qt/Windows, make sure os-win32 is in the
        include search path (added by WebKit.pri).

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

13 years ago2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
hausmann@webkit.org [Fri, 25 Jul 2008 13:05:43 +0000 (13:05 +0000)]
2008-07-25  Joerg Bornemann  <joerg.bornemann@trolltech.com>

        Reviewed by Simon.

        Compile with QT_NO_PRINTER.

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

13 years ago Reviewed by Simon Hausmann.
ap@webkit.org [Fri, 25 Jul 2008 12:05:16 +0000 (12:05 +0000)]
    Reviewed by Simon Hausmann.

        Move JavaScriptCore API tests into a subdirectory of their own to avoid header name
        conflicts and developer confusion.

        * API/JSNode.c: Removed.
        * API/JSNode.h: Removed.
        * API/JSNodeList.c: Removed.
        * API/JSNodeList.h: Removed.
        * API/Node.c: Removed.
        * API/Node.h: Removed.
        * API/NodeList.c: Removed.
        * API/NodeList.h: Removed.
        * API/minidom.c: Removed.
        * API/minidom.html: Removed.
        * API/minidom.js: Removed.
        * API/testapi.c: Removed.
        * API/testapi.js: Removed.
        * API/tests: Added.
        * API/tests/JSNode.c: Copied from JavaScriptCore/API/JSNode.c.
        * API/tests/JSNode.h: Copied from JavaScriptCore/API/JSNode.h.
        * API/tests/JSNodeList.c: Copied from JavaScriptCore/API/JSNodeList.c.
        * API/tests/JSNodeList.h: Copied from JavaScriptCore/API/JSNodeList.h.
        * API/tests/Node.c: Copied from JavaScriptCore/API/Node.c.
        * API/tests/Node.h: Copied from JavaScriptCore/API/Node.h.
        * API/tests/NodeList.c: Copied from JavaScriptCore/API/NodeList.c.
        * API/tests/NodeList.h: Copied from JavaScriptCore/API/NodeList.h.
        * API/tests/minidom.c: Copied from JavaScriptCore/API/minidom.c.
        * API/tests/minidom.html: Copied from JavaScriptCore/API/minidom.html.
        * API/tests/minidom.js: Copied from JavaScriptCore/API/minidom.js.
        * API/tests/testapi.c: Copied from JavaScriptCore/API/testapi.c.
        * API/tests/testapi.js: Copied from JavaScriptCore/API/testapi.js.
        * GNUmakefile.am:
        * JavaScriptCore.vcproj/testapi/testapi.vcproj:
        * JavaScriptCore.xcodeproj/project.pbxproj:

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

13 years ago2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
vestbo@webkit.org [Fri, 25 Jul 2008 12:05:03 +0000 (12:05 +0000)]
2008-07-24  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon

        Provide access to the underlying QKeyEvent in PlatformKeyboardEvent.

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

13 years ago2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
vestbo@webkit.org [Fri, 25 Jul 2008 12:04:36 +0000 (12:04 +0000)]
2008-07-24  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon

        Don't insert text on keyDown event in EditorClientQt.

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

13 years ago2008-07-25 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 25 Jul 2008 11:43:42 +0000 (11:43 +0000)]
2008-07-25  Simon Hausmann  <hausmann@webkit.org>

        Fix linking of QtWebKit against the statically built JavaScriptCore
        library, under Windows/Mac we may need _d/_debug suffixes.

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

13 years ago2008-07-25 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 25 Jul 2008 11:02:58 +0000 (11:02 +0000)]
2008-07-25  Simon Hausmann  <hausmann@webkit.org>

        Prospective WX build fix, add JavaScriptCore/API to the include search

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

13 years ago2008-07-25 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 25 Jul 2008 10:56:18 +0000 (10:56 +0000)]
2008-07-25  Simon Hausmann  <hausmann@webkit.org>

        Rubber-stamped by Lars.

        Fix the build on Windows. operator new for ArgList is implemented using fastMalloc()
        but operator delete was not implemented. Unfortunately MSVC decides to call/reference
        the function, so a simple implementation using fastFree() fixes the build.

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

13 years ago2008-07-25 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 25 Jul 2008 10:55:59 +0000 (10:55 +0000)]
2008-07-25  Simon Hausmann  <hausmann@webkit.org>

        Rubber-stamped by Lars.

        Fix the Qt build by adapting to the latest ArgList API changes and
        replacing the inclusion of npapi.h in MainThreadScheduler with a forward
        declaration of NPP to avoid an include conflict. npapi.h on X11 includes
        X headers, which include wonderful defines such as "#define Status" that
        cause conflicts.

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

13 years ago2008-07-25 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Fri, 25 Jul 2008 10:55:33 +0000 (10:55 +0000)]
2008-07-25  Simon Hausmann  <hausmann@webkit.org>

        Discussed with and rubber-stamped by Lars.

        Fix the build system for the Qt port.

        Recent JavaScriptCore changes require the addition of JavaScriptCore/API to the
        include search path. With a build process that combines JavaScriptCore and
        WebCore in one build process/Makefile the existance of
        JavaScriptCore/API/Node.h and WebCore/dom/Node.h causes include conflicts.

        This commit solves this by introducing a separate build of JavaScriptCore into
        a static library.

        As a result of the split-up a race-condition due to broken dependencies of
        regular source files to header files of generated sources showed up very
        frequently when doing parallel builds (which the buildbot does). This commit at
        the same time tries to address the dependency problem by making the
        addExtraCompiler() function also generate a pseudo extra compiler that
        represents the header file output, so that qmake is aware of the creation of
        the header file for dependency calculation.

        At the same time I removed a lot of cruft from the pro files to ease maintenance.

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

13 years ago2008-07-24 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Fri, 25 Jul 2008 06:40:38 +0000 (06:40 +0000)]
2008-07-24  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Maciej Stachowiak.

        Fixed a strict aliasing violation, which caused hash tables with floating
        point keys not to find items that were indeed in the tables
        (intermittently, and only in release builds, of course).

        SunSpider reports no change.

        This bug doesn't seem to affect any existing code, but it causes obvious
        crashes in some new code I'm working on.

        * wtf/HashFunctions.h:
        (WTF::FloatHash::hash): Use a union when punning between a float / double
        and an unsigned (bucket of bits). With strict aliasing enabled, unions
        are the only safe way to do this kind of type punning.

        * wtf/HashTable.h: When rehashing, ASSERT that the item we just added to
        the table is indeed in the table. In the buggy case described above, this
        ASSERT fires.

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

13 years agowx build fix on Win for plugins coode.
kevino@webkit.org [Thu, 24 Jul 2008 22:57:13 +0000 (22:57 +0000)]
wx build fix on Win for plugins coode.

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

13 years ago2008-07-24 Sam Weinig <sam@webkit.org>
weinig@apple.com [Thu, 24 Jul 2008 21:55:49 +0000 (21:55 +0000)]
2008-07-24  Sam Weinig  <sam@webkit.org>

        Reviewed by Anders Carlsson.

        Make isElementNode() non-virtual for a speedup on many benchmarks
        including 20% on http://ejohn.org/apps/fragment/.

        - Replace Node::m_attrWasSpecifiedOrElementHasRareData with bits in
          Element and Attr where space was available.  Use the new free bit
          to represent if an node is an element or not.

        * dom/Attr.cpp:
        * dom/Attr.h:
        * dom/ContainerNode.cpp:
        * dom/ContainerNode.h:
        * dom/Element.cpp:
        * dom/Element.h:
        * dom/EventTargetNode.cpp:
        * dom/EventTargetNode.h:
        * dom/Node.cpp:
        * dom/Node.h:

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

13 years ago Reviewed by Dave Hyatt.
mitz@apple.com [Thu, 24 Jul 2008 21:38:51 +0000 (21:38 +0000)]
    Reviewed by Dave Hyatt.

        - fix <rdar://problem/6082111> REGRESSION (r31876): Root element with percent height does not resize when resizing the window vertically

        Not testable in DumpRenderTree

        * rendering/RenderView.cpp:
        (WebCore::RenderView::layout): Ensured that all children with percentage
        heights get laid out again if the height changes.

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

13 years agoWindows build fix for wx. wx doesn't implement pan scrolling yet.
kevino@webkit.org [Thu, 24 Jul 2008 21:27:17 +0000 (21:27 +0000)]
Windows build fix for wx. wx doesn't implement pan scrolling yet.

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

13 years ago Remove some redundant text accidentally checked in
aroben@apple.com [Thu, 24 Jul 2008 20:38:12 +0000 (20:38 +0000)]
    Remove some redundant text accidentally checked in

        * building/tools.html:

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

13 years ago Fix a dead link to the Windows Platform SDK and related instructions
aroben@apple.com [Thu, 24 Jul 2008 20:36:20 +0000 (20:36 +0000)]
    Fix a dead link to the Windows Platform SDK and related instructions

        Rubberstamped by Alexey Proskuryakov.

        * building/tools.html: Fixed a dead link.

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

13 years ago2008-07-24 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Thu, 24 Jul 2008 20:24:11 +0000 (20:24 +0000)]
2008-07-24  David Hyatt  <hyatt@apple.com>

        Fix for bug 18673, crash when using full page zoom on generated content.  Don't call
        intrinsicSizeChanged when we are first setting our style.

        Reviewed by olliej

        * ChangeLog:
        * rendering/RenderReplaced.cpp:

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

13 years agoBug 20142: REGRESSION(r35245): /=/ weirdness
oliver@apple.com [Thu, 24 Jul 2008 10:16:51 +0000 (10:16 +0000)]
Bug 20142: REGRESSION(r35245): /=/ weirdness

Reviewed by Alexey Proskuryakov.

When adding all the meta data needed for exception error messages
I accidentally clobbered the handling of regex beginning with /=.

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

13 years ago2008-07-24 Julien Chaffraix <jchaffraix@webkit.org>
jchaffraix@webkit.org [Thu, 24 Jul 2008 08:44:28 +0000 (08:44 +0000)]
2008-07-24  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Eric.

        Bug 20053: .in files should use a custom format instead of XML

        - Remove our XML parser perl module (XML::Tiny)

        - Add a custom perl parser

        - Move XML files to the new format

        * bindings/scripts/InFilesParser.pm: Added.
        * bindings/scripts/XMLTiny.pm: Removed.
        * dom/make_names.pl: Switched to our new

        * html/HTMLAttributeNames.in: Switched to
        our custom format.
        * html/HTMLTagNames.in: Ditto.
        * svg/svgattrs.in: Ditto.
        * svg/svgtags.in: Ditto.
        * svg/xlinkattrs.in: Ditto.
        * xml/xmlattrs.in: Ditto.

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

13 years agoWebCore:
jchaffraix@webkit.org [Thu, 24 Jul 2008 07:45:28 +0000 (07:45 +0000)]

2008-07-23  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Eric.

        Bug 19588: CRASH doing open() on destroyed window

        Add frame's page null check as it could have been
        detached from the page.

        Test: fast/frames/crash-removed-iframe.html

        * bindings/js/JSDOMWindowBase.cpp:
        * page/FrameTree.cpp:


2008-07-23  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Eric.

        Test for bug 19588: CRASH doing open() on destroyed window

        Test case from Eric Roman.

        * fast/frames/crash-removed-iframe-expected.txt: Added.
        * fast/frames/crash-removed-iframe.html: Added.

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

13 years agoWebCore:
mitz@apple.com [Thu, 24 Jul 2008 06:55:35 +0000 (06:55 +0000)]

        Reviewed by Alexey Proskuryakov.

        - fix a leak when using hex color values in CSS variables

        - fix CSSOM access to hex color values in variables declarations

        Test: fast/css/variables/color-hex-test.html

        Added a new unit/type, CSS_PARSER_HEXCOLOR, which serves as the unit for
        CSSParserValues coming from colors in hex notation. CSSParserValues can
        no longer have CSS_RGBCOLOR as their unit. CSS_PARSER_HEXCOLOR is also
        used as the type for CSSValues in CSS variables declarations where the
        parser value was a hex color. However the type of all other color
        CSSValues remains CSS_RGBCOLOR.

        * css/CSSGrammar.y: Changed to use the new CSS_PARSER_HEXCOLOR value
        for color values in hex notation.
        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseColorFromValue): Updated for the new unit.
        * css/CSSParserValues.cpp:
        (WebCore::CSSParserValue::createCSSValue): Ditto.
        * css/CSSPrimitiveValue.cpp:
        (WebCore::CSSPrimitiveValue::cleanup): Fixed the leak by deref()ing the
        string containing the color.
        (WebCore::CSSPrimitiveValue::cssText): Added support for
        CSS_PARSER_HEXCOLOR for when serializing variable values.
        (WebCore::CSSPrimitiveValue::parserValue): Updated for the new unit.
        * css/CSSPrimitiveValue.h:
        (WebCore::CSSPrimitiveValue::): Added a new unti, CSS_PARSER_HEXCOLOR.


        Reviewed by Alexey Proskuryakov.

        - updated test to cover serializing variable values which are colors in
          hex notation

        * fast/css/variables/color-hex-test.html:

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

13 years ago2008-07-23 Alp Toker <alp@nuanti.com>
alp@webkit.org [Thu, 24 Jul 2008 06:16:20 +0000 (06:16 +0000)]
2008-07-23  Alp Toker  <alp@nuanti.com>

        Build fix after r35293: Add API/ to the include path.

        * GNUmakefile.am:

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

13 years agoWebCore:
bdakin@apple.com [Thu, 24 Jul 2008 03:43:36 +0000 (03:43 +0000)]

2008-07-23  Beth Dakin  <bdakin@apple.com>

        Reviewed by Dan Bernstein.

        Fix for <rdar://problem/5997215> display: table-row-group
        for :before content causes a crash

        The actual bug fix here is to ddd the generated content container
        as a child before adding any of the generated content to the
        container. There are two correctness fixes as well that deal with
        style changes and correctly.

        This patch also makes Node::diff() a static function.

        * dom/Node.cpp:
        * dom/Node.h:
        * rendering/RenderContainer.cpp:
        * svg/SVGUseElement.cpp:


2008-07-23  Beth Dakin  <bdakin@apple.com>

        Reviewed by Dan Bernstein.

        Tests for <rdar://problem/5997215> display: table-row-group
        for :before content causes a crash

        * fast/css-generated-content/table-row-group-to-inline.html: Added.
        * fast/css-generated-content/table-row-group-with-before.html: Added.
        * fast/css-generated-content/table-row-with-before.html: Added.
        * fast/css-generated-content/table-with-before.html: Added.
        * platform/mac/fast/css-generated-content/table-row-group-to-inline-expected.checksum: Added.
        * platform/mac/fast/css-generated-content/table-row-group-to-inline-expected.png: Added.
        * platform/mac/fast/css-generated-content/table-row-group-to-inline-expected.txt: Added.
        * platform/mac/fast/css-generated-content/table-row-group-with-before-expected.checksum: Added.
        * platform/mac/fast/css-generated-content/table-row-group-with-before-expected.png: Added.
        * platform/mac/fast/css-generated-content/table-row-group-with-before-expected.txt: Added.
        * platform/mac/fast/css-generated-content/table-row-with-before-expected.checksum: Added.
        * platform/mac/fast/css-generated-content/table-row-with-before-expected.png: Added.
        * platform/mac/fast/css-generated-content/table-row-with-before-expected.txt: Added.
        * platform/mac/fast/css-generated-content/table-with-before-expected.checksum: Added.
        * platform/mac/fast/css-generated-content/table-with-before-expected.png: Added.
        * platform/mac/fast/css-generated-content/table-with-before-expected.txt: Added.

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

13 years ago Updates the elements DOM tree when nodes are added or removed from
timothy@apple.com [Thu, 24 Jul 2008 02:48:36 +0000 (02:48 +0000)]
    Updates the elements DOM tree when nodes are added or removed from
        the inspected document.


        Reviewed by Adam Roben.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::dispatchWindowObjectAvailable): Added a call to
        * page/InspectorController.cpp:
        Calls the WebInspector.inspectedWindowCleared script function.
        * page/InspectorController.h:
        * page/inspector/ElementsPanel.js:
        (WebInspector.ElementsPanel): Create the event listener callback wrappers.
        (WebInspector.ElementsPanel.prototype.show): Call _updateModifiedNodes if
        there are any recently modified nodes.
        (WebInspector.ElementsPanel.prototype.reset): Remove previous mutation event listeners.
        Adds a check for InspectorController.isWindowVisible to prevent adding
        event listeners when the window isn't visible.
        (WebInspector.ElementsPanel.prototype._addMutationEventListeners): Add DOMNodeInserted,
        DOMNodeRemoved and DOMContentLoaded event listeners to the passed in window or window's document.
        (WebInspector.ElementsPanel.prototype._removeMutationEventListeners): Removes the event listeners
        added in _addMutationEventListeners.
        (WebInspector.ElementsPanel.prototype.updateMutationEventListeners): Call _addMutationEventListeners
        again to reinstate the listners if the document changed or window cleared them.
        (WebInspector.ElementsPanel.prototype.registerMutationEventListeners): Append the window to
        _mutationMonitoredWindows and call _addMutationEventListeners.
        (WebInspector.ElementsPanel.prototype.unregisterMutationEventListeners): Remove the window from
        _mutationMonitoredWindows and call _removeMutationEventListeners.
        (WebInspector.ElementsPanel.prototype.unregisterAllMutationEventListeners): Call
        _removeMutationEventListeners for all windows in _mutationMonitoredWindows and
        clear _mutationMonitoredWindows.
        (WebInspector.ElementsPanel.prototype._contentLoaded): Append the node and parent
        to the recentlyModifiedNodes array. Call _updateModifiedNodesSoon if visible.
        (WebInspector.ElementsPanel.prototype._nodeInserted): Ditto.
        (WebInspector.ElementsPanel.prototype._nodeRemoved): Ditto.
        (WebInspector.ElementsPanel.prototype._updateModifiedNodesSoon): Call
        _updateModifiedNodes on a zero timeout.
        (WebInspector.ElementsPanel.prototype._updateModifiedNodes): Iterate over
        the recentlyModifiedNodes array and call updateChildren on all the parent
        elements that had changes. Only calls updateChildren once per parent element.
        (WebInspector.ElementsPanel.prototype._isAncestorIncludingParentFrames): Return
        false if the nodes are the same. Return true if the nodes are the same while
        looking at ancestor frame elements. THis use to return false, which was incorrect.
        (WebInspector.DOMNodeTreeElement.prototype.onpopulate): Call updateChildren.
        (WebInspector.DOMNodeTreeElement.prototype.updateChildren): Copied from
        onpopulate and changed to rebuild the children elements by adding new children,
        moving existing children and removed old children.
        (WebInspector.DOMNodeTreeElement.prototype.onexpand): If the node has a contentDocument
        call registerMutationEventListeners to track any mutations.
        * page/inspector/inspector.js:
        (WebInspector.inspectedWindowCleared): Call ElementsPanel.inspectedWindowCleared.
        * page/inspector/treeoutline.js:
        (TreeElement.prototype.get hasChildren): Return _hasChildren.
        (TreeElement.prototype.set hasChildren): Set _hasChildren and update the className.
        (TreeElement.prototype.hasAncestor): Return true if the element has the passed in ancestor.
        (TreeElement.prototype.expand): Fix an exception that can happen if expand is
        called before _attach.
        * WebCore/manual-tests/inspector/dom-mutation.html: Added.
        * WebCore/manual-tests/inspector/resources/mutate-frame-2.html: Added.
        * WebCore/manual-tests/inspector/resources/mutate-frame.html: Added.

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

13 years ago Fix an exception that occurred when double clicking the closing tag
timothy@apple.com [Thu, 24 Jul 2008 02:48:17 +0000 (02:48 +0000)]
    Fix an exception that occurred when double clicking the closing tag
        of an element in the DOM tree.

        Reviewed by Anders Carlsson.

        * page/inspector/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype._ondblclick): Null check

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

13 years ago Fix a regression where elements in subframes would not be revealed
timothy@apple.com [Thu, 24 Jul 2008 02:48:01 +0000 (02:48 +0000)]
    Fix a regression where elements in subframes would not be revealed
        or selected when inspected from the context menu. This was caused by
        JavaScript equality is not being true for JSInspectedObjectWrappers
        of the same node wrapped with different global ExecStates. This change
        adds a helper function that uses isSameNode to compare wrapped nodes.


        Reviewed by Adam Roben.

        * page/inspector/ElementsPanel.js:
        (WebInspector.ElementsPanel.prototype.set rootDOMNode): Use objectsAreSame
        to compare nodes.
        (WebInspector.ElementsPanel.prototype.set focusedDOMNode): Ditto.
        (WebInspector.ElementsPanel.prototype.set hoveredDOMNode): Ditto.
        (WebInspector.ElementsPanel.prototype._updateModifiedNodes): Ditto.
        (WebInspector.ElementsPanel.prototype.revealNode): Ditto.
        (WebInspector.ElementsPanel.prototype.updateBreadcrumb): Ditto.
        (WebInspector.DOMNodeTreeElement.prototype.updateChildren): Ditto.
        * page/inspector/treeoutline.js:
        (TreeOutline.prototype.findTreeElement): Add an equal argument
        to accept a functions to compare two representedObjects. Defaults
        to strict equal if not supplied. All current clients pass objectsAreSame.
        * page/inspector/utilities.js:
        (Node.prototype.enclosingNodeOrSelfWithNodeNameInArray): Use objectsAreSame
        to compare nodes.
        (Node.prototype.enclosingNodeOrSelfWithClass): Ditto.
        (Element.prototype.query): Use the ownerDocument of the node, not document.
        (objectsAreSame): Added. Compares strict equal first, then uses isSameNode if
        it exists on both objects.
        (isAncestorNode): Use objectsAreSame to compare nodes.
        (firstCommonNodeAncestor): Ditto.
        (traverseNextNode): Ditto.

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

13 years ago Added InspectorController.isWindowVisible to the JavaScript class
timothy@apple.com [Thu, 24 Jul 2008 02:47:45 +0000 (02:47 +0000)]
    Added InspectorController.isWindowVisible to the JavaScript class
        for use in an upcoming change. This will allow the Inspector to not
        perform selective actions while the window is hidden.

        Reviewed by Adam Roben.

        * page/InspectorController.cpp:
        (WebCore::isWindowVisible): Call InspectorController::windowVisible.
        (WebCore::InspectorController::windowScriptObjectAvailable): Add
        the isWindowVisible function to the JavaScript class.

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

13 years ago Added TreeOutline.removeChildAtIndex and TreeElement.removeChildAtIndex
timothy@apple.com [Thu, 24 Jul 2008 02:47:33 +0000 (02:47 +0000)]
    Added TreeOutline.removeChildAtIndex and TreeElement.removeChildAtIndex
        for efficiency of callers that know the index of the child. This
        will be used in an upcoming change.

        Reviewed by Adam Roben.

        * page/inspector/treeoutline.js:
        (TreeOutline._removeChildAtIndex): Renamed from _removeChild
        and modified to take an index.
        (TreeOutline._removeChild): Call _removeChildAtIndex with the
        child index found using indexOf.
        (TreeOutline.prototype.removeChildAtIndex): Added. Calls
        (TreeElement.prototype.removeChildAtIndex): Ditto.

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

13 years ago Fixes a regression where TreeOutline.findTreeElement would
timothy@apple.com [Thu, 24 Jul 2008 02:46:58 +0000 (02:46 +0000)]
    Fixes a regression where TreeOutline.findTreeElement would
        return the parent TreeElement of the representedObject instead
        of the TreeElement for the representedObject. Regressed with the
        fix for bug 19164.

        Reviewed by Adam Roben.

        * page/inspector/treeoutline.js:
        (TreeOutline.prototype.findTreeElement): When performing a slow search,
        do a final search for representedObject instead of returning item, which
        is the parent of representedObject.

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

13 years agospeculative build fix
barraclough@apple.com [Thu, 24 Jul 2008 02:45:47 +0000 (02:45 +0000)]
speculative build fix

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

13 years ago Windows build fixes
aroben@apple.com [Thu, 24 Jul 2008 01:00:35 +0000 (01:00 +0000)]
    Windows build fixes

        Build fix after r35293:

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Add API/
        to the include path.

        Build fix after r35305:

        * VM/Machine.cpp:
        * VM/Machine.h:
        * VM/Opcode.cpp:
        * VM/Opcode.h:
        Completely compile out all sampler-related code when
        SAMPLING_TOOL_ENABLED is 0. The sampler code can't be compiled 1) on
        non-AllInOne configurations due to circular header dependencies, and
        2) on platforms that don't have a usleep() function, such as Windows.

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

13 years agoImprove switch performance.
oliver@apple.com [Thu, 24 Jul 2008 00:49:46 +0000 (00:49 +0000)]
Improve switch performance.

Reviewed by Geoff Garen and Sam Weinig.

Improve switch performance by converting to a hashmap based jump
table to avoid the sequence of dispatches that would otherwise be
needed.  This results in a 9-19x performance win for string switches
based on ad hoc testing, and a 6x improvement for integer switch
statements.  SunSpider reports a 1.2% progression.

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

13 years agoWebCore:
adele@apple.com [Thu, 24 Jul 2008 00:35:06 +0000 (00:35 +0000)]

2008-07-23  Adele Peterson  <adele@apple.com>

        Reviewed by Adam.

        WebCore part of fix for <rdar://problem/5698672>  Add drawing callback for a WebKit app to draw its own scrollbars

        * WebCore.base.exp: Added symbols.
        * page/Chrome.cpp:
        (WebCore::ChromeClient::paintCustomScrollbar): Added. Calls up to WebKit, which will call a new delegate method.
        (WebCore::ChromeClient::paintCustomScrollCorner): ditto.
        * page/ChromeClient.h:
        * page/Settings.cpp:
        (WebCore::Settings::Settings): Added the ability to store whether or not the application has decided to draw its own scrollbars.
        * page/Settings.h: (WebCore::Settings::shouldPaintCustomScrollbars):
        * platform/ScrollBar.h: Moved ScrollbarControlSize enum to ScrollTypes.h
        * platform/ScrollTypes.h: (WebCore::): Moved some existing types, and added new ones to be used in WebCore in WebKit.
        * platform/win/PlatformScrollBar.h: Moved ScrollbarPart enum to ScrollTypes.h
        * platform/win/PlatformScrollBarSafari.cpp:
        (WebCore::ScrollbarPartToScrollBarPiece): Added helper function.
        (WebCore::ScrollBarPieceMaskToScrollbarControlPartMask): ditto.
        (WebCore::ScrollbarControlStateFromThemeState): ditto.
        (WebCore::PlatformScrollbar::paint): Consolidated painting so the logic for the individual pieces is all in one place.
         Added new code to paint the custom scrollbars if necessary.
        * platform/win/ScrollViewWin.cpp: (WebCore::ScrollView::paint): Added code to paint the custom scroll corner if necessary.


2008-07-17  Adele Peterson  <adele@apple.com>

        Reviewed by Adam.

        WebKit part of fix for <rdar://problem/5698672>  Add drawing callback for a WebKit app to draw its own scrollbars

        Added a setting so an application can tell WebKit its going to draw custom scrollbars.  Also added delegate methods for the actual painting.

        * Interfaces/IWebPreferences.idl:  Added setShouldPaintCustomScrollbars and shouldPaintCustomScrollbars.
        * Interfaces/IWebScrollBarPrivate.idl: Moved types to WebScrollbarTypes.idl
        * Interfaces/IWebUIDelegate.idl: Added WebUIDelegate4 with new delegate methods, paintCustomScrollbar and paintCustomScrollCorner
        * Interfaces/WebKit.idl: Include new WebScrollbarTypes.idl
        * Interfaces/WebScrollbarTypes.idl: Added. Has types that the new delegate methods use.
        * WebCoreSupport/WebChromeClient.cpp:
        (WebChromeClient::paintCustomScrollbar): Added. Calls new delegate method and converts between WebCore types and types exported in WebScrollbarTypes.idl
        (WebChromeClient::paintCustomScrollCorner): Added. Calls new delegate method.
        (WebChromeClient::uiDelegate4): Added.
        * WebCoreSupport/WebChromeClient.h:
        * WebPreferenceKeysPrivate.h: Added WebKitPaintCustomScrollbarsPreferenceKey
        * WebPreferences.cpp:
        (WebPreferences::): Added.
        (WebPreferences::shouldPaintCustomScrollbars): Added.
        * WebPreferences.h:
        * WebView.cpp: (WebView::notifyPreferencesChanged):

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

13 years ago2008-07-23 Dean Jackson <dino@apple.com>
dino@apple.com [Thu, 24 Jul 2008 00:33:22 +0000 (00:33 +0000)]
2008-07-23  Dean Jackson  <dino@apple.com>

        Reviewed by Dan Bernstein.

        Update computed style test for transform to reflect that
        we return "none" rather than identity matrix.

        * svg/css/getComputedStyle-basic-expected.txt:

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

13 years agobuild fix.
adele@apple.com [Wed, 23 Jul 2008 23:15:04 +0000 (23:15 +0000)]
build fix.

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

13 years ago2008-07-23 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Wed, 23 Jul 2008 22:36:39 +0000 (22:36 +0000)]
2008-07-23  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Geoff Garen.

        Sampling tool to analyze cost of instruction execution and identify hot regions of JS code.
        Enable Switches by setting SAMPLING_TOOL_ENABLED in Opcode.h.

        * JavaScriptCore.exp: Export symbols for Shell.cpp.
        * VM/Machine.cpp:     Added sampling hooks.
        * VM/Machine.h:       Machine contains a pointer to a sampler, when sampling.
        * VM/Opcode.cpp:      Tool implementation.
        * VM/Opcode.h:        Tool declaration.
        * kjs/Shell.cpp:      Initialize the sampler, if enabled.
        * kjs/nodes.cpp:      Added sampling hooks.

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

13 years ago2008-07-23 Sam Weinig <sam@webkit.org>
weinig@apple.com [Wed, 23 Jul 2008 22:32:24 +0000 (22:32 +0000)]
2008-07-23  Sam Weinig  <sam@webkit.org>

        Reviewed by Anders Carlsson.

        Cleanup and pack the member variables in Node.

        * bindings/js/JSNodeCustom.cpp:
        * dom/Attr.cpp:
        * dom/Attr.h:
        * dom/ContainerNode.cpp:
        * dom/Document.cpp:
        * dom/Element.cpp:
        * dom/Element.h:
        * dom/Node.h:
        * html/HTMLAnchorElement.cpp:
        * html/HTMLImageElement.cpp:
        * html/HTMLInputElement.cpp:
        * html/HTMLTableElement.cpp:
        * svg/SVGAElement.cpp:

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

13 years ago2008-07-23 Kevin Calhoun <kcalhoun@apple.com>
adele@apple.com [Wed, 23 Jul 2008 21:45:51 +0000 (21:45 +0000)]
2008-07-23  Kevin Calhoun  <kcalhoun@apple.com>

        Reviewed by Adele.

        Follow-up fix for <rdar://problem/6031039> don't disable track-types when media is in a standalone document

        Associate MovieControllers with Movies to support all of the media types QuickTime is able to play in standalone media documents.

        * platform/graphics/win/QTMovieWin.cpp:

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

13 years ago2008-07-23 Kevin Calhoun <kcalhoun@apple.com>
adele@apple.com [Wed, 23 Jul 2008 21:40:54 +0000 (21:40 +0000)]
2008-07-23  Kevin Calhoun  <kcalhoun@apple.com>

        Reviewed by Adele.

        Added a debug mode for viewing frames per second for videos.  This is controlled by two
        independent compiler flags DRAW_FRAME_RATE in MediaPlayerPrivateQTKit.h and MediaPlayerPrivateQuickTimeWin.h.
        Unless either flags is turned on there is no change to the code for video frame drawing.

        * platform/graphics/mac/MediaPlayerPrivateQTKit.h:
        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
        * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
        * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h:

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

13 years ago2008-07-23 Adele Peterson <adele@apple.com>
adele@apple.com [Wed, 23 Jul 2008 21:30:42 +0000 (21:30 +0000)]
2008-07-23  Adele Peterson  <adele@apple.com>

        Reviewed by Sam.

        Fix for <rdar://problem/6080634> use lower quality CG interpolation in MediaPlayerPrivateQTKit to improve performance

        * platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContext::drawImage):
        Call setImageInterpolationQuality(InterpolationNone) instead of setUseLowQualityImageInterpolation(true).
        * platform/graphics/GraphicsContext.h:
        (WebCore::): Added InterpolationQuality enum.
        (WebCore::GraphicsContext::setImageInterpolationQuality): Renamed from setUseLowQualityImageInterpolation.
        The implementation was always setting the quality to "none", and now we want to distinguish between "none" and "low".
        (WebCore::GraphicsContext::imageInterpolationQuality): Renamed from useLowQualityImageInterpolation.
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::setImageInterpolationQuality): Added.
        (WebCore::GraphicsContext::imageInterpolationQuality): Added.
        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: (WebCore::MediaPlayerPrivate::paint):
        Calls setImageInterpolationQuality(InterpolationLow) which will improve the painting performance without degrading quality too much.

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

13 years ago2008-07-23 Sam Weinig <sam@webkit.org>
weinig@apple.com [Wed, 23 Jul 2008 21:28:53 +0000 (21:28 +0000)]
2008-07-23  Sam Weinig  <sam@webkit.org>

        Reviewed by Dan Bernstein.

        Remove tiger specific result for toDataURL-supportedTypes.html as it should have the
        same results on all platforms.

        * platform/mac-tiger/fast/canvas: Removed.
        * platform/mac-tiger/fast/canvas/toDataURL-supportedTypes-expected.txt: Removed.

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