1. 30 Jan, 2011 16 commits
    • oliver@apple.com's avatar
      Try to fix Qt build (again). · d395a38d
      oliver@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77100 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d395a38d
    • oliver@apple.com's avatar
      Try to fix Qt build. · 1a14b16f
      oliver@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77099 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a14b16f
    • oliver@apple.com's avatar
      Convert markstack to a slot visitor API · ba805bee
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=53219
      
      rolling r77006 and r77020 back in.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba805bee
    • simon.fraser@apple.com's avatar
      2011-01-30 Simon Fraser <simon.fraser@apple.com> · 6651a517
      simon.fraser@apple.com authored
              Reviewed by Sam Weinig.
      
              Make ContextShadow code cross-platform
              https://bugs.webkit.org/show_bug.cgi?id=51312
      
              Add a new class, ShadowBlur, that contains most of the
              code from ContextShadow, but is fully cross-platform.
              It depends on one new method, GraphicsContext::clipBounds(),
              which platforms will have to implement.
      
              Add ShadowBlur to the Mac Xcode project, but don't use it
              anywhere yet.
      
              * WebCore.xcodeproj/project.pbxproj:
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::clipBounds):
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/ShadowBlur.cpp: Added.
              (WebCore::roundUpToMultipleOf32):
              (WebCore::ScratchBuffer::ScratchBuffer):
              (WebCore::ScratchBuffer::getScratchBuffer):
              (WebCore::ScratchBuffer::scheduleScratchBufferPurge):
              (WebCore::ScratchBuffer::timerFired):
              (WebCore::ScratchBuffer::clearScratchBuffer):
              (WebCore::ScratchBuffer::shared):
              (WebCore::ShadowBlur::ShadowBlur):
              (WebCore::ShadowBlur::blurLayerImage):
              (WebCore::ShadowBlur::adjustBlurDistance):
              (WebCore::ShadowBlur::calculateLayerBoundingRect):
              (WebCore::ShadowBlur::beginShadowLayer):
              (WebCore::ShadowBlur::endShadowLayer):
              (WebCore::ShadowBlur::drawRectShadow):
              (WebCore::ShadowBlur::drawRectShadowWithoutTiling):
              (WebCore::ShadowBlur::drawRectShadowWithTiling):
              (WebCore::ShadowBlur::clipBounds):
              * platform/graphics/ShadowBlur.h: Added.
              (WebCore::ShadowBlur::setShadowsIgnoreTransforms):
              (WebCore::ShadowBlur::shadowsIgnoreTransforms):
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::clipBounds):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6651a517
    • dpranke@chromium.org's avatar
      2011-01-30 Dirk Pranke <dpranke@chromium.org> · f43e2282
      dpranke@chromium.org authored
              Unreviewed, build fix.
      
              Fix regression introduced in r77093 - path.rsplit() doesn't
              take keyword arguments.
      
              https://bugs.webkit.org/show_bug.cgi?id=53326
      
              * Scripts/webkitpy/common/system/filesystem_mock.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f43e2282
    • dpranke@chromium.org's avatar
      2011-01-30 Dirk Pranke <dpranke@chromium.org> · 537be6a3
      dpranke@chromium.org authored
              Reviewed by Mihai Parparita.
      
              Add more unit tests for rebaseline-chromium-webkit-tests. This
              change involves restructuring a bunch of r-c-w-t code to make it
              more testable as well. We also add wrapper classes for handling
              testing zip files and fetching URLs.
      
              https://bugs.webkit.org/show_bug.cgi?id=53040
      
              * Scripts/webkitpy/common/system/urlfetcher.py:
              * Scripts/webkitpy/common/system/urlfetcher_mock.py:
              * Scripts/webkitpy/common/system/zipfileset_mock.py:
              * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py:
              * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests_unittest.py:
              * Scripts/webkitpy/tool/mocktool.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      537be6a3
    • ggaren@apple.com's avatar
      2011-01-30 Geoffrey Garen <ggaren@apple.com> · 7ddf61bc
      ggaren@apple.com authored
              Reviewed by Oliver Hunt.
      
              Filter all Heap collection through a common reset function, in
              preparation for adding features triggered by collection.
              https://bugs.webkit.org/show_bug.cgi?id=53396
              
              SunSpider reports no change.
      
              * runtime/Heap.cpp:
              (JSC::Heap::reportExtraMemoryCostSlowCase): When we're over the extraCost
              limit, just call collectAllGarbage() instead of rolling our own special
              way of resetting the heap. In theory, this may be slower in some cases,
              but it also fixes cases of pathological heap growth that we've seen,
              where the only objects being allocated are temporary and huge
              (<rdar://problem/8885843>).
      
              (JSC::Heap::allocate):
              (JSC::Heap::collectAllGarbage): Use the shared reset function.
      
              (JSC::Heap::reset):
              * runtime/Heap.h: Carved a new shared reset function out of the old
              collectAllGarbage.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7ddf61bc
    • dpranke@chromium.org's avatar
      2011-01-30 Dirk Pranke <dpranke@chromium.org> · 9f33cba2
      dpranke@chromium.org authored
              Reviewed by Eric Seidel.
      
              Clean up of the filesystem-related modules used in webkitpy.
              I've added relpath() to the filesystem interface, modified
              ospath.relpath() so that it could work with the filesystem
              interface, and modified the fileset* routines to use the
              filesystem interface consistently.
      
              This patch also adds a close() routine to the fileset routines
              to indicate that the caller is done with the fileset. This
              allows zipfileset to clean up after itself when it creates
              tempfiles to store downloads.
      
              https://bugs.webkit.org/show_bug.cgi?id=53326
      
              * Scripts/webkitpy/common/system/directoryfileset.py:
              * Scripts/webkitpy/common/system/fileset.py:
              * Scripts/webkitpy/common/system/filesystem.py:
              * Scripts/webkitpy/common/system/filesystem_mock.py:
              * Scripts/webkitpy/common/system/filesystem_unittest.py:
              * Scripts/webkitpy/common/system/ospath.py:
              * Scripts/webkitpy/common/system/zipfileset.py:
              * Scripts/webkitpy/common/system/zipfileset_unittest.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f33cba2
    • kbalazs@webkit.org's avatar
      2011-01-30 Balazs Kelemen <kbalazs@webkit.org> · 9411f803
      kbalazs@webkit.org authored
              Reviewed by Csaba Osztrogonác.
      
              [Qt][WK2]REGRESSION (r76991): Fix build errors
              https://bugs.webkit.org/show_bug.cgi?id=53400
      
              Revert the temporary build fix (http://trac.webkit.org/changeset/77088)
              and remove WebKit2Prefix.h from the build.
              * UIProcess/API/qt/qwkhistory.h:
              * UIProcess/API/qt/qwkpage.h:
              * WebKit2.pro:
      2011-01-30  Balazs Kelemen  <kbalazs@webkit.org>
      
              Reviewed by Csaba Osztrogonác.
      
              [Qt][WK2]REGRESSION (r76991): Fix build errors
              https://bugs.webkit.org/show_bug.cgi?id=53400
      
              Revert the temporary build fix (http://trac.webkit.org/changeset/77088)
              and remove WebKit2Prefix.h from the build.
              * MiniBrowser/qt/MiniBrowser.pro:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9411f803
    • commit-queue@webkit.org's avatar
      2011-01-30 Jeff Miller <jeffm@apple.com> · 0b49aec0
      commit-queue@webkit.org authored
              Reviewed by Dan Bernstein.
      
              FindController::updateFindIndicator() crashes if selection isn't visible
              https://bugs.webkit.org/show_bug.cgi?id=53399
      
              * WebProcess/WebPage/FindController.cpp:
              (WebKit::FindController::updateFindIndicator): Return false if ShareableBitmap::createShareable() returns null (typically because the selection rect is empty).
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b49aec0
    • ossy@webkit.org's avatar
      Unreviewed, rolling out r77025. · c80464ba
      ossy@webkit.org authored
      http://trac.webkit.org/changeset/77025
      https://bugs.webkit.org/show_bug.cgi?id=53401
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-01-30
      It made js1_5/Regress/regress-159334.js fail on 64 bit Linux
      (Requested by Ossy on #webkit).
      
      * jit/ExecutableAllocatorFixedVMPool.cpp:
      (JSC::FreeListEntry::FreeListEntry):
      (JSC::AVLTreeAbstractorForFreeList::get_less):
      (JSC::AVLTreeAbstractorForFreeList::set_less):
      (JSC::AVLTreeAbstractorForFreeList::get_greater):
      (JSC::AVLTreeAbstractorForFreeList::set_greater):
      (JSC::AVLTreeAbstractorForFreeList::get_balance_factor):
      (JSC::AVLTreeAbstractorForFreeList::set_balance_factor):
      (JSC::AVLTreeAbstractorForFreeList::null):
      (JSC::AVLTreeAbstractorForFreeList::compare_key_key):
      (JSC::AVLTreeAbstractorForFreeList::compare_key_node):
      (JSC::AVLTreeAbstractorForFreeList::compare_node_node):
      (JSC::reverseSortFreeListEntriesByPointer):
      (JSC::reverseSortCommonSizedAllocations):
      (JSC::FixedVMPoolAllocator::release):
      (JSC::FixedVMPoolAllocator::reuse):
      (JSC::FixedVMPoolAllocator::addToFreeList):
      (JSC::FixedVMPoolAllocator::coalesceFreeSpace):
      (JSC::FixedVMPoolAllocator::FixedVMPoolAllocator):
      (JSC::FixedVMPoolAllocator::alloc):
      (JSC::FixedVMPoolAllocator::free):
      (JSC::FixedVMPoolAllocator::isValid):
      (JSC::FixedVMPoolAllocator::allocInternal):
      (JSC::FixedVMPoolAllocator::isWithinVMPool):
      (JSC::FixedVMPoolAllocator::addToCommittedByteCount):
      (JSC::ExecutableAllocator::committedByteCount):
      (JSC::maybeModifyVMPoolSize):
      (JSC::ExecutableAllocator::isValid):
      (JSC::ExecutableAllocator::underMemoryPressure):
      (JSC::ExecutablePool::systemAlloc):
      (JSC::ExecutablePool::systemRelease):
      * wtf/PageReservation.h:
      (WTF::PageReservation::PageReservation):
      (WTF::PageReservation::commit):
      (WTF::PageReservation::decommit):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c80464ba
    • simon.fraser@apple.com's avatar
      2011-01-29 Simon Fraser <simon.fraser@apple.com> · 4f8c2fc9
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              CSS3 gradients with em-based stops fail to repaint when font size changes
              https://bugs.webkit.org/show_bug.cgi?id=51845
      
              Mark as uncacheable gradidients whose color stops depend on font size,
              and don't attempt to put these into CSSImageGeneratorValue's image cache.
              This means we return a new gradient each time, which is fairly cheap, and
              fixes repaint issues under changing font size.
      
              Test: fast/repaint/gradients-em-stops-repaint.html
      
              * css/CSSGradientValue.cpp:
              (WebCore::CSSGradientValue::image):
              (WebCore::CSSGradientValue::isCacheable):
              * css/CSSGradientValue.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f8c2fc9
    • ossy@webkit.org's avatar
      Unreviewed. · dcd3ca68
      ossy@webkit.org authored
      [Qt][WK2] Buildfix.
      
      Source/WebKit2:
      
      * UIProcess/API/qt/qwkhistory.h:
      * UIProcess/API/qt/qwkpage.h:
      
      Tools:
      
      * MiniBrowser/qt/MiniBrowser.pro:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcd3ca68
    • commit-queue@webkit.org's avatar
      2011-01-30 Leo Yang <leo.yang@torchmobile.com.cn> · 90506bc5
      commit-queue@webkit.org authored
              Reviewed by Daniel Bates.
      
              Code style issue in JavaScriptCore/wtf/CurrentTime.h
              https://bugs.webkit.org/show_bug.cgi?id=53394
      
              According to rule #3 at http://webkit.org/coding/coding-style.html,
              This patch fix style issue in CurrentTime.h.
      
              No functionality change, no new tests.
      
              * wtf/CurrentTime.h:
              (WTF::currentTimeMS):
              (WTF::getLocalTime):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77087 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      90506bc5
    • commit-queue@webkit.org's avatar
      2011-01-30 Benjamin Poulain <ikipou@gmail.com> · 00653b9d
      commit-queue@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt] JavaScriptCore does not link on Mac if building WebKit 2
              https://bugs.webkit.org/show_bug.cgi?id=53377
      
              The option "-whole-archive" is not availabe with the libtool of Mac OS X,
              instead, we can use "-all_load" on Mac.
      
              * JavaScriptCore.pri:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77086 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00653b9d
    • mjs@apple.com's avatar
      2011-01-29 Maciej Stachowiak <mjs@apple.com> · 4eb255c1
      mjs@apple.com authored
              Reviewed by Geoffrey Garen.
      
              Add WKPageCopyPendingAPIRequestURL API
              https://bugs.webkit.org/show_bug.cgi?id=53383
      
              This API returns the last URL requested for load via API, if neither that load nor any
              other load subsequently reaches the provisional state.
              
              This is useful to be able to track loads initiated via the API
              
              * UIProcess/API/C/WKPage.cpp:
              (WKPageCopyPendingAPIRequestURL): Retrieve the pending URL.
              * UIProcess/API/C/WKPage.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::loadURL): Set pending URL.
              (WebKit::WebPageProxy::loadURLRequest): ditto
              (WebKit::WebPageProxy::reload): ditto
              (WebKit::WebPageProxy::goForward): ditto
              (WebKit::WebPageProxy::goBack): ditto
              (WebKit::WebPageProxy::estimatedProgress): Assume the initial
              progress value when there is a pending URL.
              (WebKit::WebPageProxy::didStartProvisionalLoadForFrame): Clear
              pending URL; clients should look at the provisional URL now.
              (WebKit::WebPageProxy::decidePolicyForNavigationAction): Clear
              pending URL if it doesn't match the policy URL; this means we
              were interrupted by another load.
              * UIProcess/WebPageProxy.h:
              (WebKit::WebPageProxy::pendingAPIRequestURL): Helper function.
              (WebKit::WebPageProxy::clearPendingAPIRequestURL): ditto
              (WebKit::WebPageProxy::setPendingAPIRequestURL): ditto
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77085 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4eb255c1
  2. 29 Jan, 2011 24 commits