1. 04 Aug, 2010 12 commits
    • yurys@chromium.org's avatar
      2010-08-04 Yury Semikhatsky <yurys@chromium.org> · c603af63
      yurys@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Web Inspector: serialize CPU profiles to InspectorValues instead of
              using JS wrappers.
              https://bugs.webkit.org/show_bug.cgi?id=43475
      
              * Android.jscbindings.mk:
              * CMakeLists.txt:
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/ScriptProfile.h:
              * bindings/js/ScriptProfiler.cpp:
              (WebCore::ScriptProfiler::stop):
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/v8/ScriptProfile.cpp:
              (WebCore::buildInspectorObjectFor):
              (WebCore::ScriptProfile::buildInspectorObjectForHead):
              * bindings/v8/ScriptProfile.h:
              * inspector/Inspector.idl:
              * inspector/InspectorController.cpp:
              (WebCore::InspectorController::addProfile):
              (WebCore::InspectorController::addProfileFinishedMessageToConsole):
              (WebCore::InspectorController::getProfileHeaders):
              (WebCore::InspectorController::getProfile):
              (WebCore::InspectorController::createProfileHeader):
              * inspector/InspectorController.h:
              * inspector/InspectorFrontend.cpp:
              * inspector/InspectorFrontend.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c603af63
    • andreas.kling@nokia.com's avatar
      2010-08-04 Andreas Kling <andreas.kling@nokia.com> · 1ec05034
      andreas.kling@nokia.com authored
              Reviewed by Simon Hausmann.
      
              [Qt] Use a QImage for the stroke applier scratch context
      
              This avoids leaking a server-side resource on some graphics systems.
      
              * platform/graphics/qt/PathQt.cpp:
              (WebCore::scratchContext):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ec05034
    • steveblock@google.com's avatar
      Unreviewed build fix. · 3412c815
      steveblock@google.com authored
      Add new Geolocation delayed permission tests to Qt skipped list
      https://bugs.webkit.org/show_bug.cgi?id=43478
      
      * platform/qt/Skipped:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3412c815
    • steveblock@google.com's avatar
      Adds Geolocation LayoutTests for the case where permission is not granted or denied immediately · c96470cd
      steveblock@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=40002
      
      Reviewed by Alexey Proskuryakov.
      
      WebKitTools: 
      
      The code in LayoutTestController::setGeolocationPermission() was moved to
      setGeolocationPermissionCommon() to allow each port to provide its own
      implementation of setGeolocationPermission().
      
      For the Mac port, setGeolocationPermission() notifies the UIDelegate of the
      new permission, so it can call back to WebCore if permission requests are in
      progress and are waiting for a response. A minor fix to the Mac
      MockGeolocationProvider was also required to make sure that the mock provider
      calls back to WebCore when it is first started.
      
      For other ports, LayoutTestController::setGeolocationPermission() is not
      implemented.
      
      * DumpRenderTree/LayoutTestController.cpp:
      (LayoutTestController::setGeolocationPermissionCommon):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::setGeolocationPermission):
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::setGeolocationPermission):
      * DumpRenderTree/mac/MockGeolocationProvider.mm:
      (-[MockGeolocationProvider registerWebView:]):
      * DumpRenderTree/mac/UIDelegate.h:
      * DumpRenderTree/mac/UIDelegate.mm:
      (-[UIDelegate webView:decidePolicyForGeolocationRequestFromOrigin:frame:listener:]):
      (-[UIDelegate setGeolocationPermission:]):
      (-[UIDelegate dealloc]):
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::setGeolocationPermission):
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::setGeolocationPermission):
      
      LayoutTests: 
      
      * fast/dom/Geolocation/delayed-permission-allowed-expected.txt: Added.
      * fast/dom/Geolocation/delayed-permission-allowed.html: Added.
      * fast/dom/Geolocation/delayed-permission-denied-expected.txt: Added.
      * fast/dom/Geolocation/delayed-permission-denied.html: Added.
      * fast/dom/Geolocation/script-tests/delayed-permission-allowed.js: Added.
      * fast/dom/Geolocation/script-tests/delayed-permission-denied.js: Added.
      * platform/gtk/Skipped: Added new tests to GTK skipped lists
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c96470cd
    • benm@google.com's avatar
      HTML5 parser may cause onload not to fire · 644e0dd8
      benm@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=43423
      
      Reviewed by Darin Adler.
      
      If a complex page causes the HTML parser to yield,
      then when parsing continues again and eventually
      finishes, we are missing a call to endIfDelayed(). This
      results in onload never being called.
      
      Not for lack of trying, but it seems almost
      impossible to write a reliable test for this bug,
      due to the highly timing-dependent nature of the
      bug. The link above contains further discussion and
      attempts at writing a test.
              
      * html/HTMLDocumentParser.cpp:
      (WebCore::HTMLDocumentParser::resumeParsingAfterYield):
      Add a call to endIfDelayed() after pumping the tokenizer
      post the parser yielding to ensure that the parsing step
      is completed properly and the onload event fires.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      644e0dd8
    • krit@webkit.org's avatar
      2010-08-04 Dirk Schulze <krit@webkit.org> · 7e87298b
      krit@webkit.org authored
              Unreviewed sort of XCode project file.
      
              * WebCore.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e87298b
    • mrowe@apple.com's avatar
      Build fix. · e9d6073f
      mrowe@apple.com authored
      Fix the contents of the forwarding headers too.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9d6073f
    • mrowe@apple.com's avatar
      Build fix. · 27170f23
      mrowe@apple.com authored
      It's really useful if the forwarding headers match the name of the file that they're forwarding to.
      Amazingly enough, if the name doesn't match then the file cannot be found! Who'd have thunk it?!
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      27170f23
    • darin@apple.com's avatar
      2010-08-03 Darin Adler <darin@apple.com> · d54b6b35
      darin@apple.com authored
              Reviewed by Dan Bernstein.
      
              System color changes are not applied properly
              https://bugs.webkit.org/show_bug.cgi?id=43468
      
              * manual-tests/system-color-change.html: Added.
      
              * rendering/RenderTheme.cpp:
              (WebCore::RenderTheme::platformColorsDidChange): Added a call to
              Page::setNeedsReapplyStyles, so all frames of all pages will recompute
              in case they use system colors. It's rare for these colors to change,
              so OK to do a little extra style computation.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d54b6b35
    • zimmermann@webkit.org's avatar
      2010-08-04 Nikolas Zimmermann <nzimmermann@rim.com> · 8f2a26ab
      zimmermann@webkit.org authored
              Not reviewed. Revert changed license in SVGFEOffsetElement.h, thanks Gabor for noticing.
      
              * svg/SVGFEOffsetElement.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f2a26ab
    • loki@webkit.org's avatar
      Enable JSValue32_64 for GCC on ARM by default · f4345274
      loki@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=43410
      
      Reviewed by Geoffrey Garen.
      
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4345274
    • ap@apple.com's avatar
      Reviewed by Sam Weinig. · 68bf2198
      ap@apple.com authored
              https://bugs.webkit.org/show_bug.cgi?id=42939
              WebEditorClient::didBeginEditing is never called in WebKit2
      
              * page/FocusController.cpp: (WebCore::FocusController::setFocused): Focusing a page without
              a focused frame makes little sense, so WebKit used to focus a frame first when its view
              became first responder. For viewless frames, WebKit cannot know what to focus. The assumption
              here is that in all cases with null m_focusedFrame, it's the main frame that needs to be focused.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68bf2198
  2. 03 Aug, 2010 28 commits
    • eric@webkit.org's avatar
      2010-08-03 Eric Seidel <eric@webkit.org> · 546452a2
      eric@webkit.org authored
              Unreviewed.  Test commit for commit-queue@webkit.org.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      546452a2
    • dbates@webkit.org's avatar
      2010-08-03 Daniel Bates <dbates@rim.com> · e99b1b33
      dbates@webkit.org authored
              Fix misspelled word 'teh' in the description of the XSS Auditor setting.
      
              * webkit/webkitwebsettings.cpp:
              (webkit_web_settings_class_init):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e99b1b33
    • eric@webkit.org's avatar
      2010-08-03 Balazs Kelemen <kb@inf.u-szeged.hu> · 300e04be
      eric@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt] Close the WebProcess
      
              https://bugs.webkit.org/show_bug.cgi?id=41690
      
              * Platform/CoreIPC/qt/ConnectionQt.cpp:
              (CoreIPC::Connection::open): Registered connectionDidClose to be called when the client disconnected.
              * Platform/qt/RunLoopQt.cpp:
              (RunLoop::stop): Implemented by calling QCoreApplication::exit.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      300e04be
    • barraclough@apple.com's avatar
      Speculative windows build fix. · 17a9b17c
      barraclough@apple.com authored
      * wtf/Bitmap.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      17a9b17c
    • barraclough@apple.com's avatar
      Build fix following r64624. · 31099db5
      barraclough@apple.com authored
      JavaScriptCore: 
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * wtf/PageAllocation.h:
      
      JavaScriptGlue: 
      
      * ForwardingHeaders/wtf/BitMap.h: Added.
      
      WebCore: 
      
      * ForwardingHeaders/wtf/BitMap.h: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31099db5
    • atwilson@chromium.org's avatar
      Unreviewed chromium test expectations fixup for origin-quota.html. · d55de22b
      atwilson@chromium.org authored
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d55de22b
    • barraclough@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=43269 · 6031c645
      barraclough@apple.com authored
      Patch by Nathan Lawrence <nlawrence@apple.com> on 2010-08-03
      Reviewed by Gavin Barraclough.
      
      Added new allocateAligned methods to PageAllocation.  In order to
      prevent a regress in performance, the function needs to be inlined.
      
      Additionally, I ported the symbian block allocator to use
      PageAllocation and added a new WTF::Bitmap class to support this.
      
      * GNUmakefile.am:
      * JavaScriptCore.gypi:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * runtime/AlignedMemoryAllocator.h: Added.
      (JSC::AlignedMemory::deallocate):
      (JSC::AlignedMemory::base):
      (JSC::AlignedMemory::AlignedMemory):
      (JSC::AlignedMemoryAllocator::destroy):
      (JSC::AlignedMemoryAllocator::allocate):
      (JSC::AlignedMemoryAllocator::AlignedMemoryAllocator):
      (JSC::AlignedMemoryAllocator::~AlignedMemoryAllocator):
      (JSC::AlignedMemoryAllocator::free):
      * runtime/Collector.cpp:
      (JSC::Heap::Heap):
      (JSC::Heap::destroy):
      (JSC::Heap::allocateBlock):
      (JSC::Heap::freeBlock):
      (JSC::Heap::freeBlocks):
      (JSC::Heap::allocate):
      (JSC::Heap::shrinkBlocks):
      (JSC::Heap::markConservatively):
      (JSC::Heap::clearMarkBits):
      (JSC::Heap::markedCells):
      * runtime/Collector.h:
      (JSC::CollectorHeap::collectorBlock):
      * runtime/CollectorHeapIterator.h:
      (JSC::CollectorHeapIterator::operator*):
      (JSC::LiveObjectIterator::operator++):
      (JSC::DeadObjectIterator::operator++):
      * wtf/Bitmap.h: Added.
      (WTF::Bitmap::get):
      (WTF::Bitmap::set):
      (WTF::Bitmap::clear):
      (WTF::Bitmap::clearAll):
      (WTF::Bitmap::advanceToNextFreeBit):
      (WTF::Bitmap::count):
      (WTF::Bitmap::isEmpty):
      (WTF::Bitmap::isFull):
      * wtf/PageAllocation.h:
      (WTF::PageAllocation::operator UnspecifiedBoolType):
      (WTF::PageAllocation::allocateAligned):
      (WTF::PageAllocation::reserveAligned):
      * wtf/Platform.h:
      * wtf/symbian: Removed.
      * wtf/symbian/BlockAllocatorSymbian.cpp: Removed.
      * wtf/symbian/BlockAllocatorSymbian.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6031c645
    • atwilson@chromium.org's avatar
      Unreviewed chromium test expectations fixup to fix canary bot redness. · 4f212af7
      atwilson@chromium.org authored
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f212af7
    • tkent@chromium.org's avatar
      2010-08-03 Kent Tamura <tkent@chromium.org> · 87a937eb
      tkent@chromium.org authored
              Rubber-stamped by Eric Seidel.
      
              Add an explanation comment to drt_expectations.txt.
      
              * platform/chromium/drt_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87a937eb
    • eric@webkit.org's avatar
      2010-08-03 Noam Rosenthal <noam.rosenthal@nokia.com> · ee41be7d
      eric@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt] Edits to bridge documentation
              https://bugs.webkit.org/show_bug.cgi?id=43012
      
              * docs/qtwebkit-bridge.qdoc:
              * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
              (wrapInFunction):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ee41be7d
    • barraclough@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=43314. The prior code · 1c5ba287
      barraclough@apple.com authored
      was using the wrong "length" value to move array contents when adding
      space to the beginning of an array for an unshift() or similar
      operation.  Instead of using m_vectorLength, the length of the
      allocated JSValue array, the code was using m_length, the declared
      length of the array.  These two values do not need to match.
      
      Patch by Michael Saboff <msaboff@apple.com> on 2010-08-03
      Reviewed by Gavin Barraclough.
      
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * runtime/JSArray.cpp:
      (JSC::JSArray::increaseVectorPrefixLength):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c5ba287
    • barraclough@apple.com's avatar
      Fix following https://bugs.webkit.org/show_bug.cgi?id=43089 · 50a9f373
      barraclough@apple.com authored
      (accidentally inverted a compiler version check).
      
      Patch by Chao-ying Fu <fu@mips.com> on 2010-08-03
      Reviewed by Gavin Barraclough.
      
      * jit/ExecutableAllocator.h:
      (JSC::ExecutableAllocator::cacheFlush):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50a9f373
    • eric@webkit.org's avatar
      2010-08-03 Patrick Gansterer <paroga@paroga.com> · 2601f67b
      eric@webkit.org authored
              Reviewed by Gavin Barraclough.
      
              Implement DEFINE_STUB_FUNCTION for WinCE.
              https://bugs.webkit.org/show_bug.cgi?id=34953
      
              * jit/JITStubs.cpp:
              (JSC::):
              (JSC::DEFINE_STUB_FUNCTION):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2601f67b
    • joepeck@webkit.org's avatar
      2010-08-03 Joseph Pecoraro <joepeck@webkit.org> · b9481232
      joepeck@webkit.org authored
              Skipping tests for a new feature not implemented on some platforms.
              Follow-up bugs have been filed and are listed below.
      
              * platform/chromium/test_expectations.txt: https://bugs.webkit.org/show_bug.cgi?id=43459
              * platform/gtk/Skipped: https://bugs.webkit.org/show_bug.cgi?id=43456
              * platform/qt/Skipped: https://bugs.webkit.org/show_bug.cgi?id=43455
              * platform/win/Skipped: https://bugs.webkit.org/show_bug.cgi?id=43458
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b9481232
    • tkent@chromium.org's avatar
      <input type=number> UI: Support wheel events · a5c4850b
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=42441
      
      Reviewed by Ojan Vafai.
      
      WebCore:
      
      Test: fast/forms/input-number-wheel.html
      
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::defaultEventHandler):
       Call stepUpFromRenderer() for wheelDeltaY.
      
      LayoutTests:
      
      * fast/forms/input-number-wheel-expected.txt: Added.
      * fast/forms/input-number-wheel.html: Added.
      * fast/forms/script-tests/input-number-wheel.js: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5c4850b
    • tkent@chromium.org's avatar
      2010-08-03 Kent Tamura <tkent@chromium.org> · 06007bdb
      tkent@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              [DRT/Chromium] Implement --testshell-startup-dialog
              https://bugs.webkit.org/show_bug.cgi?id=40616
      
              * DumpRenderTree/chromium/DumpRenderTree.cpp:
              (main): Check --testshell-startup-dialog, and call openStartUpDialog()
              if it is specfied.
              * DumpRenderTree/chromium/TestShell.h:
                Declare openStartUpDialog().
              * DumpRenderTree/chromium/TestShellGtk.cpp:
              (openStartupDialog):
              * DumpRenderTree/chromium/TestShellMac.mm:
              (openStartupDialog):
              * DumpRenderTree/chromium/TestShellWin.cpp:
              (openStartupDialog):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06007bdb
    • tkent@chromium.org's avatar
      2010-08-03 Kent Tamura <tkent@chromium.org> · 3a07b9b8
      tkent@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              [DRT/Chromium] Remove dependency of base/md5.h
              https://bugs.webkit.org/show_bug.cgi?id=43403
      
              * DumpRenderTree/chromium/TestShell.cpp:
              (TestShell::dumpImage): Use wtf/MD5.h
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3a07b9b8
    • joepeck@webkit.org's avatar
      2010-08-03 Joseph Pecoraro <joepeck@webkit.org> · 0539bdbd
      joepeck@webkit.org authored
      Reviewed by David Kilzer.
      
      LayoutTests:
      
          2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
      
                  Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
                  https://bugs.webkit.org/show_bug.cgi?id=40627
      
                  Part 6 - LayoutTest and Cleanup
      
                  * http/tests/appcache/origin-quota-expected.txt: Added.
                  * http/tests/appcache/origin-quota.html: Added.
                  * http/tests/appcache/resources/quota-origin-iframe-1.html: Added.
                  * http/tests/appcache/resources/quota-origin-iframe-1.manifest: Added.
                  * http/tests/appcache/resources/quota-origin-iframe-2.html: Added.
                  * http/tests/appcache/resources/quota-origin-iframe-2.manifest: Added.
                  * http/tests/appcache/resources/quota-origin-iframe-3.html: Added.
                  * http/tests/appcache/resources/quota-origin-iframe-3.manifest: Added.
      
      WebCore:
      
          2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
      
                  Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
                  https://bugs.webkit.org/show_bug.cgi?id=40627
      
                  Part 6 - LayoutTest and Cleanup
      
                  Test: http/tests/appcache/origin-quota.html
      
                  * loader/appcache/ApplicationCacheGroup.cpp:
                  (WebCore::ApplicationCacheGroup::scheduleReachedOriginQuotaCallback): made synchronous, as asynchronously the cache group was deleted too soon.
                  * loader/appcache/ApplicationCacheStorage.cpp:
                  (WebCore::ApplicationCacheStorage::storeUpdatedQuotaForOrigin): all storing operations should force the database to be created if needed.
      
      WebKit/mac:
      
          2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
      
                  Part 6 - LayoutTest and Cleanup
      
                  * WebCoreSupport/WebApplicationCache.h:
                  * WebCoreSupport/WebApplicationCache.mm:
                  (+[WebApplicationCache setMaximumSize:]): refactor out deleting the application caches.
                  (+[WebApplicationCache deleteAllApplicationCaches]): delete application caches.
      
                  Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
                  https://bugs.webkit.org/show_bug.cgi?id=40627
      
      WebKitTools:
      
          2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
      
                  Part 6 - LayoutTest and Cleanup
      
                    Allow tests to delete application caches and set application cache
                    origin quotas, so they can be tested.
      
                  * DumpRenderTree/LayoutTestController.cpp:
                  (LayoutTestController::LayoutTestController):
                  (dumpApplicationCacheDelegateCallbacksCallback): JavaScript callback, delegates to the controller.
                  (clearAllApplicationCachesCallback): should delete all application caches.
                  (setApplicationCacheOriginQuotaCallback): should set the origin quota for the localhost tests.
                  (LayoutTestController::staticFunctions):
                  * DumpRenderTree/LayoutTestController.h:
                  (LayoutTestController::dumpApplicationCacheDelegateCallbacks): accessor to see if application cache callbacks should be output.
                  (LayoutTestController::setDumpApplicationCacheDelegateCallbacks): enable or disable debug output when the application cache quota is reached.
      
                    Mac implementation.
      
                  * DumpRenderTree/mac/LayoutTestControllerMac.mm:
                  (LayoutTestController::clearAllApplicationCaches): delete application caches.
                  (LayoutTestController::setApplicationCacheOriginQuota): set the quota for localhost.
                  * DumpRenderTree/mac/UIDelegate.mm:
                  (-[UIDelegate webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]): style fix.
                  (-[UIDelegate webView:exceededApplicationCacheOriginQuotaForSecurityOrigin:]): reset the quota.
      
                    Stub implementations for other platforms.
      
                  * DumpRenderTree/chromium/LayoutTestController.cpp:
                  (LayoutTestController::LayoutTestController):
                  (LayoutTestController::clearAllApplicationCaches):
                  (LayoutTestController::setApplicationCacheOriginQuota):
                  * DumpRenderTree/chromium/LayoutTestController.h:
                  * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
                  (LayoutTestController::clearAllApplicationCaches):
                  (LayoutTestController::setApplicationCacheOriginQuota):
                  * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
                  (LayoutTestController::clearAllApplicationCaches):
                  (LayoutTestController::setApplicationCacheOriginQuota):
                  * DumpRenderTree/qt/LayoutTestControllerQt.h:
                  * DumpRenderTree/win/LayoutTestControllerWin.cpp:
                  (LayoutTestController::clearAllApplicationCaches):
                  (LayoutTestController::setApplicationCacheOriginQuota):
                  * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
                  (LayoutTestController::clearAllApplicationCaches):
                  (LayoutTestController::setApplicationCacheOriginQuota):
      
                  Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
                  https://bugs.webkit.org/show_bug.cgi?id=40627
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0539bdbd
    • joepeck@webkit.org's avatar
      2010-08-03 Joseph Pecoraro <joepeck@webkit.org> · 012da65c
      joepeck@webkit.org authored
      Reviewed by David Kilzer.
      
      WebKit:
      
          2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
      
                  Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
                  https://bugs.webkit.org/show_bug.cgi?id=40627
      
                  Part 5 - Refactor Quota Management in WebSecurityOrigin into Managers
      
                  * WebKit.xcodeproj/project.pbxproj: Add new Quota Managers, remove old SecurityOrigin subclasses.
      
      WebKit/mac:
      
          2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
      
                  Reviewed by David Kilzer.
      
                  Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
                  https://bugs.webkit.org/show_bug.cgi?id=40627
      
                  Part 5 - Refactor Quota Management in WebSecurityOrigin into Managers
      
                  Per-Origin quotas exist for Databases and Application Caches. Clients
                  given a WebSecurityOrigin have the ability to set the quota for any
                  per-origin quota type. This puts quota management into an interface
                  and WebSecurityOrigin allows access to quota managers for the
                  different types of quotas.
      
                  This also deprecates the old methods on WebSecurityOrigin. They are
                  left in for now to prevent breaking older clients.
      
                    The WebQuotaManager interface allows querying and modifying a
                    per-origin quota. This is implemented for both Databases and
                    Application Caches.
      
                  * Misc/WebQuotaManager.h: Added. Interface for quota management (usage, quota, setQuota).
                  * Storage/WebDatabaseQuotaManager.h: Added.
                  * Storage/WebDatabaseQuotaManager.mm: Added.
                  (-[WebDatabaseQuotaManager origin]):
                  (-[WebDatabaseQuotaManager usage]):
                  (-[WebDatabaseQuotaManager quota]):
                  (-[WebDatabaseQuotaManager setQuota:]):
                  * Storage/WebDatabaseSecurityOrigin.h: Removed.
                  * Storage/WebDatabaseSecurityOrigin.mm: Removed.
                  * WebCoreSupport/WebApplicationCacheQuotaManager.h: Added.
                  * WebCoreSupport/WebApplicationCacheQuotaManager.mm: Added.
                  (-[WebApplicationCacheQuotaManager origin]):
                  (-[WebApplicationCacheQuotaManager usage]):
                  (-[WebApplicationCacheQuotaManager quota]):
                  (-[WebApplicationCacheQuotaManager setQuota:]):
                  * WebCoreSupport/WebSecurityOriginPrivate.h: Added a category to access managers. Deprecated old methods.
      
                    Remove the WebSecurityOrigin sub-classes. Managers are better.
      
                  * WebCoreSupport/WebApplicationCacheSecurityOrigin.h: Removed.
                  * WebCoreSupport/WebApplicationCacheSecurityOrigin.mm: Removed.
      
                    Create the managers lazily. Change old style calls to make use
                    of the managers.
      
                  * WebCoreSupport/WebChromeClient.mm:
                  (WebChromeClient::exceededDatabaseQuota):
                  (WebChromeClient::reachedApplicationCacheOriginQuota):
                  * WebCoreSupport/WebSecurityOrigin.mm:
                  (-[WebSecurityOrigin applicationCacheQuotaManager]):
                  (-[WebSecurityOrigin databaseQuotaManager]):
                  (-[WebSecurityOrigin dealloc]): release the managers if they exist.
      
      WebKitTools:
      
          2010-08-03  Joseph Pecoraro  <joepeck@webkit.org>
      
                  Limit ApplicationCache Total and Per-Origin Storage Capacity (Quotas)
                  https://bugs.webkit.org/show_bug.cgi?id=40627
      
                  Part 5 - Refactor Quota Management in WebSecurityOrigin into Managers
      
                    Change old style calls to make use of the managers.
      
                  * DumpRenderTree/mac/LayoutTestControllerMac.mm:
                  (LayoutTestController::setDatabaseQuota):
                  * DumpRenderTree/mac/UIDelegate.mm:
                  (-[UIDelegate webView:frame:exceededDatabaseQuotaForSecurityOrigin:database:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      012da65c
    • eric@webkit.org's avatar
      2010-08-03 Eric Seidel <eric@webkit.org> · 47d889c4
      eric@webkit.org authored
              Unreviewed.  Skipping test which fails on some Leopard installs.
      
              http/tests/media/video-seekable-stall.html fails on the Leopard Commit Queue Machine
              https://bugs.webkit.org/show_bug.cgi?id=35271
      
              Skip this failing test as the most expedient solution.
      
              * platform/mac-leopard/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      47d889c4
    • rniwa@webkit.org's avatar
      2010-08-03 Ryosuke Niwa <rniwa@webkit.org> · 7d9165ae
      rniwa@webkit.org authored
              Reviewed by Eric Seidel.
      
              extractAndNegateTextDecorationStyle and maxRangeOffset in ApplyStyleCommand.cpp should be deleted
              https://bugs.webkit.org/show_bug.cgi?id=43437
      
              Removed extractAndNegateTextDecorationStyle because we never push down text decorations added by CSS rules
              as discussed on the bug 27809. Also removed pushDownTextDecorationStyleAtBoundaries because it only existed
              to encapsulate the complexity of calling pushDownTextDecorationStyleAroundNode first with forceNegate = false
              (calling pushDownTextDecorationStyleAroundNode) and again with forceNegate = true (calling extractAndNegateTextDecorationStyle)
              after updating layout but neither the layout update nor the second call to pushDownTextDecorationStyleAroundNode
              is needed after the removal of extractAndNegateTextDecorationStyle.
      
              Also replaced maxRangeOffset by lastOffsetForEditing as FIXME (added by r48235) indicated.
      
              No new tests added since this is a clean up.
      
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::pushDownTextDecorationStyleAroundNode): No longer takes forceNegate as an argument.
              (WebCore::ApplyStyleCommand::removeInlineStyle): Calls pushDownTextDecorationStyleAroundNode directly.
              * editing/ApplyStyleCommand.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d9165ae
    • rniwa@webkit.org's avatar
      2010-08-03 Ryosuke Niwa <rniwa@webkit.org> · 82592047
      rniwa@webkit.org authored
              Reviewed by Ojan Vafai.
      
              Extract a function that serializes nodes from the range version of createMarkup
              https://bugs.webkit.org/show_bug.cgi?id=43405
      
              Extracted serializeNodes that serializes nodes from createMarkup.
              No new tests added since this is a clean up.
      
              * editing/markup.cpp:
              (WebCore::serializeNodes): Added.
              (WebCore::createMarkup): Calls serializeNodes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82592047
    • barraclough@apple.com's avatar
      Bug 43390 - Do not CRASH if we run out of room for jit code. · 3c803686
      barraclough@apple.com authored
      Reviewed by Oliver Hunt.
      
      Change the ExecutableAllocator implementations not to crash, and to return 0 if memory cannot be allocated.
      The assemblers should pass this through without trying to use it in executableCopy.
      Change the LinkBuffer to handle this, and to provide an allocationSuccessful() method to test for this.
      
      Change the JIT to throw an exception if allocation fails.
      Make JIT optimizations fail gracefully if memory cannot be allocated (use non-optimized path).
      Change YARR JIT to fallback to PCRE 
      
      * assembler/ARMAssembler.cpp:
      (JSC::ARMAssembler::executableCopy):
      * assembler/ARMv7Assembler.h:
      (JSC::ARMv7Assembler::executableCopy):
      * assembler/LinkBuffer.h:
      (JSC::LinkBuffer::allocationSuccessful):
      * assembler/MIPSAssembler.h:
      (JSC::MIPSAssembler::executableCopy):
      * assembler/X86Assembler.h:
      (JSC::X86Assembler::executableCopy):
      * bytecode/StructureStubInfo.h:
      (JSC::StructureStubInfo::initGetByIdProto):
      (JSC::StructureStubInfo::initGetByIdChain):
      (JSC::StructureStubInfo::initGetByIdSelfList):
      (JSC::StructureStubInfo::initGetByIdProtoList):
      (JSC::StructureStubInfo::initPutByIdTransition):
      * jit/ExecutableAllocator.cpp:
      (JSC::ExecutablePool::systemAlloc):
      * jit/ExecutableAllocatorFixedVMPool.cpp:
      (JSC::FixedVMPoolAllocator::allocInternal):
      * jit/JIT.cpp:
      (JSC::JIT::privateCompile):
      * jit/JIT.h:
      (JSC::JIT::compileGetByIdProto):
      (JSC::JIT::compileGetByIdSelfList):
      (JSC::JIT::compileGetByIdProtoList):
      (JSC::JIT::compileGetByIdChainList):
      (JSC::JIT::compileGetByIdChain):
      (JSC::JIT::compilePutByIdTransition):
      (JSC::JIT::compilePatchGetArrayLength):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::privateCompileCTIMachineTrampolines):
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::privateCompileCTIMachineTrampolines):
      (JSC::JIT::privateCompileCTINativeCall):
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::stringGetByValStubGenerator):
      (JSC::JIT::privateCompilePutByIdTransition):
      (JSC::JIT::privateCompilePatchGetArrayLength):
      (JSC::JIT::privateCompileGetByIdProto):
      (JSC::JIT::privateCompileGetByIdSelfList):
      (JSC::JIT::privateCompileGetByIdProtoList):
      (JSC::JIT::privateCompileGetByIdChainList):
      (JSC::JIT::privateCompileGetByIdChain):
      * jit/JITPropertyAccess32_64.cpp:
      (JSC::JIT::stringGetByValStubGenerator):
      (JSC::JIT::privateCompilePutByIdTransition):
      (JSC::JIT::privateCompilePatchGetArrayLength):
      (JSC::JIT::privateCompileGetByIdProto):
      (JSC::JIT::privateCompileGetByIdSelfList):
      (JSC::JIT::privateCompileGetByIdProtoList):
      (JSC::JIT::privateCompileGetByIdChainList):
      (JSC::JIT::privateCompileGetByIdChain):
      * jit/JITStubs.cpp:
      (JSC::JITThunks::tryCachePutByID):
      (JSC::JITThunks::tryCacheGetByID):
      (JSC::DEFINE_STUB_FUNCTION):
      (JSC::setupPolymorphicProtoList):
      * jit/JITStubs.h:
      * jit/SpecializedThunkJIT.h:
      (JSC::SpecializedThunkJIT::finalize):
      * runtime/ExceptionHelpers.cpp:
      (JSC::createOutOfMemoryError):
      * runtime/ExceptionHelpers.h:
      * runtime/Executable.cpp:
      (JSC::EvalExecutable::compileInternal):
      (JSC::ProgramExecutable::compileInternal):
      (JSC::FunctionExecutable::compileForCallInternal):
      (JSC::FunctionExecutable::compileForConstructInternal):
      (JSC::FunctionExecutable::reparseExceptionInfo):
      (JSC::EvalExecutable::reparseExceptionInfo):
      * yarr/RegexJIT.cpp:
      (JSC::Yarr::RegexGenerator::compile):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3c803686
    • bweinstein@apple.com's avatar
      Fix the build by adding the needed MathML source files to WebCore's vcproj. · cbc7b394
      bweinstein@apple.com authored
      Also, Visual Studio did some drive-by resorting of the vcproj, the added
      MathML files are the only important change.
      
      * WebCore.vcproj/WebCore.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cbc7b394
    • mrowe@apple.com's avatar
      Add a new Leopard build slave to run the release tests. · efbd7c54
      mrowe@apple.com authored
      * BuildSlaveSupport/build.webkit.org-config/config.json:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      efbd7c54
    • joepeck@webkit.org's avatar
      2010-08-03 Joseph Pecoraro <joepeck@webkit.org> · fd066ae1
      joepeck@webkit.org authored
              Reviewed by Nate Chapin.
      
              Web Inspector: Missing ApplicationCache InspectorBackend Stub
              https://bugs.webkit.org/show_bug.cgi?id=43265
      
              Registered "getApplicationCaches".
      
              * inspector/front-end/InspectorBackendStub.js:
              (WebInspector.InspectorBackendStub):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd066ae1
    • bweinstein@apple.com's avatar
      Fix the Windows build by adding WebCore/mathml to the list of paths to look for header · 4fe42219
      bweinstein@apple.com authored
      files.
      
      * WebCore.vcproj/WebCoreCommon.vsprops:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4fe42219
    • jhoneycutt@apple.com's avatar
      WebKitTestRunner needs to activate the Mac font ascent hack · 419e63c1
      jhoneycutt@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=43404
      
      Reviewed by Darin Adler.
      
      WebKit2:
      
      * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
      (WKBundleActivateMacFontAscentHack):
      Get the InjectedBundle, and calls its activateMacFontAscentHack().
      
      * WebProcess/InjectedBundle/API/c/WKBundlePrivate.h:
      Declare WKBundleActivateMacFontAscentHack().
      
      * WebProcess/InjectedBundle/InjectedBundle.h:
      Declare activateMacFontAscentHack().
      
      * WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
      (WebKit::InjectedBundle::activateMacFontAscentHack):
      Stubbed.
      
      * WebProcess/InjectedBundle/qt/InjectedBundleQt.cpp:
      (WebKit::InjectedBundle::activateMacFontAscentHack):
      Stubbed.
      
      * WebProcess/InjectedBundle/win/InjectedBundleWin.cpp:
      (WebKit::InjectedBundle::activateMacFontAscentHack):
      Activate the ascent hack.
      
      WebKitTools:
      
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::initialize):
      Call WKBundleActivateMacFontAscentHack().
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      419e63c1