WebKit-https.git
12 years ago2008-12-21 David Levin <levin@chromium.org>
ap@webkit.org [Mon, 22 Dec 2008 07:31:37 +0000 (07:31 +0000)]
2008-12-21  David Levin  <levin@chromium.org>

        Reviewed by Darin Adler.

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

        Attempted fix for 4 failing XMLHttpReuqest tests on Tiger:
         access-control-basic-allow-preflight-cache-invalidation-by-header.html
         access-control-basic-allow-preflight-cache-invalidation-by-method.html
         access-control-basic-allow-preflight-cache-timeout.html
         access-control-basic-allow-preflight-cache.html

        * http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache-invalidation.php:
        * http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache-timeout.php:
        * http/tests/xmlhttprequest/resources/access-control-basic-preflight-cache.php:
        * http/tests/xmlhttprequest/resources/portabilityLayer.php:
        * http/tests/xmlhttprequest/resources/reset-temp-file.php:

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

12 years agoNot reviewed. Try to fix clean Mac builds, set role=private for FormDataBuilder.h
zimmermann@webkit.org [Mon, 22 Dec 2008 02:57:09 +0000 (02:57 +0000)]
Not reviewed. Try to fix clean Mac builds, set role=private for FormDataBuilder.h

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

12 years agoRubber-stamped by George Staikos.
zimmermann@webkit.org [Mon, 22 Dec 2008 02:22:10 +0000 (02:22 +0000)]
Rubber-stamped by George Staikos.

Unify all TorchMobile copyright lines. Consolidate in a single line, as requested by Mark Rowe, some time ago.

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

12 years agoReviewed by George Staikos.
zimmermann@webkit.org [Mon, 22 Dec 2008 02:04:51 +0000 (02:04 +0000)]
Reviewed by George Staikos.

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

Add POST method support to WMLGoElement. GET & POST over HTTP
covered by a new set of WML HTTP layout tests.

Tests: http/tests/wml/go-task-get-method-accept-charset.html
       http/tests/wml/go-task-get-method.html
       http/tests/wml/go-task-post-method-accept-charset.html
       http/tests/wml/go-task-post-method.html

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

12 years agoReviewed by Darin Adler and George Staikos.
zimmermann@webkit.org [Mon, 22 Dec 2008 01:45:35 +0000 (01:45 +0000)]
Reviewed by Darin Adler and George Staikos.

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

Refactor HTMLFormElement to share a maximum level of code between HTMLFormElement & WMLGoElement.
Create a new helper class 'FormDataBuilder', which is hold as member variable in those classes.
It encapsulates all functionality needed to generate a FormData object, usable for HTML/WML form
submission, including boundary string generation, multi-part form handling etc.

No functional changes, no test cases affected.
WMLGoElement will be converted in a follow-up patch.

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

12 years agoRubber-stamped by George Staikos.
zimmermann@webkit.org [Mon, 22 Dec 2008 01:42:03 +0000 (01:42 +0000)]
Rubber-stamped by George Staikos.
Fix copyright of the new RandomNumber* files.

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

12 years ago2008-12-21 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Mon, 22 Dec 2008 01:00:07 +0000 (01:00 +0000)]
2008-12-21  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Oliver Hunt & Cameron Zwarich.

        Add support for call and property access repatching on x86-64.

        No change in performance on current configurations (2x impovement on v8-tests with JIT enabled on x86-64).

        * assembler/MacroAssembler.h:
        (JSC::MacroAssembler::DataLabelPtr::repatch):
        (JSC::MacroAssembler::DataLabelPtr::operator X86Assembler::JmpDst):
        (JSC::MacroAssembler::DataLabel32::repatch):
        (JSC::MacroAssembler::RepatchBuffer::addressOf):
        (JSC::MacroAssembler::add32):
        (JSC::MacroAssembler::sub32):
        (JSC::MacroAssembler::loadPtrWithAddressOffsetRepatch):
        (JSC::MacroAssembler::storePtrWithAddressOffsetRepatch):
        (JSC::MacroAssembler::jePtr):
        (JSC::MacroAssembler::jnePtr):
        (JSC::MacroAssembler::jnePtrWithRepatch):
        (JSC::MacroAssembler::differenceBetween):
        * assembler/X86Assembler.h:
        (JSC::X86Assembler::addl_im):
        (JSC::X86Assembler::subl_im):
        (JSC::X86Assembler::cmpl_rm):
        (JSC::X86Assembler::movq_rm_disp32):
        (JSC::X86Assembler::movq_mr_disp32):
        (JSC::X86Assembler::repatchPointer):
        (JSC::X86Assembler::X86InstructionFormatter::oneByteOp64_disp32):
        * jit/JIT.cpp:
        (JSC::JIT::privateCompile):
        (JSC::JIT::privateCompileCTIMachineTrampolines):
        * jit/JIT.h:
        * jit/JITCall.cpp:
        (JSC::JIT::unlinkCall):
        (JSC::JIT::linkCall):
        (JSC::JIT::compileOpCall):
        (JSC::JIT::compileOpCallSlowCase):
        * jit/JITInlineMethods.h:
        (JSC::JIT::restoreArgumentReferenceForTrampoline):
        * jit/JITPropertyAccess.cpp:
        (JSC::JIT::compileGetByIdHotPath):
        (JSC::JIT::compileGetByIdSlowCase):
        (JSC::JIT::compilePutByIdHotPath):
        (JSC::JIT::compilePutByIdSlowCase):
        (JSC::resizePropertyStorage):
        (JSC::JIT::privateCompilePutByIdTransition):
        (JSC::JIT::privateCompileGetByIdProto):
        (JSC::JIT::privateCompileGetByIdProtoList):
        (JSC::JIT::privateCompileGetByIdChainList):
        (JSC::JIT::privateCompileGetByIdChain):
        * wtf/Platform.h:

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

12 years ago2008-12-21 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Sun, 21 Dec 2008 23:44:16 +0000 (23:44 +0000)]
2008-12-21  Dirk Schulze  <krit@webkit.org>

        Reviewed by Darin Adler, Nikolas Zimmermann.

        Move the the platform dependent strokeBBox functionality out of RenderPath
        into Path with strokeBoundingRect.

        RenderPath clean-up for strokeBoundingBox
        [https://bugs.webkit.org/show_bug.cgi?id=22902]

        * GNUmakefile.am:
        * WebCore.xcodeproj/project.pbxproj:
        * platform/graphics/GraphicsContext.h:
        * platform/graphics/Path.h:
        * platform/graphics/StrokeStyleApplier.h: Added.
        (WebCore::StrokeStyleApplier::~StrokeStyleApplier):
        * platform/graphics/cairo/PathCairo.cpp:
        (WebCore::Path::strokeBoundingRect):
        * platform/graphics/cg/PathCG.cpp:
        (WebCore::createScratchContext):
        (WebCore::scratchContext):
        (WebCore::Path::strokeBoundingRect):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::pen):
        * platform/graphics/qt/PathQt.cpp:
        (WebCore::Path::strokeBoundingRect):
        * rendering/RenderPath.cpp:
        (WebCore::StrokeBoundingRectStyleApplier::StrokeBoundingRectStyleApplier):
        (WebCore::StrokeBoundingRectStyleApplier::strokeStyle):
        (WebCore::RenderPath::relativeBBox):
        * rendering/RenderPath.h:
        * svg/graphics/cairo/RenderPathCairo.cpp:
        * svg/graphics/cg/RenderPathCg.cpp:
        * svg/graphics/qt/RenderPathQt.cpp:

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

12 years ago2008-12-21 Xan Lopez <xan@gnome.org>
christian@webkit.org [Sun, 21 Dec 2008 14:49:10 +0000 (14:49 +0000)]
2008-12-21  Xan Lopez  <xan@gnome.org>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=16092
        [GTK] Middle-mouse click should allow opening a URL in a new tab

        Add mouse button and keyboard state modifiers info to navigation action.

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
        * webkit/webkitwebnavigationaction.cpp:
        (_WebKitWebNavigationActionPrivate::):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_property):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_property):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_class_init):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_button):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_modifier_state):
        * webkit/webkitwebnavigationaction.h:

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

12 years ago Reviewed by Ada Chan.
mitz@apple.com [Sat, 20 Dec 2008 22:41:48 +0000 (22:41 +0000)]
    Reviewed by Ada Chan.

        - expose the new allItems() method via a new IWebHistoryPrivate
          interface

        * Interfaces/IWebHistoryPrivate.idl: Added.
        * Interfaces/WebKit.idl: Added IWebHistoryPrivate.idl.
        * WebHistory.cpp:
        (WebHistory::QueryInterface): Added IWebHistoryPrivate.
        (WebHistory::allItems):
        * WebHistory.h:

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

12 years ago Fix typo "CSSAferRuleValue" to "CSSAfterRuleValue"
ddkilzer@apple.com [Sat, 20 Dec 2008 20:52:46 +0000 (20:52 +0000)]
    Fix typo "CSSAferRuleValue" to "CSSAfterRuleValue"

        * html/PreloadScanner.cpp:
        (WebCore::PreloadScanner::tokenizeCSS):
        * html/PreloadScanner.h:
        (WebCore::PreloadScanner::CSSState):

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

12 years ago Reviewed by Geoff Garen.
ap@webkit.org [Sat, 20 Dec 2008 10:26:43 +0000 (10:26 +0000)]
    Reviewed by Geoff Garen.

        <rdar://problem/6454076> Random crashes on JS raytracer

        No test, because the crash is not readily reproducible.

        * platform/text/StringImpl.cpp:
        (WebCore::StringImpl::empty):
        * platform/text/StringImpl.h:
        Made empty string per-thread.

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

12 years ago2008-12-20 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Sat, 20 Dec 2008 10:11:31 +0000 (10:11 +0000)]
2008-12-20  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Oliver Hunt.

        Port optimized property access generation to the MacroAssembler.

        * assembler/MacroAssembler.h:
        (JSC::MacroAssembler::AbsoluteAddress::AbsoluteAddress):
        (JSC::MacroAssembler::DataLabelPtr::repatch):
        (JSC::MacroAssembler::DataLabel32::DataLabel32):
        (JSC::MacroAssembler::DataLabel32::repatch):
        (JSC::MacroAssembler::Label::operator X86Assembler::JmpDst):
        (JSC::MacroAssembler::Jump::repatch):
        (JSC::MacroAssembler::JumpList::empty):
        (JSC::MacroAssembler::RepatchBuffer::link):
        (JSC::MacroAssembler::add32):
        (JSC::MacroAssembler::and32):
        (JSC::MacroAssembler::sub32):
        (JSC::MacroAssembler::loadPtrWithAddressRepatch):
        (JSC::MacroAssembler::storePtrWithAddressRepatch):
        (JSC::MacroAssembler::push):
        (JSC::MacroAssembler::ja32):
        (JSC::MacroAssembler::jePtr):
        (JSC::MacroAssembler::jnePtr):
        (JSC::MacroAssembler::jnePtrWithRepatch):
        (JSC::MacroAssembler::align):
        (JSC::MacroAssembler::differenceBetween):
        * assembler/X86Assembler.h:
        (JSC::X86Assembler::movl_rm_disp32):
        (JSC::X86Assembler::movl_mr_disp32):
        (JSC::X86Assembler::X86InstructionFormatter::oneByteOp_disp32):
        (JSC::X86Assembler::X86InstructionFormatter::memoryModRM):
        * jit/JIT.cpp:
        (JSC::ctiRepatchCallByReturnAddress):
        (JSC::JIT::privateCompileMainPass):
        (JSC::JIT::privateCompile):
        (JSC::JIT::privateCompileCTIMachineTrampolines):
        * jit/JIT.h:
        * jit/JITPropertyAccess.cpp:
        (JSC::JIT::compileGetByIdHotPath):
        (JSC::JIT::compileGetByIdSlowCase):
        (JSC::JIT::compilePutByIdHotPath):
        (JSC::JIT::compilePutByIdSlowCase):
        (JSC::resizePropertyStorage):
        (JSC::JIT::privateCompilePutByIdTransition):
        (JSC::JIT::patchGetByIdSelf):
        (JSC::JIT::patchPutByIdReplace):
        (JSC::JIT::privateCompilePatchGetArrayLength):
        (JSC::JIT::privateCompileGetByIdSelf):
        (JSC::JIT::privateCompileGetByIdProto):
        (JSC::JIT::privateCompileGetByIdSelfList):
        (JSC::JIT::privateCompileGetByIdProtoList):
        (JSC::JIT::privateCompileGetByIdChainList):
        (JSC::JIT::privateCompileGetByIdChain):
        (JSC::JIT::privateCompilePutByIdReplace):
        * wtf/RefCounted.h:
        (WTF::RefCountedBase::addressOfCount):

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

12 years ago2008-12-19 Marco Barisione <marco.barisione@collabora.co.uk>
zecke@webkit.org [Sat, 20 Dec 2008 03:18:31 +0000 (03:18 +0000)]
2008-12-19  Marco Barisione  <marco.barisione@collabora.co.uk>

        Reviewed by Holger Freyther.

        http://bugs.webkit.org/show_bug.cgi?id=16562
        [gtk] Implement WebPolicyDelegate methods

        Original work by Pierre-Luc Beaudoin. Final touches by Gustavo
        Noronha.

        This implements the delegates methods of WebPolicyDelegate.
        Since Gtk+/C doesn't have delegate methods, they are replaced with
        signals.

        A new object WebKitWebPolicyDecision allows the browser to delay its
        response in certain cases. WebKitWebNavigationAction contains the
        information about what caused a navigation request.

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::FrameLoaderClient):
        (WebKit::FrameLoaderClient::~FrameLoaderClient):
        (WebKit::FrameLoaderClient::dispatchDecidePolicyForMIMEType):
        (WebKit::FrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
        (WebKit::FrameLoaderClient::dispatchDecidePolicyForNavigationAction):
        (WebKit::FrameLoaderClient::cancelPolicyCheck):
        (WebKit::FrameLoaderClient::canShowMIMEType):
        * WebCoreSupport/FrameLoaderClientGtk.h:
        * webkit/webkit.h:
        * webkit/webkitdefines.h:
        * webkit/webkitprivate.cpp:
        (WebKit::kit):
        (WebKit::core):
        * webkit/webkitprivate.h:
        * webkit/webkitwebnavigationaction.cpp: Added.
        (_WebKitWebNavigationActionPrivate::):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_property):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_property):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_init):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_finalize):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_class_init):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_reason):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_reason):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_get_original_uri):
        (_WebKitWebNavigationActionPrivate::webkit_web_navigation_action_set_original_uri):
        * webkit/webkitwebnavigationaction.h: Added.
        * webkit/webkitwebpolicydecision.cpp: Added.
        (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_class_init):
        (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_init):
        (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_new):
        (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_use):
        (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_ignore):
        (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_download):
        (_WebKitWebPolicyDecisionPrivate::webkit_web_policy_decision_cancel):
        * webkit/webkitwebpolicydecision.h: Added.

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

12 years ago2008-12-19 Zan Dobersek <zandobersek@gmail.com>
zecke@webkit.org [Sat, 20 Dec 2008 02:35:05 +0000 (02:35 +0000)]
2008-12-19  Zan Dobersek  <zandobersek@gmail.com>

        Reviewed by Holger Freyther.

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

        Enable more tests for testing on Gtk+ port.

        * platform/gtk/Skipped:

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

12 years ago2008-12-19 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Sat, 20 Dec 2008 02:04:20 +0000 (02:04 +0000)]
2008-12-19  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Replace some uses of HardRetain etc with RetainPtr.

        * platform/mac/DragImageMac.mm:
        * platform/mac/SharedBufferMac.mm:
        (WebCore::SharedBuffer::createCFData):
        * rendering/RenderThemeMac.mm:
        * svg/graphics/cg/SVGResourceFilterCg.mm:
        (WebCore::SVGResourceFilter::prepareFilter):
        (WebCore::SVGResourceFilter::applyFilter):
        * svg/graphics/mac/SVGResourceFilterPlatformDataMac.h:
        * svg/graphics/mac/SVGResourceFilterPlatformDataMac.mm:
        (WebCore::SVGResourceFilterPlatformDataMac::SVGResourceFilterPlatformDataMac):

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

12 years ago2008-12-19 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Sat, 20 Dec 2008 01:39:02 +0000 (01:39 +0000)]
2008-12-19  Geoffrey Garen  <ggaren@apple.com>

        Build fix.

        * WebHistory.cpp:
        (WebHistory::allItems):

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

12 years agoWebKit/mac:
ggaren@apple.com [Sat, 20 Dec 2008 00:31:10 +0000 (00:31 +0000)]
WebKit/mac:

2008-12-19  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Darin Adler, Adele Peterson, Brady Eidson.

        Added SPI for getting an unsorted vector of all items in history.

        * History/WebHistory.h:
        * History/WebHistory.mm:
        (-[WebHistory allItems]):

WebKit/win:

2008-12-19  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Darin Adler, Adele Peterson, Brady Eidson.

        Added SPI for getting an unsorted vector of all items in history.

        * WebHistory.cpp:
        (WebHistory::orderedItemsLastVisitedOnDay):
        (WebHistory::allItems):
        * WebHistory.h:

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

12 years agoReviewed by Kevin Ollivier.
kevino@webkit.org [Sat, 20 Dec 2008 00:28:32 +0000 (00:28 +0000)]
Reviewed by Kevin Ollivier.

Add Context Menu support to wx bindings.

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

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

12 years ago2008-12-19 David Levin <levin@chromium.org>
eric@webkit.org [Sat, 20 Dec 2008 00:03:49 +0000 (00:03 +0000)]
2008-12-19  David Levin  <levin@chromium.org>

        Reviewed by Mark Rowe.

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

        Make the git diff command used for preparing the change log avoid using any external diff tools.

        * Scripts/prepare-ChangeLog:

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

12 years ago2008-12-19 Beth Dakin <bdakin@apple.com>
bdakin@apple.com [Fri, 19 Dec 2008 22:54:43 +0000 (22:54 +0000)]
2008-12-19  Beth Dakin  <bdakin@apple.com>

        Reviewed by Darin Adler.

        Temporary band-aide fix for <rdar://problem/6372481> In Gmail, a
        crash occurs at
        AccessibilityTable::isTableExposableThroughAccessibility() when
        attempting to create a link in a rich text message

        We need to disable Accessibility Tables until we get this fixed for
        real to prevent rampant crashing.

        * page/AccessibilityTable.cpp:
        (WebCore::AccessibilityTable::AccessibilityTable):

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

12 years ago2008-12-19 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 19 Dec 2008 22:44:10 +0000 (22:44 +0000)]
2008-12-19  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Darin Adler

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

        When the document element is transformed, we need to paint
        the view background to avoid unpainted areas.

        Test: fast/transforms/transformed-document-element.html

        * rendering/RenderView.cpp:
        (WebCore::RenderView::paintBoxDecorations):

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

12 years ago2008-12-19 Dean Jackson <dino@apple.com>
dino@apple.com [Fri, 19 Dec 2008 21:37:30 +0000 (21:37 +0000)]
2008-12-19  Dean Jackson  <dino@apple.com>

        Media queries that return <integer> but are really boolean
        are restricted to 0 and 1. This is in line with other
        media features.

        * specs/MediaQueriesExtensions.html:

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

12 years ago Fix build.
sfalken@apple.com [Fri, 19 Dec 2008 21:19:17 +0000 (21:19 +0000)]
    Fix build.

        * WebCore.vcproj/WebCore.vcproj:

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

12 years ago2008-12-19 Pamela Greene <pam@chromium.org>
pam@chromium.org [Fri, 19 Dec 2008 19:10:53 +0000 (19:10 +0000)]
2008-12-19  Pamela Greene  <pam@chromium.org>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=22612
        Add test to verify type enforcement in DOM setters.
        Resubmitting corrected copies; first submission had patching errors.

        * fast/dom/setter-type-enforcement-expected.txt: Added.
        * fast/dom/setter-type-enforcement.html: Added.

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

12 years agowx build fixes after recent changes.
kevino@webkit.org [Fri, 19 Dec 2008 18:52:50 +0000 (18:52 +0000)]
wx build fixes after recent changes.

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

12 years ago[GTK] Fix make distcheck again
zecke@webkit.org [Fri, 19 Dec 2008 18:34:39 +0000 (18:34 +0000)]
[GTK] Fix make distcheck again

These files were moved to WebCore/platform/animation
and WebCore/platform/graphics/transforms.

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

12 years ago2008-12-19 Gustavo Noronha Silva <gns@gnome.org>
zecke@webkit.org [Fri, 19 Dec 2008 16:54:50 +0000 (16:54 +0000)]
2008-12-19  Gustavo Noronha Silva  <gns@gnome.org>

        Reviewed by Holger Freyther.

        Use ustar tar format for WebKit/GTK+'s make dist target, so that
        storing files whose filenames are > 99 is possible.

        * configure.ac:

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

12 years ago2008-12-19 Gustavo Noronha Silva <gns@gnome.org>
zecke@webkit.org [Fri, 19 Dec 2008 16:53:21 +0000 (16:53 +0000)]
2008-12-19  Gustavo Noronha Silva  <gns@gnome.org>

        Reviewed by Holger Freyther.

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

        Fix AtomicString usage, so that building works.

        * platform/network/soup/ResourceHandleSoup.cpp:

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

12 years agoJavaScriptCore:
zecke@webkit.org [Fri, 19 Dec 2008 16:47:23 +0000 (16:47 +0000)]
JavaScriptCore:
2008-12-19  Gustavo Noronha Silva  <gns@gnome.org>

        Reviewed by Holger Freyther.

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

        Added file which was missing to the javascriptcore_sources
        variable, so that it shows up in the tarball created by `make
        dist'.

        * GNUmakefile.am:

WebKitTools
2008-12-19  Gustavo Noronha Silva  <gns@gnome.org>

        Reviewed by Holger Freyther.

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

        Added files which were missing from the TestNetscapePlugin
        directory to the SOURCES variable, so that they will be
        distributed in a make dist.

        * GNUMakefile.am:

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

12 years ago[GTK] Build fix by defining WTF_USE_JIT_STUB_ARGUMENT_VA_LIST
zecke@webkit.org [Fri, 19 Dec 2008 16:35:39 +0000 (16:35 +0000)]
[GTK] Build fix by defining WTF_USE_JIT_STUB_ARGUMENT_VA_LIST

Fix the jit compilation on i*686 on Linux by using the va_list
to pass arguments to the CTI. This is done on the MAC as well
and sunspider and javascriptcore seem to work with that.

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

12 years ago Windows build fix on older versions of CFNetwork after r39393
aroben@apple.com [Fri, 19 Dec 2008 15:32:03 +0000 (15:32 +0000)]
    Windows build fix on older versions of CFNetwork after r39393

        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::highestSupportedCFURLConnectionClientVersion): Changed
        preprocessor directives not to leave in unreachable code on old
        versions of CFNetwork.

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

12 years ago2008-12-19 Antti Koivisto <antti@apple.com>
antti@apple.com [Fri, 19 Dec 2008 12:45:02 +0000 (12:45 +0000)]
2008-12-19  Antti Koivisto  <antti@apple.com>

        Comment fix.

        * platform/PurgeableBuffer.h:

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

12 years agoBuild fix when building JS API tests with a c89 c compiler
zecke@webkit.org [Fri, 19 Dec 2008 11:27:03 +0000 (11:27 +0000)]
Build fix when building JS API tests with a c89 c compiler

Do not use C++ style comments and convert them to C comments.

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

12 years ago[GTK] Build fix by adding the new files
zecke@webkit.org [Fri, 19 Dec 2008 11:26:49 +0000 (11:26 +0000)]
[GTK] Build fix by adding the new files

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

12 years ago2008-12-19 Jade Han <jade.han@nokia.com>
vestbo@webkit.org [Fri, 19 Dec 2008 10:41:57 +0000 (10:41 +0000)]
2008-12-19  Jade Han <jade.han@nokia.com>

        Reviewed by Tor Arne Vestbø.

        [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types

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

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

12 years ago2008-12-19 Tor Arne Vestbø <tavestbo@trolltech.com>
vestbo@webkit.org [Fri, 19 Dec 2008 10:05:59 +0000 (10:05 +0000)]
2008-12-19  Tor Arne Vestbø  <tavestbo@trolltech.com>

        Reviewed by Holger Freyther.

        Implement ImageDecoder::filenameExtension() for Qt

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

12 years agoFix the Qt build after r39378
vestbo@webkit.org [Fri, 19 Dec 2008 09:14:12 +0000 (09:14 +0000)]
Fix the Qt build after r39378

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

12 years ago2008-12-18 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 19 Dec 2008 09:03:07 +0000 (09:03 +0000)]
2008-12-18  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        Implement ImageSource::filenameExtension for Cario
          https://bugs.webkit.org/show_bug.cgi?id=22905

        * platform/graphics/cairo/ImageSourceCairo.cpp:
        (WebCore::ImageSource::filenameExtension):
        * platform/image-decoders/ImageDecoder.h:
        * platform/image-decoders/bmp/BMPImageDecoder.h:
        (WebCore::BMPImageDecoder::filenameExtension):
        * platform/image-decoders/gif/GIFImageDecoder.h:
        (WebCore::GIFImageDecoder::filenameExtension):
        * platform/image-decoders/ico/ICOImageDecoder.h:
        (WebCore::ICOImageDecoder::filenameExtension):
        * platform/image-decoders/jpeg/JPEGImageDecoder.h:
        (WebCore::JPEGImageDecoder::filenameExtension):
        * platform/image-decoders/png/PNGImageDecoder.h:
        (WebCore::PNGImageDecoder::filenameExtension):
        * platform/image-decoders/xbm/XBMImageDecoder.h:
        (WebCore::XBMImageDecoder::filenameExtension):

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

12 years agoFix build break in Platform.h
vestbo@webkit.org [Fri, 19 Dec 2008 08:52:53 +0000 (08:52 +0000)]
Fix build break in Platform.h

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

12 years ago2008-12-18 Yael Aharon <yael.aharon@nokia.com>
vestbo@webkit.org [Fri, 19 Dec 2008 08:19:29 +0000 (08:19 +0000)]
2008-12-18  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Tor Arne Vestbø.

        When Web Inspector is launched without an associated node,
        call show() instead of inspect().

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

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

12 years agoWebCore:
mitz@apple.com [Fri, 19 Dec 2008 07:34:52 +0000 (07:34 +0000)]
WebCore:

        Reviewed by Sam Weinig.

        - avoid using the ResourceHandle-level credential storage, if any,
          unless the client opts to use it; when use of the credential
          storage is disallowed, all authentication challenges are sent to
          the client.
        - let the FrameLoaderClient decide whether to use the credential
          storage.

        * loader/EmptyClients.h:
        (WebCore::EmptyFrameLoaderClient::shouldUseCredentialStorage): Added.
        Returns false.
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::shouldUseCredentialStorage): Added. Calls through
        to the FrameLoaderClient.
        * loader/FrameLoader.h: Declared shouldUseCredentialStorage().
        * loader/FrameLoaderClient.h: Declared shouldUseCredentialStorage().
        * loader/ResourceLoader.cpp:
        (WebCore::ResourceLoader::shouldUseCredentialStorage): Added. Calls
        through to the FrameLoader.
        * loader/ResourceLoader.h:
        (WebCore::ResourceLoader::shouldUseCredentialStorage): Implemented this
        ResourceHandleClient method.
        * loader/SubresourceLoader.cpp:
        (WebCore::SubresourceLoader::shouldUseCredentialStorage): Added.
        Overrides the ResourceLoader implementation by letting the client
        supply the return value. If the client does not do this, continues
        with the ResourceLoader behavior of asking the FrameLoader.
        * loader/SubresourceLoader.h: Removed an unused #include and declared
        shouldUseCredentialStorage().
        * loader/SubresourceLoaderClient.h:
        (WebCore::SubresourceLoaderClient::getShouldUseCredentialStorage):
        Added a default implementation which returns false, meaning the client
        does not wish to decide whether the credential storage should be used.
        * platform/network/ResourceHandle.h: Removed unused forward declarations.
        Declared a new member function, shouldUseCredentialStorage(), on Mac and
        CFNetwork-using builds.
        * platform/network/ResourceHandleClient.h:
        (WebCore::ResourceHandleClient::shouldUseCredentialStorage): Added this
        default implementation that returns false.
        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::findCFNetworkModule): Added. Returns a handle to the CFNetwork
        module.
        (WebCore::cfNetworkVersion): Added. Returns the high word of the
        CFNetwork library's product version.
        (WebCore::highestSupportedCFURLConnectionClientVersion): Added. Returns
        the highest version of the CFURLConnectionClient structure supported by
        the CFNetwork library. The only reason to check this at runtime is
        that WebKit may be linking at runtime against an older version of
        CFNetwork than the one it was built with, as is the case with nightly
        builds.
        (WebCore::shouldUseCredentialStorageCallback): Added this
        CFURLConnection callback which calls through to
        ResourceHandle::shouldUseCredentialStorage().
        (WebCore::ResourceHandle::start): Pass a version 3 CFURLConnectionClient
        including the shouldUseCredentialStorage callback. At runtime, clamp the
        client structure version down to the highest supported by CFNetwork.
        (WebCore::ResourceHandle::shouldUseCredentialStorage): Added. Calls through
        to the client if there is one. Otherwise returns false.
        * platform/network/mac/ResourceHandleMac.mm:
        (WebCore::ResourceHandle::shouldUseCredentialStorage): Ditto.
        (-[WebCoreResourceHandleAsDelegate connectionShouldUseCredentialStorage:]):
        Added this delegate method which callls through to
        ResourceHandle::shouldUseCredentialStorage().

WebKit/gtk:

        Reviewed by Sam Weinig.

        - stub out FrameLoaderClient::shouldUseCredentialStorage().

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::shouldUseCredentialStorage):
        * WebCoreSupport/FrameLoaderClientGtk.h:

WebKit/mac:

        Reviewed by Sam Weinig.

        - implement FrameLoaderClient::shouldUseCredentialStorage() by calling
          a new resource load delegae method.

        * WebCoreSupport/WebFrameLoaderClient.h:
        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::shouldUseCredentialStorage): Added. Calls the
        delegate method. If the method is unimplemented, returns true for
        backwards compatibility.
        * WebView/WebView.mm:
        (-[WebView _cacheResourceLoadDelegateImplementations]): Initialize the
        shouldUseCredentialStorageFunc member.
        (CallResourceLoadDelegateReturningBoolean): Added.
        * WebView/WebViewInternal.h:
        * WebView/WebResourceLoadDelegatePrivate.h: Declared the delegate method
        -webView:resource:shouldUseCredentialStorageForDataSource:.

WebKit/qt:

        Reviewed by Sam Weinig.

        - stub out FrameLoaderClient::shouldUseCredentialStorage().

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
        * WebCoreSupport/FrameLoaderClientQt.h:

WebKit/win:

        Reviewed by Sam Weinig.

        - implement FrameLoaderClient::shouldUseCredentialStorage() by calling
          a new resource load delegae method.

        * Interfaces/IWebResourceLoadDelegatePrivate.idl: Added
        a ne interface, IWebResourceLoadDelegatePrivate2, including a new
        method, shouldUseCredentialStorage().
        * WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebFrameLoaderClient::shouldUseCredentialStorage): Added. Calls the
        delegate method. If the method is unimplemented, returns true for
        backwards compatibility.
        * WebCoreSupport/WebFrameLoaderClient.h:

WebKit/wx:

        Reviewed by Sam Weinig.

        - stub out FrameLoaderClient::shouldUseCredentialStorage().

        * WebKitSupport/FrameLoaderClientWx.cpp:
        (WebCore::FrameLoaderClientWx::shouldUseCredentialStorage):
        * WebKitSupport/FrameLoaderClientWx.h:

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

12 years ago2008-12-18 Cameron Zwarich <zwarich@apple.com>
cwzwarich@webkit.org [Fri, 19 Dec 2008 06:54:34 +0000 (06:54 +0000)]
2008-12-18  Cameron Zwarich  <zwarich@apple.com>

        Reviewed by Jonathan Honeycutt.

        Fix an apparent typo in r39385 that is causing lots of crashes.

        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):

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

12 years ago2008-12-18 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Fri, 19 Dec 2008 03:21:52 +0000 (03:21 +0000)]
2008-12-18  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Sam Weinig.

        Same as last revision, adding cases for pre & post inc & dec.

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

        * jit/JIT.cpp:
        (JSC::JIT::privateCompileMainPass):

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

12 years agoRevert 39363 because the test doesn't pass.
abarth@webkit.org [Fri, 19 Dec 2008 02:58:19 +0000 (02:58 +0000)]
Revert 39363 because the test doesn't pass.

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

12 years ago2008-12-18 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Fri, 19 Dec 2008 02:30:41 +0000 (02:30 +0000)]
2008-12-18  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Sam Weinig.

        Fixes for the JIT's handling of JSImmediate values on x86-64.
        On 64-bit systems, the code in JSImmediate.h relies on the upper
        bits of a JSImmediate being a sign extension of the low 32-bits.
        This was not being enforced by the JIT, since a number of inline
        operations were being performed on 32-bit values in registers, and
        when a 32-bit result is written to a register on x86-64 the value
        is zero-extended to 64-bits.

        This fix honors previous behavoir.  A better fix in the long run
        (when the JIT is enabled by default) may be to change JSImmediate.h
        so it no longer relies on the upper bits of the pointer,... though
        if we're going to change JSImmediate.h for 64-bit, we probably may
        as well change the format so that the full range of 32-bit ints can
        be stored, rather than just 31-bits.

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

        * assembler/MacroAssembler.h:
        (JSC::MacroAssembler::addPtr):
        (JSC::MacroAssembler::andPtr):
        (JSC::MacroAssembler::orPtr):
        (JSC::MacroAssembler::or32):
        (JSC::MacroAssembler::xor32):
        (JSC::MacroAssembler::xorPtr):
        (JSC::MacroAssembler::signExtend32ToPtr):
        * assembler/X86Assembler.h:
        (JSC::X86Assembler::):
        (JSC::X86Assembler::andq_rr):
        (JSC::X86Assembler::andq_ir):
        (JSC::X86Assembler::orq_rr):
        (JSC::X86Assembler::xorq_ir):
        (JSC::X86Assembler::movsxd_rr):
        * jit/JIT.cpp:
        (JSC::JIT::privateCompileMainPass):
        * jit/JITInlineMethods.h:
        (JSC::JIT::emitFastArithReTagImmediate):
        (JSC::JIT::emitFastArithPotentiallyReTagImmediate):
        (JSC::JIT::emitFastArithImmToInt):

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

12 years ago Reset role to "Private" on 6 header files to fix clean builds after r39378
ddkilzer@apple.com [Fri, 19 Dec 2008 01:51:02 +0000 (01:51 +0000)]
    Reset role to "Private" on 6 header files to fix clean builds after r39378

        Reviewed by BUILD FIX.

        * WebCore.xcodeproj/project.pbxproj: Added back "Private" role
        that was lost on 6 headers when they were "moved":
        AffineTransform.h, Animation.h, AnimationList.h,
        TimingFunction.h, TransformOperation.h and
        TransformOperations.h.

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

12 years ago2008-12-18 Pamela Greene <pam@chromium.org>
pam@chromium.org [Fri, 19 Dec 2008 01:49:17 +0000 (01:49 +0000)]
2008-12-18  Pamela Greene  <pam@chromium.org>

        Reviewed by Dan Bernstein.

        Add initializer for m_textDirectionSubmenuInclusionBehavior.
        https://bugs.webkit.org/show_bug.cgi?id=22926

        * page/Settings.cpp:
        (WebCore::Settings::Settings): Initialize m_textDirectionSubmenuInclusionBehavior

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

12 years ago2008-12-18 Brady Eidson <beidson@apple.com>
beidson@apple.com [Fri, 19 Dec 2008 01:37:44 +0000 (01:37 +0000)]
2008-12-18  Brady Eidson  <beidson@apple.com>

        Reviewed by John Sullivan

        Initial visit to a website creates history items that start with a visit count of
        zero instead of one

        * History/WebHistory.mm:
        (-[WebHistoryPrivate visitedURL:withTitle:]): Set the visit count on new items

        * History/WebHistoryItem.mm:
        (-[WebHistoryItem _setVisitCount:]): Call through to the WebCore item
        * History/WebHistoryItemInternal.h:

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

12 years agoWebCore:
weinig@apple.com [Fri, 19 Dec 2008 01:15:00 +0000 (01:15 +0000)]
WebCore:

2008-12-18  Sam Weinig  <sam@webkit.org>

        Reviewed by John Sullivan.

        Add new FrameLoaderClient method to indicate the first visually
        non-empty layout based on an heuristic.  Right now that heuristic
        is the first layout after an image, text or plugin has been added
        to the render tree, but I can imagine it becoming much smarter.

        * loader/EmptyClients.h:
        (WebCore::EmptyFrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):
        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::didFirstVisuallyNonEmptyLayout):
        * loader/FrameLoader.h:
        * loader/FrameLoaderClient.h:
        * page/FrameView.cpp:
        (WebCore::FrameViewPrivate::reset):
        (WebCore::FrameView::layout):
        (WebCore::FrameView::performPostLayoutTasks):
        (WebCore::FrameView::setIsVisuallyNonEmpty):
        * page/FrameView.h:
        * rendering/RenderImage.cpp:
        (WebCore::RenderImage::RenderImage):
        * rendering/RenderPartObject.cpp:
        (WebCore::RenderPartObject::RenderPartObject):
        * rendering/RenderText.cpp:
        (WebCore::RenderText::RenderText):

WebKit/gtk:

2008-12-18  Sam Weinig  <sam@webkit.org>

        Reviewed by John Sullivan.

        Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):
        * WebCoreSupport/FrameLoaderClientGtk.h:

WebKit/mac:

2008-12-18  Sam Weinig  <sam@webkit.org>

        Reviewed by John Sullivan.

        Implement FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout() by calling
        a new private frame load delegate method.

        * WebCoreSupport/WebFrameLoaderClient.h:
        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):
        * WebView/WebView.mm:
        (-[WebView _cacheFrameLoadDelegateImplementations]):
        * WebView/WebViewInternal.h:
        * WebView/WebViewPrivate.h:

WebKit/qt:

2008-12-18  Sam Weinig  <sam@webkit.org>

        Reviewed by John Sullivan.

        Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
        * WebCoreSupport/FrameLoaderClientQt.h:

WebKit/win:

2008-12-18  Sam Weinig  <sam@webkit.org>

        Reviewed by John Sullivan.

        Implement FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout() by calling
        a new private frame load delegate method.

        * Interfaces/IWebFrameLoadDelegatePrivate.idl:
        * WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebFrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout):
        * WebCoreSupport/WebFrameLoaderClient.h:

WebKit/wx:

2008-12-18  Sam Weinig  <sam@webkit.org>

        Reviewed by John Sullivan.

        Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()

        * WebKitSupport/FrameLoaderClientWx.cpp:
        (WebCore::FrameLoaderClientWx::dispatchDidFirstVisuallyNonEmptyLayout):
        * WebKitSupport/FrameLoaderClientWx.h:

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

12 years ago2008-12-18 Pierre-Olivier Latour <pol@apple.com>
pol@apple.com [Fri, 19 Dec 2008 00:39:21 +0000 (00:39 +0000)]
2008-12-18  Pierre-Olivier Latour  <pol@apple.com>

        Reviewed by Darin Adler.

        Rewrote some of the transition layout tests that were using setTimeout() to use the transition pause API in DRT when available.

        Rewrote the transition layout tests that were specifically testing the transition end event to use common JS code from transition-end-event-helpers.js.

        Fixed some typos.

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

        * transitions/end-event-helpers.js: Removed.
        * transitions/interrupt-transform-transition-expected.txt:
        * transitions/interrupt-transform-transition.html:
        * transitions/opacity-transition-zindex.html:
        * transitions/start-transform-transition.html:
        * transitions/transform-op-list-match-expected.txt:
        * transitions/transform-op-list-match.html:
        * transitions/transform-op-list-no-match-expected.txt:
        * transitions/transform-op-list-no-match.html:
        * transitions/transition-end-event-all-properties-expected.txt:
        * transitions/transition-end-event-all-properties.html:
        * transitions/transition-end-event-attributes-expected.txt:
        * transitions/transition-end-event-attributes.html:
        * transitions/transition-end-event-container-expected.txt:
        * transitions/transition-end-event-container.html:
        * transitions/transition-end-event-helpers.js: Copied from LayoutTests/transitions/end-event-helpers.js.
        (recordTransitionEndEvent):
        (runTransitionTest.processEndEvents.compareEventInfo):
        (runTransitionTest.processEndEvents.examineResults):
        (runTransitionTest.processEndEvents):
        (runTransitionTest.startTest):
        (runTransitionTest.window):
        (runTransitionTest):
        * transitions/transition-end-event-left-expected.txt:
        * transitions/transition-end-event-left.html:
        * transitions/transition-end-event-multiple-01-expected.txt:
        * transitions/transition-end-event-multiple-01.html:
        * transitions/transition-end-event-multiple-02-expected.txt:
        * transitions/transition-end-event-multiple-02.html:
        * transitions/transition-end-event-multiple-03-expected.txt:
        * transitions/transition-end-event-multiple-03.html:
        * transitions/transition-end-event-multiple-04-expected.txt:
        * transitions/transition-end-event-multiple-04.html:
        * transitions/transition-end-event-nested-expected.txt:
        * transitions/transition-end-event-nested.html:
        * transitions/transition-end-event-set-none-expected.txt:
        * transitions/transition-end-event-set-none.html:
        * transitions/transition-end-event-transform-expected.txt:
        * transitions/transition-end-event-transform.html:
        * transitions/transition-end-event-window-expected.txt:
        * transitions/transition-end-event-window.html:
        * transitions/transition-test-helpers.js: Added.
        (runTransitionTest.isCloseEnough):
        (runTransitionTest.checkExpectedValue):
        (runTransitionTest.endTest):
        (runTransitionTest.runTest):
        (runTransitionTest.startTest):
        (runTransitionTest.if):
        * transitions/transition-timing-function-expected.txt: Copied from LayoutTests/transitions/transition-timing-function-software-expected.txt.
        * transitions/transition-timing-function-software-expected.txt: Removed.
        * transitions/transition-timing-function-software.html: Removed.
        * transitions/transition-timing-function.html: Copied from LayoutTests/transitions/transition-timing-function-software.html.
        * transitions/zero-duration-in-list-expected.txt:
        * transitions/zero-duration-in-list.html:

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

12 years ago2008-12-18 Darin Adler <darin@apple.com>
darin@apple.com [Thu, 18 Dec 2008 23:58:53 +0000 (23:58 +0000)]
2008-12-18  Darin Adler  <darin@apple.com>

        Reviewed by Sam Weinig.

        - fix <rdar://problem/6449841> reduce memory use of ResourceResponseBase by removing two maps

        We were parsing the cache-control and pragma header field values into maps.
        I changed that so instead we only cache two bits with the data we were actually
        using. Later we might want to move this responsibility out of this class entirely;
        we can cache it at the higher level instead.

        * loader/CachedResource.cpp:
        (WebCore::CachedResource::mustRevalidate): Changed to call a specific API to get at
        the bits in quest instead of a general "cache control directives" API.

        * platform/network/ResourceResponseBase.cpp:
        (WebCore::ResourceResponseBase::setHTTPHeaderField): Remove the logic for the
        pragma header field since no one is using this for now.
        (WebCore::ResourceResponseBase::parseCacheControlDirectives): Eliminated the return
        value and made this function have side effects only. Changed it so it's the caller's
        responsibility to check m_haveParsedCacheControl. Set m_cacheControlContainsNoCache
        and m_cacheControlContainsMustRevalidate rather than keeping a map around.

        * platform/network/ResourceResponseBase.h:
        (WebCore::ResourceResponseBase::cacheControlContainsNoCache): Added.
        (WebCore::ResourceResponseBase::cacheControlContainsMustRevalidate): Added.
        (WebCore::ResourceResponseBase::ResourceResponseBase): Updated since I removed
        m_haveParsedCacheControl and renamed m_haveParsedCacheControlHeader to remove
        the imprecise use of the term "header".

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

12 years ago Build fix.
sfalken@apple.com [Thu, 18 Dec 2008 23:07:56 +0000 (23:07 +0000)]
    Build fix.
        Delete 2nd copy of code in these files.

        * platform/animation/Animation.cpp:
        * platform/animation/Animation.h:
        * platform/animation/AnimationList.cpp:
        * platform/animation/AnimationList.h:
        * platform/animation/TimingFunction.h:
        * platform/graphics/transforms/AffineTransform.cpp:
        * platform/graphics/transforms/AffineTransform.h:
        * platform/graphics/transforms/IdentityTransformOperation.h:
        * platform/graphics/transforms/MatrixTransformOperation.cpp:
        * platform/graphics/transforms/MatrixTransformOperation.h:
        * platform/graphics/transforms/RotateTransformOperation.cpp:
        * platform/graphics/transforms/RotateTransformOperation.h:
        * platform/graphics/transforms/ScaleTransformOperation.cpp:
        * platform/graphics/transforms/ScaleTransformOperation.h:
        * platform/graphics/transforms/SkewTransformOperation.cpp:
        * platform/graphics/transforms/SkewTransformOperation.h:
        * platform/graphics/transforms/TransformOperation.h:
        * platform/graphics/transforms/TransformOperations.cpp:
        * platform/graphics/transforms/TransformOperations.h:
        * platform/graphics/transforms/TranslateTransformOperation.cpp:
        * platform/graphics/transforms/TranslateTransformOperation.h:

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

12 years agoPartial build fix.
sfalken@apple.com [Thu, 18 Dec 2008 22:51:35 +0000 (22:51 +0000)]
Partial build fix.

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

12 years ago2008-12-18 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Thu, 18 Dec 2008 22:14:53 +0000 (22:14 +0000)]
2008-12-18  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Sam Weinig.

        Just a tidy up - rename & refactor some the #defines configuring the JIT.

        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::cti_op_convert_this):
        (JSC::Interpreter::cti_op_end):
        (JSC::Interpreter::cti_op_add):
        (JSC::Interpreter::cti_op_pre_inc):
        (JSC::Interpreter::cti_timeout_check):
        (JSC::Interpreter::cti_register_file_check):
        (JSC::Interpreter::cti_op_loop_if_less):
        (JSC::Interpreter::cti_op_loop_if_lesseq):
        (JSC::Interpreter::cti_op_new_object):
        (JSC::Interpreter::cti_op_put_by_id_generic):
        (JSC::Interpreter::cti_op_get_by_id_generic):
        (JSC::Interpreter::cti_op_put_by_id):
        (JSC::Interpreter::cti_op_put_by_id_second):
        (JSC::Interpreter::cti_op_put_by_id_fail):
        (JSC::Interpreter::cti_op_get_by_id):
        (JSC::Interpreter::cti_op_get_by_id_second):
        (JSC::Interpreter::cti_op_get_by_id_self_fail):
        (JSC::Interpreter::cti_op_get_by_id_proto_list):
        (JSC::Interpreter::cti_op_get_by_id_proto_list_full):
        (JSC::Interpreter::cti_op_get_by_id_proto_fail):
        (JSC::Interpreter::cti_op_get_by_id_array_fail):
        (JSC::Interpreter::cti_op_get_by_id_string_fail):
        (JSC::Interpreter::cti_op_instanceof):
        (JSC::Interpreter::cti_op_del_by_id):
        (JSC::Interpreter::cti_op_mul):
        (JSC::Interpreter::cti_op_new_func):
        (JSC::Interpreter::cti_op_call_JSFunction):
        (JSC::Interpreter::cti_op_call_arityCheck):
        (JSC::Interpreter::cti_vm_dontLazyLinkCall):
        (JSC::Interpreter::cti_vm_lazyLinkCall):
        (JSC::Interpreter::cti_op_push_activation):
        (JSC::Interpreter::cti_op_call_NotJSFunction):
        (JSC::Interpreter::cti_op_create_arguments):
        (JSC::Interpreter::cti_op_create_arguments_no_params):
        (JSC::Interpreter::cti_op_tear_off_activation):
        (JSC::Interpreter::cti_op_tear_off_arguments):
        (JSC::Interpreter::cti_op_profile_will_call):
        (JSC::Interpreter::cti_op_profile_did_call):
        (JSC::Interpreter::cti_op_ret_scopeChain):
        (JSC::Interpreter::cti_op_new_array):
        (JSC::Interpreter::cti_op_resolve):
        (JSC::Interpreter::cti_op_construct_JSConstruct):
        (JSC::Interpreter::cti_op_construct_NotJSConstruct):
        (JSC::Interpreter::cti_op_get_by_val):
        (JSC::Interpreter::cti_op_resolve_func):
        (JSC::Interpreter::cti_op_sub):
        (JSC::Interpreter::cti_op_put_by_val):
        (JSC::Interpreter::cti_op_put_by_val_array):
        (JSC::Interpreter::cti_op_lesseq):
        (JSC::Interpreter::cti_op_loop_if_true):
        (JSC::Interpreter::cti_op_negate):
        (JSC::Interpreter::cti_op_resolve_base):
        (JSC::Interpreter::cti_op_resolve_skip):
        (JSC::Interpreter::cti_op_resolve_global):
        (JSC::Interpreter::cti_op_div):
        (JSC::Interpreter::cti_op_pre_dec):
        (JSC::Interpreter::cti_op_jless):
        (JSC::Interpreter::cti_op_not):
        (JSC::Interpreter::cti_op_jtrue):
        (JSC::Interpreter::cti_op_post_inc):
        (JSC::Interpreter::cti_op_eq):
        (JSC::Interpreter::cti_op_lshift):
        (JSC::Interpreter::cti_op_bitand):
        (JSC::Interpreter::cti_op_rshift):
        (JSC::Interpreter::cti_op_bitnot):
        (JSC::Interpreter::cti_op_resolve_with_base):
        (JSC::Interpreter::cti_op_new_func_exp):
        (JSC::Interpreter::cti_op_mod):
        (JSC::Interpreter::cti_op_less):
        (JSC::Interpreter::cti_op_neq):
        (JSC::Interpreter::cti_op_post_dec):
        (JSC::Interpreter::cti_op_urshift):
        (JSC::Interpreter::cti_op_bitxor):
        (JSC::Interpreter::cti_op_new_regexp):
        (JSC::Interpreter::cti_op_bitor):
        (JSC::Interpreter::cti_op_call_eval):
        (JSC::Interpreter::cti_op_throw):
        (JSC::Interpreter::cti_op_get_pnames):
        (JSC::Interpreter::cti_op_next_pname):
        (JSC::Interpreter::cti_op_push_scope):
        (JSC::Interpreter::cti_op_pop_scope):
        (JSC::Interpreter::cti_op_typeof):
        (JSC::Interpreter::cti_op_is_undefined):
        (JSC::Interpreter::cti_op_is_boolean):
        (JSC::Interpreter::cti_op_is_number):
        (JSC::Interpreter::cti_op_is_string):
        (JSC::Interpreter::cti_op_is_object):
        (JSC::Interpreter::cti_op_is_function):
        (JSC::Interpreter::cti_op_stricteq):
        (JSC::Interpreter::cti_op_nstricteq):
        (JSC::Interpreter::cti_op_to_jsnumber):
        (JSC::Interpreter::cti_op_in):
        (JSC::Interpreter::cti_op_push_new_scope):
        (JSC::Interpreter::cti_op_jmp_scopes):
        (JSC::Interpreter::cti_op_put_by_index):
        (JSC::Interpreter::cti_op_switch_imm):
        (JSC::Interpreter::cti_op_switch_char):
        (JSC::Interpreter::cti_op_switch_string):
        (JSC::Interpreter::cti_op_del_by_val):
        (JSC::Interpreter::cti_op_put_getter):
        (JSC::Interpreter::cti_op_put_setter):
        (JSC::Interpreter::cti_op_new_error):
        (JSC::Interpreter::cti_op_debug):
        (JSC::Interpreter::cti_vm_throw):
        * interpreter/Interpreter.h:
        * jit/JIT.cpp:
        (JSC::):
        (JSC::JIT::privateCompileMainPass):
        (JSC::JIT::privateCompile):
        * jit/JIT.h:
        * jit/JITInlineMethods.h:
        (JSC::JIT::restoreArgumentReference):
        (JSC::JIT::restoreArgumentReferenceForTrampoline):
        * wtf/Platform.h:

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

12 years ago2008-12-18 Dimitri Glazkov <dglazkov@chromium.org>
darin@chromium.org [Thu, 18 Dec 2008 21:21:13 +0000 (21:21 +0000)]
2008-12-18  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Geoffrey Garen.

        https://bugs.webkit.org/show_bug.cgi?id=22859
        Abstract away the use of JSDOMWindow in CachedPage and introduce
        ScriptCachedPageData abstraction.

        * GNUmakefile.am: Added ScriptCachedPageData to project.
        * WebCore.pro: Added ScriptCachedPageData to project.
        * WebCore.vcproj/WebCore.vcproj: Added ScriptCachedPageData to project.
        * WebCore.xcodeproj/project.pbxproj: Added ScriptCachedPageData to
            project.
        * bindings/js/ScriptCachedPageData.cpp: Added.
        (WebCore::ScriptCachedPageData::ScriptCachedPageData):
        (WebCore::ScriptCachedPageData::~ScriptCachedPageData):
        (WebCore::ScriptCachedPageData::restore):
        (WebCore::ScriptCachedPageData::clear):
        * bindings/js/ScriptCachedPageData.h: Added.
        * history/CachedPage.cpp: Replaced JSDOMWindow and ProtectedPtr with
            ScriptCachedPageData.
        (WebCore::CachedPage::CachedPage):
        (WebCore::CachedPage::domWindow):
        (WebCore::CachedPage::restore):
        (WebCore::CachedPage::clear):
        * history/CachedPage.h: Replaced JSDOMWindow and ProtectedPtr with
            ScriptCachedPageData.

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

12 years ago Reviewed by Dave Hyatt.
cmarrin@apple.com [Thu, 18 Dec 2008 21:06:22 +0000 (21:06 +0000)]
    Reviewed by Dave Hyatt.

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

        To avoid future dependency issues, all the TransformOperations and Animation related files need to be moved to platform

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

12 years ago2008-12-18 Cameron Zwarich <zwarich@apple.com>
cwzwarich@webkit.org [Thu, 18 Dec 2008 18:19:06 +0000 (18:19 +0000)]
2008-12-18  Cameron Zwarich  <zwarich@apple.com>

        Reviewed by Geoff Garen.

        Bug 21855: REGRESSION (r37323): Gmail complains about popup blocking when opening a link
        <https://bugs.webkit.org/show_bug.cgi?id=21855>
        <rdar://problem/6278244>

        If JavaScript is not currently executing, the handleEvent member function
        of JSAbstractEventListener should set the dynamic global object to the
        global object of the context in which the event occurred.

        If this is not set, then JavaScriptCore will simply take the global object
        of the context where the event handler function was created, which may be
        a different frame. This will cause the popup blocker to incorrectly block
        windows opened from onclick events inside of an iframe whose handler was
        created in the outer frame, as it will check the outer frame and see that
        it is not processing any events.

        JavaScriptCore:

        * interpreter/Interpreter.cpp:
        * runtime/JSGlobalObject.h:
        (JSC::DynamicGlobalObjectScope::DynamicGlobalObjectScope):
        (JSC::DynamicGlobalObjectScope::~DynamicGlobalObjectScope):

        WebCore:

        * bindings/js/JSEventListener.cpp:
        (WebCore::JSAbstractEventListener::handleEvent):

        WebKitTools:

        * DumpRenderTree/mac/EventSendingController.h:
        * DumpRenderTree/mac/EventSendingController.mm:
        (+[EventSendingController isSelectorExcludedFromWebScript:]): Expose
        scheduleAsynchronousClick to JavaScript.
        (-[EventSendingController scheduleAsynchronousClick]): Add.

        LayoutTests:

        * fast/events/popup-blocking-click-in-iframe-expected.txt: Added.
        * fast/events/popup-blocking-click-in-iframe.html: Added.
        * fast/events/resources/popup-blocking-click-in-iframe-otherFrame.html: Added.
        * platform/gtk/Skipped:
        * platform/qt/Skipped:
        * platform/win/Skipped:

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

12 years ago2008-12-18 Pamela Greene <pam@chromium.org>
pam@chromium.org [Thu, 18 Dec 2008 18:02:47 +0000 (18:02 +0000)]
2008-12-18  Pamela Greene  <pam@chromium.org>

        Submitted without review.
        Right, remove the whole misplaced directory, not just the tests.

        * fast: Removed.
        * fast/dom: Removed.

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

12 years agoRoot level:
pam@chromium.org [Thu, 18 Dec 2008 17:56:31 +0000 (17:56 +0000)]
Root level:

2008-12-18  Pamela Greene  <pam@chromium.org>

        Submitted without review.
        Moving layout test into LayoutTests where it belongs.

        * fast/dom/setter-type-enforcement-expected.txt: Removed.
        * fast/dom/setter-type-enforcement.html: Removed.

LayoutTests:

2008-12-18  Pamela Greene  <pam@chromium.org>

        Submitted without review.
        Moving layout test from root level into LayoutTests where it belongs.

        * fast/dom/setter-type-enforcement-expected.txt: Copied from fast/dom/setter-type-enforcement-expected.txt.
        * fast/dom/setter-type-enforcement.html: Copied from fast/dom/setter-type-enforcement.html.

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

12 years agoJavaScriptCore:
ggaren@apple.com [Thu, 18 Dec 2008 17:45:44 +0000 (17:45 +0000)]
JavaScriptCore:

2008-12-17  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Gavin Barraclough.

        Fixed https://bugs.webkit.org/show_bug.cgi?id=22393
        Segfault when caching property accesses to primitive cells.

        Changed some asObject casts to asCell casts in cases where a primitive
        value may be a cell and not an object.

        Re-enabled property caching for primitives in cases where it had been
        disabled because of this bug.

        Updated a comment to better explain something Darin thought needed
        explaining in an old patch review.

        * interpreter/Interpreter.cpp:
        (JSC::countPrototypeChainEntriesAndCheckForProxies):
        (JSC::Interpreter::tryCacheGetByID):
        (JSC::Interpreter::tryCTICacheGetByID):
        (JSC::Interpreter::cti_op_get_by_id_self_fail):
        (JSC::Interpreter::cti_op_get_by_id_proto_list):

LayoutTests:

2008-12-17  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Gavin Barraclough.

        Added a test for https://bugs.webkit.org/show_bug.cgi?id=22393
        Segfault when caching property accesses to primitive cells.

        * fast/js/primitive-property-access-edge-cases-expected.txt: Added.
        * fast/js/primitive-property-access-edge-cases.html: Added.
        * fast/js/resources/primitive-property-access-edge-cases.js: Added.
        ():

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

12 years ago2008-12-17 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Thu, 18 Dec 2008 17:42:27 +0000 (17:42 +0000)]
2008-12-17  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dave Hyatt

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

        Add the ability to compute clip rects independently from
        caching them on the RenderLayer. When painting reflections, use
        such temporarily computed clipRects, otherwise the layer may cache
        clipRects which are invalid, since they have been computed with
        a rootLayer that is not the one usually used to paint.

        Test: fast/reflections/reflection-overflow-hidden.html

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

12 years ago2008-12-17 Laszlo Gombos <laszlo.1.gombos@nokia.com>
vestbo@webkit.org [Thu, 18 Dec 2008 14:37:51 +0000 (14:37 +0000)]
2008-12-17  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

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

        Fix MinGW QtWebKit linking problems and also make the
        QtWebKit build system more robust.

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

12 years ago2008-12-17 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Thu, 18 Dec 2008 07:02:29 +0000 (07:02 +0000)]
2008-12-17  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Cameron Zwarich.

        Fixes for Sunspider failures with the JIT enabled on x86-64.

        * assembler/MacroAssembler.h:
            Switch the order of the RegisterID & Address form of je32, to keep it consistent with jne32.
        * jit/JIT.cpp:
        * jit/JIT.h:
        * jit/JITInlineMethods.h:
            Port the m_ctiVirtualCall tramopline generation to use the MacroAssembler interface.
        * jit/JITCall.cpp:
            Fix bug in the non-optimizing code path, vptr check should have been to the memory address pointer
            to by the register, not to the register itself.
        * wrec/WRECGenerator.cpp:
            See assembler/MacroAssembler.h, above.

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

12 years ago2008-12-17 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Thu, 18 Dec 2008 03:38:10 +0000 (03:38 +0000)]
2008-12-17  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Sam Weinig.

        print("Hello, 64-bit jitted world!");
        Get hello-world working through the JIT, on x86-64.

        * assembler/X86Assembler.h:
            Fix encoding of opcode + RegisterID format instructions for 64-bit.
        * interpreter/Interpreter.cpp:
        * interpreter/Interpreter.h:
            Make VoidPtrPair actually be a pair of void*s.
            (Possibly should make this change for 32-bit Mac platforms, too - but won't change 32-bit behaviour in this patch).
        * jit/JIT.cpp:
        * jit/JIT.h:
            Provide names for the timeoutCheckRegister & callFrameRegister on x86-64,
            force x86-64 ctiTrampoline arguments onto the stack,
            implement the asm trampolines for x86-64,
            implement the restoreArgumentReference methods for x86-64 calling conventions.
        * jit/JITCall.cpp:
        * jit/JITInlineMethods.h:
        * wtf/Platform.h:
            Add switch settings to ENABLE(JIT), on PLATFORM(X86_64) (currently still disabled).

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

12 years agoReviewed by Maciej Stachowiak.
zimmermann@webkit.org [Thu, 18 Dec 2008 01:56:52 +0000 (01:56 +0000)]
Reviewed by Maciej Stachowiak.

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

wml.css is based on an older copy of html4.css. Synchronize them.
Remove all entries, that are irrelevant for WML.

Fix <do> appearance: should behave like HTMLs <button>.

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

12 years ago2008-12-17 Sam Weinig <sam@webkit.org>
weinig@apple.com [Thu, 18 Dec 2008 00:00:01 +0000 (00:00 +0000)]
2008-12-17  Sam Weinig  <sam@webkit.org>

        Reviewed by Gavin Barraclough.

        Add more CodeBlock statistics.

        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::dumpStatistics):

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

12 years ago2008-12-17 Yury Semikhatsky <yurys@google.com>
abarth@webkit.org [Wed, 17 Dec 2008 22:16:52 +0000 (22:16 +0000)]
2008-12-17  Yury Semikhatsky <yurys@google.com>

        Reviewed by Timothy Hatcher.
        Landed by Adam Barth.

        Added more checks that WebInspector.panels.{resources,scripts} are
        defined where they are accessed from other panels and WebInspector
        (some panels are not yet supported in Chrome).

        * inspector/front-end/Console.js:
        (WebInspector.Console.prototype.addMessage):
        (WebInspector.Console.prototype.clearMessages):
        (WebInspector.Console.prototype.completions):
        * inspector/front-end/ObjectPropertiesSection.js:
        (WebInspector.ObjectPropertyTreeElement.prototype.evaluateExpression):
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.get searchableViews):
        (WebInspector.ScriptsPanel.prototype._sourceViewForScriptOrResource):
        (WebInspector.ScriptsPanel.prototype._sourceFrameForScriptOrResource):
        (WebInspector.ScriptsPanel.prototype._showScriptOrResource):
        * inspector/front-end/SourceView.js:
        (WebInspector.SourceView.prototype._addBreakpoint):
        * inspector/front-end/inspector.js:
        (WebInspector.addResource):
        (WebInspector.removeResource):
        (WebInspector.showResourceForURL):

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

12 years ago2008-12-17 Sam Weinig <sam@webkit.org>
weinig@apple.com [Wed, 17 Dec 2008 21:25:40 +0000 (21:25 +0000)]
2008-12-17  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=22897
        <rdar://problem/6428342>
        Look into feasibility of discarding bytecode after native codegen

        Clear the bytecode Instruction vector at the end JIT generation.

        Saves 4.8 MB on Membuster head.

        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::dump): Add logging for the case that someone tries
        to dump the instructions of a CodeBlock that has had its bytecode
        vector cleared.
        (JSC::CodeBlock::CodeBlock): Initialize the instructionCount
        (JSC::CodeBlock::handlerForBytecodeOffset): Use instructionCount instead
        of the size of the instruction vector in the assertion.
        (JSC::CodeBlock::lineNumberForBytecodeOffset): Ditto.
        (JSC::CodeBlock::expressionRangeForBytecodeOffset): Ditto.
        (JSC::CodeBlock::getByIdExceptionInfoForBytecodeOffset): Ditto.
        (JSC::CodeBlock::functionRegisterForBytecodeOffset): Ditto.
        * bytecode/CodeBlock.h:
        (JSC::CodeBlock::setInstructionCount): Store the instruction vector size
        in debug builds for assertions.
        * bytecompiler/BytecodeGenerator.cpp:
        (JSC::BytecodeGenerator::generate):
        * jit/JIT.cpp:
        (JSC::JIT::privateCompile): Clear the bytecode vector unless we
        have compiled with Opcode sampling where we will continue to require it

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

12 years ago2008-12-17 Feng Qian <feng@chromium.org>
abarth@webkit.org [Wed, 17 Dec 2008 21:12:57 +0000 (21:12 +0000)]
2008-12-17  Feng Qian <feng@chromium.org>

        Reviewed by Alexey Proskuryakov.
        Landed by Adam Barth.

        https://bugs.webkit.org/show_bug.cgi?id=21948
        Change two tests to use the host url in XMLHttpRequest so that
        it does not fail because of Chrome's file URL security policy.
        It does not affect the expected behaviors of tests.
        * fast/dom/null-document-xmlhttprequest-open.html:
        * fast/dom/xmlhttprequest-invalid-values.html:

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

12 years ago2008-12-17 Pamela Greene <pam@chromium.org>
abarth@webkit.org [Wed, 17 Dec 2008 21:12:27 +0000 (21:12 +0000)]
2008-12-17  Pamela Greene  <pam@chromium.org>

        Reviewed by Darin Adler.
        Landed by Adam Barth.

        https://bugs.webkit.org/show_bug.cgi?id=22577
        Add a test to ensure that checkboxes and radio buttons with duplicate
        names map to a collection.

        * fast/dom/HTMLInputElement/duplicate-element-names-expected.txt: Added.
        * fast/dom/HTMLInputElement/duplicate-element-names.html: Added.

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

12 years ago2008-12-17 Pamela Greene <pam@chromium.org>
abarth@webkit.org [Wed, 17 Dec 2008 21:11:57 +0000 (21:11 +0000)]
2008-12-17  Pamela Greene  <pam@chromium.org>

        Reviewed by Darin Adler.
        Landed by Adam Barth.

        https://bugs.webkit.org/show_bug.cgi?id=22612
        Add test to verify type enforcement in DOM setters.

        * fast/dom/setter-type-enforcement-expected.txt: Added.
        * fast/dom/setter-type-enforcement.html: Added.

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

12 years agoWebCore:
abarth@webkit.org [Wed, 17 Dec 2008 21:11:31 +0000 (21:11 +0000)]
WebCore:

2008-12-17  Cary Clark  < caryclark@google.com>

        Reviewed by Darin Adler.
        Landed by Adam Barth.

        Add ENABLE_TEXT_CARET to permit the ANDROID platform
        to invalidate and draw the caret in a separate thread.

        * page/Frame.cpp:
        (WebCore::Frame::clearCaretRectIfNeeded): Body of
        function does nothing if text caret is disabled.
        (WebCore::Frame::selectionLayoutChanged): Do nothing
        if text caret is disabled and the caret only blinked.
        (WebCore::Frame::caretBlinkTimerFired):
        (WebCore::Frame::paintCaret):
        (WebCore::Frame::paintDragCaret): Body of
        functions does nothing if text caret is disabled.

JavaScriptCore:

2008-12-17  Cary Clark  <caryclark@google.com>

        Reviewed by Darin Adler.
        Landed by Adam Barth.

        Add ENABLE_TEXT_CARET to permit the ANDROID platform
        to invalidate and draw the caret in a separate thread.

        * wtf/Platform.h:
        Default ENABLE_TEXT_CARET to 1.

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

12 years agoRubber-stamped by Timothy Hatcher.
zimmermann@webkit.org [Wed, 17 Dec 2008 19:01:41 +0000 (19:01 +0000)]
Rubber-stamped by Timothy Hatcher.

Fix wml/ tests, by doing s/</\&lt;/ and s/>/\&gt;/.
Not sure why this problem wasn't visible before, something has changed.

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

12 years ago Reviewed by Darin Adler.
ap@webkit.org [Wed, 17 Dec 2008 18:10:51 +0000 (18:10 +0000)]
    Reviewed by Darin Adler.

        Don't use unique context group in JSGlobalContextCreate() on Tiger or Leopard, take two.

        * API/JSContextRef.cpp: The previous patch that claimed to do this was making Tiger and
        Leopard always use unique context group instead.

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

12 years ago2008-12-16 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Wed, 17 Dec 2008 13:41:36 +0000 (13:41 +0000)]
2008-12-16  Simon Hausmann  <hausmann@webkit.org>

        Reviewed by Holger Freyther.

        Added support for unload event counting to the Qt DRT.

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

12 years ago2008-12-16 Simon Hausmann <hausmann@webkit.org>
hausmann@webkit.org [Wed, 17 Dec 2008 13:41:19 +0000 (13:41 +0000)]
2008-12-16  Simon Hausmann  <hausmann@webkit.org>

        Reviewed by Holger Freyther.

        Added mac API specific loader test to the skip list for the Qt DRT.

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

12 years ago2008-12-16 Antti Koivisto <antti@apple.com>
antti@apple.com [Wed, 17 Dec 2008 12:15:31 +0000 (12:15 +0000)]
2008-12-16  Antti Koivisto  <antti@apple.com>

        Reviewed by John Sullivan.

        Add version check for shift-reload behavior.

        * Misc/WebKitVersionChecks.h:
        * WebView/WebFrame.mm:
        (-[WebFrame reload]):

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

12 years agoVersioning.
mrowe@apple.com [Wed, 17 Dec 2008 07:36:55 +0000 (07:36 +0000)]
Versioning.

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

12 years ago2008-12-16 Sam Weinig <sam@webkit.org>
weinig@apple.com [Wed, 17 Dec 2008 06:30:17 +0000 (06:30 +0000)]
2008-12-16  Sam Weinig  <sam@webkit.org>

        Reviewed by Geoffrey Garen.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=22838
        Remove dependency on the bytecode Instruction buffer in Interpreter::throwException
        Part of <rdar://problem/6428342>

        * bytecode/CodeBlock.cpp:
        (JSC::CodeBlock::functionRegisterForBytecodeOffset): Added. Function to get
        a function Register index in a callFrame for a bytecode offset.
        (JSC::CodeBlock::shrinkToFit): Shrink m_getByIdExceptionInfo and m_functionRegisterInfos.
        * bytecode/CodeBlock.h:
        (JSC::FunctionRegisterInfo::FunctionRegisterInfo): Added.
        (JSC::CodeBlock::addFunctionRegisterInfo):
        * bytecompiler/BytecodeGenerator.cpp:
        (JSC::BytecodeGenerator::emitCall):
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::throwException): Use functionRegisterForBytecodeOffset in JIT
        mode.

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

12 years ago Windows build fix.
sfalken@apple.com [Wed, 17 Dec 2008 06:25:42 +0000 (06:25 +0000)]
    Windows build fix.

        Reviewed by Stephanie Lewis.

        * COMPropertyBag.h:
        (::createInstance):
        (::adopt):
        (::QueryInterface):
        (::AddRef):
        (::Release):
        (::Read):
        (::Write):
        (::CountProperties):
        (::GetPropertyInfo):
        (::LoadObject):
        * WebURLResponse.cpp:
        (WebURLResponse::allHeaderFields):

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

12 years ago2008-12-16 Stephanie Lewis <slewis@apple.com>
slewis@apple.com [Wed, 17 Dec 2008 02:35:44 +0000 (02:35 +0000)]
2008-12-16  Stephanie Lewis  <slewis@apple.com>

        Another Windows Build Fix.

        * WebURLResponse.cpp:
        (WebURLResponse::allHeaderFields):

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

12 years ago2008-12-16 Sam Weinig <sam@webkit.org>
weinig@apple.com [Wed, 17 Dec 2008 02:34:59 +0000 (02:34 +0000)]
2008-12-16  Sam Weinig  <sam@webkit.org>

        Reviewed by Gavin Barraclough.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=22837
        Remove dependency on the bytecode Instruction buffer in Interpreter::cti_op_call_NotJSFunction
        Part of <rdar://problem/6428342>

        * interpreter/CallFrame.h: Added comment regarding returnPC storing a void*.
        * interpreter/Interpreter.cpp:
        (JSC::bytecodeOffsetForPC): We no longer have any cases of the PC
        being in the instruction stream for JIT, so we can remove the check.
        (JSC::Interpreter::cti_op_call_NotJSFunction): Use the CTI_RETURN_ADDRESS
        as the call frame returnPC as it is only necessary for looking up when
        throwing an exception.
        * interpreter/RegisterFile.h:
        (JSC::RegisterFile::): Added comment regarding returnPC storing a void*.
        * jit/JIT.h: Remove ARG_instr4.
        * jit/JITCall.cpp:
        (JSC::JIT::compileOpCallSetupArgs): Don't pass the instruction pointer.

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

12 years ago2008-12-16 Darin Adler <darin@apple.com>
cwzwarich@webkit.org [Wed, 17 Dec 2008 02:23:02 +0000 (02:23 +0000)]
2008-12-16  Darin Adler  <darin@apple.com>

        Reviewed and landed by Cameron Zwarich.

        Preparatory work for fixing

        Bug 22887: Make UString::Rep use RefCounted rather than implementing its own ref counting
        <https://bugs.webkit.org/show_bug.cgi?id=22887>

        Change the various string translators used by Identifier:add() so that
        they never zero the ref count of a newly created UString::Rep. Also,
        change similar code for AtomicString to use the same idiomatic style.

        JavaScriptCore:

        * runtime/Identifier.cpp:
        (JSC::CStringTranslator::translate):
        (JSC::Identifier::add):
        (JSC::UCharBufferTranslator::translate):

        WebCore:

        * platform/text/AtomicString.cpp:
        (WebCore::AtomicString::add):

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

12 years ago2008-12-16 Adele Peterson <adele@apple.com>
adele@apple.com [Wed, 17 Dec 2008 01:54:55 +0000 (01:54 +0000)]
2008-12-16  Adele Peterson  <adele@apple.com>

        Reviewed by Darin Adler.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=22827
        <rdar://problem/6247724> RenderThemeWin buttons have weird heavy text

        * rendering/RenderThemeWin.cpp:
        (WebCore::fillFontDescription): Add version that takes a font size.
        (WebCore::RenderThemeWin::systemFont): Use the default GUI font for control fonts, but specify the size.
        This will match Firefox.

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

12 years ago2008-12-16 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Wed, 17 Dec 2008 01:27:13 +0000 (01:27 +0000)]
2008-12-16  Gavin Barraclough  <barraclough@apple.com>

        Build fix for 'doze.

        * assembler/AssemblerBuffer.h:

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

12 years ago2008-12-16 Stephanie Lewis <slewis@apple.com>
slewis@apple.com [Wed, 17 Dec 2008 01:11:00 +0000 (01:11 +0000)]
2008-12-16  Stephanie Lewis  <slewis@apple.com>

        Another build fix.

        * platform/text/AtomicString.h:
        (WebCore::AtomicString::AtomicString):

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

12 years ago2008-12-16 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 17 Dec 2008 01:10:15 +0000 (01:10 +0000)]
2008-12-16  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Start sending keyboard events to the plug-in host.

        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::keyEvent):
        * Plugins/Hosted/WebHostedNetscapePluginView.mm:
        (-[WebHostedNetscapePluginView keyDown:]):
        (-[WebHostedNetscapePluginView keyUp:]):
        * Plugins/Hosted/WebKitPluginHost.defs:

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

12 years ago2008-12-16 Stephanie Lewis <slewis@apple.com>
slewis@apple.com [Wed, 17 Dec 2008 00:57:35 +0000 (00:57 +0000)]
2008-12-16  Stephanie Lewis  <slewis@apple.com>

        Windows Build Fix.

        * platform/text/AtomicString.h:
        (WebCore::AtomicString::AtomicString):
        (WebCore::AtomicString::createCFString):

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

12 years ago2008-12-16 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 17 Dec 2008 00:11:52 +0000 (00:11 +0000)]
2008-12-16  Anders Carlsson  <andersca@apple.com>

        Reviewed by Kevin Decker.

        <rdar://problem/6450538>

        Fix flag enumeration.

        * Plugins/Hosted/WebKitPluginHostTypes.h:

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

12 years ago2008-12-16 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 17 Dec 2008 00:03:56 +0000 (00:03 +0000)]
2008-12-16  Anders Carlsson  <andersca@apple.com>

        Reviewed by Kevin Decker.

        Instead of passing a gazillion booleans to WKPCLoadURL, pass a single set of flags.

        * Plugins/Hosted/NetscapePluginHostProxy.mm:
        (WKPCLoadURL):
        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::loadURL):
        * Plugins/Hosted/WebKitPluginClient.defs:
        * Plugins/Hosted/WebKitPluginHostTypes.h:

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

12 years ago2008-12-16 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Wed, 17 Dec 2008 00:03:34 +0000 (00:03 +0000)]
2008-12-16  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Cameron Zwarich.

        Make the JIT compile on x86-64.
        This largely involves populting the missing calls in MacroAssembler.h.
        In addition some reinterpret_casts need removing from the JIT, and the
        repatching property access code will need to be fully compiled out for
        now.  The changes in interpret.cpp are to reorder the functions so that
        the _generic forms come before all other property access methods, and
        then to place all property access methods other than the generic forms
        under control of the ENABLE_JIT_OPTIMIZE_PROPERTY_ACCESS macro.

        No performance impact.

        * assembler/AssemblerBuffer.h:
        (JSC::AssemblerBuffer::putInt64Unchecked):
        * assembler/MacroAssembler.h:
        (JSC::MacroAssembler::loadPtr):
        (JSC::MacroAssembler::load32):
        (JSC::MacroAssembler::storePtr):
        (JSC::MacroAssembler::storePtrWithRepatch):
        (JSC::MacroAssembler::store32):
        (JSC::MacroAssembler::poke):
        (JSC::MacroAssembler::move):
        (JSC::MacroAssembler::testImm64):
        (JSC::MacroAssembler::jePtr):
        (JSC::MacroAssembler::jnePtr):
        (JSC::MacroAssembler::jnzPtr):
        (JSC::MacroAssembler::jzPtr):
        * assembler/X86Assembler.h:
        (JSC::X86Assembler::):
        (JSC::X86Assembler::cmpq_rr):
        (JSC::X86Assembler::cmpq_rm):
        (JSC::X86Assembler::cmpq_im):
        (JSC::X86Assembler::testq_i32m):
        (JSC::X86Assembler::movl_mEAX):
        (JSC::X86Assembler::movl_i32r):
        (JSC::X86Assembler::movl_EAXm):
        (JSC::X86Assembler::movq_rm):
        (JSC::X86Assembler::movq_mEAX):
        (JSC::X86Assembler::movq_mr):
        (JSC::X86Assembler::movq_i64r):
        (JSC::X86Assembler::movl_mr):
        (JSC::X86Assembler::X86InstructionFormatter::oneByteOp64):
        (JSC::X86Assembler::X86InstructionFormatter::immediate64):
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::cti_op_put_by_id_generic):
        (JSC::Interpreter::cti_op_get_by_id_generic):
        (JSC::Interpreter::cti_op_put_by_id):
        (JSC::Interpreter::cti_op_put_by_id_second):
        * jit/JIT.cpp:
        (JSC::JIT::privateCompileMainPass):
        (JSC::JIT::privateCompile):
        (JSC::JIT::privateCompileCTIMachineTrampolines):
        * jit/JITCall.cpp:
        (JSC::JIT::compileOpCallSetupArgs):
        (JSC::JIT::compileOpCall):
        * jit/JITPropertyAccess.cpp:
        (JSC::JIT::compileGetByIdHotPath):
        (JSC::JIT::compilePutByIdHotPath):
        * runtime/JSImmediate.h:
        (JSC::JSImmediate::makeInt):

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

12 years ago2008-12-16 Cameron Zwarich <zwarich@apple.com>
cwzwarich@webkit.org [Tue, 16 Dec 2008 22:36:27 +0000 (22:36 +0000)]
2008-12-16  Cameron Zwarich  <zwarich@apple.com>

        Reviewed by Darin Adler.

        Bug 22869: REGRESSION (r38407): http://news.cnet.com/8301-13579_3-9953533-37.html crashes
        <https://bugs.webkit.org/show_bug.cgi?id=22869>
        <rdar://problem/6402499>

        Before r38407, Structure::m_nameInPrevious was ref'd due to it being
        stored in a PropertyMap. However, PropertyMaps are created lazily after
        r38407, so Structure::m_nameInPrevious is not necessarily ref'd while
        it is being used. Making it a RefPtr instead of a raw pointer fixes
        the problem.

        Unfortunately, the crash in the bug is rather intermittent, and it is
        impossible to add an assertion in UString::Ref::ref() to catch this bug
        because some users of UString::Rep deliberately zero out the reference
        count. Therefore, there is no layout test accompanying this bug fix.

        * runtime/Structure.cpp:
        (JSC::Structure::~Structure): Use get().
        (JSC::Structure::materializePropertyMap): Use get().
        (JSC::Structure::addPropertyTransitionToExistingStructure): Use get().
        (JSC::Structure::addPropertyTransition): Use get().
        * runtime/Structure.h: Make Structure::m_nameInPrevious a RefPtr instead
        of a raw pointer.

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

12 years ago2008-12-16 Peter Kasting <pkasting@google.com>
pkasting@chromium.org [Tue, 16 Dec 2008 21:44:14 +0000 (21:44 +0000)]
2008-12-16  Peter Kasting  <pkasting@google.com>

        Reviewed by David Hyatt.

        https://bugs.webkit.org/show_bug.cgi?id=22885
        Fix memory corruption in GIFImageDecoder.cpp with certain GIFs.

        * platform/image-decoders/gif/GIFImageDecoder.cpp:
        (WebCore::GIFImageDecoder::frameComplete):

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

12 years agoNot reviewed. Attempt to fix win build. No 'using namespace WTF' in this file, needs...
zimmermann@webkit.org [Tue, 16 Dec 2008 21:33:00 +0000 (21:33 +0000)]
Not reviewed. Attempt to fix win build. No 'using namespace WTF' in this file, needs manual WTF:: prefix.
Not sure why the build works as is here.

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

12 years ago2008-12-16 Stephanie Lewis <slewis@apple.com>
slewis@apple.com [Tue, 16 Dec 2008 21:20:38 +0000 (21:20 +0000)]
2008-12-16  Stephanie Lewis  <slewis@apple.com>

        Reviewed by Geoff Garen.

        Change HTTPHeaderMap to use an AtomicString as its key.
        Shaves ~1MB off of the Mozilla Memory Test
        No functionality difference

        * WebCore.xcodeproj/project.pbxproj:
        * inspector/InspectorController.cpp:
        (WebCore::addHeaders):
        * loader/appcache/ApplicationCacheStorage.cpp:
        (WebCore::parseHeader):
        * platform/network/HTTPHeaderMap.h:
        * platform/network/ResourceRequestBase.cpp:
        (WebCore::ResourceRequestBase::httpHeaderField):
        (WebCore::ResourceRequestBase::setHTTPHeaderField):
        (WebCore::ResourceRequestBase::addHTTPHeaderField):
        * platform/network/ResourceRequestBase.h:
        * platform/network/ResourceResponseBase.cpp:
        (WebCore::ResourceResponseBase::httpHeaderField):
        (WebCore::ResourceResponseBase::setHTTPHeaderField):
        * platform/network/ResourceResponseBase.h:
        * platform/text/StringHash.h:
        (WebCore::CaseFoldingHash::hash):
        (WebCore::CaseFoldingHash::equal):
        * xml/XMLHttpRequest.cpp:
        (WebCore::isSetCookieHeader):
        (WebCore::XMLHttpRequest::setRequestHeader):
        (WebCore::XMLHttpRequest::setRequestHeaderInternal):
        (WebCore::XMLHttpRequest::getRequestHeader):
        (WebCore::XMLHttpRequest::getResponseHeader):
        * xml/XMLHttpRequest.h:

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

12 years agoReviewed by Darin Adler.
zimmermann@webkit.org [Tue, 16 Dec 2008 21:15:22 +0000 (21:15 +0000)]
Reviewed by Darin Adler.

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

Unify random number generation in JavaScriptCore & WebCore, by introducing
wtf/RandomNumber.h and moving wtf_random/wtf_random_init out of MathExtras.h.

wtf_random_init() has been renamed to initializeRandomNumberGenerator() and
lives in it's own private header: wtf/RandomNumberSeed.h, only intended to
be used from within JavaScriptCore.

wtf_random() has been renamed to randomNumber() and lives in a public header
wtf/RandomNumber.h, usable from within JavaScriptCore & WebCore. It encapsulates
the code taking care of initializing the random number generator (only when
building without ENABLE(JSC_MULTIPLE_THREADS), otherwhise initializeThreading()
already took care of that).

Functional change on darwin: Use random() instead of rand(), as it got a larger
period (more randomness). HTMLFormElement already contains this implementation
and I just moved it in randomNumber(), as  special case for PLATFORM(DARWIN).

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

12 years ago2008-12-16 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 16 Dec 2008 19:49:05 +0000 (19:49 +0000)]
2008-12-16  Anders Carlsson  <andersca@apple.com>

        Reviewed by Kevin Decker.

        Add trailing null to headers to avoid a crash in the plug-in host.

        * Plugins/Hosted/HostedNetscapePluginStream.mm:
        (WebKit::HostedNetscapePluginStream::didReceiveResponse):

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

12 years ago2008-12-16 Yael Aharon <yael.aharon@nokia.com>
vestbo@webkit.org [Tue, 16 Dec 2008 16:02:46 +0000 (16:02 +0000)]
2008-12-16 Yael Aharon <yael.aharon@nokia.com>

        Reviewed by Tor Arne Vestbø.

        Qt/Win build fix

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

12 years ago[CURL] memory leak of ResouceHandles
zecke@webkit.org [Tue, 16 Dec 2008 15:28:50 +0000 (15:28 +0000)]
[CURL] memory leak of ResouceHandles

http://bugs.webkit.org/show_bug.cgi?id=20777

Fix ResourceHandle ref management to be consistent and correct.
Original patch from Marco Barisione.

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