14 years ago2008-06-03 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Tue, 3 Jun 2008 08:44:55 +0000 (08:44 +0000)]
2008-06-03  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver.

        - document remaining opcodes.

        * VM/Machine.cpp:
        (KJS::Machine::privateExecute): Document call, call_eval,
        construct, ret and end opcodes.

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

14 years ago <rdar://problem/5621979> editing/selection/5241148.html crashes on Windows
ap@webkit.org [Tue, 3 Jun 2008 08:42:42 +0000 (08:42 +0000)]
    <rdar://problem/5621979> editing/selection/5241148.html crashes on Windows

        Try removing it from the Skipped list, as this is not reproducible with current closed
        source libraries.

        * platform/win/Skipped:

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

14 years ago2008-06-03 Alexander Vassilev <avasilev@voipgate.com>
ap@webkit.org [Tue, 3 Jun 2008 07:56:36 +0000 (07:56 +0000)]
2008-06-03  Alexander Vassilev <avasilev@voipgate.com>

        Reviewed, tweaked and landed by Alexey.

        Compiler error in Entity.h

        * dom/Entity.h:
        (WebCore::Entity::Entity): Add a private constructor to shut down the errors.

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

14 years ago2008-06-03 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Tue, 3 Jun 2008 07:46:41 +0000 (07:46 +0000)]
2008-06-03  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver.

        * VM/Machine.cpp:
        (KJS::Machine::privateExecute): Document throw and catch opcodes.

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

14 years agoJavaScriptCore:
ggaren@apple.com [Tue, 3 Jun 2008 06:26:54 +0000 (06:26 +0000)]

2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Alexey Proskuryakov.

        Removed JSObject::call, since it just called JSObject::callAsFunction.

        SunSpider reports no change.


2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Alexey Proskuryakov.

        Removed JSObject::call, since it just called JSObject::callAsFunction.

        SunSpider reports no change.


2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Alexey Proskuryakov.

        Removed JSObject::call, since it just called JSObject::callAsFunction.

        SunSpider reports no change.

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

14 years ago2008-06-02 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Tue, 3 Jun 2008 03:48:18 +0000 (03:48 +0000)]
2008-06-02  Maciej Stachowiak  <mjs@apple.com>

        * config.ini: Correct URL for just-added blog.

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

14 years ago2008-06-02 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Tue, 3 Jun 2008 03:15:11 +0000 (03:15 +0000)]
2008-06-02  Maciej Stachowiak  <mjs@apple.com>

        Rubber stamped by Mark.

        * config.ini: Add Camerom's Summer of JavaScriptCore blog.

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

14 years ago2008-06-02 Alp Toker <alp@nuanti.com>
alp@webkit.org [Tue, 3 Jun 2008 02:17:15 +0000 (02:17 +0000)]
2008-06-02  Alp Toker  <alp@nuanti.com>

        Reviewed by Maciej.

        Two of the toJSNewlyCreated() optimisations in r34141 were never
        reached due to a generator bug and missing IDL attribute.

        Fix header generation to provide the necessary toJSNewlyCreated()

        Patch includes a related build fix by Jan Michael Alonzo.

        * GNUmakefile.am:
        * bindings/scripts/CodeGeneratorJS.pm:
        * dom/Text.idl:

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Tue, 3 Jun 2008 01:05:12 +0000 (01:05 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Transparent background!

        * blog-files/squirrelfish.png:

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

14 years ago2008-06-02 Alp Toker <alp@nuanti.com>
alp@webkit.org [Tue, 3 Jun 2008 00:30:19 +0000 (00:30 +0000)]
2008-06-02  Alp Toker  <alp@nuanti.com>

        GTK+/autotools Windows build system fixes.

        * GNUmakefile.am:
        * configure.ac:

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

14 years ago2008-06-02 Alice Liu <alice.liu@apple.com>
alice.liu@apple.com [Mon, 2 Jun 2008 23:04:13 +0000 (23:04 +0000)]
2008-06-02  Alice Liu  <alice.liu@apple.com>

        Reviewed by Beth Dakin.

        Some ARIA roles are designated to have presentational children, which
        means that their descendants aren't exposed to assistive technologies
        on an individual basis.  What this means in webcore is that descendants
        of such roles need to be ignored in terms of accessibility.

        * page/AccessibilityObject.cpp:
        * page/AccessibilityObject.h:
        * page/AccessibilityRenderObject.cpp:
        * page/AccessibilityRenderObject.h:

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 22:28:15 +0000 (22:28 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>


        * blog-files/squirrelfish-webkit-graph.png:

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 22:07:13 +0000 (22:07 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Renamed this file quiet down the peanut gallery.

        * blog-files/squirrelfish-webkit-graph.png: Copied from blog-files/webkit-graph.png.
        * blog-files/webkit-graph.png: Removed.

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 22:02:51 +0000 (22:02 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Added a graph.

        * blog-files/webkit-graph.png: Added.

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

14 years ago2008-06-02 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Mon, 2 Jun 2008 21:54:23 +0000 (21:54 +0000)]
2008-06-02  David Hyatt  <hyatt@apple.com>

        Fix for https://bugs.webkit.org/show_bug.cgi?id=19303

        When the right slice value is omitted in border-image it should use the value of the left slice and not
        the top slice.

        Reviewed by darin

        Added fast/borders/border-image-omit-right-slice.html

        * css/CSSParser.cpp:

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

14 years agoWebCore:
andersca@apple.com [Mon, 2 Jun 2008 21:46:17 +0000 (21:46 +0000)]

2008-06-02  Anders Carlsson  <andersca@apple.com>

        Reviewed by David Hyatt and Mitz.

        repro crash in WebCore::RenderPart::setWidget (plugin-related?)

        Test: platform/mac/plugins/update-widget-from-style-recalc.html

        Make sure to update the document's rendering before calling updateWidget.

        * html/HTMLEmbedElement.cpp:
        * html/HTMLObjectElement.cpp:


2008-06-02  Anders Carlsson  <andersca@apple.com>

        Reviewed by David Hyatt and Mitz.

        repro crash in WebCore::RenderPart::setWidget (plugin-related?)

        Call -[WebView display] in the "plug-in" failed delegate method, simulating
        the sheet that Safari puts up.

        * DumpRenderTree/mac/ResourceLoadDelegate.mm:
        (-[ResourceLoadDelegate webView:plugInFailedWithError:dataSource:]):


2008-06-02  Anders Carlsson  <andersca@apple.com>

        Reviewed by David Hyatt and Mitz.

        repro crash in WebCore::RenderPart::setWidget (plugin-related?)

        * platform/mac/plugins/update-widget-from-style-recalc-expected.txt: Added.
        * platform/mac/plugins/update-widget-from-style-recalc.html: Added.

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 21:45:59 +0000 (21:45 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Moved the squirrelfish mascot to the right place.

        * blog-files/squirrelfish.png: Copied from images/squirrelfish.png.
        * images/squirrelfish.png: Removed.

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 21:41:10 +0000 (21:41 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Uploaded the squirrelfish mascot.

        * images/squirrelfish.png: Added.

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

14 years agoLayoutTests:
jchaffraix@webkit.org [Mon, 2 Jun 2008 20:47:54 +0000 (20:47 +0000)]

2008-06-02  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Darin.

        Bug 18655: [XHR] OnProgress needs more test case

        * http/tests/xmlhttprequest/resources/five-tiny-chunk-one-second-delay.php: Added.
        * http/tests/xmlhttprequest/resources/noContentLength.asis: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-LSProgressEvent-ProgressEvent-should-match-expected.txt: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-LSProgressEvent-ProgressEvent-should-match.html: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-addEventListener-onProgress-expected.txt: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-addEventListener-onProgress.html: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress-expected.txt: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-no-content-length-onProgress.html: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length-expected.txt: Added.
        * http/tests/xmlhttprequest/xmlhttprequest-onProgress-open-should-zero-length.html: Added.

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 20:45:13 +0000 (20:45 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Darin Adler.

        A little cleanup in the CodeGenerator.

        * VM/CodeGenerator.cpp: A few changes here.

        (1) Removed remaining cases of the old hack of putting "this" into the
        symbol table; replaced with explicit tracking of m_thisRegister.

        (2) Made m_thisRegister behave the same for function, eval, and program
        code, removing the static programCodeThis() function.

        (3) Added a feature to nix a ScopeNode's declaration stacks when done
        compiling, to save memory.

        (4) Removed code that copied eval declarations into special vectors: we
        just use the originals in the ScopeNode now.

        * VM/CodeGenerator.h: Removed unneded parameters from the CodeGenerator
        constructor: we just use get that data from the ScopeNode now.

        * VM/Machine.cpp:
        (KJS::Machine::execute): When executing an eval node, don't iterate a
        special copy of its declarations; iterate the originals, instead.

        * kjs/nodes.cpp: Moved responsibility for knowing what AST data to throw
        away into the CodeGenerator. Nodes no longer call shrinkCapacity on
        their data directly.

        * kjs/nodes.h: Changed FunctionStack to ref its contents, so declaration
        data stays around even after we've thrown away the AST, unless we explicitly
        throw away the declaration data, too. This is useful for eval code, which
        needs to reference its declaration data at execution time. (Soon, it will
        be useful for program code, too, since program code should do the same.)

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

14 years ago2008-06-02 Kevin McCullough <kmccullough@apple.com>
kmccullough@apple.com [Mon, 2 Jun 2008 20:15:16 +0000 (20:15 +0000)]
2008-06-02  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Adam.

        <rdar://problem/5954226> JSProfiler: Move the calls from
        JavaScriptProfileNode to JavaScriptProfile in WebCore (19231)
        - This Makes the profiler now call sorting function s on a per-profile
        basis instead of on a node in the profile.
        - This is also needed to remove the recursion limit in the profiler
        <rdar://problem/5969992> JSProfiler: Remove the recursion limit in the
        since once the limit is removed calling sort on a node will only sort
        that node's children not the entire sub-tree of that node.

        * page/JavaScriptProfile.cpp: All of these functions were moved from
        * page/JavaScriptProfileNode.cpp:
        * page/inspector/ProfileView.js: Change uses of JavaScriptProfileNode
        for sorting to JavaScriptProfile.

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

14 years agoWebCore:
mitz@apple.com [Mon, 2 Jun 2008 20:00:34 +0000 (20:00 +0000)]

        Reviewed by Oliver Hunt.

        - fix more cases of https://bugs.webkit.org/show_bug.cgi?id=19344
          <rdar://problem/5977300> Regression: Shadow offsets seem to have changed in 10.5.3 in canvas

        Tests: fast/canvas/shadow-offset-1.html

        * html/CanvasRenderingContext2D.cpp:
        (WebCore::adjustedShadowSize): Added this helper function.
        (WebCore::CanvasRenderingContext2D::setShadow): Changed to call
        (WebCore::CanvasRenderingContext2D::applyShadow): Ditto.


        Reviewed by Oliver Hunt.

        - additional tests for https://bugs.webkit.org/show_bug.cgi?id=19344
          <rdar://problem/5977300> Regression: Shadow offsets seem to have changed in 10.5.3 in canvas

        * fast/canvas/resources/shadow-offset.js: Added.
        * fast/canvas/shadow-offset-1.html: Copied from LayoutTests/fast/canvas/shadow-offset.html.
        * fast/canvas/shadow-offset-2.html: Added.
        * fast/canvas/shadow-offset-3.html: Added.
        * fast/canvas/shadow-offset-4.html: Added.
        * fast/canvas/shadow-offset-5.html: Added.
        * fast/canvas/shadow-offset-6.html: Added.
        * fast/canvas/shadow-offset-7.html: Added.
        * fast/canvas/shadow-offset.html: Removed.
        * platform/mac/fast/canvas/shadow-offset-1-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-1-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-1-expected.txt: Added.
        * platform/mac/fast/canvas/shadow-offset-2-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-2-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-2-expected.txt: Added.
        * platform/mac/fast/canvas/shadow-offset-3-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-3-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-3-expected.txt: Added.
        * platform/mac/fast/canvas/shadow-offset-4-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-4-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-4-expected.txt: Added.
        * platform/mac/fast/canvas/shadow-offset-5-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-5-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-5-expected.txt: Added.
        * platform/mac/fast/canvas/shadow-offset-6-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-6-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-6-expected.txt: Added.
        * platform/mac/fast/canvas/shadow-offset-7-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-7-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-7-expected.txt: Added.
        * platform/mac/fast/canvas/shadow-offset-expected.checksum: Removed.
        * platform/mac/fast/canvas/shadow-offset-expected.png: Removed.
        * platform/mac/fast/canvas/shadow-offset-expected.txt: Removed.

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

14 years ago Build fix for non-AllInOne builds
aroben@apple.com [Mon, 2 Jun 2008 19:58:02 +0000 (19:58 +0000)]
    Build fix for non-AllInOne builds

        * kjs/array_object.cpp: Added a missing #include.

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

14 years agoWebCore:
jchaffraix@webkit.org [Mon, 2 Jun 2008 19:51:32 +0000 (19:51 +0000)]

2008-06-02  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Darin.

        Bug 18066: REGRESSION: createAttribute throws NAMESPACE_ERR exception

        Test: fast/dom/createAttribute-exception.html

        * dom/Document.cpp:
        * dom/Document.h: Add a bool parameter shouldIgnoreNamespaceChecks
        to createNamespaceNS() used by createAttribute() to bypass namespace


2008-06-02  Julien Chaffraix  <jchaffraix@webkit.org>

        Reviewed by Darin.

        Bug 18066: REGRESSION: createAttribute throws NAMESPACE_ERR exception

        * fast/dom/createAttribute-exception-expected.txt: Added.
        * fast/dom/createAttribute-exception.html: Added.

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

14 years ago2008-06-02 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 2 Jun 2008 18:13:34 +0000 (18:13 +0000)]
2008-06-02  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mitz.

        Speculative fix for <rdar://problem/5661112>
        CrashTracer: [USER] 49 crashes in DashboardClient at com.apple.WebCore: WebCore::RenderPart::setWidget + 62

        Defer loads while calling NPP_New. Some plug-ins start a run-loop inside NPP_New and finished loads could cause
        layouts to be triggered.

        * Plugins/WebBaseNetscapePluginView.mm:
        (-[WebBaseNetscapePluginView _createPlugin]):

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

14 years ago2008-06-02 Kevin McCullough <kmccullough@apple.com>
kmccullough@apple.com [Mon, 2 Jun 2008 17:32:19 +0000 (17:32 +0000)]
2008-06-02  Kevin McCullough  <kmccullough@apple.com>

        Took out accidental confilct lines I checked in.

        * ChangeLog:

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

14 years agoWebCore:
darin@apple.com [Mon, 2 Jun 2008 17:30:48 +0000 (17:30 +0000)]

2008-06-02  Darin Adler  <darin@apple.com>

        Reviewed by John Sullivan.

        - fix https://bugs.webkit.org/show_bug.cgi?id=18799
          apl.aip.org menu does not work (property names should be case sensitive)

        Test: fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.html

        * bindings/js/JSCSSStyleDeclarationCustom.cpp:
        (WebCore::hasCSSPropertyNamePrefix): Tweak implementation a tiny bit for
        improved performance when the first character does not match.
        (WebCore::cssPropertyName): Reject property names with a leading uppercase


2008-06-02  Darin Adler  <darin@apple.com>

        Reviewed by John Sullivan.

        - test for https://bugs.webkit.org/show_bug.cgi?id=18799
          apl.aip.org menu does not work (property names should be case sensitive)

        * fast/dom/CSSStyleDeclaration: Added.

        * fast/dom/CSSStyleDeclaration/css-properties-case-sensitive-expected.txt: Added.
        * fast/dom/CSSStyleDeclaration/css-properties-case-sensitive.html: Added.
        * fast/dom/CSSStyleDeclaration/resources: Added.
        * fast/dom/CSSStyleDeclaration/resources/TEMPLATE.html: Copied from LayoutTests/fast/dom/Element/resources/TEMPLATE.html.
        * fast/dom/CSSStyleDeclaration/resources/css-properties-case-sensitive.js: Added.

        * fast/dom/CSSStyleDeclaration-empty-string-property-expected.txt: Removed.
        * fast/dom/CSSStyleDeclaration-empty-string-property.html: Removed.
        * fast/dom/CSSStyleDeclaration/empty-string-property-expected.txt: Copied from LayoutTests/fast/dom/CSSStyleDeclaration-empty-string-property-expected.txt.
        * fast/dom/CSSStyleDeclaration/empty-string-property.html: Copied from LayoutTests/fast/dom/CSSStyleDeclaration-empty-string-property.html.

        * fast/js/duplicate-param-crash.html: Allowed the make-js-test-wrappers script to update this file.
        * fast/js/duplicate-param-gc-crash.html: Ditto.
        * fast/js/resources/tostring-exception-in-property-access.js: Ditto.
        * fast/js/var-shadows-arg-crash.html: Ditto.
        * fast/js/var-shadows-arg-gc-crash.html: Ditto.

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

14 years agoWebCore:
darin@apple.com [Mon, 2 Jun 2008 17:26:04 +0000 (17:26 +0000)]

2008-06-02  Darin Adler  <darin@apple.com>

        Reviewed by Mitz.

        - fix https://bugs.webkit.org/show_bug.cgi?id=19358
          <rdar://problem/5951986> first line break in <pre> elements ignored
          (chess boards at http://rankzero.de/)

        Test: fast/parser/pre-first-line-break.html

        * editing/markup.cpp:
        (WebCore::appendStartMarkup): Fix handling of <listing>. Not part of the
        bug mentioned above, but uncovered by the regression test.

        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::write): Clear the "discardLF" flag when
        processing a new tag.


2008-06-02  Darin Adler  <darin@apple.com>

        Reviewed by Mitz.

        - test for https://bugs.webkit.org/show_bug.cgi?id=19358
          <rdar://problem/5951986> first line break in <pre> elements ignored
          (chess boards at http://rankzero.de/)

        * fast/parser/pre-first-line-break-expected.txt: Added.
        * fast/parser/pre-first-line-break.html: Added.
        * fast/parser/resources/TEMPLATE.html: Copied from fast/dom/resources/TEMPLATE.html.
        * fast/parser/resources/pre-first-line-break.js: Added.

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

14 years ago2008-06-02 Kevin McCullough <kmccullough@apple.com>
kmccullough@apple.com [Mon, 2 Jun 2008 17:11:35 +0000 (17:11 +0000)]
2008-06-02  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Darin.

        <rdar://problem/5969992> JSProfiler: Remove the recursion limit in the
        Implement Next Sibling pointers as groundwork for removing the recursion
        limit in the profiler.

        * profiler/ProfileNode.cpp: Also I renamed parentNode and headNode since
        'node' is redundant.
        (KJS::ProfileNode::ProfileNode): Initialize the nextSibling.
        (KJS::ProfileNode::willExecute): If there are already children then the
        new child needs to be the nextSibling of the last child.
        (KJS::ProfileNode::addChild): Ditto.
        (KJS::ProfileNode::sortTotalTimeDescending): For all of the sorting
        algorithms once the children are sorted their nextSibling pointers need
        to be reset to reflect the new order.
        (KJS::ProfileNode::resetChildrensSiblings): This new function simply
        loops over all of the children and sets their nextSibling pointers to
        the next child in the Vector
        * profiler/ProfileNode.h:

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 17:08:42 +0000 (17:08 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Maciej Stachowiak.

        Removed the recursion limit from JSObject::call, since the VM does
        recursion checking now.

        This should allow us to remove JSObject::call entirely, netting a small

        * kjs/object.cpp:

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

14 years ago Fixes a bug where only the last breakpoint would be hit after reloading
timothy@apple.com [Mon, 2 Jun 2008 16:40:17 +0000 (16:40 +0000)]
    Fixes a bug where only the last breakpoint would be hit after reloading
        the page. Also fixes a bug where disabled breakpoints would be hit
        after reloading the page.

        Reviewed by Darin Adler.

        * page/inspector/BreakpointsSidebarPane.js:
        (WebInspector.BreakpointsSidebarPane.prototype.addBreakpoint): Don't call
        InspectorController.addBreakpoint() unless the breakpoint is enabled.
        * page/inspector/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.addScript): Move the addBreakpoint()
        call inside the for loop so each breakpoint is added. Also check the
        breakpoint's enabled state before calling addBreakpoint().

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

14 years ago Fixes a bug where the line highlight and the execution line were conflicting.
timothy@apple.com [Mon, 2 Jun 2008 16:40:07 +0000 (16:40 +0000)]
    Fixes a bug where the line highlight and the execution line were conflicting.
        The line highlight no longer shows up when the execution line changes, only
        when showResource or showScript is called with a line number.

        Reviewed by Darin Adler.

        * page/inspector/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.showScript): Pass true for shouldHighlightLine.
        (WebInspector.ScriptsPanel.prototype.showResource): Ditto.
        (WebInspector.ScriptsPanel.prototype._showScriptOrResource): Added a shouldHighlightLine
        argument that triggers the highlightLine() call on the SourceFrame.
        (WebInspector.ScriptsPanel.prototype._goBack): Pass false for shouldHighlightLine since
        we need to pass true for fromBackForwardAction.
        (WebInspector.ScriptsPanel.prototype._goForward): Ditto.

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

14 years ago Bring the Web Inspector forward when the debugger pauses.
timothy@apple.com [Mon, 2 Jun 2008 16:39:58 +0000 (16:39 +0000)]
    Bring the Web Inspector forward when the debugger pauses.


        Reviewed by Darin Adler.

        * page/inspector/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.debuggerPaused): Call window.focus() and
        make the Scripts panel the current panel.

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

14 years ago2008-06-02 Jan Michael Alonzo <jmalonzo@webkit.org>
alp@webkit.org [Mon, 2 Jun 2008 16:36:32 +0000 (16:36 +0000)]
2008-06-02  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Alp Toker.

        Build WebCore GTK+ sources as part of WebCore, not WebKit.
        Split common and GTK+-specific sources into separate file lists.

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 16:36:01 +0000 (16:36 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Adele Peterson.

        Added a specific affordance for avoiding stack overflow when converting
        recursive arrays to string, in preparation for removing generic stack
        overflow checking from JSObject::call.

        Tested by fast/js/toString-stack-overflow.html.

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

14 years ago2008-06-02 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 2 Jun 2008 16:32:15 +0000 (16:32 +0000)]
2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Alice Liu.

        Refactored some hand-rolled code to call ScopeChain::globalObject instead.

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

14 years agoJavaScriptCore:
ggaren@apple.com [Mon, 2 Jun 2008 16:30:10 +0000 (16:30 +0000)]

2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Darin Adler.

        Fixed ASSERT due to execution continuing after an exception is thrown
        during array sort.

        * kjs/array_instance.cpp:
        (KJS::AVLTreeAbstractorForArrayCompare::compare_key_key): Don't call the
        custom comparator function if an exception has been thrown. Just return
        1 for everything, so the sort completes quickly. (The result will be
        thrown away.)


2008-06-02  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Darin Adler.

        Test for an exception thrown from an array sort comparator function.

        * fast/js/throw-from-array-sort-expected.txt: Added.
        * fast/js/throw-from-array-sort.html: Added.

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

14 years ago2008-06-02 Simon Pieters <zcorpan@hotmail.com>
ap@webkit.org [Mon, 2 Jun 2008 13:39:41 +0000 (13:39 +0000)]
2008-06-02  Simon Pieters <zcorpan@hotmail.com>

        Reviewed and landed by Alexey.

        createElement() with colon and localName

        WebKit behavior has changed to expected during Acid3 work (r31230, r31231), but this
        specific case appears to have been an untested side effect, landing it now.

        * fast/dom/createElement-with-column-expected.txt: Added.
        * fast/dom/createElement-with-column.xml: Added.
        * fast/dom/createElement-with-column.html: Added.

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

14 years ago2008-05-30 Tor Arne Vestbø <tavestbo@trolltech.com>
hausmann@webkit.org [Mon, 2 Jun 2008 10:23:22 +0000 (10:23 +0000)]
2008-05-30  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon.

        Implement basic media element controls for the QtWebKit port.

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

14 years ago2008-05-30 Tor Arne Vestbø <tavestbo@trolltech.com>
hausmann@webkit.org [Mon, 2 Jun 2008 10:23:01 +0000 (10:23 +0000)]
2008-05-30  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon.

        Change default styling of media elements to allow controls
        to be placed at any position within the media element

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

14 years ago2008-05-30 Tor Arne Vestbø <tavestbo@trolltech.com>
hausmann@webkit.org [Mon, 2 Jun 2008 10:17:06 +0000 (10:17 +0000)]
2008-05-30  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon.

        Use intrinsic size for media elements with no natural size.

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

14 years ago2008-05-28 Tor Arne Vestbø <tavestbo@trolltech.com>
hausmann@webkit.org [Mon, 2 Jun 2008 10:16:47 +0000 (10:16 +0000)]
2008-05-28  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon.

        Allow platform specific adjustments to the default style sheet.

        Clients will change the ifdef in RenderTheme.cpp and implement
        any platform specific adjustments in RenderThemeXXX.cpp, either
        by loading a file as the Qt port does, or by modifying the style

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

14 years ago2008-06-02 Siraj Razick <siraj.razick@collabora.co.uk>
hausmann@webkit.org [Mon, 2 Jun 2008 10:08:24 +0000 (10:08 +0000)]
2008-06-02  Siraj Razick  <siraj.razick@collabora.co.uk>

        Reviewed by Simon

        Allow button fonts to scale based on the text size multiplier.


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

14 years ago Reviewed by Darin.
rwlbuis@webkit.org [Mon, 2 Jun 2008 06:44:45 +0000 (06:44 +0000)]
    Reviewed by Darin.

        getPropertyValue for border returns null, should compute the shorthand value

        Compute the value for the border shorthand property by computing
        its shorthand subproperties.

        Test: fast/css/getPropertyValue-border.html

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

14 years ago2008-06-01 Josh Triplett <josh@freedesktop.org>
alp@webkit.org [Mon, 2 Jun 2008 02:08:34 +0000 (02:08 +0000)]
2008-06-01  Josh Triplett  <josh@freedesktop.org>

        Reviewed by Alp Toker.

        [GTK] autotools build is slow

        Add dolt revision 5e9eef10 to the autotools build system. Speeds up
        the build, often by a factor of two or more on supported platforms,
        otherwise falls back to libtool.

        See http://dolt.freedesktop.org for details.

        * acinclude.m4: Added.
        * configure.ac:

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

14 years agoAdded Radar URLs
mitz@apple.com [Sun, 1 Jun 2008 19:48:28 +0000 (19:48 +0000)]
Added Radar URLs

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

14 years agoWebCore:
mitz@apple.com [Sun, 1 Jun 2008 19:46:24 +0000 (19:46 +0000)]

        Reviewed by Darin Adler.

        - fix https://bugs.webkit.org/show_bug.cgi?id=19344
          Regression: Shadow offsets seem to have changed in 10.5.3 in canvas

        Test: fast/canvas/shadow-offset.html

        * html/CanvasRenderingContext2D.cpp:
        (WebCore::CanvasRenderingContext2D::applyShadow): Slightly increase the
        magnitude of the offsets passed to CGContextSetShadow* to ensure that
        the end result after truncation is the desired integer offsets. This is
        the same workaround for <rdar://problem/5539388> that is used in
        GraphicsContext::setShadow(). Also correct a recent regression where
        shadow Y offsets were flipped.


        Reviewed by Darin Adler.

        - test for https://bugs.webkit.org/show_bug.cgi?id=19344
          Regression: Shadow offsets seem to have changed in 10.5.3 in canvas

        * fast/canvas/shadow-offset.html: Added.
        * platform/mac/fast/canvas/shadow-offset-expected.checksum: Added.
        * platform/mac/fast/canvas/shadow-offset-expected.png: Added.
        * platform/mac/fast/canvas/shadow-offset-expected.txt: Added.

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

14 years ago2008-06-01 Alp Toker <alp@nuanti.com>
alp@webkit.org [Sun, 1 Jun 2008 09:37:47 +0000 (09:37 +0000)]
2008-06-01  Alp Toker  <alp@nuanti.com>

        Suggested by Christian Dywan.

        Use float literals for zoom values and improve documentation wording.

        * webkit/webkitwebsettings.cpp:
        * webkit/webkitwebview.cpp:

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

14 years ago2008-06-01 Alp Toker <alp@nuanti.com>
alp@webkit.org [Sun, 1 Jun 2008 09:24:55 +0000 (09:24 +0000)]
2008-06-01  Alp Toker  <alp@nuanti.com>

        Reviewed by Oliver.

        Remove webkit_web_view_go_backward(),
        webkit_web_view_can_go_backward(). These have been obsoleted by
        the back() versions for quite a while.

        * webkit/webkitwebview.cpp:
        * webkit/webkitwebview.h:

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

14 years ago2008-05-31 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Sat, 31 May 2008 22:33:46 +0000 (22:33 +0000)]
2008-05-31  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Sam.

        - avoid assertion in updateDocument() when running debug

        * bindings/js/kjs_proxy.cpp:
        (WebCore::KJSProxy::updateDocument): Exit early if the document is null. We
        don't need to update in this case.

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

14 years ago2008-05-31 Alp Toker <alp@nuanti.com>
alp@webkit.org [Sat, 31 May 2008 20:46:53 +0000 (20:46 +0000)]
2008-05-31  Alp Toker  <alp@nuanti.com>

        Fix inconsistent zoom docs and enum name landed in r34249. Issue
        noticed by Marco Barisione.

        * webkit/webkitwebview.cpp:

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

14 years agoWebCore:
mitz@apple.com [Sat, 31 May 2008 06:28:21 +0000 (06:28 +0000)]

        Reviewed by Darin Adler.

        - fix https://bugs.webkit.org/show_bug.cgi?id=19278
          <rdar://problem/5968621> REGRESSION (r31114-r31132): image float disappears on refresh

        Test: fast/dynamic/float-in-trailing-whitespace-after-last-line-break.html

        * rendering/bidi.cpp:
        (WebCore::RenderBlock::layoutInlineChildren): Ensured that floats
        occurring in trailing whitespace after a line break are added to the
        last line's floats vector.


        Reviewed by Darin Adler.

        - test for https://bugs.webkit.org/show_bug.cgi?id=19278
          <rdar://problem/5968621> REGRESSION (r31114-r31132): image float disappears on refresh

        * fast/dynamic/float-in-trailing-whitespace-after-last-line-break.html: Added.
        * platform/mac/fast/dynamic/float-in-trailing-whitespace-after-last-line-break-expected.checksum: Added.
        * platform/mac/fast/dynamic/float-in-trailing-whitespace-after-last-line-break-expected.png: Added.
        * platform/mac/fast/dynamic/float-in-trailing-whitespace-after-last-line-break-expected.txt: Added.

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

14 years ago Implements the back and forward buttons in the Scripts panel.
timothy@apple.com [Sat, 31 May 2008 06:06:11 +0000 (06:06 +0000)]
    Implements the back and forward buttons in the Scripts panel.

        Reviewed by Adam Roben.

        * page/inspector/ScriptsPanel.js:
        (WebInspector.ScriptsPanel): Add the back and forward button elements
        and remove the FIXMEs.
        (WebInspector.ScriptsPanel.prototype.reset): Reset _backForwardList
        and _currentBackForwardIndex. Then call _updateBackAndForwardButtons().
        Added a fromBackForwardAction argument. If fromBackForwardAction is false
        then update the _currentBackForwardIndex and _backForwardList.
        Update the disabled state of the buttons.
        (WebInspector.ScriptsPanel.prototype._goBack): Update the _currentBackForwardIndex
        and call _showScriptOrResource() and _updateBackAndForwardButtons().
        (WebInspector.ScriptsPanel.prototype._goForward): Ditto.

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

14 years ago Made clicking a Console message URL originating from a JavaScript
timothy@apple.com [Sat, 31 May 2008 06:05:57 +0000 (06:05 +0000)]
    Made clicking a Console message URL originating from a JavaScript
        source show the Resource in the Scripts panel. This only happens
        when the debugger is attached.

        Reviewed by Adam Roben.

        * page/inspector/Console.js:
        Add a preferredPanel of "scripts".
        Add a preferredPanel of "scripts" when the source is JS.
        * page/inspector/ScriptView.js:
        (WebInspector.ScriptView.prototype.highlightLine): Added.
        Calls through to the sourceFrame. Matches SourceView.
        * page/inspector/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.canShowResource): Added.
        Returns true if the debugger is attached and the resource has scripts.
        (WebInspector.ScriptsPanel.prototype._showScriptOrResource): Call
        highlightLine on the view.
        * page/inspector/inspector.js:
        (WebInspector.documentClick): Pass the preferredPanel to showResourceForURL.
        (WebInspector.showResourceForURL): Resolve the preferredPanel from the string
        passed in. Checks if the panel implements showResource and canShowResource.
        Reverts to the Resources panel if any of that is false or not implemented.

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

14 years ago Fixed an "undefined type" exception that was being thrown when
timothy@apple.com [Sat, 31 May 2008 06:05:43 +0000 (06:05 +0000)]
    Fixed an "undefined type" exception that was being thrown when
        selecting a eval script from the file menu in the Scripts panel.
        This would also happen when stepping into an eval which would
        break other parts of the Inspector interface.

        Reviewed by Adam Roben.

        * page/inspector/ScriptsPanel.js:
        Use the scriptOrResource variable instead of the undefined script variable.

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

14 years agoMade the starting line number of scripts be 1-based throughout the engine.
timothy@apple.com [Sat, 31 May 2008 06:05:28 +0000 (06:05 +0000)]
Made the starting line number of scripts be 1-based throughout the engine.


2008-05-30  Timothy Hatcher  <timothy@apple.com>

        Made the starting line number of scripts be 1-based throughout the engine.
        This cleans up script line numbers so they are all consistent now and fixes
        some cases where script execution was shown as off by one line in the debugger.

        No change in SunSpider.

        Reviewed by Oliver Hunt.

        * API/minidom.c:
        (main): Pass a line number of 1 instead of 0 to parser().parse().
        * API/testapi.c:
        (main): Ditto. And removes a FIXME and changed an assertEqualsAsNumber
        to use 1 instead of 2 for the line number.
        * VM/Machine.cpp:
        (KJS::callEval): Pass a line number of 1 instead of 0.
        (KJS::Machine::debug): Use firstLine for WillExecuteProgram instead of
        lastLine. Use lastLine for DidExecuteProgram instead of firstLine.
        * kjs/DebuggerCallFrame.cpp:
        (KJS::DebuggerCallFrame::evaluate): Pass a line number of 1 instead of
        0 to parser().parse().
        * kjs/Parser.cpp:
        (KJS::Parser::parse): ASSERT startingLineNumber is greatter than 0. Change
        the startingLineNumber to be 1 if it was less than or equal to 0. This is needed
        for release builds to maintain compatibility with the JavaScriptCore API.
        * kjs/function.cpp:
        (KJS::globalFuncEval): Pass a line number of 1 instead of 0 to parser().parse().
        * kjs/function_object.cpp:
        (FunctionObjectImp::construct): Pass a line number of 1 instead of 0 to construct().
        * kjs/lexer.cpp:
        (Lexer::setCode): Made yylineno = startingLineNumber instead of adding 1.
        * kjs/testkjs.cpp:
        (functionRun): Pass a line number of 1 instead of 0 to Interpreter::evaluate().
        (functionLoad): Ditto.
        (prettyPrintScript): Ditto.
        (runWithScripts): Ditto.
        * profiler/Profiler.cpp:
        (WebCore::createCallIdentifier): Removed a plus 1 of startingLineNumber.


2008-05-30  Timothy Hatcher  <timothy@apple.com>

        Made the starting line number of scripts be 1-based throughout the engine.
        This cleans up script line numbers so they are all consistent now and fixes
        some cases where script execution was shown as off by one line in the debugger.

        Doing this also exposed a bug where JSLazyEventListener created in XHML or SVG
        documents would always have a line number of 0. So this change fixed that bug
        to pass all the SVG and XHTML tests.

        All layout tests pass.

        Reviewed by Oliver Hunt.

        * bindings/js/kjs_events.cpp:
        (WebCore::JSLazyEventListener::JSLazyEventListener): Set the line number to 1
        if it was passed in as 0. This can happen when listeners are created with
        a setAttribute call from JavaScript.
        (WebCore::JSLazyEventListener::parseCode): Add a FIXME about the URL being
        incorrect when listeners are created with a setAttribute call from JavaScript.
        * bindings/js/kjs_events.h: Remove the default value for lineNumber, since no
        callers need it.
        * bindings/objc/WebScriptObject.mm:
        (-[WebScriptObject evaluateWebScript:]): Pass a line number of 1 instead of 0
        to Interpreter::evaluate().
        * bridge/NP_jsobject.cpp:
        (_NPN_Evaluate): Ditto.
        * bridge/jni/jni_jsobject.mm:
        (JavaJSObject::eval): Ditto.
        * dom/XMLTokenizer.cpp:
        (WebCore::XMLTokenizer::startElementNs): Call KJSProxy::setEventHandlerLineno()
        around the call to handleElementAttributes, so any JSLazyEventListener created
        from those attributes have line numbers.
        (WebCore::XMLTokenizer::endElementNs): Remove a minus 1 of the line number.
        (WebCore::XMLTokenizer::notifyFinished): Pass a line number of 1 instead of 0.
        (WebCore::XMLTokenizer::parseEndElement): Remove a minus 1 of the line number.
        * html/HTMLScriptElement.cpp:
        (WebCore::HTMLScriptElement::evaluateScript): Add a FIXME about the starting
        line number being incorrect in some cases when this function is called.
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::parseSpecial): Add a plus 1 to the line number when
        setting scriptStartLineno so it is 1-based. Same for calling setEventHandlerLineno().
        (WebCore::HTMLTokenizer::processToken): Ditto.
        * html/HTMLTokenizer.h: Change the default line number on scriptExecution() to 1 from 0.
        * loader/FrameLoader.cpp:
        (FrameLoader::executeIfJavaScriptURL): Pass a line number of 1 instead of 0 to executeScript().


2008-05-30  Timothy Hatcher  <timothy@apple.com>

        Made the starting line number of scripts be 1-based throughout the engine.
        This cleans up script line numbers so they are all consistent now.

        Reviewed by Oliver Hunt.

        * DumpRenderTree/mac/ObjCController.m:
        (runJavaScriptThread): Pass a line number of 1 instead of 0 to JSEvaluateScript.
        * DumpRenderTree/pthreads/JavaScriptThreadingPthreads.cpp:
        (runJavaScriptThread): Ditto.
        * DumpRenderTree/win/DumpRenderTree.cpp:
        (runJavaScriptThread): Ditto.

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

14 years ago Fixes the regression where image resources don't have a preview icon.
timothy@apple.com [Sat, 31 May 2008 06:05:04 +0000 (06:05 +0000)]
    Fixes the regression where image resources don't have a preview icon.


        Reviewed by Adam Roben.

        * page/inspector/ResourcesPanel.js:
        (WebInspector.ResourceSidebarTreeElement): Call createIconElement before
        calling the superclass.
        Create an iconElement, if the category is images then make a div that
        contains a preview image. Otherwise just make an img element. If there
        was a previous iconElement, then replace it.
        (WebInspector.ResourceSidebarTreeElement.prototype.refresh): Call
        createIconElement if the category changed.
        * page/inspector/SidebarTreeElement.js:
        (WebInspector.SidebarTreeElement): Create an iconElement if one hasn't
        been made already by a subclass.
        (WebInspector.SidebarTreeElement.prototype.onattach): Append the iconElement
        instead of creating one each time.
        * page/inspector/inspector.css: New and updated style rules.

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

14 years ago2008-05-30 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Sat, 31 May 2008 05:37:03 +0000 (05:37 +0000)]
2008-05-30  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver (earlier version reviewed by Alexey).

        - speculative fix for "REGRESSION(r34143?): Frequent crash while browsing"

        ("This Time for Sure" Edition)

        I'm pretty sure this fixes it but I have not been able to
        reproduce and am unsure if my theory of the bug is right.

        I belive the bug was because JSDOMWindowBase accessed
        JSDOMWindowShell in its destructor to remove itself from a
        hashtable, but GC destructor order is not guaranteed, so the
        hashtable may have been freed already. This patch changes things
        so that a non-GC object (the KJSProxy) does the tracking of live
        window objects for a frame. JSDOMWindowBase can null check the frame
        pointer to verify if it is still good.

        In addition, we must create a similar setup between DOMWindow and
        Frame; since the DOMWindow of a given frame can now change over
        time, we must ensure that the Frame disconnects every live
        DOMWindow when destroyed, not just the last.

        * bindings/js/JSDOMWindowBase.cpp:
        * bindings/js/JSDOMWindowShell.cpp:
        * bindings/js/JSDOMWindowShell.h:
        * bindings/js/kjs_proxy.cpp:
        * bindings/js/kjs_proxy.h:
        * page/DOMWindow.cpp:
        * page/Frame.cpp:
        * page/Frame.h:
        * page/FramePrivate.h:

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

14 years agoWebCore:
mitz@apple.com [Fri, 30 May 2008 21:34:30 +0000 (21:34 +0000)]

        Reviewed by Darin Adler and Dave Hyatt.

        - eliminate excessive repainting when an object's final position
          after layout is unchanged

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::layoutBlockChildren): Removed the full repaint
        for the case that the final position is unchanged but the position at
        which an intermediate layout occurred was different. Any repainting
        done during the intermediate layout would have happened at the object's
        initial (and also final) coordinates, since layoutDelta is factored
        into repaint rect calculations.


        Reviewed by Darin Adler.

        - updated pixel results for "eliminate excessive repainting when an
          object's final position after layout is unchanged"

        * platform/mac/fast/repaint/intermediate-layout-position-clip-expected.checksum:
        * platform/mac/fast/repaint/intermediate-layout-position-clip-expected.png:
        * platform/mac/fast/repaint/intermediate-layout-position-expected.checksum:
        * platform/mac/fast/repaint/intermediate-layout-position-expected.png:

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

14 years ago2008-05-29 Justin Garcia <justin.garcia@apple.com>
justin.garcia@apple.com [Fri, 30 May 2008 21:30:39 +0000 (21:30 +0000)]
2008-05-29  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Darin.

        <rdar://problem/5949462> REGRESSION: Can't paste screen captures into Mail

        AppKit started putting PNG instead of PICT onto the pasteboard for screen
        captures.  Added support for PNG with kUTTypePNG.  Tiger doesn't support
        setting and retrieving pasteboard types with UTIs, but we don't know of any
        applications on Tiger that put only PNG on the pasteboard.

        * WebView/WebHTMLView.mm:
        (-[WebHTMLView _documentFragmentFromPasteboard:inContext:allowPlainText:]):
        (-[WebHTMLView _documentFragmentFromPasteboard:forType:inContext:subresources:]):

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

14 years ago Reviewed by Darin.
ap@webkit.org [Fri, 30 May 2008 20:10:38 +0000 (20:10 +0000)]
    Reviewed by Darin.

        speed up SunSpider by optimizing immediate number cases

        Also fixed a JavaScriptCore regression seen on PowerPC - we didn't clip left shift
        parameter to 0...31.

        0.5% improvement on SunSpider overall, although a 8.5 regression on bitops-3bit-bits-in-byte.

        * VM/Machine.cpp:
        Added fast paths for >>> and <<.

        * kjs/JSImmediate.h:
        (KJS::JSImmediate::toTruncatedUInt32): Added. Same as getTruncatedInt32, but casts the result
        to unsigned.

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

14 years ago<rdar://problem/5959478> r34079: AX: crash at stringForReplacedNode
cfleizach@apple.com [Fri, 30 May 2008 18:05:04 +0000 (18:05 +0000)]
<rdar://problem/5959478> r34079: AX: crash at stringForReplacedNode

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

14 years ago2008-05-30 Carlos Martín Nieto <carlos@cmartin.tk>
jmalonzo@webkit.org [Fri, 30 May 2008 14:15:35 +0000 (14:15 +0000)]
2008-05-30  Carlos Martín Nieto  <carlos@cmartin.tk>

        Reviewed by Alp Toker.

        [GTK] The "hovering-over-link" signal arguments aren't documented.

        * webkit/webkitwebview.cpp:

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

14 years ago2008-05-30 Tor Arne Vestbø <tavestbo@trolltech.com>
hausmann@webkit.org [Fri, 30 May 2008 11:28:46 +0000 (11:28 +0000)]
2008-05-30  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Simon.

        Fix the build dependencies for the Qt build. Don't generate
        SVGCSSPropertyNames.cpp for every build.

        * WebCore.pro: The output file was renamed, so the compiler rule needs
        to be adjusted in order for qmake to generate correct depdencies.

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

14 years ago2008-05-30 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Fri, 30 May 2008 10:40:19 +0000 (10:40 +0000)]
2008-05-30  Maciej Stachowiak  <mjs@apple.com>

        Revert fix for 19285, it just caused more crashes and I need time
        to fix it properly.

        * bindings/js/JSDOMWindowBase.cpp:
        * bindings/js/JSDOMWindowShell.cpp:
        * bindings/js/JSDOMWindowShell.h:
        * bindings/js/kjs_proxy.cpp:
        * bindings/js/kjs_proxy.h:
        * page/Frame.cpp:

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

14 years ago2008-05-30 Adam Treat <treat@kde.org>
hausmann@webkit.org [Fri, 30 May 2008 10:28:25 +0000 (10:28 +0000)]
2008-05-30  Adam Treat  <treat@kde.org>

        Reviewed by Simon.

        Fix a huge memory leak by ensuring that on application shutdown
        the shared timer is fired one last time if it is active. This
        ensures that the GCController timer is fired at the end to free
        references to JavaScript objects.

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

14 years ago Reviewed by Darin.
ap@webkit.org [Fri, 30 May 2008 10:08:31 +0000 (10:08 +0000)]
    Reviewed by Darin.

        <rdar://problem/4657563> Use of Ctrl as access key modifier conflicts with Mac OS X
        emacs-style keybindings

        * page/EventHandler.cpp:
        (WebCore::EventHandler::handleAccessKey): Use Ctrl+Option for access keys on Mac OS X.

        * fast/events/access-key-self-destruct.html:
        * fast/forms/access-key.html:
        * fast/forms/focus-selection-input-expected.txt:
        * fast/forms/focus-selection-input.html:
        * fast/forms/legend-access-key.html:
        * fast/forms/select-accesskey.html:
        Updated tests to keep passing.

        * fast/forms/select-accesskey-expected.txt: Added.
        * fast/forms/select-accesskey.html:
        * platform/mac/fast/forms/select-accesskey-expected.checksum: Removed.
        * platform/mac/fast/forms/select-accesskey-expected.png: Removed.
        * platform/mac/fast/forms/select-accesskey-expected.txt: Removed.
        Updated to keep passing, made text-only.

        * fast/forms/focus-selection-textarea.html:
        * fast/forms/focus-selection-textarea-expected.txt:
        Added missing platform-specific logic.

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

14 years ago Reviewed by Oliver Hunt.
ap@webkit.org [Fri, 30 May 2008 09:10:42 +0000 (09:10 +0000)]
    Reviewed by Oliver Hunt.

        speed up SunSpider by optimizing immediate number cases

        Also fixed three JavaScriptCore regressions seen on PowerPC - we didn't clip right shift
        parameter to 0...31.

        1.6% improvement on SunSpider, without significant regressions on any tests.

        * VM/Machine.cpp:
        Added fast paths for >>, ==, ===, !=, !==. Changed order of memory accesses in many
        cases, making them less dependent on gcc's ability to properly assign registers. With this,
        I could move exception checks back into slow code paths, and saw less randomness in general.

        * kjs/JSImmediate.h:

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

14 years ago2008-05-30 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Fri, 30 May 2008 08:15:31 +0000 (08:15 +0000)]
2008-05-30  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Alexey.

        - speculative fix for "REGRESSION(r34143?): Frequent crash while browsing"

        I'm pretty sure this fixes it but I have not been able to
        reproduce and am unsure if my theory of the bug is right.

        I belive the bug was because JSDOMWindowBase accessed
        JSDOMWindowShell in its destructor to remove itself from a
        hashtable, but GC destructor order is not guaranteed, so the
        hashtable may have been freed already. This patch changes things
        so that a non-GC object (the KJSProxy) does the tracking of live
        window objects for a frame. JSDOMWindowBase can null check the frame
        pointer to verify if it is still good.

        * bindings/js/JSDOMWindowBase.cpp:
        * bindings/js/JSDOMWindowShell.cpp:
        * bindings/js/JSDOMWindowShell.h:
        * bindings/js/kjs_proxy.cpp:
        * bindings/js/kjs_proxy.h:
        * page/Frame.cpp:

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

14 years ago<rdar://problem/5091386> Seed: VO reads form labels twice in Safari
cfleizach@apple.com [Fri, 30 May 2008 06:05:44 +0000 (06:05 +0000)]
<rdar://problem/5091386> Seed: VO reads form labels twice in Safari
<rdar://problem/4783102> Radio button/checkbox embedded with <label> tag should combine the text and the label as a single element

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

14 years agoJavaScriptCore:
mjs@apple.com [Fri, 30 May 2008 05:45:16 +0000 (05:45 +0000)]

2008-05-29  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver.

        - fixed <rdar://problem/5972943> REGRESSION(r33979): Flash clips do not play on cnn.com

        Finally blocks could clobber registers that had to remain live
        until they returned. This patch takes a conservative approach and
        makes sure that finally blocks do not reuse any registers that
        were previously allocated for the function. In the future this
        could probably be tightened up to be less profligate with the
        register allocation.

        * VM/CodeGenerator.cpp:
        * VM/CodeGenerator.h:
        * kjs/nodes.cpp:


2008-05-29  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Oliver. Test by Geoff Garen.

        - fixed <rdar://problem/5972943> REGRESSION(r33979): Flash clips do not play on cnn.com

        * fast/js/finally-codegen-failure-expected.txt: Added.
        * fast/js/finally-codegen-failure.html: Added.

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

14 years ago2008-05-29 Marco Barisione <marco@collabora.co.uk>
alp@webkit.org [Fri, 30 May 2008 03:44:11 +0000 (03:44 +0000)]
2008-05-29  Marco Barisione  <marco@collabora.co.uk>

        Reviewed (and tweaked) by Alp Toker.

        [GTK] add functions to set/get the zoom level

        * webkit/webkitwebsettings.cpp:
        * webkit/webkitwebview.cpp: Add functions to get and set the zoom
        * webkit/webkitwebview.h: Ditto.
        * webkit/webkitprivate.h:

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

14 years agoVersioning.
mrowe@apple.com [Thu, 29 May 2008 23:51:11 +0000 (23:51 +0000)]

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

14 years ago Update PrettyPatch directory list
aroben@apple.com [Thu, 29 May 2008 22:06:42 +0000 (22:06 +0000)]
    Update PrettyPatch directory list

        * PrettyPatch/PrettyPatch.rb:

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

14 years ago Removes a use of the internal _childrenListNode property by adding
timothy@apple.com [Thu, 29 May 2008 22:03:21 +0000 (22:03 +0000)]
    Removes a use of the internal _childrenListNode property by adding
        a getter/setter for smallChildren to SidebarSectionTreeElement.

        Reviewed by Adam Roben.

        * page/inspector/ResourcesPanel.js:
        Toggle smallChildren on the resourcesTreeElement instead of setting
        the style class directly.
        * page/inspector/SidebarTreeElement.js:
        Sets or removes the small class on the _childrenListNode.

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

14 years ago Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Thu, 29 May 2008 21:35:12 +0000 (21:35 +0000)]
  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Adam Roben.

        Fixed VCSUtils.pm to work with git repositories inside symlinks.

        * Scripts/VCSUtils.pm: Compute a relative path from the git repository
        root, instead of the root of the filesystem, to work around a bug in
        abs2rel when traversing symlinked home directories.

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

14 years agoFixes a bug where the className would be reset for Resource
timothy@apple.com [Thu, 29 May 2008 21:25:43 +0000 (21:25 +0000)]
Fixes a bug where the className would be reset for Resource
tree elements and the selected state would be lost. This could
happen when sorting the resources.


Reviewed by Adam Roben.

* page/inspector/ResourcesPanel.js:
(WebInspector.ResourceSidebarTreeElement.prototype.refresh): Call
removeMatchingStyleClasses to remove previous category classes instead
of setting the whole className directly.
* page/inspector/utilities.js:
(Element.prototype.removeStyleClass): Moved code to
removeMatchingStyleClasses and call removeMatchingStyleClasses.
(Element.prototype.removeMatchingStyleClasses): Added. Code moved from
removeStyleClass and don't escape the string.

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

14 years ago2008-05-29 David Hyatt <hyatt@apple.com>
hyatt@apple.com [Thu, 29 May 2008 21:05:11 +0000 (21:05 +0000)]
2008-05-29  David Hyatt  <hyatt@apple.com>

        Improve the performance of the GUIMark benchmark by 2x in the CoreGraphics code path.

        Whenever a foreground image changes size rapidly, we will now dynamically shift into rendering it
        using low quality scaling.  Once the animation completes, the image will repaint at high quality.
        Scaled images will still render at high quality by default, only shifting into low quality if
        the scale factor is rapidly changing.  This change raises GUIMark from 21fps to 34fps on my machine.

        Rewrite the Image draw method to avoid the use of throwaway CG subimages.  Instead the entire image is
        always drawn (with the appropriate clip and scale set up to make sure the correct subimage portion shows up
        in the destination rect).  This change raises GUIMark from 34fps to 43fps on my machine.

        Reviewed by Darin

        * platform/graphics/GraphicsContext.cpp:
        * platform/graphics/cg/ImageCG.cpp:
        * rendering/RenderImage.cpp:
        * rendering/RenderImage.h:

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

14 years agoWebCore:
justin.garcia@apple.com [Thu, 29 May 2008 20:37:53 +0000 (20:37 +0000)]

2008-05-29  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Eric.

        <rdar://problem/5847330> REGRESSION CrashTracer: [USER] 536 crashes at WebCore::highestAncestor

        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Don't break out of an empty
        list item if its parent is non-editable, since doing so will move into non-editable content.
        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::initializePositionData): We want to prevent merges from
        table cells even if those table cells are non-editable.
        * editing/htmlediting.cpp:
        (WebCore::enclosingNodeOfType): Can now return non-editable nodes, for cases where the caller
        isn't going to do editing in the returned node.
        * editing/htmlediting.h:


2008-05-28  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Eric.

        <rdar://problem/5847330> REGRESSION CrashTracer: [USER] 536 crashes at WebCore::highestAncestor

        * editing/deleting/5847330-1-expected.txt: Added.
        * editing/deleting/5847330-1.html: Added.
        * editing/deleting/5847330-2-expected.txt: Added.
        * editing/deleting/5847330-2.html: Added.

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

14 years ago../mac:
andersca@apple.com [Thu, 29 May 2008 19:22:28 +0000 (19:22 +0000)]

2008-05-29  Anders Carlsson  <andersca@apple.com>

        Reviewed by Brady.

        icon file specified for stand alone web app causes crash if the icon can't be found

        Handle the case where iconData is null.

        * Misc/WebIconFetcher.mm:


2008-05-29  Anders Carlsson  <andersca@apple.com>

        Reviewed by Brady.

        icon file specified for stand alone web app causes crash if the icon can't be found

        Handle the case where iconData is null.

        * WebIconFetcher.cpp:

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

14 years agoWebCore:
andersca@apple.com [Thu, 29 May 2008 18:57:00 +0000 (18:57 +0000)]

2008-05-29  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mitz.

        Add version member to NPCocoaEvent

        * bridge/npapi.h:


2008-05-29  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mitz.

        Add version member to NPCocoaEvent

        Initialize the version member to 0 for all events.

        * Plugins/WebNetscapePluginEventHandlerCocoa.mm:

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

14 years agoReviewed by Darin Adler.
kevino@webkit.org [Thu, 29 May 2008 18:02:57 +0000 (18:02 +0000)]
Reviewed by Darin Adler.

Restore original behavior of isOSX() referring to the Mac port, not the OS itself.


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

14 years ago2008-05-29 Steve Falkenburg <sfalken@apple.com>
sfalken@apple.com [Thu, 29 May 2008 17:31:43 +0000 (17:31 +0000)]
2008-05-29  Steve Falkenburg  <sfalken@apple.com>

        Build fix.

        * kjs/array_instance.cpp:

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

14 years ago Reviewed by Darin.
ap@webkit.org [Thu, 29 May 2008 17:14:02 +0000 (17:14 +0000)]
    Reviewed by Darin.

        <rdar://problem/5969062> A crash when iterating over a sparse array backwards.

        * kjs/array_instance.cpp: Turned sparseArrayCutoff into a macro, so that using max() on it
        doesn't cause a PIC branch.
        (KJS::ArrayInstance::increaseVectorLength): Added a comment about this function not
        preserving class invariants.
        (KJS::ArrayInstance::put): Update m_storage after reallocation. Move values that fit to
        the vector from the map in all code paths.

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

14 years ago Reviewed by Jessica Kahn.
mitz@apple.com [Thu, 29 May 2008 16:08:55 +0000 (16:08 +0000)]
    Reviewed by Jessica Kahn.

        - fix <rdar://problem/5965013> Page 2 does not print correctly

        When printing, _recursiveDisplayRectIfNeededIgnoringOpacity:... and
        _recursiveDisplayAllDirtyWithLockFocus:... can be invoked without
        -viewWillDraw being sent first, which could lead to painting without
        valid layout. The fix is to ensure up-to-date layout in those methods
        when printing.

        * WebView/WebHTMLView.mm:
        (-[WebHTMLView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]):
        (-[WebHTMLView _recursiveDisplayAllDirtyWithLockFocus:visRect:]):

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

14 years ago Reviewed by Adam Roben.
ap@webkit.org [Thu, 29 May 2008 15:05:24 +0000 (15:05 +0000)]
    Reviewed by Adam Roben.

        <rdar://problem/5960682> REGRESSION(r30535): Crashes on iExploder in checkForHeadCharset().

        I don't see how to make a reliable test, but iExploder catches this quickly.

        * loader/TextResourceDecoder.cpp:
        (WebCore::TextResourceDecoder::checkForHeadCharset): Correct the length passed to

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

14 years ago Reviewed by Adam Roben.
ap@webkit.org [Thu, 29 May 2008 13:42:29 +0000 (13:42 +0000)]
    Reviewed by Adam Roben.

        Fix run-iexploder-tests and run-mangleme-tests to work with updated shared scripts and
        configuration files.

        * Scripts/run-iexploder-tests:
        * Scripts/run-mangleme-tests:
        Renamed runSafari to not conflict with the one in webkitdirs.
        Added SSLCertificateFile option for httpd, as now needed.

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

14 years ago2008-05-29 Peter Kasting <zerodpx@gmail.com>
alp@webkit.org [Thu, 29 May 2008 12:53:03 +0000 (12:53 +0000)]
2008-05-29  Peter Kasting  <zerodpx@gmail.com>

        Reviewed by Dave Hyatt.

        Handle looping GIFs correctly (at least in the open source GIF decoder) even when
        the loop count doesn't appear in the initial data packets.

        * platform/graphics/BitmapImage.cpp:
        * platform/image-decoders/gif/GIFImageDecoder.cpp:
        * platform/image-decoders/gif/GIFImageDecoder.h:

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

14 years ago2008-05-29 Brent Fulgham <bfulgham@gmail.com>
alp@webkit.org [Thu, 29 May 2008 11:28:19 +0000 (11:28 +0000)]
2008-05-29  Brent Fulgham  <bfulgham@gmail.com>

        Reviewed by Alp Toker.

        Correct Windows (Cairo) Build Regressions

        Correct small Windows (Cairo) build regressions in recent updates.

        * platform/graphics/SimpleFontData.h:  Correct build regression due
          to r32781 (additional use of m_syntheticBoldOffset in GDI code).
        * platform/graphics/cairo/GraphicsContextPlatformPrivateCairo.h:
          Correct build regression due to r31830 (change of clip signature
          to use FloatRect rather than IntRect).
        * platform/graphics/win/SimpleFontDataCairoWin.cpp:
        (WebCore::SimpleFontData::platformInit):  Initialize
        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp:
        (WebCore::JPEGImageReader::JPEGImageReader):  Work around build
          error due to warnings about _setjmp treated as errors.
        * platform/image-decoders/png/PNGImageDecoder.cpp:  Work around
          build error due to warnings about _setjmp treated as errors.
        * platform/network/curl/ResourceHandleCurl.cpp:  Correct build error
          due to different order (and content) of include files when building
          with CoreFoundation (but not CoreGraphics).
        * platform/network/curl/ResourceHandleManager.cpp:
        (WebCore::ResourceHandleManager::setupPOST):  Correct build error
          due to Visual Studio compiler bug.

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

14 years ago2008-05-29 Thiago Macieira <tjmaciei@trolltech.com>
hausmann@webkit.org [Thu, 29 May 2008 10:16:18 +0000 (10:16 +0000)]
2008-05-29  Thiago Macieira  <tjmaciei@trolltech.com>

        Reviewed by Simon.

        Fix compilation in Solaris with Sun CC

        Lots of WebKit code uses C99 functions that, strict as it
        is, the Solaris system doesn't provide in C++. So we must define them
        for both GCC and the Sun CC.

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

14 years ago Reviewed by Darin.
ap@webkit.org [Thu, 29 May 2008 09:43:00 +0000 (09:43 +0000)]
    Reviewed by Darin.

        REGRESSION: transformToDocument fails when xsl includes &#160;

        Test: fast/xsl/nbsp-in-stylesheet.html

        * editing/markup.cpp:
        Only escape non-breaking spaces in HTML documents. In Firefox, this behavior is also limited
        to innerHTML, but we don't have a separate code path for it, and do not necessarily want to.

        * page/Frame.cpp:
        * dom/CDATASection.cpp:
        * dom/CDATASection.h:
        * dom/Comment.cpp:
        * dom/Comment.h:
        * dom/DocumentType.cpp:
        * dom/DocumentType.h:
        * dom/ProcessingInstruction.cpp:
        * dom/ProcessingInstruction.h:
        While at it, I also wanted to fix escaping for these nodes, but it turned out that FIXMEs were
        incorrect. So, I just moved their serialization to markup.cpp for consistency.

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

14 years agoKavindra Devi Palaraja <kdpalara@trolltech.com>
hausmann@webkit.org [Thu, 29 May 2008 09:37:49 +0000 (09:37 +0000)]
Kavindra Devi Palaraja <kdpalara@trolltech.com>

Doc: Mention the requirement of a QApplication with QtWebKit

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

14 years agoDavid Boddie <dboddie@trolltech.com>
hausmann@webkit.org [Thu, 29 May 2008 09:37:35 +0000 (09:37 +0000)]
David Boddie <dboddie@trolltech.com>

Some clarifications for the documentation.

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

14 years agoFix ChangeLog typos.
mjs@apple.com [Thu, 29 May 2008 08:11:30 +0000 (08:11 +0000)]
Fix ChangeLog typos.

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

14 years agoWebCore:
mjs@apple.com [Thu, 29 May 2008 08:05:12 +0000 (08:05 +0000)]

2008-05-29  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dave Hyatt.

        - speed up DHTML using lazy style resolution and rendere creation

        This change introduces the concept of "lazy attach" - when a node
        is lazy attached, then instead of resolving style and creating a
        renderer right away, we just mark it as needing a style recalc.

        The patch makes use of this mechanism when inserting nodes directly
        using DOM APIs from script. For now this is only done for the
        JavaScript language binding but could also be done for other
        bindings in the future.

        Lazy attach helps some common DHTML patterns - when a node is
        added to the DOM, and then subsequently changed in a
        style-affecting way, this causes an extra style recalc. This is a
        fairly common pattern so it is better to be lazy.

        * bindings/js/JSNodeCustom.cpp:
        (WebCore::JSNode::insertBefore): Request lazy attach.
        (WebCore::JSNode::replaceChild): ditto
        (WebCore::JSNode::appendChild): ditto
        * dom/ContainerNode.cpp:
        (WebCore::ContainerNode::insertBefore): Support lazy attach.
        (WebCore::ContainerNode::replaceChild): ditto
        (WebCore::ContainerNode::appendChild): ditto
        (WebCore::ContainerNode::detach): Clear "changed child" bit if still set.
        * dom/ContainerNode.h:
        * dom/Element.cpp:
        (WebCore::Element::recalcStyle): Adjusted to properly reattach a
        lazy-attached node.
        * dom/Node.cpp:
        (WebCore::Node::insertBefore): Extra parameter for lazy attach
        (still doesn't do anything).
        (WebCore::Node::replaceChild): ditto
        (WebCore::Node::appendChild): ditto
        (WebCore::Node::setChanged): Unrelated but obvious optimization -
        stop marking ancestor as having a changed child once we already reach
        an ancestor so marked.
        (WebCore::outermostLazyAttachedAncestor): Helper function for lazyAttach.
        (WebCore::Node::lazyAttach): Implement lazy attach.
        (WebCore::Node::canLazyAttach): Virtual method - true for most nodes.
        * dom/Node.h:
        * dom/Text.cpp:
        (WebCore::Text::recalcStyle): Properly handle the case of a reattached node.
        * html/HTMLEmbedElement.h:
        (WebCore::HTMLEmbedElement::canLazyAttach): Refuse lazy attach, since
        plugins and frames do important work at rederer creation time.
        * html/HTMLFrameElementBase.h:
        (WebCore::HTMLFrameElementBase::canLazyAttach): Refuse lazy attach, since
        plugins and frames do important work at rederer creation time.
        * html/HTMLFrameSetElement.cpp:
        (WebCore::HTMLFrameSetElement::recalcStyle): Change order so that
        reattach works properly.
        * html/HTMLObjectElement.h:
        (WebCore::HTMLObjectElement::canLazyAttach): Refuse lazy attach, since
        plugins and frames do important work at rederer creation time.
        * html/HTMLOptGroupElement.cpp:
        (WebCore::HTMLOptGroupElement::insertBefore): Pass along extra param.
        (WebCore::HTMLOptGroupElement::replaceChild): ditto
        (WebCore::HTMLOptGroupElement::appendChild): ditto
        * html/HTMLOptGroupElement.h:
        * html/HTMLSelectElement.cpp:
        (WebCore::HTMLSelectElement::insertBefore): Pass along extra param.
        (WebCore::HTMLSelectElement::replaceChild): ditto
        (WebCore::HTMLSelectElement::appendChild): ditto
        * html/HTMLSelectElement.h:
        * svg/SVGLocatable.cpp:
        (WebCore::SVGLocatable::getBBox): Add missing updateLayout call.
        * svg/SVGTextContentElement.cpp:
        (WebCore::SVGTextContentElement::getNumberOfChars): ditto
        (WebCore::SVGTextContentElement::getComputedTextLength): ditto
        (WebCore::SVGTextContentElement::getSubStringLength): ditto
        (WebCore::SVGTextContentElement::getStartPositionOfChar): ditto
        (WebCore::SVGTextContentElement::getEndPositionOfChar): ditto
        (WebCore::SVGTextContentElement::getExtentOfChar): ditto
        (WebCore::SVGTextContentElement::getRotationOfChar): ditto
        (WebCore::SVGTextContentElement::getCharNumAtPosition): ditto


2008-05-29  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dave Hyatt.

        - Test cases for this change: "speed up DHTML using lazy style resolution and rendere creation"

        * http/tests/misc/acid3-expected.txt:
        * platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.checksum:
        * platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.png:
        * platform/mac/fast/dynamic/insert-before-table-part-in-continuation-expected.txt:

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

14 years agoFix codegen for assignment being used as a function.
oliver@apple.com [Thu, 29 May 2008 04:15:45 +0000 (04:15 +0000)]
Fix codegen for assignment being used as a function.

Reviewed by Anders.

FunctionCallValueNode::emitCode failed to account for the
potential of the function expression to allocate arbitrary

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

14 years ago2008-05-28 Geoffrey Garen <ggaren@apple.com>
bdakin@apple.com [Thu, 29 May 2008 02:11:41 +0000 (02:11 +0000)]
2008-05-28  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Oliver Hunt.

        Fixed total destruction in Software Update.app.

        Updated JavaScriptGlue to honor squirrelfish's new getCallData mechanism for
        indicating that an object can be called as a function.

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

14 years ago <rdar://problem/5957036> REGRESSION (r31960): 20-30% slowdown in i-Bench...
adachan@apple.com [Thu, 29 May 2008 00:51:06 +0000 (00:51 +0000)]
    <rdar://problem/5957036> REGRESSION (r31960): 20-30% slowdown in i-Bench JavaScript test on XP Home
        Conditionalize the timer latency change (r31960) only for vista since it does not
        help xp anyway.

        Reviewed by Steve Falkenburg.

        * platform/win/SharedTimerWin.cpp:

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

14 years ago2008-05-28 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 29 May 2008 00:44:03 +0000 (00:44 +0000)]
2008-05-28  Anders Carlsson  <andersca@apple.com>

        Reviewed by Jon.

        Remove workaround, this is no longer a problem.

        * WebView/WebView.mm:
        (-[WebView _removeObjectForIdentifier:]):

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

14 years ago2008-05-28 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 28 May 2008 23:20:17 +0000 (23:20 +0000)]
2008-05-28  Anders Carlsson  <andersca@apple.com>

        Build fix.

        * storage/LocalStorage.cpp:

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