1. 26 Jul, 2010 36 commits
    • weinig@apple.com's avatar
      Fix for https://bugs.webkit.org/show_bug.cgi?id=42986 · 2b77bec1
      weinig@apple.com authored
      Add prompt and confirm client functions to WebKit2
      
      Reviewed by Anders Carlsson.
      
      WebKit2: 
      
      * Shared/CoreIPCSupport/WebPageProxyMessageKinds.h:
      (WebPageProxyMessage::):
      * UIProcess/API/C/WKPage.h:
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::didReceiveSyncMessage):
      (WebKit::WebPageProxy::runJavaScriptAlert):
      (WebKit::WebPageProxy::runJavaScriptConfirm):
      (WebKit::WebPageProxy::runJavaScriptPrompt):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runJavaScriptAlert):
      (WebKit::WebUIClient::runJavaScriptConfirm):
      (WebKit::WebUIClient::runJavaScriptPrompt):
      * UIProcess/WebUIClient.h:
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::runJavaScriptConfirm):
      (WebKit::WebChromeClient::runJavaScriptPrompt):
      
      WebKitTools: 
      
      * MiniBrowser/mac/BrowserWindowController.m:
      (-[BrowserWindowController awakeFromNib]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2b77bec1
    • andersca@apple.com's avatar
      Deliver mouse and wheel events to plug-ins · 6ba845ca
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=42988
      
      Reviewed by Sam Weinig.
      
      * Shared/WebEvent.h:
      (WebKit::WebMouseEvent::WebMouseEvent):
      (WebKit::WebMouseEvent::deltaX):
      (WebKit::WebMouseEvent::deltaY):
      (WebKit::WebMouseEvent::deltaZ):
      * Shared/mac/WebEventFactory.mm:
      (WebKit::WebEventFactory::createWebMouseEvent):
      Add deltaX, deltaY and deltaZ member variables to WebMosueEvent.
      
      * WebKit2.xcodeproj/project.pbxproj:
      Rename NetscapePluginMac.cpp to NetscapePluginMac.mm.
      
      * WebProcess/Plugins/Netscape/NetscapePlugin.cpp:
      (WebKit::NetscapePlugin::NPP_HandleEvent):
      Add NPP_ wrapper.
      
      (WebKit::NetscapePlugin::handleMouseEvent):
      (WebKit::NetscapePlugin::handleWheelEvent):
      Call the platform variants.
      
      * WebProcess/Plugins/Netscape/mac/NetscapePluginMac.mm: Added.
      (WebKit::modifierFlags):
      (WebKit::buttonNumber):
      (WebKit::initializeMouseEvent):
      (WebKit::NetscapePlugin::platformHandleMouseEvent):
      Create an NPCocoaEvent and send it to the plug-in.
      
      (WebKit::NetscapePlugin::platformHandleWheelEvent):
      Ditto.
      
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::handleEvent):
      Get the current WebEvent and send it to the plug-in if necessary.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::currentEvent):
      (WebKit::CurrentEvent::CurrentEvent):
      (WebKit::CurrentEvent::~CurrentEvent):
      (WebKit::WebPage::mouseEvent):
      (WebKit::WebPage::wheelEvent):
      (WebKit::WebPage::keyEvent):
      * WebProcess/WebPage/WebPage.h:
      Add RAII object for keeping track of the current event.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ba845ca
    • commit-queue@webkit.org's avatar
      2010-07-26 Patrick Gansterer <paroga@paroga.com> · 7c5d40d2
      commit-queue@webkit.org authored
              Reviewed by Kent Tamura.
      
              [WINCE] Port ClipboardUtilities to WinCE
              https://bugs.webkit.org/show_bug.cgi?id=42929
      
              Make ClipboardUtilitiesWin more portable and remove the global namespace prefix
              from GlobalLock/GlobalUnlock, since they are only macros on WinCE.
      
              * platform/win/ClipboardUtilitiesWin.cpp:
              (WebCore::urlFromPath):
              (WebCore::getWebLocData):
              (WebCore::createGlobalData):
              (WebCore::getURL):
              (WebCore::getPlainText):
              (WebCore::fragmentFromHTML):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c5d40d2
    • victorw@chromium.org's avatar
      2010-07-26 Victor Wang <victorw@chromium.org> · 7aec3af5
      victorw@chromium.org authored
              Unreviewed. Update chromium test expectations fro flaky test.
      
              https://bugs.webkit.org/show_bug.cgi?id=42989
      
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7aec3af5
    • commit-queue@webkit.org's avatar
      2010-07-26 Patrick Gansterer <paroga@paroga.com> · 4092e0d9
      commit-queue@webkit.org authored
              Reviewed by Adam Roben.
      
              [WINCE] Buildfix for BitmapImage.h
              https://bugs.webkit.org/show_bug.cgi?id=42931
      
              Use AffineTransform insted of TransformationMatrix.
      
              * platform/graphics/BitmapImage.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4092e0d9
    • aroben@apple.com's avatar
      Windows build fix · 680f5b4f
      aroben@apple.com authored
      WebKit2:
      
      * win/WebKit2.vcproj:
      * win/WebKit2WebProcess.vcproj:
      Removed empty attributes so the values will be picked up from the
      vsprops files. (Also removed a couple of attributes that accidentally
      duplicated values from the vsprops files.)
      
      WebKitTools:
      
      * MiniBrowser/MiniBrowser.vcproj:
      * WebKitTestRunner/InjectedBundle/win/InjectedBundle.vcproj:
      Removed empty attributes so the values will be picked up from the
      vsprops files. (Also removed a couple of attributes that accidentally
      duplicated values from the vsprops files.)
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      680f5b4f
    • krit@webkit.org's avatar
      2010-07-26 Dirk Schulze <krit@webkit.org> · f67cce29
      krit@webkit.org authored
              Unreviewed sort of XCode project file.
      
              * WebCore.xcodeproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64058 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f67cce29
    • ddkilzer@apple.com's avatar
      <http://webkit.org/b/42982> Streamline Inspector Source build phase script... · c902b8d0
      ddkilzer@apple.com authored
      <http://webkit.org/b/42982> Streamline Inspector Source build phase script should use CONFIGURATION not BUILD_STYLE
      <rdar://problem/6341764>
      
      Reviewed by Mark Rowe.
      
      * WebCore.xcodeproj/project.pbxproj: Switched Streamline
      Inspector Source build phase script to use CONFIGURATION instead
      of BUILD_STYLE.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c902b8d0
    • ojan@chromium.org's avatar
      2010-07-23 Ojan Vafai <ojan@chromium.org> · 5ba521ec
      ojan@chromium.org authored
              Reviewed by Darin Adler.
      
              crash in insertParagraph in a contentEditable list
              https://bugs.webkit.org/show_bug.cgi?id=42919
      
              * editing/execCommand/crash-on-enter-in-contentEditable-list-expected.txt: Added.
              * editing/execCommand/crash-on-enter-in-contentEditable-list.html: Added.
      2010-07-23  Ojan Vafai  <ojan@chromium.org>
      
              Reviewed by Darin Adler.
      
              crash in insertParagraph in a contentEditable list
              https://bugs.webkit.org/show_bug.cgi?id=42919
      
              Don't try to break out of a list item if the list it's in
              is the rootEditableElement.
      
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64056 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ba521ec
    • bulach@chromium.org's avatar
      2010-07-26 Marcus Bulach <bulach@chromium.org> · a61830b1
      bulach@chromium.org authored
              Reviewed by Jeremy Orlow.
      
              Moves IDBKeyRange to use IDBKey rather than SerializedScriptValue / IDBAny.
              https://bugs.webkit.org/show_bug.cgi?id=42583
      
              Tests: existing storage/indexeddb/idb-keyrange.html must pass.
      
              * storage/IDBKeyRange.cpp:
              (WebCore::IDBKeyRange::IDBKeyRange):
              * storage/IDBKeyRange.h:
              (WebCore::IDBKeyRange::create):
              (WebCore::IDBKeyRange::left):
              (WebCore::IDBKeyRange::right):
              * storage/IDBKeyRange.idl:
              * storage/IndexedDatabaseRequest.cpp:
              (WebCore::IndexedDatabaseRequest::makeSingleKeyRange):
              (WebCore::IndexedDatabaseRequest::makeLeftBoundKeyRange):
              (WebCore::IndexedDatabaseRequest::makeRightBoundKeyRange):
              (WebCore::IndexedDatabaseRequest::makeBoundKeyRange):
              * storage/IndexedDatabaseRequest.h:
              * storage/IndexedDatabaseRequest.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a61830b1
    • simon.fraser@apple.com's avatar
      2010-07-26 Simon Fraser <simon.fraser@apple.com> · 31b329f5
      simon.fraser@apple.com authored
              Reviewed by Anders Carlsson.
      
              Composited layers don't scroll in WebKit2
              https://bugs.webkit.org/show_bug.cgi?id=42771
      
              Rename two methods on RenderLayerCompositor to make their use more clear, and call them
              when the FrameView gets resized and scrolled.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::setFrameRect): override so we know when the size of the FrameView changes, so that the
              RenderLayerCompositor can update its clipping layer.
              (WebCore::FrameView::scrollPositionChanged): Call compositor()->frameViewDidScroll().
      
              * rendering/RenderLayerBacking.cpp:
              (WebCore::RenderLayerBacking::updateAfterWidgetResize): updateContentLayerOffset() was renamed.
      
              * rendering/RenderLayerCompositor.h:
              * rendering/RenderLayerCompositor.cpp:
              (WebCore::RenderLayerCompositor::frameViewDidChangeSize): Renamed from updateContentLayerOffset().
              (WebCore::RenderLayerCompositor::frameViewDidScroll): Renamed from updateContentLayerScrollPosition().
              (WebCore::RenderLayerCompositor::shouldPropagateCompositingToEnclosingIFrame): Propagate compositing on Mac
              for any FrameView that doesn't have a native widget, which is the case with WebKit2.
              (WebCore::RenderLayerCompositor::requiresScrollLayer): New method to tell us whether we need to handle
              scrolling (and clipping) ourselves.
              (WebCore::RenderLayerCompositor::ensureRootPlatformLayer): Do geometry flipping on the root platform
              layer only if we're not doing our own scrolling, and use the new requiresScrollLayer() method.
              (WebCore::RenderLayerCompositor::attachRootPlatformLayer): Send out the rootPlatformLayer(),
              so that it returns the clipping layer if we have one.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31b329f5
    • jorlow@chromium.org's avatar
      2010-07-26 Jeremy Orlow <jorlow@chromium.org> · be251819
      jorlow@chromium.org authored
              Reviewed by Ojan Vafai.
      
              Rename indexedDB tests to match new scheme
              https://bugs.webkit.org/show_bug.cgi?id=42375
      
              No changes to the tests themselves.
      
              * storage/indexeddb/script-tests/basics.js: Added.
              (openCallback):
              (test):
              * storage/indexeddb/script-tests/database-basics.js: Added.
              (openSuccess):
              (test):
              * storage/indexeddb/script-tests/idb-database-request.js: Removed.
              * storage/indexeddb/script-tests/idb-objectstore-request.js: Removed.
              * storage/indexeddb/script-tests/indexed-database-request.js: Removed.
              * storage/indexeddb/script-tests/keyrange.js: Renamed from LayoutTests/storage/indexeddb/script-tests/idb-keyrange.js.
              (checkSingleKeyRange):
              (checkLeftBoundKeyRange):
              ():
              * storage/indexeddb/script-tests/objectstore-basics.js: Added.
              (test):
              (openSuccess):
              (createSuccess):
              (addSuccess):
              (getSuccess):
              (removeSuccess):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      be251819
    • bweinstein@apple.com's avatar
      Touch MiniBrowser's stdafx to fix the build. · 69ae4707
      bweinstein@apple.com authored
      Rubber-stamped by Adam Roben.
      
      * MiniBrowser/win/stdafx.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64052 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      69ae4707
    • tonyg@chromium.org's avatar
      2010-07-26 Tony Gentilcore <tonyg@chromium.org> · 064638ab
      tonyg@chromium.org authored
              Reviewed by Darin Fisher.
      
              Move DocumentLoadTiming struct to a new file
              https://bugs.webkit.org/show_bug.cgi?id=42917
      
              Also makes DocumentLoadTiming Noncopyable.
      
              No new tests because no new functionality.
      
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * loader/DocumentLoadTiming.h: Added.
              (WebCore::DocumentLoadTiming::DocumentLoadTiming):
              * loader/DocumentLoader.h:
              * loader/FrameLoader.cpp:
              * loader/FrameLoaderTypes.h:
              * loader/MainResourceLoader.cpp:
              * page/Timing.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64051 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      064638ab
    • andersca@apple.com's avatar
      Clean up event handling functions · d12160b3
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=42977
      
      Reviewed by Sam Weinig.
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::mouseEvent):
      (WebKit::WebPage::wheelEvent):
      (WebKit::WebPage::keyEvent):
      (WebKit::WebPage::didReceiveMessage):
      * WebProcess/WebPage/WebPage.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d12160b3
    • mrowe@apple.com's avatar
      Fix an #if in WebCore.exp.in to correctly detect whether SVG filters are enabled. · 33776fa8
      mrowe@apple.com authored
      * WebCore.exp.in:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64049 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33776fa8
    • steveblock@google.com's avatar
      2010-07-26 Steve Block <steveblock@google.com> · cdd89913
      steveblock@google.com authored
              Reviewed by Jeremy Orlow.
      
              DeviceOrientation event listeners should never be called synchronously from addEventListener()
              https://bugs.webkit.org/show_bug.cgi?id=42304
      
              No new tests as there are currently no implementations to test. Tests will be
              added once LayoutTestController methods for providing a mock implementation are
              in place, see Bug 39589.
      
              * dom/DeviceOrientationController.cpp:
              (WebCore::DeviceOrientationController::DeviceOrientationController):
              (WebCore::DeviceOrientationController::timerFired):
              (WebCore::DeviceOrientationController::addListener):
              (WebCore::DeviceOrientationController::removeListener):
              (WebCore::DeviceOrientationController::removeAllListeners):
              * dom/DeviceOrientationController.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64048 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cdd89913
    • andreas.kling@nokia.com's avatar
      2010-07-26 Andreas Kling <andreas.kling@nokia.com> · 81153d00
      andreas.kling@nokia.com authored
              Reviewed by Tor Arne Vestbø.
      
              [Qt] Canvas: Optimize GraphicsContext::addPath()
      
              Avoid "deep concatenating" the canvas path onto the GC path
              if the GC path has no elements.
      
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::GraphicsContext::addPath):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81153d00
    • senorblanco@chromium.org's avatar
      2010-07-23 Stephen White <senorblanco@chromium.org> · 5c3b2ee8
      senorblanco@chromium.org authored
              Reviewed by Darin Fisher.
      
              Implement OpenGLES2 helper classes.
              https://bugs.webkit.org/show_bug.cgi?id=42905
      
              GLES2Canvas and GLES2Texture are some simple OpenGLES2 helper classes
              for managing state, samplers and textures.
      
              When this is hooked up, it will be covered by many layout tests.
      
              * WebCore.gypi:
              Add new files to chromium build (contents are protected by #if's for now).
              * platform/graphics/chromium/GLES2Canvas.cpp: Added.
              (WebCore::affineTo3x3):
              (WebCore::GLES2Canvas::State::State):
              (WebCore::GLES2Canvas::GLES2Canvas):
              (WebCore::GLES2Canvas::~GLES2Canvas):
              (WebCore::GLES2Canvas::clearRect):
              (WebCore::GLES2Canvas::fillRect):
              (WebCore::GLES2Canvas::setFillColor):
              (WebCore::GLES2Canvas::setAlpha):
              (WebCore::GLES2Canvas::translate):
              (WebCore::GLES2Canvas::rotate):
              (WebCore::GLES2Canvas::scale):
              (WebCore::GLES2Canvas::concatCTM):
              (WebCore::GLES2Canvas::save):
              (WebCore::GLES2Canvas::restore):
              (WebCore::GLES2Canvas::drawTexturedRect):
              (WebCore::GLES2Canvas::setCompositeOperation):
              (WebCore::GLES2Canvas::applyCompositeOperator):
              (WebCore::GLES2Canvas::getQuadVertices):
              (WebCore::GLES2Canvas::getQuadIndices):
              (WebCore::loadShader):
              (WebCore::GLES2Canvas::getSimpleProgram):
              (WebCore::GLES2Canvas::getTexProgram):
              (WebCore::GLES2Canvas::createTexture):
              (WebCore::GLES2Canvas::getTexture):
              (WebCore::GLES2Canvas::checkGLError):
              * platform/graphics/chromium/GLES2Canvas.h: Added.
              (WebCore::GLES2Canvas::gles2Context):
              * platform/graphics/chromium/GLES2Texture.cpp: Added.
              (WebCore::GLES2Texture::GLES2Texture):
              (WebCore::GLES2Texture::~GLES2Texture):
              (WebCore::GLES2Texture::create):
              (WebCore::convertFormat):
              (WebCore::GLES2Texture::load):
              (WebCore::GLES2Texture::bind):
              * platform/graphics/chromium/GLES2Texture.h: Added.
              (WebCore::GLES2Texture::):
              (WebCore::GLES2Texture::format):
              (WebCore::GLES2Texture::width):
              (WebCore::GLES2Texture::height):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64046 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c3b2ee8
    • jorlow@chromium.org's avatar
      2010-07-26 Jeremy Orlow <jorlow@chromium.org> · 9942e67f
      jorlow@chromium.org authored
              Reviewed by Steve Block.
      
              Fix IndexedDB release build on mac
              https://bugs.webkit.org/show_bug.cgi?id=42377
      
              * storage/IDBDatabaseImpl.cpp:
              (WebCore::IDBDatabaseImpl::objectStore):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64045 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9942e67f
    • commit-queue@webkit.org's avatar
      2010-07-26 Hayato Ito <hayato@chromium.org> · 3ce91a56
      commit-queue@webkit.org authored
              Reviewed by Shinichiro Hamaji.
      
              Add pretty printer of WTF::Vector for GDB 7.
      
              https://bugs.webkit.org/show_bug.cgi?id=40909
      
              * gdb/wtf.py: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64044 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ce91a56
    • bulach@chromium.org's avatar
      2010-07-26 Marcus Bulach <bulach@chromium.org> · cc2470a2
      bulach@chromium.org authored
              Unreviewed.  Add chromium expectations for failing tests.
      
              tables/mozilla/other/slashlogo.html fails after r63994
              https://bugs.webkit.org/show_bug.cgi?id=42964
      
              Adds a suppression for chromium.
      
              * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64043 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc2470a2
    • commit-queue@webkit.org's avatar
      2010-07-26 Satish Sampath <satish@chromium.org> · 7115964a
      commit-queue@webkit.org authored
              Reviewed by Steve Block.
      
              Add WebKit plumbing to connect speech requests and callbacks between WebCore and the embedder.
              https://bugs.webkit.org/show_bug.cgi?id=42367
      
              No new tests, the relevant LayoutTestController bindings will be added in the next patch.
      
              * page/SpeechInput.cpp: renamed a method.
              * page/SpeechInput.h: renamed a method.
              * page/SpeechInputClient.h: added an extra method to optionally let users stop recording once they have spoken.
              * page/SpeechInputClientListener.h: renamed a method.
              * page/SpeechInputListener.h: renamed a method.
      2010-07-26  Satish Sampath  <satish@chromium.org>
      
              Reviewed by Steve Block.
      
              Add WebKit plumbing to connect speech requests and callbacks between WebCore and the embedder.
              https://bugs.webkit.org/show_bug.cgi?id=42367
      
              No new tests, the relevant LayoutTestController bindings and tests will be added in the next patch.
      
              * public/WebSpeechInputController.h: Added new interface, implemented by embedder and called by WebKit
              (WebKit::WebSpeechInputController::~WebSpeechInputController):
              * public/WebSpeechInputListener.h: Added new interface, implemented by WebKit and called by embedder.
              (WebKit::WebSpeechInputListener::~WebSpeechInputListener):
              * public/WebViewClient.h:
              (WebKit::WebViewClient::createSpeechInputClient): New method to get the embedder's speech input client interface.
              * src/SpeechInputClientImpl.cpp: Added new class, implementation of a two way connector between WebCore
              and the embedder for requests and responses.
              (WebKit::SpeechInputClientImpl::SpeechInputClientImpl):
              (WebKit::SpeechInputClientImpl::~SpeechInputClientImpl):
              (WebKit::SpeechInputClientImpl::startRecognition):
              (WebKit::SpeechInputClientImpl::stopRecording):
              (WebKit::SpeechInputClientImpl::didCompleteRecording):
              (WebKit::SpeechInputClientImpl::setRecognitionResult):
              (WebKit::SpeechInputClientImpl::didCompleteRecognition):
              * src/SpeechInputClientImpl.h: Added.
              * src/WebViewImpl.cpp:
              (WebKit::WebViewImpl::WebViewImpl): Pass on the above mentioned speech input connector to WebCore.
              * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7115964a
    • andreas.kling@nokia.com's avatar
      2010-07-26 Andreas Kling <andreas.kling@nokia.com> · bc5312a3
      andreas.kling@nokia.com authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt] getImageData(): Single-pass RGB->BGR and un-premultiplication
              https://bugs.webkit.org/show_bug.cgi?id=42945
      
              Combine the two operations into a single loop over the pixel data.
              Yields a considerable FPS gain on http://www.semantix.gr/statue.html
      
              * platform/graphics/qt/ImageBufferQt.cpp:
              (WebCore::getImageData):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc5312a3
    • pfeldman@chromium.org's avatar
      2010-07-26 Pavel Feldman <pfeldman@chromium.org> · 01acdf64
      pfeldman@chromium.org authored
              Reviewed by Shinichiro Hamaji.
      
              Web Inspector: make sure proxy objects are JSON-stringifiable.
      
              https://bugs.webkit.org/show_bug.cgi?id=42961
      
              * inspector/front-end/InjectedScript.js:
              (injectedScriptConstructor):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      01acdf64
    • vestbo@webkit.org's avatar
      [Qt] Fix feature detection regexp · 65c7f5ef
      vestbo@webkit.org authored
      Reviewed by Simon Hausmann.
      
      We were missing the last feature
      
      * Scripts/webkitdirs.pm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64039 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      65c7f5ef
    • ossy@webkit.org's avatar
      Unreviewed. · 182b2313
      ossy@webkit.org authored
      [Qt] DRT sideeffect revealed by r63657
      https://bugs.webkit.org/show_bug.cgi?id=42578
      
      * platform/qt/Skipped: Add tests to the Skipped list until fix.
       - http/tests/xmlhttprequest/authorization-header.html
       - http/tests/xmlhttprequest/null-auth.php
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64038 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      182b2313
    • apavlov@chromium.org's avatar
      2010-07-26 Alexander Pavlov <apavlov@chromium.org> · eb7aae0d
      apavlov@chromium.org authored
              Reviewed by Joseph Pecoraro.
      
              Inspector should remember resources sorting set by the user
              https://bugs.webkit.org/show_bug.cgi?id=19208
      
              Sorting options both for time and size graphs are memorized in a single property,
              which makes them possible to retrieve in a single message (e.g. useful for remote debugging).
      
              * inspector/front-end/ResourcesPanel.js:
              (WebInspector.ResourcesPanel.prototype.populateSidebar):
              (WebInspector.ResourcesPanel.prototype._settingsLoaded):
              (WebInspector.ResourcesPanel.prototype._loadSortOptions):
              (WebInspector.ResourcesPanel.prototype._loadSortOptionForGraph):
              (WebInspector.ResourcesPanel.prototype._graphSelected):
              (WebInspector.ResourcesPanel.prototype._changeSortingFunction):
              (WebInspector.ResourcesPanel.prototype._selectedOptionNameForGraph):
              (WebInspector.ResourcesPanel.prototype._doChangeSortingFunction):
              * inspector/front-end/Settings.js:
              (WebInspector.populateApplicationSettings):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64037 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb7aae0d
    • hausmann@webkit.org's avatar
      [Qt] Use the default timeout interval for JS as the HTML tokenizer delay for setHtml() · 06b1fe0e
      hausmann@webkit.org authored
      Patch by Tor Arne Vestbø <tor.arne.vestbo@nokia.com> on 2009-10-30
      Reviewed by Kenneth Rohde Christiansen.
      
      This ensures that long-running JavaScript (for example due to a modal alert() dialog),
      will not trigger a deferred load after only 500ms (the default tokenizer delay) while
      still giving a reasonable timeout (10 seconds) to prevent deadlock.
      
      https://bugs.webkit.org/show_bug.cgi?id=29381
      
      JavaScriptCore:
      
      * runtime/TimeoutChecker.h: Add getter for the timeout interval
      
      WebKit/qt:
      
      * Api/qwebframe.cpp: Document the behaviour
      * WebCoreSupport/FrameLoaderClientQt.cpp: set the custom tokenizer delay for substitute loads
      * tests/qwebframe/tst_qwebframe.cpp: Add test
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      06b1fe0e
    • loislo@chromium.org's avatar
      2010-07-26 Ilya Tikhonovsky <loislo@chromium.org> · 331e0a0c
      loislo@chromium.org authored
              Reviewed by Pavel Feldman.
      
              Chromium DevTools: refactor query params, add basic
              support for WebSocket-based backend.
      
              https://bugs.webkit.org/show_bug.cgi?id=42893
      
              * src/js/DevTools.js:
              (devtools.ToolsAgent.prototype.dispatchOnClient_):
              (WebInspector.loaded):
              (WebInspector.doLoadedDone):
              (devtools.domContentLoaded):
              * src/js/InspectorControllerImpl.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      331e0a0c
    • rniwa@webkit.org's avatar
      WebCore: Redo fails after text node is split by SplitTextNodeCommand · dbe05e8c
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=42941
      
      Reviewed by Darin Adler.
      
      The bug was caused by SplitTextNodeCommand not implementing doReapply.
      Implemented doReapply and added insertText1AndTrimText2 to share the code between doApply and doReapply.
      
      Test: editing/undo/redo-split-text-node.html
            editing/undo/redo-split-text-node-with-removal.html
      
      * editing/SplitTextNodeCommand.cpp:
      (WebCore::SplitTextNodeCommand::doApply): Calls executeApply.
      (WebCore::SplitTextNodeCommand::doUnapply): Don't delete m_text1, which is later used in doReapply.
      (WebCore::SplitTextNodeCommand::doReapply): Added.
      (WebCore::SplitTextNodeCommand::insertText1AndTrimText2): Added.
      * editing/SplitTextNodeCommand.h:
      
      LayoutTests: Added a test that splits a text node by inserting a paragraph and applies inline style.
      The test then ensures that the style is preserved after undos and redos.
      
      Reviewed by Darin Adler.
      
      Also added a test in which the text node is removed by the script after undo.
      
      Redo fails after text node is split by SplitTextNodeCommand
      https://bugs.webkit.org/show_bug.cgi?id=42941
      
      * editing/undo/redo-split-text-node-expected.txt: Added.
      * editing/undo/redo-split-text-node.html: Added.
      * editing/undo/redo-split-text-with-removal-expected.txt: Added.
      * editing/undo/redo-split-text-with-removal.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64034 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dbe05e8c
    • darin@apple.com's avatar
      2010-07-25 Darin Adler <darin@apple.com> · 756bb6d5
      darin@apple.com authored
              Reviewed by Dan Bernstein.
      
              WebKitTestRunner needs to support layoutTestController.dumpSelectionRect
              https://bugs.webkit.org/show_bug.cgi?id=42326
      
              * platform/mac-wk2/Skipped: Removed all the tests from the list
              that were there only because they called dumpSelectionRect. Most of
              them pass now.
      2010-07-25  Darin Adler  <darin@apple.com>
      
              Reviewed by Dan Bernstein.
      
              WebKitTestRunner needs to support layoutTestController.dumpSelectionRect
              https://bugs.webkit.org/show_bug.cgi?id=42326
      
              * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
              Added dumpSelectionRect.
      
              * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
              (WTR::LayoutTestController::dumpSelectionRect): Added. For now, this
              does nothing because its purpose is to change pixel test output and
              we do not have pixel tests implemented yet.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64033 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      756bb6d5
    • philn@webkit.org's avatar
      2010-07-23 Philippe Normand <pnormand@igalia.com> · 1f797429
      philn@webkit.org authored
              Reviewed by Eric Carlson.
      
              [GTK] media/media-can-play-mpeg-audio.html fails
              https://bugs.webkit.org/show_bug.cgi?id=42895
      
              Fixed advertizing of mp3, mpeg and mp4 mime-types in the player.
      
              * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::mimeTypeCache):
      
      LayoutTests:
      
      2010-07-23  Philippe Normand  <pnormand@igalia.com>
      
              Reviewed by Eric Carlson.
      
              [GTK] media/media-can-play-mpeg-audio.html fails
              https://bugs.webkit.org/show_bug.cgi?id=42895
      
              * platform/gtk/Skipped: Unskip fixed test.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1f797429
    • philn@webkit.org's avatar
      2010-07-23 Philippe Normand <pnormand@igalia.com> · 4d7dc699
      philn@webkit.org authored
              Reviewed by Eric Carlson.
      
              LayoutTests/media/media-document-audio-size.html failure
              https://bugs.webkit.org/show_bug.cgi?id=38376
      
              Advertize audio/x-wav along with audio/wav when appropriate,
              otherwise WebKit attempts to use a plugin to play the media.
      
              * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
              (WebCore::mimeTypeCache):
      
      LayoutTests:
      
      2010-07-23  Philippe Normand  <pnormand@igalia.com>
      
              Reviewed by Eric Carlson.
      
              LayoutTests/media/media-document-audio-size.html failure
              https://bugs.webkit.org/show_bug.cgi?id=38376
      
              * platform/gtk/Skipped: Unskip fixed test on GTK port.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64031 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d7dc699
    • darin@apple.com's avatar
      2010-07-25 Darin Adler <darin@apple.com> · 09c2cf13
      darin@apple.com authored
              Reviewed by Maciej Stachowiak.
      
              Need to support unsafe access console messages in WebKitTestRunner
              https://bugs.webkit.org/show_bug.cgi?id=42320
      
              * platform/mac-wk2/Skipped: Since unsafe access console messages are
              working properly, moved the failing tests listed under this bug to
              other sections in the file based on the reason they are failing.
              Removed the tests that are passing.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      09c2cf13
    • darin@apple.com's avatar
      2010-07-25 Darin Adler <darin@apple.com> · c340529c
      darin@apple.com authored
              Reviewed by Maciej Stachowiak.
      
              WebKitTestRunner needs to support layoutTestController.keepWebHistory
              https://bugs.webkit.org/show_bug.cgi?id=42323
      
              * platform/mac-wk2/Skipped: Removed the tests that needed only keepWebHistory
              and computedStyleIncludingVisitedInfo. Moved the other tests in the
              keepWebHistory section of the file into the other appropriate lists.
      2010-07-25  Darin Adler  <darin@apple.com>
      
              Reviewed by Maciej Stachowiak.
      
              WebKitTestRunner needs to support layoutTestController.keepWebHistory
              https://bugs.webkit.org/show_bug.cgi?id=42323
      
              Added keepWebHistory and computedStyleIncludingVisitedInfo.
      
              Also fixed misspellings of the word "receive".
      
              Also tweaked the names of some of the LayoutTestController members.
      
              * WebKitTestRunner/InjectedBundle/Bindings/CodeGeneratorTestRunner.pm:
              Added support for a type named "object" that is passed and returns as
              a JSValueRef.
      
              * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
              Added keepWebHistory and computedStyleIncludingVisitedInfo. Also
              put setAcceptsEditing up nearer the top.
      
              * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
              (WTR::InjectedBundle::_didReceiveMessage): Fixed mispellings of receive.
              (WTR::InjectedBundle::initialize): Ditto.
              (WTR::InjectedBundle::didReceiveMessage): Ditto.
              (WTR::InjectedBundle::reset): Reset the state of visited links between
              tests. Also eliminated the unused argument to the LayoutTestController
              create function.
              (WTR::InjectedBundle::setShouldTrackVisitedLinks): Added.
              * WebKitTestRunner/InjectedBundle/InjectedBundle.h: Ditto.
      
              * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
              (WTR::InjectedBundlePage::shouldBeginEditing): Call shouldAllowEditing
              instead of acceptsEditing.
              (WTR::InjectedBundlePage::shouldEndEditing): Ditto.
              (WTR::InjectedBundlePage::shouldInsertNode): Ditto.
              (WTR::InjectedBundlePage::shouldInsertText): Ditto.
              (WTR::InjectedBundlePage::shouldDeleteRange): Ditto.
              (WTR::InjectedBundlePage::shouldChangeSelectedRange): Ditto.
              (WTR::InjectedBundlePage::shouldApplyStyle): Ditto.
      
              * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
              (WTR::LayoutTestController::create): Removed uneeded argument.
              (WTR::LayoutTestController::LayoutTestController): Removed unneeded
              argument. Updated for rename of m_acceptsEditing to m_shouldAllowEditing.
              (WTR::LayoutTestController::numberOfActiveAnimations): Added some FIXMEs
              about the fact that this works on the main frame.
              (WTR::LayoutTestController::pauseAnimationAtTimeOnElementWithId): Ditto.
              (WTR::LayoutTestController::keepWebHistory): Added.
              (WTR::LayoutTestController::computedStyleIncludingVisitedInfo): Added.
              (WTR::JSObjectSetProperty): Added. Helper to make the function below
              cleaner.
              (WTR::LayoutTestController::makeWindowObject): Changed to use the
              overload of JSObjectSetProperty above.
      
              * WebKitTestRunner/InjectedBundle/LayoutTestController.h: Changes to
              match above.
      
              * WebKitTestRunner/TestController.cpp:
              (WTR::TestController::initialize): Fixed mispellings of receive.
              (WTR::TestController::_didReceiveMessageFromInjectedBundle): Ditto.
              (WTR::TestController::didReceiveMessageFromInjectedBundle): Ditto.
              * WebKitTestRunner/TestController.h: Ditto.
              * WebKitTestRunner/TestInvocation.cpp:
              (WTR::TestInvocation::didReceiveMessageFromInjectedBundle): Ditto.
              * WebKitTestRunner/TestInvocation.h: Ditto.
      2010-07-25  Darin Adler  <darin@apple.com>
      
              Reviewed by Maciej Stachowiak.
      
              WebKitTestRunner needs to support layoutTestController.keepWebHistory
              https://bugs.webkit.org/show_bug.cgi?id=42323
      
              Added WKBundleSetShouldTrackVisitedLinks, WKBundleRemoveAllVisitedLinks,
              and WKBundleFrameGetComputedStyleIncludingVisitedInfo.
      
              Also fixed misspellings of the word "receive".
      
              * WebProcess/InjectedBundle/API/c/WKBundle.cpp:
              (WKBundleSetShouldTrackVisitedLinks): Added.
              (WKBundleRemoveAllVisitedLinks): Added.
              * WebProcess/InjectedBundle/API/c/WKBundle.h: Added functions and
              fixed mispellings of receive.
      
              * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
              (WKBundleFrameGetJavaScriptContext): Moved the code from here into WebFrame,
              to be consistent with the rest of the functions in this file.
              (WKBundleFrameGetComputedStyleIncludingVisitedInfo): Added.
              * WebProcess/InjectedBundle/API/c/WKBundleFrame.h: Added
              WKBundleFrameGetComputedStyleIncludingVisitedInfo and tried to rearrange the
              file to be more logically ordered and grouped.
      
              * WebProcess/InjectedBundle/InjectedBundle.cpp:
              (WebKit::InjectedBundle::setShouldTrackVisitedLinks): Added.
              (WebKit::InjectedBundle::removeAllVisitedLinks): Added.
              (WebKit::InjectedBundle::didReceiveMessage): Fixed mispellings of receive.
              * WebProcess/InjectedBundle/InjectedBundle.h: Ditto.
      
              * WebProcess/WebPage/WebFrame.cpp:
              (WebKit::WebFrame::jsContext): Added. Contains the code that used to be in
              WKBundleFrameGetJavaScriptContext.
              (WebKit::WebFrame::computedStyleIncludingVisitedInfo): Added.
              * WebProcess/WebPage/WebFrame.h: Ditto.
      
              * UIProcess/API/C/WKContext.h: Fixed misspellings of receive.
              * UIProcess/WebContext.cpp:
              (WebKit::WebContext::didReceiveMessageFromInjectedBundle): Ditto.
              * UIProcess/WebContext.h: Ditto.
              * UIProcess/WebContextInjectedBundleClient.cpp:
              (WebKit::WebContextInjectedBundleClient::didReceiveMessageFromInjectedBundle): Ditto.
              * UIProcess/WebContextInjectedBundleClient.h: Ditto.
              * UIProcess/WebProcessProxy.cpp:
              (WebKit::WebProcessProxy::forwardMessageToWebContext): Ditto.
              * WebProcess/WebProcess.cpp:
              (WebKit::WebProcess::forwardMessageToInjectedBundle): Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64029 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c340529c
  2. 25 Jul, 2010 4 commits