1. 30 Jan, 2011 26 commits
    • simon.fraser@apple.com's avatar
      2011-01-30 Simon Fraser <simon.fraser@apple.com> · 36a7cc24
      simon.fraser@apple.com authored
              Reviewed by Sam Weinig.
      
              Enhance ShadowBlur to render inset box shadows
              https://bugs.webkit.org/show_bug.cgi?id=51567
      
              Use ShadowBlur for inset box-shadows with CG. It
              currently lacks a tiled version, but is still much
              faster than CG shadows.
      
              Test: fast/box-shadow/inset-box-shadow-radius.html
      
              * platform/graphics/ShadowBlur.cpp:
              * platform/graphics/ShadowBlur.h: New method for inset
              shadows.
              (WebCore::ShadowBlur::drawInsetShadow):
      
              * platform/graphics/GraphicsContext.cpp: #ifdef out
              fillRectWithRoundedHole() for CG.
      
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::fillRectWithRoundedHole): If there's
              a shadow with a radius > 0, use ShadowBlur.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77110 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      36a7cc24
    • oliver@apple.com's avatar
      More Qt build fixes · e728a61c
      oliver@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77109 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e728a61c
    • kbr@google.com's avatar
      2011-01-28 Kenneth Russell <kbr@google.com> · bb1c5656
      kbr@google.com authored
              Reviewed by Chris Marrin.
      
              WebGL shows PNG Textures with indexed colors too dark
              https://bugs.webkit.org/show_bug.cgi?id=47477
      
              Added test case for upload of indexed PNG images to
              gl-teximage.html in the Khronos WebGL conformance tests.
              Synchronized this test with the Khronos repository.
      
              * fast/canvas/webgl/gl-teximage-expected.txt:
              * fast/canvas/webgl/gl-teximage.html:
              * fast/canvas/webgl/resources/red-indexed.png: Added.
      2011-01-28  Kenneth Russell  <kbr@google.com>
      
              Reviewed by Chris Marrin.
      
              WebGL shows PNG Textures with indexed colors too dark
              https://bugs.webkit.org/show_bug.cgi?id=47477
      
              Properly handle indexed PNG images by re-rendering them as RGBA
              images before upload. Verified with this layout test and the test
              cases from bugs 47477 and 53269.
      
              * platform/graphics/cg/GraphicsContext3DCG.cpp:
              (WebCore::GraphicsContext3D::getImageData):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77108 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb1c5656
    • morrita@google.com's avatar
      2011-01-27 MORITA Hajime <morrita@google.com> · 45c6a5f4
      morrita@google.com authored
              Reviewed by Dimitri Glazkov.
      
              Convert <progress> shadow DOM to a DOM-based shadow.
              https://bugs.webkit.org/show_bug.cgi?id=50660
      
              * Removed RenderProgress::m_valuePart, moved the shadow node
                to the shadow root of HTMLProgressElement.
              * Removed hard-coded pseudo ID for -webkit-progress-bar-value.
                ProgressBarValueElement is defined only for overriding
                shadowPseudoId().
      
              No new tests. No behavioral change.
      
              * css/CSSSelector.cpp:
              (WebCore::CSSSelector::pseudoId):
              (WebCore::nameToPseudoTypeMap):
              (WebCore::CSSSelector::extractPseudoType):
              * css/CSSSelector.h:
              * html/HTMLProgressElement.cpp:
              (WebCore::ProgressBarValueElement::ProgressBarValueElement):
              (WebCore::ProgressBarValueElement::shadowPseudoId):
              (WebCore::ProgressBarValueElement::create):
              (WebCore::HTMLProgressElement::parseMappedAttribute):
              (WebCore::HTMLProgressElement::attach):
              (WebCore::HTMLProgressElement::valuePart):
              (WebCore::HTMLProgressElement::didElementStateChange):
              (WebCore::HTMLProgressElement::createShadowSubtreeIfNeeded):
              * html/HTMLProgressElement.h:
              * rendering/RenderProgress.cpp:
              (WebCore::RenderProgress::~RenderProgress):
              (WebCore::RenderProgress::updateFromElement):
              (WebCore::RenderProgress::layoutParts):
              (WebCore::RenderProgress::shouldHaveParts):
              (WebCore::RenderProgress::valuePart):
              * rendering/RenderProgress.h:
              * rendering/style/RenderStyleConstants.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45c6a5f4
    • simon.fraser@apple.com's avatar
      2011-01-30 Simon Fraser <simon.fraser@apple.com> · 33875137
      simon.fraser@apple.com authored
              Reviewed by Ariya Hidayat.
      
              Enhance ShadowBlur to render inset box shadows; Part 1.
              https://bugs.webkit.org/show_bug.cgi?id=51567
      
              Add a new method to GraphicsContext to render a rect with a rounded hole,
              for use by inset box-shadow code. Knowledge that we're rendering a rounded
              hole will enable ShadowBlur to be used here in future.
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::fillRectWithRoundedHole):
              * platform/graphics/GraphicsContext.h:
              * rendering/RenderBoxModelObject.cpp:
              (WebCore::RenderBoxModelObject::paintBoxShadow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77106 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33875137
    • morrita@google.com's avatar
      2011-01-23 MORITA Hajime <morrita@google.com> · 2d33a85b
      morrita@google.com authored
              Reviewed by Eric Seidel.
      
              REGRESSION: Inset shadow with too large border radius misses rounded corner.
              https://bugs.webkit.org/show_bug.cgi?id=52800
      
              * fast/box-shadow/inset-with-extraordinary-radii-and-border.html: Added.
              * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.checksum: Added.
              * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.png: Added.
              * platform/mac/fast/box-shadow/inset-with-extraordinary-radii-and-border-expected.txt: Added.
      2011-01-23  MORITA Hajime  <morrita@google.com>
      
              Reviewed by Eric Seidel.
      
              REGRESSION: Inset shadow with too large border radius misses rounded corner.
              https://bugs.webkit.org/show_bug.cgi?id=52800
      
              The refactoring on r76083 broke the invariant between border
              IntRect and its radii because RoundedIntRect::setRect() is called
              after getRoundedInnerBorderWithBorderWidths(), which enforces the
              invariant. Th rounded-rect clipping code verifies the invariant,
              and discard the invalid radii, that results broken paintings.
      
              This change moved setRect() before
              getRoundedInnerBorderWithBorderWidths() not to modify the valid
              RoundedIntRect value.
      
              Test: fast/box-shadow/inset-with-extraordinary-radii-and-border.html
      
              * rendering/RenderBoxModelObject.cpp:
              (WebCore::RenderBoxModelObject::paintBoxShadow):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d33a85b
    • ggaren@apple.com's avatar
      2011-01-30 Geoffrey Garen <ggaren@apple.com> · 3d2ff16f
      ggaren@apple.com authored
              Reviewed by Sam Weinig.
      
              [Take 2!]
              Fixed crash on window close (maybe crash on launch?) due to missing frame null checks
              https://bugs.webkit.org/show_bug.cgi?id=53408
      
              * UIProcess/WebContext.cpp:
              (WebKit::WebContext::didNavigateWithNavigationData):
              (WebKit::WebContext::didPerformClientRedirect):
              (WebKit::WebContext::didPerformServerRedirect):
              (WebKit::WebContext::didUpdateHistoryTitle): Use MESSAGE_CHECK because
              we don't think we should be able to reach this state under normal conditions.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3d2ff16f
    • simon.fraser@apple.com's avatar
      2011-01-30 Simon Fraser <simon.fraser@apple.com> · e33f672b
      simon.fraser@apple.com authored
              Attempt to fix Windows build by adding ShadowBlur.cpp/h to the
              vcproj.
      
              * WebCore.vcproj/WebCore.vcproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77103 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e33f672b
    • ggaren@apple.com's avatar
      2011-01-30 Geoffrey Garen <ggaren@apple.com> · d2f61674
      ggaren@apple.com authored
              Reviewed by Maciej Stachowiak.
      
              Fixed crash on window close (maybe crash on launch?) due to missing
              frame null checks
              https://bugs.webkit.org/show_bug.cgi?id=53408
      
              * UIProcess/WebContext.cpp:
              (WebKit::WebContext::didNavigateWithNavigationData):
              (WebKit::WebContext::didPerformClientRedirect):
              (WebKit::WebContext::didPerformServerRedirect):
              (WebKit::WebContext::didUpdateHistoryTitle): Check for NULL, since we're
              calling a function that can return it.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77102 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2f61674
    • simon.fraser@apple.com's avatar
      2011-01-30 Simon Fraser <simon.fraser@apple.com> · 9d92cc2a
      simon.fraser@apple.com authored
              Reviewed by Dan Bernstein.
      
              -webkit-box-shadow causes awful scroll/resize/redraw performance
              https://bugs.webkit.org/show_bug.cgi?id=22102
      
              Use ShadowBlur for CG, whe rendering shadows on rects and
              rounded rects outside of canvas.
      
              CG shadows with a radius of more than 8px do not render
              correctly. We preserve this incorrect rendering by compensating
              for it when rending -webkit-box-shadow. Calls that should use
              this deprecated radius behavior now use setLegacyShadow().
      
              Test: fast/box-shadow/box-shadow-transformed.html
      
              * html/canvas/CanvasRenderingContext2D.cpp: Use setLegacyShadow()
              for canvas, to indicate that it should use the deprecated radius
              behavior.
              (WebCore::CanvasRenderingContext2D::setAllAttributesToDefault): Ditto.
              (WebCore::CanvasRenderingContext2D::setShadow): Ditto.
              (WebCore::CanvasRenderingContext2D::applyShadow): Ditto.
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::setLegacyShadow): Set the m_state.shadowsUseLegacyRadius bit.
      
              * platform/graphics/GraphicsContext.h:
              (WebCore::GraphicsContextState::GraphicsContextState): Add a
              shadowsUseLegacyRadius bit to the state.
      
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::radiusToLegacyRadius): Map from the actual radius to one
              that approximates CG behavior.
              (WebCore::hasBlurredShadow): Helper that returns true if we have a shadow
              with a non-zero blur radius.
              (WebCore::GraphicsContext::fillRect): Use ShadowBlur if not canvas.
              (WebCore::GraphicsContext::fillRoundedRect): Ditto.
              (WebCore::GraphicsContext::setPlatformShadow): Comment.
      
              * rendering/RenderBoxModelObject.cpp:
              (WebCore::RenderBoxModelObject::paintBoxShadow): Call setLegacyShadow()
              for -webkit-box-shadow.
      
              * platform/graphics/ShadowBlur.cpp:
              (WebCore::ShadowBlur::calculateLayerBoundingRect): Fix some pixel crack issues
              by rounding up the blur radius.
              (WebCore::ShadowBlur::drawRectShadow): Ditto
              (WebCore::ShadowBlur::drawRectShadowWithTiling): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@77101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d92cc2a
    • 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 14 commits