1. 26 Aug, 2009 14 commits
    • oliver@apple.com's avatar
      [ES5] Implement getOwnPropertyDescriptor · 4b4f785d
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=28724
      
      Reviewed by Gavin Barraclough.
      
      JavaScriptCore:
      Implement the core runtime support for getOwnPropertyDescriptor.
      This adds a virtual getOwnPropertyDescriptor method to every class
      that implements getOwnPropertySlot that shadows the behaviour of
      getOwnPropertySlot.  The alternative would be to make getOwnPropertySlot
      (or PropertySlots in general) provide property attribute information,
      but quick testing showed this to be a regression.
      
      WebCore:
      Implement the WebCore side of getOwnPropertyDescriptor.  This
      requires a custom implementation of getOwnPropertyDescriptor
      for every class with a custom implementation of getOwnPropertySlot.
      
      The bindings generator has been updated to generate appropriate
      versions of getOwnPropertyDescriptor for the general case where
      a custom getOwnPropertyDescriptor is not needed.  ES5 is vague
      about how getOwnPropertyDescriptor should work in the context of
      "host" functions with polymorphic [[GetOwnProperty]], so it seems
      okay that occasionally we "guess" what attributes -- eg. determining
      whether a property is writable.
      
      Test: fast/js/getOwnPropertyDescriptor.html
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47780 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b4f785d
    • xan@webkit.org's avatar
      2009-08-26 Vincent Untz <vuntz@gnome.org> · 8961a506
      xan@webkit.org authored
              Reviewed by Xan Lopez.
      
              GObject checks for NULL (and not 0) in g_object_get, so use that
              as we were already doing elsewhere to make the compiler happy.
      
              * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::MediaPlayerPrivate::hasAudio):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8961a506
    • eric@webkit.org's avatar
      2009-08-26 Alpha Lam <hclam@chromium.org> · 05d2c95d
      eric@webkit.org authored
              Reviewed by David Levin.
      
              RenderThemeMac.mm has incorrect casting for media control element.
              https://bugs.webkit.org/show_bug.cgi?id=28730
      
              MediaControlMuteButtonElement was incorrectly casted to
              MediaControlPlayButtonElement. This is corrected in this patch.
      
              No new tests because this is code cleanup and is already covered by existing
              media layout tests.
      
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintMediaMuteButton):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47778 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      05d2c95d
    • eric@webkit.org's avatar
      2009-08-26 Robert Sesek <rsesek@chromium.org> · f17b4992
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              [Chromium] Multi-value select boxes cannot do non-contiguous selection on Mac
              https://bugs.webkit.org/show_bug.cgi?id=28670
      
              Change the condition regarding the key modifier check for non-contiguous
              selection on a multi-value list from just PLATFORM(MAC) to
              PLATFORM(MAC) || (PLATFORM(CHROMIUM) && PLATFORM(DARWIN)).
      
              No new tests. This patch only changes the condition on which a certain mouse
              event modifier key is used.
      
              * dom/SelectElement.cpp:
              (WebCore::SelectElement::listBoxDefaultEventHandler):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47777 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f17b4992
    • xan@webkit.org's avatar
      2009-08-26 Xan Lopez <xlopez@igalia.com> · 2298afd3
      xan@webkit.org authored
              Reviewed by Gustavo Noronha.
      
              https://bugs.webkit.org/show_bug.cgi?id=28738
              Expose undo/redo functionality in WebKitWebView
      
              Expose undo/redo functionality in WebKitWebView, keeping the
              default bindings as they were.
      
              * WebCoreSupport/EditorClientGtk.cpp:
              (WebKit::):
              * webkit/webkitwebview.cpp:
              (webkit_web_view_real_undo):
              (webkit_web_view_real_redo):
              (webkit_web_view_class_init):
              (webkit_web_view_can_undo):
              (webkit_web_view_undo):
              (webkit_web_view_can_redo):
              (webkit_web_view_redo):
              * webkit/webkitwebview.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47776 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2298afd3
    • barraclough@apple.com's avatar
      How many copies of the parameters do you need? · cf6fa796
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=28701
      
      Reviewed by Darin Adler.
      
      The function parameters in JSC get copied a lot - and unnecessarily so.
      
      Originally this happened due to duplicating FunctionBodyNodes on recompilation,
      though the problem has been exacerbated by copying the parameters from the
      original function body onto the executable, then back onto the real body that
      will be generated (this happens on every function).  And this is all made worse
      since the data structures in question are a little ugly - C style arrays of C++
      objects containing ref counts, so they need a full copy-construct (rather than
      a simple memcpy).
      
      This can all be greatly simplified by just punting the parameters off into
      their own ref-counted object, and forgoing all the copying.
      
      ~no performance change, possible slight progression.
      
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::BytecodeGenerator):
      * bytecompiler/BytecodeGenerator.h:
      (JSC::BytecodeGenerator::makeFunction):
      * parser/Nodes.cpp:
      (JSC::FunctionParameters::FunctionParameters):
      (JSC::FunctionBodyNode::FunctionBodyNode):
      (JSC::FunctionBodyNode::finishParsing):
      * parser/Nodes.h:
      (JSC::FunctionBodyNode::parameters):
      (JSC::FunctionBodyNode::parameterCount):
      * runtime/Executable.cpp:
      (JSC::FunctionExecutable::~FunctionExecutable):
      (JSC::FunctionExecutable::compile):
      (JSC::FunctionExecutable::reparseExceptionInfo):
      (JSC::FunctionExecutable::fromGlobalCode):
      (JSC::FunctionExecutable::paramString):
      * runtime/Executable.h:
      (JSC::FunctionExecutable::FunctionExecutable):
      (JSC::FunctionExecutable::parameterCount):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47775 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf6fa796
    • eric.carlson@apple.com's avatar
      2009-08-25 Eric Carlson <eric.carlson@apple.com> · f706b11d
      eric.carlson@apple.com authored
              Reviewed by Dan Bernstein
      
              r47744 causes media/video-controls-with-mutation-event-handler.html to crash
              https://bugs.webkit.org/show_bug.cgi?id=28732
      
              * rendering/MediaControlElements.cpp:
              (WebCore::MediaControlVolumeSliderElement::MediaControlVolumeSliderElement):
                  Don't call setAttribute from the construtor, any registered mutation event 
                  listener will cause a crash.
      
              * rendering/RenderMedia.cpp:
              (WebCore::RenderMedia::createVolumeSlider):
                  Set the maxAttr here instead of in the constructor.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47774 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f706b11d
    • dimich@chromium.org's avatar
      Unreviewed. Skip the new test fast/dom/Window/timer-resume-on-navigation-back.html · f22ddc27
      dimich@chromium.org authored
      on gtk and qt - their DRT does not yet implement overridePreference.
      
      * platform/gtk/Skipped:
      * platform/qt/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f22ddc27
    • dimich@chromium.org's avatar
      WebCore: Timers from cached pages fire instantly rather than the after the specified timeout delay · 43358768
      dimich@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28683
      
      Reviewed by Brady Eidson.
      
      Test: fast/dom/Window/timer-resume-on-navigation-back.html
      
      * history/CachedPage.cpp:
      (WebCore::CachedPage::restore): Remove duplicated Frame::restore() call, since
          it should be done only once in FrameLoader::open(cachedFrame)
      * page/DOMTimer.cpp: Added a debug-only flag and ASSERT to catch out-of-order suspense/restore.
      (WebCore::DOMTimer::DOMTimer): Ditto.
      (WebCore::DOMTimer::suspend): Ditto.
      (WebCore::DOMTimer::resume): Ditto.
      * page/DOMTimer.h: Ditto.
      
      LayoutTests: Timers from cached pages fire instantly rather than the specified timeout delay
      https://bugs.webkit.org/show_bug.cgi?id=28683
      
      Reviewed by Brady Eidson.
      
      Added test to verify the fix - it uses page cache and measures the timer callback fire time.
      
      * fast/dom/Window/timer-resume-on-navigation-back-expected.txt: Added.
      * fast/dom/Window/timer-resume-on-navigation-back.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43358768
    • eric.carlson@apple.com's avatar
      2009-08-25 Eric Carlson <eric.carlson@apple.com> · 7821e45e
      eric.carlson@apple.com authored
              Reviewed by Simon Fraser.
      
              Setting the volume of a media element has no effect if called too early
              https://bugs.webkit.org/show_bug.cgi?id=28731
      
              * manual-tests/audio-volume.html: 
                  Added.
      
              * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
              (WebCore::MediaPlayerPrivate::setVolume):
              (WebCore::MediaPlayerPrivate::setRate):
                  Don't bail if metadata hasn't been loaded, it is fine to set rate and/or
                  volume as soon as the movie has been created.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7821e45e
    • levin@chromium.org's avatar
      DocumentThreadableLoader::getShouldUseCredentialStorage should allow for... · 1e06d8b2
      levin@chromium.org authored
      DocumentThreadableLoader::getShouldUseCredentialStorage should allow for synchronous callbacks from SubresourceLoader::create.
      https://bugs.webkit.org/show_bug.cgi?id=28728
      
      Patch by David Levin <levin@chromium.org> on 2009-08-25
      Reviewed by Maciej Stachowiak.
      
      Test: This code path is exercised while running xhr layout tests in chromium.
      
      * loader/DocumentThreadableLoader.cpp:
      (WebCore::DocumentThreadableLoader::getShouldUseCredentialStorage): When called
      back synchronously, the loader is 0, so the assert is changed to allow for that.
      (WebCore::DocumentThreadableLoader::loadRequest): Synchronous callbacks may be
      done before SubresourceLoader::create finishes, so ensure that any previous loader
      -- from a preflight request -- is cleared before calling SubresourceLoader::create.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e06d8b2
    • bfulgham@webkit.org's avatar
      Rubber stamped by Steve Falkenburg. · 56cabcfe
      bfulgham@webkit.org authored
      debug_wincairo.vsprops was linking against wrong C runtime.
      
      * win/tools/vsprops/debug_wincairo.vsprops: Link to correct
        C runtime (as in the standard 'debug.vsprops' file.)
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56cabcfe
    • mrowe@apple.com's avatar
      Stop installing IDL files in to the framework. · 94f2d896
      mrowe@apple.com authored
      * WebCore.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94f2d896
    • eric@webkit.org's avatar
      2009-08-25 Kent Tamura <tkent@chromium.org> · 2ed5dc6c
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Support for HTMLInputElement::list and HTMLInputElement::selectedOption.
              https://bugs.webkit.org/show_bug.cgi?id=27756
      
              Tests: fast/forms/input-list.html
                     fast/forms/input-selectedoption.html
      
              * html/HTMLAttributeNames.in:
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::parseMappedAttribute):
              (WebCore::HTMLInputElement::list):
              (WebCore::HTMLInputElement::selectedOption):
              * html/HTMLInputElement.h:
              * html/HTMLInputElement.idl:
      2009-08-25  Kent Tamura  <tkent@chromium.org>
      
              Reviewed by Eric Seidel.
      
              Support for HTMLInputElement::list and HTMLInputElement::selectedOption.
              https://bugs.webkit.org/show_bug.cgi?id=27756
      
              * fast/forms/input-list-expected.txt: Added.
              * fast/forms/input-list.html: Added.
              * fast/forms/input-selectedoption-expected.txt: Added.
              * fast/forms/input-selectedoption.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ed5dc6c
  2. 25 Aug, 2009 26 commits
    • eric@webkit.org's avatar
      2009-08-25 Cameron McCormack <cam@mcc.id.au> · 99134098
      eric@webkit.org authored
              Reviewed by Darin Adler.
      
              make-script-test-wrappers should be executable
              https://bugs.webkit.org/show_bug.cgi?id=28669
      
              Make make-script-test-wrappers and update-sources-list.py both be
              executable.
      
              * Scripts/update-sources-list.py:
              * Scripts/make-script-test-wrappers:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99134098
    • eric.carlson@apple.com's avatar
      2009-08-25 Eric Carlson <eric.carlson@apple.com> · c7790787
      eric.carlson@apple.com authored
              Reviewed by Oliver Hunt.
      
              <video> and <audio> controller should be accessible (edit)
              https://bugs.webkit.org/show_bug.cgi?id=28081
      
              Test: accessibility/media-element.html
      
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
                  Add AccessibilityMediaControls.cpp/.h
      
              * accessibility/AXObjectCache.cpp:
              * accessibility/AXObjectCache.h:
              (WebCore::AXObjectCache::getOrCreate):
                  Create AccessibilityMediaControl. Update Copyright
      
              * accessibility/AccessibilityMediaControls.cpp:
              * accessibility/AccessibilityMediaControls.h:
                  Added.
      
              * accessibility/AccessibilityObject.cpp:
              * accessibility/AccessibilityObject.h:
                  Add isMediaTimeline. Update Copyright.
      
              * accessibility/AccessibilitySlider.h:
                  Make constructor protected instead of private so AccessibilityMediaTimeline can
                  call it.
      
              * accessibility/mac/AccessibilityObjectWrapper.mm:
              (-[AccessibilityObjectWrapper accessibilityAttributeNames]):
                  Add NSAccessibilityValueDescriptionAttribute to range attributes. 
              (-[AccessibilityObjectWrapper subrole]):
                  Return NSAccessibilityTimelineSubrole for AccessibilityMediaTimeline.
      
              * dom/Node.h:
                  add isMediaControlElement.
      
              * page/mac/WebCoreViewFactory.h:
              * platform/LocalizedStrings.h:
              * platform/mac/LocalizedStringsMac.mm:
              (WebCore::localizedMediaControlElementString): 
              (WebCore::localizedMediaControlElementHelpText):
              (WebCore::localizedMediaTimeDescription): 
                  New, return localized media controller strings.
      
              * platform/gtk/LocalizedStringsGtk.cpp:
              (WebCore::mediaElementLoadingStateText):
              (WebCore::mediaElementLiveBroadcastStateText):
                  Move inside of "#if ENABLE(VIDEO)"
              (WebCore::localizedMediaControlElementString):
              (WebCore::localizedMediaControlElementHelpText):
              (WebCore::localizedMediaTimeDescription):
      
              * rendering/MediaControlElements.cpp:
              (WebCore::MediaControlElement::MediaControlElement):
                  Initialize m_displayType.
              (WebCore::MediaControlElement::MediaControlElement):
              (WebCore::MediaControlStatusDisplayElement::MediaControlStatusDisplayElement):
                  Fix style.
              (WebCore::MediaControlInputElement::MediaControlInputElement):
                  Set m_displayType based on pseudo style ID.
              (WebCore::MediaControlInputElement::MediaControlInputElement):
                  rename local "o" to "object".
              (WebCore::MediaControlMuteButtonElement::MediaControlMuteButtonElement):
              (WebCore::MediaControlPlayButtonElement::MediaControlPlayButtonElement):
              (WebCore::MediaControlSeekButtonElement::MediaControlSeekButtonElement):
              (WebCore::MediaControlRewindButtonElement::MediaControlRewindButtonElement):
              (WebCore::MediaControlReturnToRealtimeButtonElement::MediaControlReturnToRealtimeButtonElement):
              (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
              (WebCore::MediaControlFullscreenButtonElement::MediaControlFullscreenButtonElement):
              (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
              (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
              (WebCore::MediaControlTimelineElement::MediaControlTimelineElement):
                  Update for MediaControlInputElement constructor change.
              (WebCore::MediaControlTimeDisplayElement::formatTime):
                  New, moved here from RenderMedia so AccessibilityMediaTimeDisplay can use it.
              (WebCore::MediaControlTimeDisplayElement::setCurrentValue):
                  New, set text to current time.
              * rendering/MediaControlElements.h:
      
              * rendering/RenderMedia.cpp:
              (WebCore::RenderMedia::updateControls):
                  Create controls in tab order.
              (WebCore::RenderMedia::formatTime):
                  Moved to MediaControlTimeDisplayElement::formatTime.
              (WebCore::RenderMedia::updateTimeDisplay):
                  Call MediaControlTimeDisplayElement::setCurrentValue.
              * rendering/RenderMedia.h:
      
      2009-08-25  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Oliver Hunt.
      
              <video> and <audio> controller should be accessible
              https://bugs.webkit.org/show_bug.cgi?id=28081
      
              Add localized strings for media controller accessiblility.
      
              * English.lproj/Localizable.strings:
      
      2009-08-25  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Oliver Hunt.
      
              <video> and <audio> controller should be accessible
              https://bugs.webkit.org/show_bug.cgi?id=28081
      
              * WebCoreSupport/WebViewFactory.mm:
              (-[WebViewFactory localizedMediaControlElementString:]):
              (-[WebViewFactory localizedMediaControlElementHelpText:]):
              (-[WebViewFactory localizedMediaTimeDescription:]):
                  New.
      
      2009-08-25  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Oliver Hunt.
      
              <video> and <audio> controller should be accessible
              https://bugs.webkit.org/show_bug.cgi?id=28081
      
              * WebCoreLocalizedStrings.cpp:
              (WebCore::localizedMediaControlElementString):
              (WebCore::localizedMediaControlElementHelpText):
              (WebCore::localizedMediaTimeDescription):
                  New.
      
      2009-08-25  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Oliver Hunt.
      
              <video> and <audio> controller should be accessible
              https://bugs.webkit.org/show_bug.cgi?id=28081
      
              * accessibility/media-element.html: Added.
              * platform/mac/accessibility/media-element-expected.txt: Added.
              * media/video-controls-visible-audio-only.html:
              * platform/mac-leopard/accessibility/media-element-expected.txt: Added.
              * platform/mac-leopard/media/controls-drag-timebar-expected.txt: Added.
              * platform/mac-leopard/media/controls-strict-expected.txt: Added.
              * platform/mac-leopard/media/video-controls-rendering-expected.txt: Added.
              * platform/mac-leopard/media/video-display-toggle-expected.txt: Added.
              * platform/win/media/controls-strict-expected.txt: Added.
              * platform/win/media/video-controls-rendering-expected.txt: Added.
              * platform/win/media/video-display-toggle-expected.txt: Added.
                  Added.
      
              * platform/mac-leopard/media/audio-controls-rendering-expected.txt:
              * platform/mac-leopard/media/controls-after-reload-expected.txt:
              * platform/mac-leopard/media/controls-styling-expected.txt:
              * platform/mac-leopard/media/video-zoom-controls-expected.txt:
              * platform/mac/media/audio-controls-rendering-expected.txt:
              * platform/mac/media/controls-after-reload-expected.txt:
              * platform/mac/media/controls-styling-expected.txt:
              * platform/mac/media/video-zoom-controls-expected.txt:
              * platform/win/media/audio-controls-rendering-expected.txt:
              * platform/win/media/controls-after-reload-expected.txt:
              * platform/win/media/controls-drag-timebar-expected.txt:
              * platform/win/media/controls-styling-expected.txt:
                  Update for controller element tab order change.
      
              * platform/gtk/Skipped:
              * platform/win/Skipped:
                  Skip new test.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7790787
    • bfulgham@webkit.org's avatar
      WebKit/win: Build fix for Windows. · 8fcf0731
      bfulgham@webkit.org authored
      Revise Debug_Cairo build target to build testapi, jsc, WinLauncher,
      DumpRenderTree, and TestNetscapeAPI using WinCairo debug build
      settings so they link against the proper libraries.
      
      * WebKit.vcproj/WebKit.sln:
      
      WebKitTools: Build fix
      
      Revise Debug_Cairo targets to point inherit from the 
      debug_wincairo.vsprops property sheet so that they link
      against the proper libraries in Debug build.
      
      * DumpRenderTree/win/DumpRenderTree.vcproj:
      * DumpRenderTree/win/TestNetscapePlugin/TestNetscapePlugin.vcproj:
      * WinLauncher/WinLauncher.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fcf0731
    • mrowe@apple.com's avatar
      Versioning. · 75d6ac91
      mrowe@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      75d6ac91
    • bfulgham@webkit.org's avatar
      * JavaScriptCore.vcproj/jsc/jsc.vcproj: Add Debug_CFLite target · fbbd9d11
      bfulgham@webkit.org authored
        that inherits from the debug_wincairo property sheet and therefore
        links to the proper debug library.
      * JavaScriptCore.vcproj/testapi/testapi.vcproj: Add Debug_CFLite target
        that inherits from the debug_wincairo property sheet and therefore
        links to the proper debug library.
      
      Reviewed by NOBODY (Buildfix).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fbbd9d11
    • sfalken@apple.com's avatar
      Rolled out r44739. Causes crash on Windows. · 71d720d1
      sfalken@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71d720d1
    • jianli@chromium.org's avatar
      [V8] Fix Canvas layout test failures in Chromium build. · f2decb09
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28720
      
      Reviewed by David Levin.
      
      The previous fix r47757 does not handle the V8 object conversion correctly.
      
      * bindings/v8/custom/V8DocumentCustom.cpp:
      (WebCore::CALLBACK_FUNC_DECL):
      * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
      (WebCore::CALLBACK_FUNC_DECL):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2decb09
    • jianli@chromium.org's avatar
      [V8] Fix compiling errors in Chromium build caused by Canvas3D changes from r47752. · 02c6f6a5
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28717
      
      Reviewed by David Levin.
      
      * bindings/v8/DOMObjectsInclude.h:
      * bindings/v8/DerivedSourcesAllInOne.cpp:
      * bindings/v8/V8Index.cpp:
      * bindings/v8/V8Index.h:
      * bindings/v8/custom/V8DocumentCustom.cpp:
      (WebCore::CALLBACK_FUNC_DECL):
      * bindings/v8/custom/V8HTMLCanvasElementCustom.cpp:
      (WebCore::CALLBACK_FUNC_DECL):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02c6f6a5
    • eric@webkit.org's avatar
      2009-08-25 Alpha Lam <hclam@chromium.org> · b8565b2d
      eric@webkit.org authored
              Reviewed by David Levin.
      
              [chromium] Implement media volume slider for chromium
              https://bugs.webkit.org/show_bug.cgi?id=28715
      
              Provided the implementation of the volume slider and its container for
              chromium port. With this change there will be a usable volume control
              slider for chromium theme.
      
              No new tests since this is covered by existing media layout tests.
      
              * css/mediaControlsChromium.css: CSS style for the volume slider.
              * rendering/RenderThemeChromiumSkia.cpp:
              (WebCore::mediaSliderThumbImage): Returns the image for slider thumb.
              (WebCore::mediaVolumeSliderThumbImage): Returns the image for volume slider thumb.
              (WebCore::RenderThemeChromiumSkia::paintMediaVolumeSliderTrack): Paints the track with one vertical white line.
              (WebCore::RenderThemeChromiumSkia::adjustSliderThumbSize): Adjusts thumb sizes according to the images.
              (WebCore::RenderThemeChromiumSkia::paintMediaSliderThumb): Paints slider thumb image.
              (WebCore::RenderThemeChromiumSkia::paintMediaVolumeSliderThumb): Paints volume slider thumb image.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8565b2d
    • cmarrin@apple.com's avatar
      Fixed a build problem on Tiger · 02c5c7d5
      cmarrin@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02c5c7d5
    • cmarrin@apple.com's avatar
    • abarth@webkit.org's avatar
      2009-08-25 Mads Ager <ager@chromium.org> · a95c2200
      abarth@webkit.org authored
              Reviewed by Adam Barth.
      
              [V8] Exception from JavaScript propagates to main script
              https://bugs.webkit.org/show_bug.cgi?id=26433
      
              Test that both compile time and runtime exceptions thrown in
              javascript URLs are isolated from the main script.
      
              * fast/dom/javascript-url-exception-isolation-expected.txt: Added.
              * fast/dom/javascript-url-exception-isolation.html: Added.
              * fast/dom/resources/javascript-url-exception-isolation.js: Added.
      2009-08-25  Mads Ager  <ager@chromium.org>
      
              Reviewed by Adam Barth.
      
              [V8] Exception from JavaScript propagates to main script
              https://bugs.webkit.org/show_bug.cgi?id=26433
      
              Make sure that exceptions thrown both at compile time and at
              runtime in javascript URLs are isolated from the main script.
      
              Test: fast/dom/javascript-url-exception-isolation.html
      
              * bindings/v8/V8Proxy.cpp:
              (WebCore::V8Proxy::evaluate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47753 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a95c2200
    • cmarrin@apple.com's avatar
      Added all new Canvas3D files to the build · f493aa2a
      cmarrin@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=28018
      
              This also hooks up CanvasRenderingContext as the common base class for
              CanvasRenderingContext2D and CanvasRenderingContext3D. And it adds a bit
              of logic throughout to support the new CanvasRenderingContext3D object.
              But nothing is hooked up yet.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f493aa2a
    • levin@chromium.org's avatar
      PLATFORM(CFNETWORK) should be USE(CFNETWORK). · d56e0692
      levin@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28713
      
      Patch by David Levin <levin@chromium.org> on 2009-08-25
      Reviewed by Adam Roben.
      
      JavaScriptCore:
      
      * wtf/Platform.h: Added a #define to catch this issue in the
      future. The define would generate an error on gcc without the
      space in the expansion, but Visual C++ needs the space to cause an error.
      
      WebKit/win:
      
      Also, moved the #if header section after the other #includes.
      
      * WebError.cpp:
      (WebError::localizedDescription):
      
      WebKitTools:
      
      * DumpRenderTree/win/DumpRenderTree.cpp:
      (main):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47751 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d56e0692
    • bfulgham@webkit.org's avatar
      JavaScriptCore: Revise CFLite Debug build to emit DLL's with _debug label. · 7746d9a7
      bfulgham@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=28695.
      
      Reviewed by Steve Falkenburg.
      
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Modify
        Cairo debug build to inherit from new debug_cairo property sheet.
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCFLite.vsprops:
        Modify to look for debug CFLite when in debug build.
      
      WebKit/win: Revise CFLite Debug build to emit DLL's with _debug label.
      https://bugs.webkit.org/show_bug.cgi?id=28695.
      
      Reviewed by Steve Falkenburg.
      
      * WebKit.vcproj/WebKit.vcproj: Modify Debug_Cairo target to
        inherit from new debug_wincairo property sheet, instead of
        the current debug sheet. 
      
      WebKitLibraries: Revise CFLite Debug build to emit DLL's with _debug label.
      https://bugs.webkit.org/show_bug.cgi?id=28695.
      
      Reviewed by Steve Falkenburg.
      
      * win/tools/vsprops/debug_wincairo.vsprops: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7746d9a7
    • mitz@apple.com's avatar
      REGRESSION (r47630): fast/repaint/background-generated.html is failing · ffe28bf6
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=28704
      
      Reviewed by Anders Carlsson.
      
      * rendering/RenderBoxModelObject.cpp:
      (WebCore::RenderBoxModelObject::calculateFillTileSize): Handle SizeNone.
      * rendering/style/FillLayer.cpp:
      (WebCore::FillLayer::FillLayer): Initialize the size type to SizeNone.
      * rendering/style/FillLayer.h:
      (WebCore::FillSize::FillSize): Changed assignment to initialization and
          removed redundant assignment to size.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ffe28bf6
    • eric@webkit.org's avatar
      2009-08-25 Yusuke Sato <yusukes@chromium.org> · 697b2ef0
      eric@webkit.org authored
              Reviewed by Darin Fisher.
      
              [Chromium] Complex text doesn't show up with text stroking
              https://bugs.webkit.org/show_bug.cgi?id=28707
      
              Skip the NULL check of m_hdc if Windows GDI is not in use.
      
              * platform/graphics/chromium/FontChromiumWin.cpp:
              (WebCore::Font::drawComplexText):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47748 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      697b2ef0
    • kenneth@webkit.org's avatar
      [Qt] Update outdated metrics in css1/font_properties. All tests pass. · 7440ee37
      kenneth@webkit.org authored
      Patch by Renata Hodovan <hodovan.renata@stud.u-szeged.hu> on 2009-08-25
      Reviewed by Ariya Hidayat.
      
      * platform/qt/Skipped:
      * platform/qt/css1/font_properties/font-expected.txt:
      * platform/qt/css1/font_properties/font_family-expected.txt:
      * platform/qt/css1/font_properties/font_size-expected.txt:
      * platform/qt/css1/font_properties/font_style-expected.txt:
      * platform/qt/css1/font_properties/font_variant-expected.txt:
      * platform/qt/css1/font_properties/font_weight-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47747 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7440ee37
    • kenneth@webkit.org's avatar
      2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org> · da28d259
      kenneth@webkit.org authored
              Reviewed by Ariya Hidayat.
      
              Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
      
              * Api/qwebframe.cpp:
              (QWebFrame::requestedUrl):
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
              (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
              (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
              (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
              (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
              * WebCoreSupport/FrameLoaderClientQt.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47746 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da28d259
    • kenneth@webkit.org's avatar
      [Qt] Update outdated font metrics and add expected files for new tests. · 77eb8cba
      kenneth@webkit.org authored
      Patch by Andras Becsi <becsi.andras@stud.u-szeged.hu> on 2009-08-25
      Reviewed by Ariya Hidayat.
      
      * platform/qt/Skipped:
      * platform/qt/fast/backgrounds/001-expected.txt:
      * platform/qt/fast/backgrounds/animated-gif-as-background-expected.txt: Added.
      * platform/qt/fast/backgrounds/animated-svg-as-background-expected.txt: Added.
      * platform/qt/fast/backgrounds/animated-svg-as-mask-expected.txt: Added.
      * platform/qt/fast/backgrounds/background-clip-text-expected.txt: Added.
      * platform/qt/fast/backgrounds/background-inherit-color-bug-expected.txt:
      * platform/qt/fast/backgrounds/background-origin-root-element-expected.txt: Added.
      * platform/qt/fast/backgrounds/background-position-1-expected.txt: Added.
      * platform/qt/fast/backgrounds/background-position-rounding-expected.txt: Added.
      * platform/qt/fast/backgrounds/mask-composite-expected.txt: Added.
      * platform/qt/fast/backgrounds/opacity-on-document-element-expected.txt: Added.
      * platform/qt/fast/backgrounds/repeat/mask-negative-offset-repeat-expected.txt: Added.
      * platform/qt/fast/backgrounds/repeat/negative-offset-repeat-expected.txt:
      * platform/qt/fast/backgrounds/repeat/noRepeatCorrectClip-expected.txt:
      * platform/qt/fast/backgrounds/size/backgroundSize15-expected.txt:
      * platform/qt/fast/backgrounds/size/zero-expected.txt: Added.
      * platform/qt/fast/backgrounds/solid-color-context-restore-expected.txt:
      * platform/qt/fast/backgrounds/svg-as-mask-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47745 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77eb8cba
    • eric@webkit.org's avatar
      2009-08-25 Alpha Lam <hclam@chromium.org> · 1c2f02d1
      eric@webkit.org authored
              Reviewed by David Levin.
      
              Media controls panel does not have a volume control slider
              https://bugs.webkit.org/show_bug.cgi?id=28241
      
              Introduced "-webkit-media-controls-volume-slider",
              "-webkit-media-controls-volume-slider-container" and the supporting
              implementation. Also added appearances of "media-volume-slider" and
              "media-volume-slider-container".
      
              The implementation of the controls are in WebCore::MediaControlElements.
              Logic to trigger the display of the volume controls are in WebCore::RenderMedia.
      
              No new tests since this change doesn't have theme implementation and the
              volume slider is disabled by default.
      
              * accessibility/AccessibilitySlider.cpp:
              (WebCore::AccessibilitySlider::orientation): Marks that volume slider is vertical.
              * css/CSSPrimitiveValueMappings.h:
              (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): Added corresponding CSS values.
              * css/CSSSelector.cpp:
              (WebCore::CSSSelector::extractPseudoType): ditto.
              * css/CSSSelector.h:
              (WebCore::CSSSelector::): ditto.
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::SelectorChecker::checkOneSelector): ditto.
              * css/CSSValueKeywords.in: ditto.
              * css/mediaControls.css: Makes the volume slider disabled by default.
              * platform/ThemeTypes.h: Defines theme parts for volume slider and its container.
              (WebCore::):
              * rendering/MediaControlElements.cpp:
              (WebCore::MediaControlVolumeSliderContainerElement::MediaControlVolumeSliderContainerElement):
              (WebCore::MediaControlVolumeSliderContainerElement::styleForElement):
              Adjust the CSS values for "display", "postion", "left" and "top" according to member variables.
              (WebCore::MediaControlVolumeSliderContainerElement::setVisible): Affects the "display" CSS value.
              (WebCore::MediaControlVolumeSliderContainerElement::setPosition): Affects the "left" and "top" CSS values.
              (WebCore::MediaControlVolumeSliderContainerElement::hitTest): Hit testing this element.
              (WebCore::MediaControlVolumeSliderElement::MediaControlVolumeSliderElement):
              (WebCore::MediaControlVolumeSliderElement::defaultEventHandler): Modifies the volume using the slider value, allows dragging.
              * rendering/MediaControlElements.h:
              (WebCore::): Added definition for MediaControlVolumeSliderElement and MediaControlVolumeSliderContainerElement.
              (WebCore::MediaControlVolumeSliderContainerElement::isVisible): Inline getter.
              * rendering/RenderMedia.cpp:
              (WebCore::RenderMedia::styleDidChange): Updates styles for volume container and volume slider.
              (WebCore::RenderMedia::createVolumeSliderContainer): Creates volume slider container and attach to panel.
              (WebCore::RenderMedia::createVolumeSlider): Creates volume slider and attach to volume slider container.
              (WebCore::RenderMedia::updateControls): Updates volume container and volume slider.
              (WebCore::RenderMedia::updateVolumeSliderContainer): Sets the visibility and position of volume slider container and its child.
              (WebCore::RenderMedia::forwardEvent):
              Hit testing the volume slider container and volume slider to toggle the visibility and forward events to slider.
              * rendering/RenderMedia.h:
              Added definition for RenderMedia::updateVolumeSliderContainer().
              * rendering/RenderMediaControls.cpp:
              (WebCore::RenderMediaControls::paintMediaControlsPart): Not implemented.
              * rendering/RenderSlider.cpp:
              (WebCore::RenderSlider::createThumbStyle): Makes volume slider vertical.
              (WebCore::RenderSlider::thumbRect): ditto.
              (WebCore::RenderSlider::mouseEventIsInThumb): ditto.
              (WebCore::RenderSlider::setValueForPosition): ditto.
              (WebCore::RenderSlider::positionForOffset): ditto.
              (WebCore::RenderSlider::currentPosition): ditto.
              (WebCore::RenderSlider::trackSize): ditto.
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::adjustStyle): Adjust style for volume slider thumb.
              (WebCore::RenderTheme::paint): Paints volume control parts using theme.
              * rendering/RenderTheme.h:
              (WebCore::RenderTheme::paintMediaVolumeSliderContainer): Naive implementation to be overridden.
              (WebCore::RenderTheme::paintMediaVolumeSliderTrack): ditto.
              (WebCore::RenderTheme::paintMediaVolumeSliderThumb): ditto.
              * rendering/style/RenderStyleConstants.h:
              (WebCore::): Constants for volume control parts.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47744 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c2f02d1
    • vestbo@webkit.org's avatar
      [Qt/Mac] Use CONFIG+=build_all only when building libraries · 5037ce75
      vestbo@webkit.org authored
      Reviewed by Ariya Hidayat.
      
      If no configuration is specified when building WebKit we pass the
      debug_and_release option to QMake which results in Makefiles for
      both configurations being generated.
      
      Previously we built both of these configurations by default, for
      all targets (both the QtWebKit framework/dyldlib and the various
      executables such as QtLauncher and tests). This makes sense for
      the libraries, which get the _debug suffix and can be loaded on
      demand by setting the DYLD_IMAGE_SUFFIX, but for executables we
      ended up building the same executable twice.
      
      We now only build one instance of each executable, and since this
      is a developer build we build the debug-version. Passing either
      --debug or --release to build-webkit will override this, and
      even in the default case the release version can still be built
      by running 'make release' in the the build directory of each
      target.
      
      * WebCore.pro:
      * DumpRenderTree/qt/TestNetscapePlugin/TestNetscapePlugin.pro:
      * Scripts/webkitdirs.pm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5037ce75
    • xan@webkit.org's avatar
      2009-08-25 Xan Lopez <xlopez@igalia.com> · c0008db2
      xan@webkit.org authored
              Reviewed by Jan Alonzo.
      
              https://bugs.webkit.org/show_bug.cgi?id=28690
              Build failure in webkitgtk+-1.1.3
      
              Do not use deprecated function to unref a pixbuf.
      
              * platform/gtk/CursorGtk.cpp:
              (WebCore::Cursor::Cursor):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47742 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c0008db2
    • abarth@webkit.org's avatar
      2009-08-24 Hironori Bono <hbono@chromium.org> · 17077804
      abarth@webkit.org authored
              Reviewed by Adam Barth.
      
              Fix Bug 27827 "[Chromium] Functions Keys don't work in google spreadsheet".
              <https://bugs.webkit.org/show_bug.cgi?id=27827>.
      
              Because of the lack of mappings from GDK key-codes to WebKit key-codes,
              Chromium cannot send valid key-codes to JavaScript when a user types
              function keys. This change just copies the mappings from 'KeyEventGtk.cpp'.
      
              To write layout tests for this issue, added mappings from function-key
              names to platform-specific key-codes to EventSendingController objects
              so that eventSender.keyDown() can send function-key events without using
              platform-specific key codes. (Unfortunately, this eventSender.keyDown() change
              is only for Mac. So this change adds this new test to Skipped tests for other
              platforms to prevent this change from crashing the build trees.)
      
              * fast/events/keydown-function-keys-expected.txt: Added.
              * fast/events/keydown-function-keys.html: Added.
              * platform/gtk/Skipped:
              * platform/qt/Skipped:
              * platform/win/Skipped:
      2009-08-24  Hironori Bono  <hbono@chromium.org>
      
              Reviewed by Adam Barth.
      
              Fix Bug 27827 "[Chromium] Functions Keys don't work in google spreadsheet".
              <https://bugs.webkit.org/show_bug.cgi?id=27827>.
      
              Because of the lack of mappings from GDK key-codes to WebKit key-codes,
              Chromium cannot send valid key-codes to JavaScript when a user types
              function keys. This change just copies the mappings from 'KeyEventGtk.cpp'.
      
              To write layout tests for this issue, added mappings from function-key
              names to platform-specific key-codes to EventSendingController objects
              so that eventSender.keyDown() can send function-key events without using
              platform-specific key codes. (Unfortunately, this eventSender.keyDown() change
              is only for Mac. So this change adds this new test to Skipped tests for other
              platforms to prevent this change from crashing the build trees.)
      
              Test: fast/events/keydown-function-keys.html
      
             * platform/chromium/KeyCodeConversionGtk.cpp: Add mappings from GDK key-codes
              to WebKit key-code for function keys.
              (WebCore::windowsKeyCodeForKeyEvent):
      2009-08-24  Hironori Bono  <hbono@chromium.org>
      
              Reviewed by Adam Barth.
      
              Fix Bug 27827 "[Chromium] Functions Keys don't work in google spreadsheet".
              <https://bugs.webkit.org/show_bug.cgi?id=27827>.
      
              Because of the lack of mappings from GDK key-codes to WebKit key-codes,
              Chromium cannot send valid key-codes to JavaScript when a user types
              function keys. This change just copies the mappings from 'KeyEventGtk.cpp'.
      
              To write layout tests for this issue, added mappings from function-key
              names to platform-specific key-codes to EventSendingController objects
              so that eventSender.keyDown() can send function-key events without using
              platform-specific key codes. (Unfortunately, this eventSender.keyDown() change
              is only for Mac. So this change adds this new test to Skipped tests for other
              platforms to prevent this change from crashing the build trees.)
      
              * DumpRenderTree/mac/EventSendingController.mm:
              (-[EventSendingController keyDown:withModifiers:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      17077804
    • ggaren@apple.com's avatar
      Build fix: start out with a 32-bit value to avoid a shortening warning. · 0fd9fcc4
      ggaren@apple.com authored
      Patch by Geoffrey Garen <ggaren@apple.com> on 2009-08-24
      * runtime/Collector.cpp:
      (JSC::Heap::sweep):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47740 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0fd9fcc4
    • ggaren@apple.com's avatar
      Substantially reduced VM thrash in the GC heap. · 37f99463
      ggaren@apple.com authored
              
      Patch by Geoffrey Garen <ggaren@apple.com> on 2009-08-24
      Reviewed by Oliver Hunt.
      
      1.08x faster on v8 (1.60x faster on v8-splay).
              
      1.40x faster on bench-alloc-nonretained.
              
      1.90x faster on bench-alloc-retained.
              
      SunSpider says no change.
              
      * runtime/Collector.cpp:
      (JSC::Heap::heapAllocate): Fixed a long-standing bug: update a few local
      variables unconditionally after calling collect(), since they may be used
      even if we don't "goto scan". (In the bug I saw, usedBlocks got out of
      sync with heap.usedBlocks).
      (JSC::Heap::sweep): Keep enough free heap space to accomodate 
      the number of objects we'll allocate before the next GC, plus 25%, for
      good measure.
      * runtime/Collector.h: Bumped the block size to 256k. This seems to give
      the best cache performance, and it prevents us from initiating lots of
      VM traffic to recover very small chunks of memory.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47739 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37f99463