1. 13 Mar, 2010 6 commits
  2. 12 Mar, 2010 34 commits
    • barraclough@apple.com's avatar
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: · 5ac12f3f
      barraclough@apple.com authored
      Reviewed by NOBODY (build fix).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55948 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ac12f3f
    • enrica@apple.com's avatar
      Fixed broken build on Windows. · d6d7e351
      enrica@apple.com authored
      Added contditional compilation for accelerated compositing.
      
      * WebView.cpp:
      (WebView::deleteBackingStore):
      (WebView::addToDirtyRegion):
      (WebView::updateBackingStore):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55947 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6d7e351
    • bdakin@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=34942 Fullscreen · e7bfed76
      bdakin@apple.com authored
      API naming is inconsistent
      -and corresponding-
      <rdar://problem/7729165>
      
      Reviewed by Simon Fraser.
      
      WebCore: 
      
      This patch changes all occurrences of "fullScreen" to the more 
      popular "fullscreen." webkitEnterFullScreen and 
      webkitExitFullScreen have been maintained for now for backwards 
      compatibility. 
      
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::webkitEnterFullscreen):
      (WebCore::HTMLVideoElement::webkitExitFullscreen):
      * html/HTMLVideoElement.h:
      (WebCore::HTMLVideoElement::webkitEnterFullScreen):
      (WebCore::HTMLVideoElement::webkitExitFullScreen):
      * html/HTMLVideoElement.idl:
      * platform/graphics/mac/MediaPlayerProxy.h:
      
      WebKit/mac: 
      
      This patch changes all occurrences of "fullScreen" to the more 
      popular "fullscreen."
      
      * Plugins/Hosted/NetscapePluginHostProxy.h:
      (WebKit::NetscapePluginHostProxy::isFullscreenWindowShowing):
      * Plugins/Hosted/NetscapePluginHostProxy.mm:
      (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
      (WebKit::NetscapePluginHostProxy::didEnterFullscreen):
      (WebKit::NetscapePluginHostProxy::didExitFullscreen):
      (WebKit::NetscapePluginHostProxy::setFullscreenWindowIsShowing):
      (WKPCSetFullscreenWindowIsShowing):
      * Plugins/Hosted/WebKitPluginClient.defs:
      * Plugins/WebNetscapePluginView.mm:
      (-[WebNetscapePluginView _workaroundSilverlightFullscreenBug:]):
      (-[WebNetscapePluginView _createPlugin]):
      (-[WebNetscapePluginView _destroyPlugin]):
      * WebView/WebVideoFullscreenHUDWindowController.mm:
      (-[WebVideoFullscreenHUDWindowController windowDidLoad]):
      
      WebKit/win: 
      
      This patch changes all occurrences of "fullScreen" to the more 
      popular "fullscreen."
      
      * FullscreenVideoController.cpp:
      (FullscreenVideoController::onMouseDown):
      (FullscreenVideoController::onMouseMove):
      (FullscreenVideoController::onMouseUp):
      * FullscreenVideoController.h:
      (FullscreenVideoController::fullscreenToHUDCoordinates):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55946 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e7bfed76
    • jamesr@google.com's avatar
      2010-03-12 James Robinson <jamesr@chromium.org> · b095f1c0
      jamesr@google.com authored
              Reviewed by Adam Barth.
      
              Add virtual destructor to DOMWrapperWorld
              https://bugs.webkit.org/show_bug.cgi?id=36077
      
              DOMWrapperWorld is RefCounted<DOMWrapperWorld>.  IsolatedWorld
              inherits from DOMWrapperWorld and has member variables
              with destructors, so DOMWrapperWorld needs to have a declared virtual
              d'tor to ensure that its derived class's destructors are called.
      
              No new tests, no change in behavior
      
              * bindings/v8/DOMWrapperWorld.h:
              (WebCore::DOMWrapperWorld::~DOMWrapperWorld):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55945 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b095f1c0
    • barraclough@apple.com's avatar
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: · 69ca0715
      barraclough@apple.com authored
      Reviewed by NOBODY (build fix).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55944 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69ca0715
    • barraclough@apple.com's avatar
      Bug 36075 - Clean up screwyness re static string impls & Identifiers. · c24293a1
      barraclough@apple.com authored
      Reviewed by Oliver Hunt.
      
      JavaScriptCore: 
      
      * API/JSClassRef.cpp:
      (OpaqueJSClass::~OpaqueJSClass): Classname may be null/empty, and these are an identifer.  This is okay, since the null/empty strings are shared across all threads.
      * JavaScriptCore.exp:
      * runtime/Identifier.cpp:
      (JSC::Identifier::add): No need to explicitly hash null reps, this is done in the ststic UStringImpl constructor.
      (JSC::Identifier::addSlowCase): UStringImpl::empty() handled & checkCurrentIdentifierTable now called in the header.
      (JSC::Identifier::checkCurrentIdentifierTable): Replaces checkSameIdentifierTable (this no longer checked the rep since the identifierTable pointer was removed from UString::Rep long ago).
      * runtime/Identifier.h:
      (JSC::Identifier::add): Replace call to checkSameIdentifierTable with call to checkCurrentIdentifierTable at head of function.
      * runtime/UStringImpl.cpp:
      (JSC::UStringImpl::~UStringImpl): Remove call to checkConsistency - this function no longer checks anything interesting.
      * runtime/UStringImpl.h:
      (JSC::UStringOrRopeImpl::UStringOrRopeImpl): Set s_refCountFlagIsIdentifier in static constructor.
      (JSC::UStringImpl::UStringImpl): remove calls to checkConsistency (see above), add new ASSERT to substring constructor.
      (JSC::UStringImpl::setHash): ASSERT not static (static strings set the hash in their constructor, should not reach this code path).
      (JSC::UStringImpl::create): Add missing ASSERT.
      (JSC::UStringImpl::setIsIdentifier): ASSERT !isStatic() (static strings hash set in constructor).
      
      WebCore: 
      
      * platform/text/StringImpl.cpp:
      (WebCore::StringImpl::~StringImpl): Add ASSERT
      (WebCore::StringImpl::sharedBuffer): Add ASSERT
      * platform/text/StringImpl.h:
      (WebCore::StringImpl::setHash): Add ASSERT
      (WebCore::StringImpl::isStatic): added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55943 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c24293a1
    • bdakin@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=33739 Fullscreen · c167ac58
      bdakin@apple.com authored
      video HUD stays on top when switching to another window (e.g. via 
      Alt-Tab)
      -and corresponding-
      <rdar://problem/7547574>
      
      Reviewed by Adam Roben.
      
      The HUD was always on top because it had the WS_EX_TOPMOST style. 
      So I removed the style and made m_videoWindow the owner of 
      m_hudWindow. This keeps m_hudWindow on top only when m_videoWindow 
      is the focused window.
      
      * FullscreenVideoController.cpp:
      (FullscreenVideoController::exitFullscreen): ASSERT that movie()->exitFullscreen() also destroyed the hud.
      (FullscreenVideoController::createHUDWindow):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55942 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c167ac58
    • enrica@apple.com's avatar
      Content of 3D tests appears at the bottom right corner sometimes. · 401b2ab7
      enrica@apple.com authored
      <rdar://problem/7556244>
      <https://bugs.webkit.org/show_bug.cgi?id=36027>
      
      Reviewed by Simon Fraser.
      
      WebCore: 
      
      There were two problems to solve here:
      - the incorrect anchoring of the rootChildLayer that was causing the composited
        content to be positioned incorrectly
      - the failure to paint the non composited content into the backing store when
        animating composited content.
                
      The first problem has been solved by leaving the original anchor point for the
      rootChildLayer and splitting the tasks of clipping and scrolling using two separate layers.
      The second problem has been solved leveraging the knowledge that WebView has of the dirty region
      of the backing store to pass this information to the layer renderer. This allows the renderer to force
      a paint into the backing store before moving to the compositing.
              
      Tests: compositing/geometry/horizontal-scroll-composited.html
             compositing/geometry/vertical-scroll-composited.html
      
      * manual-tests/win/horizontal-scroll-composited.html: Removed. This is now a layout test.
      * manual-tests/win/milliondollar.html: Added.
      * platform/graphics/win/WKCACFLayerRenderer.cpp:
      (WebCore::WKCACFLayerRenderer::WKCACFLayerRenderer): Added initialization of dirty flag.
      (WebCore::WKCACFLayerRenderer::setScrollFrame): 
      (WebCore::WKCACFLayerRenderer::updateScrollFrame): Updated to resize and position the clip and scroll layers.
      (WebCore::WKCACFLayerRenderer::setRootChildLayer):
      (WebCore::WKCACFLayerRenderer::createRenderer): Added new layer hierarchy.
      (WebCore::WKCACFLayerRenderer::destroyRenderer): Remove clip layer on destroy.
      (WebCore::WKCACFLayerRenderer::resize):
      (WebCore::WKCACFLayerRenderer::paint): Forcing paint massage to trigger paint into the backing store.
      * platform/graphics/win/WKCACFLayerRenderer.h:
      (WebCore::WKCACFLayerRenderer::setBackingStoreDirty): Added.
      
      WebKit/win: 
      
      See detailed comments in WebCore/ChangeLog.
      
      * WebView.cpp:
      (WebView::deleteBackingStore): Reset the dirty flag when deleting the backing store.
      (WebView::addToDirtyRegion): Set the dirty flag when adding dirty rectangles to the
      backing store dirty region.
      (WebView::updateBackingStore): Reset the dirty flag after painting into the backing store.
      (WebView::setAcceleratedCompositing): Removed unnecessary call to updateRootLayerContents.
      (WebView::updateRootLayerContents): Changed the way we pass parameters to setScrollFrame.
      We are passing width and height of the view content together with the offset for the scrolling.
      It was confusing to pass it all as a rectangle, when it is not a rectangle.
      
      LayoutTests: 
      
      * compositing/geometry/horizontal-scroll-composited.html: Added.
      * compositing/geometry/vertical-scroll-composited.html: Added.
      * compositing/resources/apple.jpg: Added.
      * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.checksum: Added.
      * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.png: Added.
      * platform/mac/compositing/geometry/horizontal-scroll-composited-expected.txt: Added.
      * platform/mac/compositing/geometry/vertical-scroll-composited-expected.checksum: Added.
      * platform/mac/compositing/geometry/vertical-scroll-composited-expected.png: Added.
      * platform/mac/compositing/geometry/vertical-scroll-composited-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55941 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      401b2ab7
    • dpranke@chromium.org's avatar
      2010-03-12 Dirk Pranke <dpranke@chromium.org> · 0d7d7721
      dpranke@chromium.org authored
              Reviewed by Dimitri Glazkov.
      
              Fix typo in websocket_server (path_from_base instead of
              path_from_chromium_base).
      
              https://bugs.webkit.org/show_bug.cgi?id=36074
      
              * Scripts/webkitpy/layout_tests/port/websocket_server.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55940 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0d7d7721
    • robert@webkit.org's avatar
      2010-03-12 Robert Hogan <robert@webkit.org> · 3fb2faa4
      robert@webkit.org authored
              Not reviewed, build fix.
      
              Revert http://trac.webkit.org/projects/webkit/changeset/55374 which broke
              the !ENABLE(DATABASE) build on all platforms when attempting to fix the
              --minimal build on Qt.
      
              Support for SQLite now seems to be non-negotiable for the Qt build but making
              it mandatory requires review, so re-break --minimal Qt build for now.
      
              Qt build issue now tracked at https://bugs.webkit.org/show_bug.cgi?id=36073
      
              * page/GeolocationPositionCache.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3fb2faa4
    • dpranke@chromium.org's avatar
      2010-03-12 Dirk Pranke <dpranke@chromium.org> · d5415dfd
      dpranke@chromium.org authored
              Reviewed by Adam Barth.
      
              new-run-webkit-tests --new-baseline doesn't work at all.
      
              It attempts to call a method that isn't defined. To fix it, I
              removed the unnecessary and unnecessarily confusing 'platform'
              argument to the test_type constructor and use the Port object that
              is passed in instead, since we are only ever generating a baseline
              from the port that is currently executing.
      
              https://bugs.webkit.org/show_bug.cgi?id=36046
      
              * Scripts/webkitpy/layout_tests/port/mac.py:
              * Scripts/webkitpy/layout_tests/rebaseline_chromium_webkit_tests.py:
              * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
              * Scripts/webkitpy/layout_tests/test_types/test_type_base.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5415dfd
    • dpranke@chromium.org's avatar
      2010-03-12 Dirk Pranke <dpranke@chromium.org> · f00c0851
      dpranke@chromium.org authored
              Reviewed by Adam Barth.
      
              Fix new-run-webkit-tests --run-singly
      
              This script option is currently broken - the script attempts to
              dereference methods and variables that don't exist, which causes
              the Chromium Linux valgrind bot to be quite unhappy. This has been
              broken since r54449 when I renamed Port.start_test_driver to
              Port.start_driver.
      
              https://bugs.webkit.org/show_bug.cgi?id=36042
      
              * Scripts/webkitpy/layout_tests/layout_package/test_shell_thread.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f00c0851
    • krit@webkit.org's avatar
      2010-03-12 Dirk Schulze <krit@webkit.org> · d1efe04a
      krit@webkit.org authored
              Unreviewed LayoutTest update.
      
              Result was not updated with r55930.
      
              * platform/mac/svg/custom/dominant-baseline-hanging-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d1efe04a
    • mitz@apple.com's avatar
      <rdar://problem/7709115> REGRESSION: toolbar is missing at http://www.glom.org/ · 83571990
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=35507
      
      Reviewed by Alexey Proskuryakov.
      
      * css/CSSImportRule.cpp:
      (WebCore::CSSImportRule::setCSSStyleSheet): Extend the change made in
      <http://trac.webkit.org/changeset/48818> to detect the two variants of
      KHTMLFixes.css in @import rules as well as in <link> elements.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55935 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83571990
    • barraclough@apple.com's avatar
      Bug 36052 - [Qt] REGRESSION(55878) 63 test cases crash · dc9d96ff
      barraclough@apple.com authored
      Reviewed by Geoff Garen.
      
      r55878 changed UStringImpl::empty()->characters() to be non-null,
      so TextBreakIteratorQt.cpp now should check the length of strings
      (previously was assuming all strings with a non-null data pointer
      had a length of at least 1).
      
      * platform/text/qt/TextBreakIteratorQt.cpp:
      (WebCore::wordBreakIterator):
      (WebCore::characterBreakIterator):
      (WebCore::lineBreakIterator):
      (WebCore::sentenceBreakIterator):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55934 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc9d96ff
    • abarth@webkit.org's avatar
      2010-03-12 Garret Kelly <gdk@chromium.org> · 0ea4f58a
      abarth@webkit.org authored
              Unreiviewed.
      
              Fix Chromium Mac build. Last patch did not apply properly.
              (Garret assures me this patch will actually work.)
      
              * src/WebInputEventConversion.cpp:
              (WebKit::toPlatformTouchEventType):
              (WebKit::toPlatformTouchPointState):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55933 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ea4f58a
    • abarth@webkit.org's avatar
      2010-03-12 Garret Kelly <gdk@chromium.org> · ba24f910
      abarth@webkit.org authored
              Unreviewed.
      
              Fix Chromium Mac build. This time, with actual fixing goodness.
      
              * src/WebInputEventConversion.cpp:
              (WebKit::toPlatformTouchEventType):
              (WebKit::toPlatformTouchPointState):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55932 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba24f910
    • beidson@apple.com's avatar
      Expose WebPDFView's underlying PDFDocument. · 4ed289bf
      beidson@apple.com authored
      Patch by Andy Estes <aestes@apple.com> on 2010-03-12
      Reviewed by Brady Eidson.
      
      https://bugs.webkit.org/show_bug.cgi?id=36045
      
      * WebView/WebDocumentPrivate.h: Create a new protocol called
      WebDocumentPDF.
      * WebView/WebPDFView.h: Have WebPDFView implement said protocol.
      * WebView/WebPDFView.mm:
      (-[WebPDFView PDFDocument]): Expose WebPDFView's underlying
      PDFDocument by implementing -(PDFDocument*)PDFDocument from
      WebDocumentPDF.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55931 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4ed289bf
    • krit@webkit.org's avatar
      2010-03-12 Dirk Schulze <krit@webkit.org> · ad448306
      krit@webkit.org authored
              Reviewed by Nikolas Zimmermann.
      
              SVG fallback color doesn't work for bogus gradients.
              https://bugs.webkit.org/show_bug.cgi?id=35479
      
              Use a given fallback color on ignored gradients if present. Gradients
              must be ignored, if one dimension of the objects boundingBox is zero.
      
              Test: svg/custom/gradient-with-1d-boundingbox.svg
      
              * svg/graphics/SVGPaintServer.cpp:
              (WebCore::SVGPaintServer::strokePaintServer):
              * svg/graphics/SVGPaintServerGradient.cpp:
              (WebCore::SVGPaintServerGradient::setup):
      2010-03-12  Dirk Schulze  <krit@webkit.org>
      
              Reviewed by Nikolas Zimmermann.
      
              SVG fallback color doesn't work for bogus gradients.
              https://bugs.webkit.org/show_bug.cgi?id=35479
      
              We now use a fallback color on ignored gradients for one dimensional objects,
              either a given fallback color or black as default.
              This causes a change of one LayoutTest, because it was done manually in the
              gradient PaintServer, without respecting a given fallback color.
      
              * platform/mac/svg/W3C-SVG-1.1/pservers-grad-17-b-expected.txt:
              * platform/mac/svg/custom/gradient-with-1d-boundingbox-expected.checksum: Added.
              * platform/mac/svg/custom/gradient-with-1d-boundingbox-expected.png: Added.
              * platform/mac/svg/custom/gradient-with-1d-boundingbox-expected.txt: Added.
              * svg/custom/gradient-with-1d-boundingbox.svg: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55930 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad448306
    • abarth@webkit.org's avatar
      2010-03-12 Garret Kelly <gdk@chromium.org> · 37aceac7
      abarth@webkit.org authored
              Unreviewed.
      
              Fix Chromium Mac build.
      
              * src/WebInputEventConversion.cpp:
              (WebKit::toPlatformTouchEventType):
              (WebKit::toPlatformTouchPointState):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55929 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37aceac7
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=36069 · 9f47d581
      hyatt@apple.com authored
              
      Reviewed by Dan Bernstein.
      
      Eliminate InlineRunBox.
      
      * WebCore.xcodeproj/project.pbxproj:
      * rendering/InlineFlowBox.cpp:
      (WebCore::InlineFlowBox::adjustPosition):
      (WebCore::InlineFlowBox::paintFillLayer):
      (WebCore::InlineFlowBox::paintBoxDecorations):
      (WebCore::InlineFlowBox::paintMask):
      * rendering/InlineFlowBox.h:
      (WebCore::InlineFlowBox::InlineFlowBox):
      (WebCore::InlineFlowBox::prevLineBox):
      (WebCore::InlineFlowBox::nextLineBox):
      (WebCore::InlineFlowBox::setNextLineBox):
      (WebCore::InlineFlowBox::setPreviousLineBox):
      * rendering/InlineRunBox.h: Removed.
      * rendering/InlineTextBox.h:
      (WebCore::InlineTextBox::InlineTextBox):
      (WebCore::InlineTextBox::prevTextBox):
      (WebCore::InlineTextBox::nextTextBox):
      (WebCore::InlineTextBox::setNextTextBox):
      (WebCore::InlineTextBox::setPreviousTextBox):
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::destroy):
      (WebCore::RenderBlock::rightmostPosition):
      (WebCore::RenderBlock::leftmostPosition):
      * rendering/RenderInline.cpp:
      (WebCore::RenderInline::destroy):
      (WebCore::RenderInline::absoluteRects):
      (WebCore::RenderInline::absoluteQuads):
      (WebCore::RenderInline::linesBoundingBox):
      (WebCore::RenderInline::linesVisibleOverflowBoundingBox):
      (WebCore::RenderInline::addFocusRingRects):
      (WebCore::RenderInline::paintOutline):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::localBoundingBox):
      * rendering/RenderLineBoxList.cpp:
      (WebCore::RenderLineBoxList::deleteLineBoxTree):
      (WebCore::RenderLineBoxList::extractLineBox):
      (WebCore::RenderLineBoxList::attachLineBox):
      (WebCore::RenderLineBoxList::removeLineBox):
      (WebCore::RenderLineBoxList::deleteLineBoxes):
      (WebCore::RenderLineBoxList::dirtyLineBoxes):
      (WebCore::RenderLineBoxList::paint):
      (WebCore::RenderLineBoxList::hitTest):
      (WebCore::RenderLineBoxList::dirtyLinesFromChangedChild):
      (WebCore::RenderLineBoxList::checkConsistency):
      * rendering/RenderSVGInline.cpp:
      (WebCore::RenderSVGInline::absoluteRects):
      (WebCore::RenderSVGInline::absoluteQuads):
      * rendering/RenderSVGText.cpp:
      (WebCore::RenderSVGText::absoluteRects):
      (WebCore::RenderSVGText::absoluteQuads):
      (WebCore::RenderSVGText::objectBoundingBox):
      * rendering/RenderText.cpp:
      (WebCore::RenderText::extractTextBox):
      (WebCore::RenderText::attachTextBox):
      (WebCore::RenderText::removeTextBox):
      (WebCore::RenderText::createInlineTextBox):
      (WebCore::RenderText::positionLineBox):
      * rendering/RootInlineBox.h:
      (WebCore::RootInlineBox::nextRootBox):
      (WebCore::RootInlineBox::prevRootBox):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55928 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f47d581
    • kov@webkit.org's avatar
      2010-03-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · df1a34bb
      kov@webkit.org authored
              Reviewed by Eric Carlson.
      
              media/video-preload.html fails
              https://bugs.webkit.org/show_bug.cgi?id=35793
      
              Only effectively load, and start buffering when playing, or when
              the preload attribute is set.
      
              Test: media/video-preload.html
      
              * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
              (WebCore::MediaPlayerPrivate::load):
              (WebCore::MediaPlayerPrivate::commitLoad):
              (WebCore::MediaPlayerPrivate::prepareToPlay):
              (WebCore::MediaPlayerPrivate::setPreload):
              * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df1a34bb
    • dimich@chromium.org's avatar
      Not reviewed, build fix. · 39cfce0a
      dimich@chromium.org authored
      Reverts 55920 and 55921. Landing for Jian Li.
      
      WebCore:
      
      * Android.derived.jscbindings.mk:
      * Android.derived.v8bindings.mk:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * GNUmakefile.am:
      * WebCore.gypi:
      * WebCore.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSDOMFormDataCustom.cpp: Removed.
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      (WebCore::JSXMLHttpRequest::send):
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/v8/V8Index.h:
      * bindings/v8/custom/V8DOMFormDataCustom.cpp: Removed.
      * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
      (WebCore::V8XMLHttpRequest::sendCallback):
      * html/DOMFormData.idl: Removed.
      * page/DOMWindow.idl:
      
      LayoutTests:
      
      * fast/dom/Window/window-properties-expected.txt:
      * fast/dom/Window/window-property-descriptors-expected.txt:
      * fast/dom/constructed-objects-prototypes-expected.txt:
      * fast/dom/prototype-inheritance-2-expected.txt:
      * fast/dom/prototype-inheritance-expected.txt:
      * fast/js/global-constructors-expected.txt:
      * http/tests/local/resources/send-form-data.js: Removed.
      * http/tests/local/send-form-data-expected.txt: Removed.
      * http/tests/local/send-form-data.html: Removed.
      * http/tests/xmlhttprequest/resources/multipart-post-echo.php: Removed.
      * platform/gtk/Skipped:
      * platform/gtk/fast/dom/Window/window-properties-expected.txt:
      * platform/qt/Skipped:
      * platform/qt/fast/dom/Window/window-properties-expected.txt:
      * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
      * platform/qt/fast/dom/prototype-inheritance-expected.txt:
      * platform/qt/fast/js/global-constructors-expected.txt:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      39cfce0a
    • kov@webkit.org's avatar
      2010-03-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · bdc49f6e
      kov@webkit.org authored
              Fix critical being printed to stderr on every test. This is
              because the jar is only being created when soup hits the HTTP
              path. We should reconsider the time of its creation.
      
              * DumpRenderTree/gtk/DumpRenderTree.cpp:
              (resetDefaultsToConsistentValues):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55925 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bdc49f6e
    • tonikitoo@webkit.org's avatar
      Make the timeout in 'snav-unit-overflow-and-scroll-in-direction.html' 10x... · 9e8aa46d
      tonikitoo@webkit.org authored
      Make the timeout in 'snav-unit-overflow-and-scroll-in-direction.html' 10x shorter (from 500ms to 50ms)
      
      Rubber-stamped by Kenneth Christiansen.
      Patch by Antonio Gomes <tonikitoo@webkit.org>
      
      * fast/events/spatial-navigation/snav-unit-overflow-and-scroll-in-direction.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55924 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e8aa46d
    • jpetsovits@rim.com's avatar
      2010-03-12 Jakob Petsovits <jpetsovits@rim.com> · 6c324697
      jpetsovits@rim.com authored
              Reviewed by Dirk Schulze.
      
              [OpenVG] Add support for drawing text to PainterOpenVG
              https://bugs.webkit.org/show_bug.cgi?id=35581
      
              Doesn't come with any actual font classes, as OpenVG
              by itself doesn't provide any access to platform fonts
              but just the means to draw glyphs that have been loaded
              manually before.
      
              * platform/graphics/openvg/PainterOpenVG.cpp:
              (WebCore::PlatformPainterState::PlatformPainterState):
              (WebCore::PlatformPainterState::copyPaintState):
              (WebCore::PainterOpenVG::textDrawingMode):
              (WebCore::PainterOpenVG::setTextDrawingMode):
              (WebCore::PainterOpenVG::drawText):
              * platform/graphics/openvg/PainterOpenVG.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55923 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c324697
    • jpetsovits@rim.com's avatar
      2010-03-12 Jakob Petsovits <jpetsovits@rim.com> · 5cfb2d7b
      jpetsovits@rim.com authored
              Reviewed by Dirk Schulze.
      
              [OpenVG] Use masks to implement non-rectilinear clipping
              https://bugs.webkit.org/show_bug.cgi?id=35544
      
              Requires some additional context switching logic to
              make sure the right context is current when dealing
              with the mask, because we don't store it by ourselves.
      
              Initial version of this code was written by
              Eli Fidler <efidler@rim.com>, I did a couple of
              bug fixes and efficiency improvements since then.
      
              * platform/graphics/openvg/GraphicsContextOpenVG.cpp:
              (WebCore::GraphicsContext::clipPath):
              (WebCore::GraphicsContext::clip):
              (WebCore::GraphicsContext::clipOut):
              (WebCore::GraphicsContext::clipOutEllipseInRect):
              (WebCore::GraphicsContext::addInnerRoundedRectClip):
              * platform/graphics/openvg/PainterOpenVG.cpp:
              (WebCore::PlatformPainterState::PlatformPainterState):
              (WebCore::PlatformPainterState::~PlatformPainterState):
              (WebCore::PlatformPainterState::maskingEnabled):
              (WebCore::PlatformPainterState::applyState):
              (WebCore::PlatformPainterState::saveMaskIfNecessary):
              (WebCore::PainterOpenVG::intersectClipRect):
              (WebCore::PainterOpenVG::clipPath):
              (WebCore::PainterOpenVG::save):
              * platform/graphics/openvg/PainterOpenVG.h:
              (WebCore::PainterOpenVG::):
              * platform/graphics/openvg/SurfaceOpenVG.cpp:
              (WebCore::SurfaceOpenVG::makeCurrent):
              (WebCore::SurfaceOpenVG::makeCompatibleCurrent):
              * platform/graphics/openvg/SurfaceOpenVG.h:
              (WebCore::SurfaceOpenVG::):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55922 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5cfb2d7b
    • jianli@chromium.org's avatar
      [v8] Add V8 bindings for DOMFormData. · 00ffa87a
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=36026
      
      Reviewed by Nate Chapin.
      
      Test: http/tests/local/send-form-data.html
      
      * WebCore.gypi:
      * bindings/v8/V8Index.h:
      * bindings/v8/custom/V8DOMFormDataCustom.cpp: Added.
      (WebCore::V8DOMFormData::appendCallback):
      * bindings/v8/custom/V8XMLHttpRequestCustom.cpp:
      (WebCore::V8XMLHttpRequest::sendCallback):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55921 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      00ffa87a
    • jianli@chromium.org's avatar
      WebCore: Add DOMFormData.idl to expose FormData interface. · 9f776cb4
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=36024
      
      Reviewed by Sam Weinig.
      
      The implementation is based on XMLHttpRequest 2 spec:
      http://dev.w3.org/2006/webapi/XMLHttpRequest-2/#formdata
      
      Test: http/tests/local/send-form-data.html
      
      * Android.derived.jscbindings.mk:
      * Android.derived.v8bindings.mk:
      * DerivedSources.cpp:
      * DerivedSources.make:
      * GNUmakefile.am:
      * WebCore.pri:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/js/JSDOMFormDataCustom.cpp: Added.
      * bindings/js/JSXMLHttpRequestCustom.cpp:
      (WebCore::JSXMLHttpRequest::send):
      * bindings/scripts/CodeGeneratorJS.pm:
      * html/DOMFormData.idl: Added.
      * page/DOMWindow.idl:
      
      LayoutTests: Add DOMFormData.idl to expose FormData interface
      https://bugs.webkit.org/show_bug.cgi?id=36024
      
      Reviewed by Sam Weinig.
      
      Add a layout test to test sending FormData via XMLHttpRequest. Also
      changed all test results that are affected by exposing FormData.
      
      * fast/dom/Window/window-properties-expected.txt:
      * fast/dom/Window/window-property-descriptors-expected.txt:
      * fast/dom/constructed-objects-prototypes-expected.txt:
      * fast/dom/prototype-inheritance-2-expected.txt:
      * fast/dom/prototype-inheritance-expected.txt:
      * fast/js/global-constructors-expected.txt:
      * http/tests/local/resources/send-form-data.js: Added.
      * http/tests/local/send-form-data-expected.txt: Added.
      * http/tests/local/send-form-data.html: Added.
      * http/tests/xmlhttprequest/resources/multipart-post-echo.php: Added.
      * platform/gtk/Skipped:
      * platform/gtk/fast/dom/Window/window-properties-expected.txt:
      * platform/qt/Skipped:
      * platform/qt/fast/dom/Window/window-properties-expected.txt:
      * platform/qt/fast/dom/Window/window-property-descriptors-expected.txt:
      * platform/qt/fast/dom/prototype-inheritance-expected.txt:
      * platform/qt/fast/js/global-constructors-expected.txt:
      * platform/win/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55920 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f776cb4
    • jpetsovits@rim.com's avatar
      2010-03-12 Jakob Petsovits <jpetsovits@rim.com> · bbc48b80
      jpetsovits@rim.com authored
              Reviewed by Dirk Schulze.
      
              [OpenVG] Add a SurfaceOpenVG constructor for EGL client buffer surfaces
              https://bugs.webkit.org/show_bug.cgi?id=35538
      
              SurfaceOpenVG can now not only encapsulate pbuffer
              and window surfaces but also VGImage-based ones.
      
              * platform/graphics/openvg/EGLDisplayOpenVG.cpp:
              (WebCore::EGLDisplayOpenVG::createPbufferFromClientBuffer):
              * platform/graphics/openvg/EGLDisplayOpenVG.h:
              * platform/graphics/openvg/SurfaceOpenVG.cpp:
              (WebCore::SurfaceOpenVG::SurfaceOpenVG):
              * platform/graphics/openvg/SurfaceOpenVG.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55919 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbc48b80
    • aroben@apple.com's avatar
      Teach prepare-ChangeLog to find modified selectors in CSS files · ec7621d6
      aroben@apple.com authored
      Reviewed by Tim Hatcher.
      
      Fixes <http://webkit.org/b/36064> prepare-ChangeLog should extract
      modified selectors from CSS files
      
      * Scripts/prepare-ChangeLog:
      (get_function_line_ranges): Call get_selector_line_ranges_for_css for
      .css files.
      (get_selector_line_ranges_for_css): Added. Finds selectors and their
      line ranges and returns them.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55918 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec7621d6
    • eric@webkit.org's avatar
      2010-03-12 Alpha Lam <hclam@chromium.org> · 46d3d32f
      eric@webkit.org authored
              Reviewed by Eric Carlson.
      
              HTMLMediaElement crash when it is used after resource loading is canceled.
              https://bugs.webkit.org/show_bug.cgi?id=35992
      
              Adding a test to access the duration property of a video element after
              resource loading was canceled.
      
              * http/tests/media/video-cancel-load-expected.txt: Added.
              * http/tests/media/video-cancel-load.html: Added.
      2010-03-12  Alpha Lam  <hclam@chromium.org>
      
              Reviewed by Eric Carlson.
      
              Fix a crash when resource loading of media element is canceled.
              https://bugs.webkit.org/show_bug.cgi?id=35992
      
              Use of HTMLMediaElement::duration() after resource loading was canceled
              will cause a crash. This is because HTMLMediaElement::m_player is used
              when NULL.
              Test: http/tests/media/video-cancel-load.html
      
              * html/HTMLMediaElement.cpp:
              (WebCore::HTMLMediaElement::duration):
              Avoid calling to m_player when it is null.
              (WebCore::HTMLMediaElement::userCancelledLoad):
              Set m_readyState to HAVE_NOTHING.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55917 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      46d3d32f
    • eric@webkit.org's avatar
      2010-03-12 Garret Kelly <gdk@chromium.org> · 48ec7beb
      eric@webkit.org authored
              Reviewed by Eric Seidel.
      
              Enable touch events in Chromium features gypi file.
              https://bugs.webkit.org/show_bug.cgi?id=35994
      
              * features.gypi:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55916 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48ec7beb
    • kov@webkit.org's avatar
      2010-03-12 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> · f1c8507d
      kov@webkit.org authored
              Rubber-stamped by Kenneth Rohde Christiansen.
      
              Misc documentation fixes. Fixes (almost) all warnings emitted by
              the documentation build process. Only the broken references to JSC
              objects remain.
      
              * webkit/webkitsecurityorigin.cpp:
              * webkit/webkitwebbackforwardlist.cpp:
              * webkit/webkitwebdatasource.cpp:
              * webkit/webkitwebframe.cpp:
              * webkit/webkitwebhistoryitem.cpp:
              * webkit/webkitwebinspector.cpp:
              (webkit_web_inspector_class_init):
              * webkit/webkitwebsettings.cpp:
              (webkit_web_settings_class_init):
              * webkit/webkitwebview.cpp:
              (DNDContentsRequest::webkit_web_view_class_init):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55915 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1c8507d