1. 03 Feb, 2012 40 commits
    • alexis.menard@openbossa.org's avatar
      REGRESSION (r105401-105403): Blue flash on css border transition · 4c76b635
      alexis.menard@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77491
      
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      The new blend function added with r105403 takes unsigned as parameters therefore
      we have to be careful to not overflow in case the to is less than from (animating
      from 400 to 0 for example).
      
      Test: animations/animation-border-overflow.html
      
      * platform/animation/AnimationUtilities.h:
      (WebCore::blend):
      
      LayoutTests:
      
      * animations/animation-border-overflow-expected.txt: Added.
      * animations/animation-border-overflow.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c76b635
    • jesus@webkit.org's avatar
      [Qt][WK2] Incorrect line number dumping · aa9600c6
      jesus@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=60074
      
      Reviewed by Csaba Osztrogonác.
      
      Test http/tests/security/contentSecurityPolicy/eval-blocked.html
      is now passing, unskipping it.
      
      * platform/qt-wk2/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106671 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aa9600c6
    • commit-queue@webkit.org's avatar
      [Chromium] ImageBufferSkia: remove unnecessary overload of flush in · 6c1f0f02
      commit-queue@webkit.org authored
      AcceleratedDeviceContext
      https://bugs.webkit.org/show_bug.cgi?id=77741
      
      Patch by Justin Novosad <junov@chromium.org> on 2012-02-03
      Reviewed by Stephen White.
      
      Removing dead code.
      
      * platform/graphics/skia/ImageBufferSkia.cpp:
      (AcceleratedDeviceContext):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106670 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c1f0f02
    • jknotten@chromium.org's avatar
      [skia] Fix unit test PlatformContextSkiaTest.trackOpaqueOvalTest · 245e2e25
      jknotten@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77738
      
      We need to clear the bitmap before the test runs, otherwise the
      contents of the bitmap will be uninitialised. This causes an
      unpredicatable result as the canvas draw operations blend the
      destination bitmap with the source colour.
      
      Similarly, valgrind discovered that
      PlatformContextSkiaTest.trackOpaqueTest and
      PlatformContextSkiaTest.trackOpaqueLineTest suffers from the same
      problem.
      
      Also, re-enable WebFrameTest.FindInPage which was falsely
      blamed for making this test fail.
      
      Reviewed by Stephen White.
      
      * tests/PlatformContextSkiaTest.cpp:
      (WebCore::TEST):
      * tests/WebFrameTest.cpp:
      (WebKit::TEST_F):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      245e2e25
    • kbalazs@webkit.org's avatar
      Speculative unreviewed build fix for Qt-Windows · cecd6134
      kbalazs@webkit.org authored
      after http://trac.webkit.org/changeset/106659.
      
      * platform/graphics/texmap/TextureMapper.h:
      (WebCore::TextureMapper::platformCreateAccelerated):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cecd6134
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r106654. · 5928282e
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/106654
      https://bugs.webkit.org/show_bug.cgi?id=77742
      
      triggers asserts on mac, win, gtk, qt debug bots (Requested by
      philn-tp on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-02-03
      
      Source/WebCore:
      
      * Modules/intents/IntentRequest.cpp:
      (WebCore::IntentRequest::create):
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      * dom/ActiveDOMObject.h:
      (ActiveDOMObject):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::DocumentEventQueue):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      * dom/ScriptExecutionContext.h:
      (ScriptExecutionContext):
      * fileapi/DOMFileSystem.cpp:
      (WebCore::DOMFileSystem::create):
      * fileapi/FileReader.cpp:
      (WebCore):
      * fileapi/FileReader.h:
      (WebCore::FileReader::create):
      * fileapi/FileWriter.cpp:
      (WebCore):
      * fileapi/FileWriter.h:
      (WebCore::FileWriter::create):
      * history/CachedFrame.cpp:
      (WebCore::CachedFrame::CachedFrame):
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::create):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::create):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::create):
      * mediastream/PeerConnection.cpp:
      (WebCore::PeerConnection::create):
      * notifications/Notification.cpp:
      (WebCore::Notification::create):
      * notifications/NotificationCenter.cpp:
      * notifications/NotificationCenter.h:
      (WebCore::NotificationCenter::create):
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install):
      (WebCore::DOMTimer::fired):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/SuspendableTimer.cpp:
      (WebCore::SuspendableTimer::SuspendableTimer):
      * storage/IDBDatabase.cpp:
      (WebCore::IDBDatabase::create):
      * storage/IDBRequest.cpp:
      (WebCore::IDBRequest::create):
      * storage/IDBTransaction.cpp:
      (WebCore::IDBTransaction::create):
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::create):
      * websockets/WebSocket.cpp:
      * websockets/WebSocket.h:
      (WebCore::WebSocket::create):
      * workers/SharedWorker.cpp:
      (WebCore::SharedWorker::create):
      * workers/Worker.cpp:
      (WebCore::Worker::create):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::create):
      
      LayoutTests:
      
      * fast/events/resources/suspend-subframe-1.html: Removed.
      * fast/events/resources/suspend-subframe-2.html: Removed.
      * fast/events/suspend-timers-expected.txt: Removed.
      * fast/events/suspend-timers.html: Removed.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5928282e
    • haraken@chromium.org's avatar
      Add the "V8" prefix to V8 specific IDL attributes · 4cc652f0
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77713
      
      Reviewed by Adam Barth.
      
      This patch adds the "V8" prefix to a V8 specific IDL attribute:
      [EnabledAtRuntime] => [V8EnabledAtRuntime]
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateHeader):
      (GenerateImplementation):
      (GetRuntimeEnableFunctionName):
      
      * bindings/scripts/test/TestObj.idl:
      * bindings/scripts/test/V8/V8TestObj.cpp: Updated the run-bindings-tests results.
      (WebCore::ConfigureV8TestObjTemplate):
      
      * Modules/gamepad/NavigatorGamepad.idl:
      * dom/Clipboard.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/MouseEvent.idl:
      * dom/ShadowRoot.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLTrackElement.idl:
      * html/TextTrack.idl:
      * html/TextTrackCue.idl:
      * html/TextTrackCueList.idl:
      * html/shadow/HTMLContentElement.idl:
      * html/track/TextTrackList.idl:
      * html/track/TrackEvent.idl:
      * page/DOMWindow.idl:
      * page/History.idl:
      * page/Navigator.idl:
      * storage/DOMWindowSQLDatabase.idl:
      * webaudio/DOMWindowWebAudio.idl:
      * websockets/DOMWindowWebSocket.idl:
      * workers/WorkerContext.idl:
      * xml/XMLHttpRequest.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106666 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4cc652f0
    • commit-queue@webkit.org's avatar
      Web Inspector: Retained size for classes is too conservative in heap profiler · cd4d8377
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77726
      
      Patch by Alexei Filippov <alexeif@chromium.org> on 2012-02-03
      Reviewed by Yury Semikhatsky.
      
      Makes retained size of all objects of particular class show correct value
      in Summary view of heap profiler.
      
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotConstructorNode.prototype.get data):
      * inspector/front-end/HeapSnapshot.js:
      (WebInspector.HeapSnapshot.prototype._buildAggregates):
      (WebInspector.HeapSnapshot.prototype._buildAggregates.forDominatedNodes):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd4d8377
    • apavlov@chromium.org's avatar
      Web Inspector: Introduce "Copy XPath" popup menu item for DOM elements · cd99b22b
      apavlov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77619
      
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      XPath is optimized whenever an element has the "id" attribute.
      
      Test: inspector/elements/node-xpath.xhtml
      
      * English.lproj/localizedStrings.js:
      * inspector/front-end/DOMAgent.js:
      (WebInspector.DOMNode.XPathStep):
      (WebInspector.DOMNode.XPathStep.prototype.toString):
      (WebInspector.DOMNode.prototype.copyXPath):
      (WebInspector.DOMNode.prototype.isXMLNode):
      (WebInspector.DOMNode.prototype.xPath):
      (WebInspector.DOMNode.prototype._xPathValue):
      (WebInspector.DOMNode.prototype._xPathIndex):
      * inspector/front-end/ElementsTreeOutline.js:
      (WebInspector.ElementsTreeElement.prototype._populateNodeContextMenu):
      
      LayoutTests:
      
      * inspector/elements/node-xpath-expected.txt: Added.
      * inspector/elements/node-xpath.xhtml: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106664 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd99b22b
    • commit-queue@webkit.org's avatar
      [Chromium] Use the current clip when marking paints as opaque · af938000
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77582
      
      Patch by Dana Jansens <danakj@chromium.org> on 2012-02-03
      Reviewed by Stephen White.
      
      Source/WebCore:
      
      New unit test in PlatformContextSkiaTest.cpp
      
      * platform/graphics/skia/OpaqueRegionSkia.cpp:
      (WebCore::OpaqueRegionSkia::markRectAsOpaque):
      * platform/graphics/skia/PlatformContextSkia.h:
      (WebCore::PlatformContextSkia::canvas):
      
      Source/WebKit/chromium:
      
      * tests/PlatformContextSkiaTest.cpp:
      (WebCore::TEST):
      (WebCore):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af938000
    • yurys@chromium.org's avatar
      inspector/debugger/pause-in-inline-script.html asserts in chromium debug · 0a0e576d
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77663
      
      Source/WebCore:
      
      Make ASSERT in MainResourceLoader not fail if debugger hits breakpoint
      in the main resource inline script.
      
      Reviewed by Pavel Feldman.
      
      Test: inspector/debugger/pause-in-inline-script.html
      
      * bindings/js/ScriptDebugServer.h:
      (WebCore::ScriptDebugServer::isPaused):
      (ScriptDebugServer):
      * bindings/v8/ScriptDebugServer.h:
      (ScriptDebugServer):
      * inspector/InspectorDebuggerAgent.cpp:
      (WebCore::InspectorDebuggerAgent::didClearMainFrameWindowObject):
      (WebCore):
      (WebCore::InspectorDebuggerAgent::isPaused):
      * inspector/InspectorDebuggerAgent.h:
      (InspectorDebuggerAgent):
      * inspector/InspectorInstrumentation.cpp:
      (WebCore::InspectorInstrumentation::isDebuggerPausedImpl):
      (WebCore):
      * inspector/InspectorInstrumentation.h:
      (InspectorInstrumentation):
      (WebCore::InspectorInstrumentation::isDebuggerPaused):
      (WebCore):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::didFinishLoading):
      
      LayoutTests:
      
      Reviewed by Pavel Feldman.
      
      * platform/chromium/test_expectations.txt: assert was fixed, remove
        custom expectation for inspector/debugger/pause-in-inline-script.html
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106662 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0a0e576d
    • haraken@chromium.org's avatar
      Fix typo · a3ad8394
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77708
      
      Reviewed by Adam Roben.
      
      This patch fixes typos: [ObjCLegacyUnamedParameters] => [ObjCLegacyUnnamedParameters]
      
      No tests. No change in behavior.
      
      * css/CSSMediaRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * dom/CharacterData.idl:
      * dom/DOMImplementation.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/EventTarget.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/Range.idl:
      * dom/UIEvent.idl:
      * html/HTMLSelectElement.idl:
      * xml/XPathExpression.idl:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106660 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a3ad8394
    • noam.rosenthal@nokia.com's avatar
      [Qt][Texmap] Refactor TextureMapper API to use ImageBuffers when possible. · 1ddb153e
      noam.rosenthal@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77148
      
      Reviewed by Martin Robinson.
      
      Source/WebCore:
      
      Removed TextureMapperQt, and instead created a TextureMapperImageBuffer class,
      which responds to an "Software" mode of TextureMapper, instead of creating subclasses
      of TextureMapper directly. This allows using the software fallback of TextureMapper by any
      sort.
      
      To make the ImageBuffer backend easier, content updates to BitmapTexture can now use either
      an image, or a raw data pointer. The raw data pointer is provided for performance reasons,
      as converting data to/from Image references in Qt generates unnecessary deep copies of the
      image data.
      
      Also, functions that use TransformationMatrix were added to GraphicsContext, to allow for
      3D transforms in cross platform code.
      After this patch everything renders the same. An additional bug report was created to allow
      ImageBuffer shallow image copies: https://bugs.webkit.org/show_bug.cgi?id=77689
      
      Covered extensively by existing tests, no behavioral changes.
      
      * Target.pri:
      * platform/graphics/GraphicsContext.cpp:
      * platform/graphics/GraphicsContext.h:
      (WebCore):
      (GraphicsContext):
      * platform/graphics/cairo/TextureMapperCairo.cpp:
      * platform/graphics/opengl/TextureMapperGL.cpp:
      (TextureMapperGLData):
      (BitmapTextureGL):
      (WebCore::BitmapTextureGL::BitmapTextureGL):
      (WebCore::TextureMapperGL::beginPainting):
      (WebCore::BitmapTextureGL::reset):
      (WebCore):
      (WebCore::swizzleBGRAToRGBA):
      (WebCore::BitmapTextureGL::updateContents):
      (WebCore::BitmapTextureGL::destroy):
      (WebCore::TextureMapperGL::bindSurface):
      (WebCore::TextureMapper::platformCreateAccelerated):
      * platform/graphics/opengl/TextureMapperGL.h:
      (TextureMapperGL):
      (WebCore::TextureMapperGL::accelerationMode):
      (WebCore):
      * platform/graphics/qt/GraphicsContext3DQt.cpp:
      (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
      * platform/graphics/qt/GraphicsContextQt.cpp:
      (WebCore):
      (WebCore::GraphicsContext::get3DTransform):
      (WebCore::GraphicsContext::concat3DTransform):
      (WebCore::GraphicsContext::set3DTransform):
      * platform/graphics/qt/TextureMapperQt.cpp: Removed.
      * platform/graphics/qt/TextureMapperQt.h: Removed.
      * platform/graphics/texmap/TextureMapper.cpp:
      (WebCore):
      (BitmapTextureImageBuffer):
      (TextureMapperImageBuffer):
      * platform/graphics/texmap/TextureMapper.h:
      (WebCore::BitmapTexture::BitmapTexture):
      (BitmapTexture):
      (WebCore::BitmapTexture::bpp):
      (WebCore::BitmapTexture::isOpaque):
      (WebCore::TextureMapper::setGraphicsContext):
      (WebCore::TextureMapper::graphicsContext):
      (TextureMapper):
      (WebCore::TextureMapper::TextureMapper):
      (WebCore::TextureMapper::platformCreateAccelerated):
      * platform/graphics/texmap/TextureMapperNode.cpp:
      (WebCore::TextureMapperNode::renderContent):
      (WebCore::TextureMapperNode::setContentsTileBackBuffer):
      * platform/graphics/texmap/TextureMapperNode.h:
      (TextureMapperNode):
      
      Source/WebKit/qt:
      
      Use TextureMapper::create instead of creating TextureMapperGL/TextureMapperQt directly.
      
      * Api/qwebframe.cpp:
      (QWebFramePrivate::renderCompositedLayers):
      * WebCoreSupport/PageClientQt.cpp:
      (WebCore::PageClientQWidget::setRootGraphicsLayer):
      (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
      
      Source/WebKit2:
      
      Use TextureMapper::create instead of creating TextureMapperGL/TextureMapperQt directly.
      Remove calls to unused API.
      
      * UIProcess/qt/LayerTreeHostProxyQt.cpp:
      (WebKit::LayerTreeHostProxy::paintToCurrentGLContext):
      (WebKit::LayerTreeHostProxy::paintToGraphicsContext):
      (WebKit::LayerTreeHostProxy::createImage):
      (WebKit::LayerTreeHostProxy::ensureRootLayer):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106659 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1ddb153e
    • jocelyn.turcotte@nokia.com's avatar
      [Qt] Split QQuickWebViewPrivate in two classes, for desktop and touch behavior. · 3a75735d
      jocelyn.turcotte@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77632
      
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebKit2:
      
      Replace the runtime property setting the desktop behavior on each instance
      by a static boolean controlling the behavior used by future created WebViews.
      
      * UIProcess/API/qt/qquickwebpage.cpp:
      Let only setContentsSize control the size of the drawing area instead of deferring
      it until geometryChanged is called.
      (QQuickWebPagePrivate::QQuickWebPagePrivate):
      * UIProcess/API/qt/qquickwebpage_p.h:
      * UIProcess/API/qt/qquickwebpage_p_p.h:
      (QQuickWebPagePrivate):
      * UIProcess/API/qt/qquickwebview.cpp:
      (createPrivateObject):
      (QQuickWebViewPrivate::QQuickWebViewPrivate):
      (QQuickWebViewPrivate::~QQuickWebViewPrivate):
      (QQuickWebViewPrivate::initialize):
      (QQuickWebViewPrivate::processDidCrash):
      (QQuickWebViewLegacyPrivate::QQuickWebViewLegacyPrivate):
      (QQuickWebViewLegacyPrivate::initialize):
      (QQuickWebViewLegacyPrivate::updateViewportSize):
      (QQuickWebViewFlickablePrivate::QQuickWebViewFlickablePrivate):
      (QQuickWebViewFlickablePrivate::~QQuickWebViewFlickablePrivate):
      (QQuickWebViewFlickablePrivate::initialize):
      (QQuickWebViewFlickablePrivate::loadDidCommit):
      (QQuickWebViewFlickablePrivate::didFinishFirstNonEmptyLayout):
      (QQuickWebViewFlickablePrivate::didChangeViewportProperties):
      (QQuickWebViewFlickablePrivate::updateViewportSize):
      (QQuickWebViewFlickablePrivate::_q_updateVisibleContentRectAndScale):
      (QQuickWebViewFlickablePrivate::_q_suspend):
      (QQuickWebViewFlickablePrivate::_q_resume):
      (QQuickWebViewFlickablePrivate::pageDidRequestScroll):
      (QQuickWebViewFlickablePrivate::didChangeContentsSize):
      (QQuickWebViewFlickablePrivate::computeViewportConstraints):
      (QQuickWebViewFlickablePrivate::PostTransitionState::apply):
      (QQuickWebViewExperimental::setFlickableViewportEnabled):
      The switch is now a static function that has to be called before a WebView
      is created. The switch can have it's default defined by the deploying platform.
      (QQuickWebViewExperimental::flickableViewportEnabled):
      (QQuickWebView::QQuickWebView):
      On creation of QQuickWebView, the static boolean is read to know if we want
      a QQuickWebViewTouchPrivate or a QQuickWebViewDesktopPrivate.
      (QQuickWebView::geometryChanged):
      * UIProcess/API/qt/qquickwebview_p.h:
      * UIProcess/API/qt/qquickwebview_p_p.h:
      (QQuickWebViewPrivate):
      (QQuickWebViewPrivate::loadDidCommit):
      (QQuickWebViewPrivate::didFinishFirstNonEmptyLayout):
      (QQuickWebViewPrivate::didChangeViewportProperties):
      (QQuickWebViewPrivate::viewportInteractionEngine):
      (QQuickWebViewPrivate::updateViewportSize):
      (QQuickWebViewPrivate::_q_updateVisibleContentRectAndScale):
      (QQuickWebViewPrivate::_q_suspend):
      (QQuickWebViewPrivate::_q_resume):
      (QQuickWebViewPrivate::pageDidRequestScroll):
      (QQuickWebViewPrivate::didChangeContentsSize):
      (QQuickWebViewLegacyPrivate):
      (QQuickWebViewFlickablePrivate):
      (QQuickWebViewFlickablePrivate::viewportInteractionEngine):
      (PostTransitionState):
      (QQuickWebViewFlickablePrivate::PostTransitionState::PostTransitionState):
      * UIProcess/API/qt/qwebviewportinfo.cpp:
      (QWebViewportInfo::currentScale):
      (QWebViewportInfo::devicePixelRatio):
      (QWebViewportInfo::initialScale):
      (QWebViewportInfo::minimumScale):
      (QWebViewportInfo::maximumScale):
      (QWebViewportInfo::isScalable):
      (QWebViewportInfo::layoutSize):
      * UIProcess/API/qt/tests/publicapi/publicapi.pro:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior.pro: Added.
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/DesktopWebView.qml: Removed.
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_itemSelector.qml: Renamed
      from Source/WebKit2/UIProcess/API/qt/tests/qmltests/WebView/tst_itemSelector.qml.
      Moved to DesktopBehavior instead of using a DesktopWebView to workaround the touch event limitation.
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_linkHovered.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_loadHtml.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_messaging.qml:
      * UIProcess/API/qt/tests/qmltests/DesktopBehavior/tst_navigationRequested.qml:
      * UIProcess/API/qt/tests/qmltests/WebView.pro: Copied
      from Source/WebKit2/UIProcess/API/qt/tests/qmltests/qmltests.pro.
      * UIProcess/API/qt/tests/qmltests/qmltests.pro:
      Split qmltests in two executables, tst_qmltests_DesktopBehavior and tst_qmltests_WebView.
      The former runs without setFlickableViewportEnabled and the later does.
      * UIProcess/API/qt/tests/qmltests/tst_qmltests.cpp:
      (main):
      * UIProcess/API/qt/tests/qquickwebview/qquickwebview.pro:
      * UIProcess/API/qt/tests/tests.pri:
      * UIProcess/qt/QtWebPageEventHandler.cpp:
      (QtWebPageEventHandler::QtWebPageEventHandler):
      
      Tools:
      
      * MiniBrowser/qt/BrowserWindow.cpp:
      (BrowserWindow::BrowserWindow):
      * MiniBrowser/qt/MiniBrowserApplication.cpp:
      (MiniBrowserApplication::sendTouchEvent):
      (MiniBrowserApplication::handleUserOptions):
      * MiniBrowser/qt/MiniBrowserApplication.h:
      (WindowOptions):
      (WindowOptions::WindowOptions):
      * WebKitTestRunner/qt/PlatformWebViewQt.cpp:
      (WTR::PlatformWebView::PlatformWebView):
      * WebKitTestRunner/qt/main.cpp:
      (main):
      * qmake/mkspecs/features/default_post.prf:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3a75735d
    • yurys@chromium.org's avatar
      Web Inspector: console evaluation doesn't work on breakpoint in pages with CSP · b286773f
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77203
      
      Inspector console evaluation now works when debugger is paused in a page with
      content-security-policy prohibiting evals.
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      Test: inspector/debugger/eval-on-pause-blocked.html
      
      * bindings/js/JSInjectedScriptHostCustom.cpp:
      * bindings/js/ScriptState.cpp:
      (WebCore::evalEnabled):
      (WebCore):
      (WebCore::setEvalEnabled):
      * bindings/js/ScriptState.h:
      (WebCore):
      * bindings/v8/ScriptObject.h:
      (WebCore::ScriptObject::ScriptObject):
      * bindings/v8/ScriptState.cpp:
      (WebCore::evalEnabled):
      (WebCore):
      (WebCore::setEvalEnabled):
      * bindings/v8/ScriptState.h:
      (WebCore):
      * bindings/v8/custom/V8InjectedScriptHostCustom.cpp:
      * inspector/InjectedScript.cpp:
      (WebCore::InjectedScript::makeCall):
      * inspector/InjectedScriptHost.idl:
      * inspector/InjectedScriptSource.js:
      (.):
      
      LayoutTests:
      
      * inspector/debugger/eval-on-pause-blocked-expected.txt: Added.
      * inspector/debugger/eval-on-pause-blocked.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b286773f
    • jocelyn.turcotte@nokia.com's avatar
      [Qt] Rename content* to contents* in QQuickWebPage. · f1591ee8
      jocelyn.turcotte@nokia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77629
      
      Reviewed by Kenneth Rohde Christiansen.
      
      * UIProcess/API/qt/qquickwebpage.cpp:
      (QQuickWebPagePrivate::QQuickWebPagePrivate):
      (QQuickWebPagePrivate::paintToCurrentGLContext):
      (QQuickWebPage::setContentsSize):
      (QQuickWebPage::contentsSize):
      (QQuickWebPage::setContentsScale):
      (QQuickWebPage::contentsScale):
      (QQuickWebPage::transformToItem):
      (QQuickWebPagePrivate::updateSize):
      * UIProcess/API/qt/qquickwebpage_p.h:
      * UIProcess/API/qt/qquickwebpage_p_p.h:
      (QQuickWebPagePrivate):
      * UIProcess/API/qt/qquickwebview.cpp:
      (QQuickWebViewPrivate::didChangeContentsSize):
      (QQuickWebViewPrivate::updateVisibleContentRectAndScale):
      (QQuickWebViewPrivate::PostTransitionState::apply):
      * UIProcess/API/qt/qwebviewportinfo.cpp:
      (QWebViewportInfo::contentsSize):
      * UIProcess/API/qt/tests/qquickwebview/tst_qquickwebview.cpp:
      (tst_QQuickWebView::scrollRequest):
      * UIProcess/qt/QtViewportInteractionEngine.cpp:
      (WebKit::QtViewportInteractionEngine::setItemRectVisible):
      (WebKit::QtViewportInteractionEngine::event):
      (WebKit::QtViewportInteractionEngine::wheelEvent):
      (WebKit::QtViewportInteractionEngine::pagePositionRequest):
      (WebKit::QtViewportInteractionEngine::computePosRangeForItemAtScale):
      (WebKit::QtViewportInteractionEngine::applyConstraints):
      (WebKit::QtViewportInteractionEngine::currentCSSScale):
      (WebKit::QtViewportInteractionEngine::pinchGestureStarted):
      (WebKit::QtViewportInteractionEngine::scaleContent):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f1591ee8
    • rwlbuis@webkit.org's avatar
      2012-02-03 Rob Buis <rbuis@rim.com> · 50587b13
      rwlbuis@webkit.org authored
              Upstream targetType usage on ResourceRequest for BlackBerry port
              https://bugs.webkit.org/show_bug.cgi?id=77649
      
              Reviewed by Antonio Gomes.
      
              Upstream bits that make use of targetType enum.
      
              * loader/PingLoader.cpp:
              (WebCore::PingLoader::loadImage):
              (WebCore::PingLoader::sendPing):
              (WebCore::PingLoader::reportContentSecurityPolicyViolation):
              * platform/network/blackberry/ResourceRequest.h:
              (ResourceRequest):
              (WebCore::ResourceRequest::targetType):
              (WebCore::ResourceRequest::setTargetType):
              * xml/XMLHttpRequest.cpp:
              (WebCore::XMLHttpRequest::createRequest):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106655 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50587b13
    • commit-queue@webkit.org's avatar
      Source/WebCore: Ensure timers and other active DOM objects do not fire in suspended documents. · a8ca33b3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      ScriptExecutionContext now remembers it has suspended active DOM objects
      and suspends all newly installed active DOM objects as well.
      
      All create-calls active DOM objects now calls the post constructor method
      suspendIfNeeded that updates the suspend state. It is post constructor
      because the suspend/resume functions are virtual and thus can not be called
      from constructors.
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-03
      Reviewed by Mihai Parparita.
      
      Test: fast/events/suspend-timers.html
      
      * Modules/intents/IntentRequest.cpp:
      (WebCore::IntentRequest::create):
      * bindings/generic/ActiveDOMCallback.cpp:
      (WebCore::ActiveDOMCallback::ActiveDOMCallback):
      * dom/ActiveDOMObject.cpp:
      (WebCore::ActiveDOMObject::ActiveDOMObject):
      (WebCore::ActiveDOMObject::~ActiveDOMObject):
      (WebCore::ActiveDOMObject::suspendIfNeeded):
      * dom/ActiveDOMObject.h:
      (WebCore::ActiveDOMObject::suspendIfNeededCalled):
      * dom/DocumentEventQueue.cpp:
      (WebCore::DocumentEventQueue::DocumentEventQueue):
      * dom/ScriptExecutionContext.cpp:
      (WebCore::ScriptExecutionContext::ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::~ScriptExecutionContext):
      (WebCore::ScriptExecutionContext::canSuspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjects):
      (WebCore::ScriptExecutionContext::resumeActiveDOMObjects):
      (WebCore::ScriptExecutionContext::stopActiveDOMObjects):
      (WebCore::ScriptExecutionContext::suspendActiveDOMObjectIfNeeded):
      * dom/ScriptExecutionContext.h:
      (WebCore::ScriptExecutionContext::activeDOMObjectsAreSuspended):
      * fileapi/DOMFileSystem.cpp:
      (WebCore::DOMFileSystem::create):
      * fileapi/FileReader.cpp:
      (WebCore::FileReader::create):
      * fileapi/FileReader.h:
      * fileapi/FileWriter.cpp:
      (WebCore::FileWriter::create):
      * fileapi/FileWriter.h:
      * history/CachedFrame.cpp:
      (WebCore::CachedFrame::CachedFrame):
      * html/HTMLAudioElement.cpp:
      (WebCore::HTMLAudioElement::create):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::create):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::create):
      * mediastream/PeerConnection.cpp:
      (WebCore::PeerConnection::create):
      * notifications/Notification.cpp:
      (WebCore::Notification::create):
      * notifications/NotificationCenter.cpp:
      (WebCore::NotificationCenter::create):
      * notifications/NotificationCenter.h:
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::install):
      (WebCore::DOMTimer::fired):
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * page/SuspendableTimer.cpp:
      (WebCore::SuspendableTimer::SuspendableTimer):
      * storage/IDBDatabase.cpp:
      (WebCore::IDBDatabase::create):
      * storage/IDBRequest.cpp:
      (WebCore::IDBRequest::create):
      * storage/IDBTransaction.cpp:
      (WebCore::IDBTransaction::create):
      * webaudio/AudioContext.cpp:
      (WebCore::AudioContext::create):
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::create):
      * websockets/WebSocket.h:
      * workers/SharedWorker.cpp:
      (WebCore::SharedWorker::create):
      * workers/Worker.cpp:
      (WebCore::Worker::create):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::create):
      
      LayoutTests: Test that timers do not fire from subframes of suspended documents.
      https://bugs.webkit.org/show_bug.cgi?id=53733
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-03
      Reviewed by Mihai Parparita.
      
      * fast/events/resources/suspend-subframe-1.html: Added.
      * fast/events/resources/suspend-subframe-2.html: Added.
      * fast/events/suspend-timers-expected.txt: Added.
      * fast/events/suspend-timers.html: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106654 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a8ca33b3
    • yurys@chromium.org's avatar
      2012-02-03 Yury Semikhatsky <yurys@chromium.org> · 3ac2660f
      yurys@chromium.org authored
              Unreviewed. Update Chromium deps.
      
              * DEPS:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106653 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ac2660f
    • ossy@webkit.org's avatar
      New test introduced in r106642 failes on Qt Linux Release · 5b4ac2b9
      ossy@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77729
      
      Patch by Zoltan Arvai <zarvai@inf.u-szeged.hu> on 2012-02-03
      Reviewed by Csaba Osztrogonác.
      
      * platform/qt/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b4ac2b9
    • commit-queue@webkit.org's avatar
      [Qt] Fix build when cross-compiling · 2a03a707
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77634
      
      Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-02-03
      Reviewed by Tor Arne Vestbø.
      
      Source/WebKit2:
      
      * WebKit2.pri: Link in -lrt on linux mkspecs, regardless of whether gcc
      is in use or not. More specifically this fixes the case where the makespace
      is not linux-g++* but for a cross-compiling one like linux-arm-gnueabi-g++.
      
      Source/WTF:
      
      * WTF.pri: Don't use icu-config for determining the library search
      path and libraries needed for ICU. Either we use icu-config for includes
      _and_ libraries or we don't. Right now we assume that icu is a system library
      and expect the headers in the default include search pathes (/usr/include for example).
      However we use icu-config to figure out where the libraries are, which breaks when
      cross-compiling, because icu-config isn't cross-compile friendly (I wish icu was using
      pkg-config). I think for the time being we should require ICU as a _system_ library,
      which implies the header and library availability in default search paths. This also
      makes the build succeed when cross-compiling with --sysroot.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106651 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a03a707
    • commit-queue@webkit.org's avatar
      [Qt] Replace GNU linker script for exports with export macros in WTF/JSC · f7954470
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77723
      
      Patch by Simon Hausmann <simon.hausmann@nokia.com> on 2012-02-03
      Reviewed by Tor Arne Vestbø.
      
      .:
      
      * Source/api.pri: Remove use of GNU linker script on Linux.
      * Source/qtwebkit-export.map: Removed.
      
      Source/JavaScriptCore:
      
      * wtf/Platform.h: Enable use of export macros.
      
      Tools:
      
      * Tools.pro: Compile WTR again on all platforms with WK2.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106650 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f7954470
    • commit-queue@webkit.org's avatar
      Do not ASSERT on TouchStationary TouchPoint state. · 2474bf8d
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77620
      
      Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-03
      Reviewed by Kenneth Rohde Christiansen.
      
      * page/EventHandler.cpp:
      (WebCore::eventNameForTouchPointState): Explicitly show that TouchStationary is asserted.
      (WebCore::EventHandler::handleTouchEvent):
          Remove TouchStationary from ASSERT. The value of HitTestRequest is restored to the
          value it should have if hittested, but is not used.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106649 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2474bf8d
    • haraken@chromium.org's avatar
      Add the "ObjC" prefix to ObjC specific IDL attributes · a5729042
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77708
      
      Reviewed by Adam Barth.
      
      This patch adds the "ObjC" prefix to ObjC specific IDL attributes, as follows:
      
          [Polymorphic] => [ObjCPolymorphic]
          [OldStyleObjC] => [ObjCLegacyUnamedParameters]
          [UsesView] => [ObjCUseDefaultView] (Note: Renamed for clarification)
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorObjC.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * css/CSSMediaRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRule.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSValue.idl:
      * css/StyleSheet.idl:
      * dom/CharacterData.idl:
      * dom/DOMImplementation.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/EventTarget.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/Range.idl:
      * dom/UIEvent.idl:
      * html/HTMLCollection.idl:
      * html/HTMLSelectElement.idl:
      * svg/SVGPathSeg.idl:
      * xml/XPathExpression.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106648 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a5729042
    • commit-queue@webkit.org's avatar
      Ensure that inspector disabled build works · 0b749fbd
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77604
      
      Patch by Sriram Neelakandan <sriram.neelakandan@gmail.com> on 2012-02-03
      Reviewed by Tor Arne Vestbø.
      
      * qmake/mkspecs/features/features.prf:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0b749fbd
    • morrita@google.com's avatar
      TypingCommand should be prepared against detached document. · 7b933dec
      morrita@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=77216
      
      Reviewed by Ryosuke Niwa.
      
      Added null checks for document()->frame().
      
      No new tests. Just tighten guards for possible codepaths.
      
      * editing/TypingCommand.cpp:
      (WebCore::TypingCommand::markMisspellingsAfterTyping):
      (WebCore::TypingCommand::typingAddedToOpenCommand):
      (WebCore::TypingCommand::deleteKeyPressed):
      (WebCore::TypingCommand::forwardDeleteKeyPressed):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106646 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b933dec
    • haraken@chromium.org's avatar
      Rename [DontEnum] IDL to [NotEnumerable] IDL · 16f249f7
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77710
      
      Reviewed by Adam Barth.
      
      [DontEnum] is a negation of [[Enumerable]] in the ECMAScript spec
      (8.6.1 of http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf).
      This patch renames [DontEnum] to [NotEnumerable].
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateAttributesHashTable):
      (GenerateImplementation):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateSingleBatchedAttribute):
      (GenerateImplementation):
      
      * css/WebKitCSSMatrix.idl:
      * dom/DOMCoreException.idl:
      * dom/Document.idl:
      * dom/Element.idl:
      * dom/EventException.idl:
      * dom/RangeException.idl:
      * fileapi/FileException.idl:
      * fileapi/OperationNotAllowedException.idl:
      * html/DOMTokenList.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLBodyElement.idl:
      * html/HTMLFrameSetElement.idl:
      * html/HTMLInputElement.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/Location.idl:
      * storage/IDBDatabaseException.idl:
      * storage/Storage.idl:
      * svg/SVGElementInstance.idl:
      * svg/SVGException.idl:
      * workers/WorkerLocation.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XPathException.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106645 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      16f249f7
    • haraken@chromium.org's avatar
      Rename [InitializedByConstructor] IDL to [InitializedByEventConstructor] IDL · 849d0ffc
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77711
      
      Reviewed by Adam Barth.
      
      [InitializedByConstructor] can be used only when [ConstructorTemplate=Event]
      is specified on the interface. This patch renames [InitializedByConstructor] to
      [InitializedByEventConstructor] for clarification.
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorJS.pm:
      (GenerateConstructorDefinition):
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateEventConstructorCallback):
      
      * bindings/scripts/test/TestEventConstructor.idl:
      * bindings/scripts/test/V8/V8TestEventConstructor.cpp: Updated the run-bindings-tests results.
      (WebCore):
      
      * dom/BeforeLoadEvent.idl:
      * dom/CustomEvent.idl:
      * dom/ErrorEvent.idl:
      * dom/Event.idl:
      * dom/HashChangeEvent.idl:
      * dom/MessageEvent.idl:
      * dom/OverflowEvent.idl:
      * dom/PageTransitionEvent.idl:
      * dom/PopStateEvent.idl:
      * dom/ProgressEvent.idl:
      * dom/WebKitAnimationEvent.idl:
      * dom/WebKitTransitionEvent.idl:
      * html/canvas/WebGLContextEvent.idl:
      * html/track/TrackEvent.idl:
      * storage/StorageEvent.idl:
      * websockets/CloseEvent.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      849d0ffc
    • haraken@chromium.org's avatar
      Add the "CPP" prefix to CPP specific IDL attributes · afeb95d4
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77707
      
      Reviewed by Adam Barth.
      
      This patch adds the "CPP" prefix to a CPP specific IDL attribute.
      Specifically, this patch renames [PureInterface] to [CPPPureInterface]
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorCPP.pm:
      (GenerateHeader):
      (GenerateImplementation):
      * css/MediaQueryListListener.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/NodeFilter.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      afeb95d4
    • apavlov@chromium.org's avatar
      Implement touch event emulation in the WebCore layer · 4362021b
      apavlov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77105
      
      Reviewed by Ryosuke Niwa.
      
      Source/WebCore:
      
      This change essentially maps mouse events into single-touch events in the following way:
      - mousedown -> touchstart
      - mouseup -> touchend
      - mousemove -> touchmove (between mousedown and mouseup).
      
      Test: fast/events/touch/emulate-touch-events.html
      
      * page/EventHandler.cpp:
      (SyntheticTouchPoint): A synthetic touch point built from PlatformMouseEvent.
      (WebCore::SyntheticTouchPoint::SyntheticTouchPoint):
      (SyntheticSingleTouchEvent): A synthetic touch point event built from PlatformMouseEvent.
      (WebCore::SyntheticSingleTouchEvent::SyntheticSingleTouchEvent):
      (WebCore::EventHandler::handleMouseReleaseEvent): Invoke maybeDispatchSyntheticTouchEvent() and bail out if necessary.
      (WebCore::EventHandler::handleMousePressEvent): Invoke maybeDispatchSyntheticTouchEvent() and bail out if necessary.
      (WebCore::EventHandler::mouseMoved): Invoke maybeDispatchSyntheticTouchEvent() and bail out if necessary.
      (WebCore::EventHandler::dispatchSyntheticTouchEventIfEnabled): Dispatch a synthetic touch event if necessary.
      * page/EventHandler.h: Added new method.
      * page/Settings.cpp:
      (WebCore::Settings::Settings): Added m_touchEventEmulationEnabled initializer.
      * page/Settings.h: Added m_touchEventEmulationEnabled, getter, and setter.
      (WebCore::Settings::setTouchEventEmulationEnabled): Added.
      (WebCore::Settings::isTouchEventEmulationEnabled): Added.
      * platform/PlatformTouchPoint.h:
      (WebCore::PlatformTouchPoint::PlatformTouchPoint): Unconditionally compile the parameterless ctor.
      * testing/InternalSettings.cpp:
      (WebCore::InternalSettings::setTouchEventEmulationEnabled): Added for testing.
      * testing/InternalSettings.h: Added setTouchEventEmulationEnabled() for testing.
      * testing/InternalSettings.idl: Added setTouchEventEmulationEnabled() for testing.
      
      LayoutTests:
      
      * fast/events/touch/emulate-touch-events-expected.txt: Added.
      * fast/events/touch/emulate-touch-events.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4362021b
    • abarth@webkit.org's avatar
      Group all the security failures together. · 51f54b6b
      abarth@webkit.org authored
      * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51f54b6b
    • haraken@chromium.org's avatar
      Remove [NoCPPCustom] IDL · 0e4ddfea
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77704
      
      Reviewed by Adam Barth.
      
      This patch removes [NoCPPCustom], by replacing [Custom, NoCPPCustom]
      in HTMLDocument.idl with [JSCCustom, V8Custom].
      
      No tests. No change in behavior.
      
      * bindings/scripts/CodeGeneratorCPP.pm:
      (ShouldSkipType):
      * html/HTMLDocument.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e4ddfea
    • haraken@chromium.org's avatar
      Remove [LegacyParent] from CodeGeneratorGObject.pm, and rename it to [JSLegacyParent] · ef73ea8b
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77706
      
      Reviewed by Adam Barth.
      
      This patch removes dead code about [LegacyParent] from CodeGeneratorGObject.pm,
      and renames [LegacyParent] to [JSLegacyParent].
      
      No tests. No changes in behavior.
      
      * bindings/scripts/CodeGeneratorGObject.pm:
      (Generate):
      * bindings/scripts/CodeGeneratorJS.pm:
      (GetParentClassName):
      (GenerateHeader):
      (GenerateImplementation):
      * page/DOMWindow.idl:
      * workers/WorkerContext.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef73ea8b
    • pfeldman@chromium.org's avatar
      Web Inspector: preserve elements panel selection upon node drag'n'drop · f985d588
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77722
      
      Reviewed by Vsevolod Vlasov.
      
      Source/WebCore:
      
      Test: inspector/elements/move-node.html
      
      * inspector/front-end/DOMAgent.js:
      (WebInspector.DOMAgent.prototype._markRevision):
      * inspector/front-end/ElementsTreeOutline.js:
      (WebInspector.ElementsTreeOutline.prototype._ondrop):
      (WebInspector.ElementsTreeOutline.prototype._doMove.callback):
      (WebInspector.ElementsTreeOutline.prototype._doMove):
      
      LayoutTests:
      
      * inspector/elements/move-node-expected.txt: Added.
      * inspector/elements/move-node.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f985d588
    • commit-queue@webkit.org's avatar
      Source/WebCore: Reimplement DETAILS and SUMMARY using selector query. · 4a5af418
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=75930
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-03
      Reviewed by Hajime Morita.
      
      DETAILS is reimplemented using content element and its fallback feature.
      We don't need to recreate DOM even if SUMMARY is removed from or added into DETAILS.
      
      No new tests, should be covered by existing tests.
      
      * html/HTMLDetailsElement.cpp:
      (WebCore::DetailsSummaryElement::fallbackSummary):
        Takes fallback element of content summary.
      (DetailsSummaryElement):
      (WebCore::DetailsSummaryElement::create):
        Creates a fallback element also.
      (WebCore):
      (WebCore::HTMLDetailsElement::create):
      (WebCore::HTMLDetailsElement::HTMLDetailsElement):
      (WebCore::HTMLDetailsElement::createShadowSubtree):
      (WebCore::HTMLDetailsElement::findMainSummary):
      (WebCore::HTMLDetailsElement::parseMappedAttribute):
      (WebCore::HTMLDetailsElement::childShouldCreateRenderer):
      (WebCore::HTMLDetailsElement::toggleOpen):
      * html/HTMLDetailsElement.h:
      (HTMLDetailsElement):
      * html/HTMLSummaryElement.cpp:
      (WebCore::HTMLSummaryElement::isMainSummary):
      
      LayoutTests: Reimplement DETAILS and SUMMARY using selector query.
      https://bugs.webkit.org/show_bug.cgi?id=75930
      
      Since the implementation of DETAILS shadow tree, the path of caret position is also changed.
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-03
      Reviewed by Hajime Morita.
      
      * platform/chromium-win/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/chromium-win/fast/html/details-remove-summary-4-and-click-expected.txt:
      * platform/gtk/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/gtk/fast/html/details-remove-summary-4-and-click-expected.txt:
      * platform/mac/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/mac/fast/html/details-remove-summary-4-and-click-expected.txt:
      * platform/qt/fast/html/details-remove-summary-1-and-click-expected.txt:
      * platform/qt/fast/html/details-remove-summary-4-and-click-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4a5af418
    • jochen@chromium.org's avatar
      Crash when trying to add a timer to a detached document. · b7158476
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77692
      
      Reviewed by Alexey Proskuryakov.
      
      In http://webkit.org/b/77370, a timer is fired on a detached document.
      Since a document clears all timers when it is detached, and it
      shouldn't be possible to add a timer to a detached document, we crash
      if this should happen anyway. This will hopefully result in an easier
      to debug crash dump.
      
      * page/DOMTimer.cpp:
      (WebCore::DOMTimer::DOMTimer):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7158476
    • commit-queue@webkit.org's avatar
      Stop calling Element::ensureShadowRoot in Internals. · eb51612e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77612
      
      Patch by Shinya Kawanaka <shinyak@google.com> on 2012-02-03
      Reviewed by Hajime Morita.
      
      .:
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      We want to check a shadow root is built-in or created by users to support multiple shadow subtrees.
      But Element::ensureShadowRoot() makes it difficult, because it doesn't care about the returning shadow element
      is built-in or user generated, so let's remove Element::ensureShadowRoot().
      
      As a first step, this patch removes ensureShadowRoot() in Internals.
      
      No new tests, because no changes in behavior.
      
      * WebCore.exp.in:
      * testing/Internals.cpp:
      (WebCore::Internals::ensureShadowRoot):
      
      Source/WebKit2:
      
      Exports symbols.
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb51612e
    • mrowe@apple.com's avatar
      <http://webkit.org/b/77717> Makefile should provide control over output verbosity · aac5dabe
      mrowe@apple.com authored
      Allow the filtering of the output of our Makefile to be configured via a user default
      and overriden via a command-line argument to make.
      
      The Makefile takes the verbosity from BuildTranscriptVerbosity default in the
      org.webkit.BuildConfiguration domain. The supported values are "default", "quiet"
      and "noisy". "default" maintains the existing behavior of only filtering out
      the setenv lines from Xcode's shell script build phases. "quiet" filters all output
      through filter-build-webkit. "noisy" provides unfiltered output. The verbosity can
      be overriden for a single invocation of make by specifying the VERBOSITY variable
      on the make command line.
      
      To always get full output:
      defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity noisy
      
      To always get filtered ouptut:
      defaults write org.webkit.BuildConfiguration BuildTranscriptVerbosity quiet
      
      To get full output for a single build:
      make VERBOSITY=noisy
      
      Reviewed by Dan Bernstein.
      
      * Makefile.shared:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aac5dabe
    • commit-queue@webkit.org's avatar
      Web Inspector: Always show percents together with counters in heap inspector. · 3398423f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=77434
      
      Source/WebCore:
      
      Patch by Alexei Filippov <alexeif@chromium.org> on 2012-02-02
      Reviewed by Pavel Feldman.
      
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGridNode.prototype._toPercentString):
      (WebInspector.HeapSnapshotGridNode.prototype._createValueCell):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.createCell):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
      (WebInspector.HeapSnapshotConstructorNode.prototype.createCell):
      (WebInspector.HeapSnapshotConstructorNode.prototype.get data):
      (WebInspector.HeapSnapshotDiffNode.prototype.get data):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.HeapSnapshotContainmentDataGrid):
      (WebInspector.HeapSnapshotConstructorsDataGrid):
      (WebInspector.HeapSnapshotDiffDataGrid):
      (WebInspector.HeapSnapshotDominatorsDataGrid):
      (WebInspector.DetailedHeapshotView.prototype._mouseDownInContentsGrid):
      (WebInspector.DetailedHeapshotView.prototype.get _isShowingAsPercent):
      (WebInspector.DetailedHeapshotView.prototype._percentClicked):
      * inspector/front-end/heapProfiler.css:
      (.detailed-heapshot-view .data-grid span.percent-column):
      
      LayoutTests:
      
      Added parseInt conversion as counters are now strings not ints.
      
      Patch by Alexei Filippov <alexeif@chromium.org> on 2012-02-02
      Reviewed by Pavel Feldman.
      
      * inspector/profiler/detailed-heapshots-comparison-show-all.html:
      * inspector/profiler/detailed-heapshots-comparison-show-next.html:
      * inspector/profiler/detailed-heapshots-summary-show-all.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3398423f
    • commit-queue@webkit.org's avatar
      Use content-language from http-equiv to set document locale and font · 335d75e4
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=76701
      
      Patch by Matt Falkenhagen <falken@chromium.org> on 2012-02-02
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      So far, only content-language set through http-equiv is used; the HTTP Content-Language
      header is not yet supported.
      
      Tests: fast/text/content-language-case-insensitivity.html
             fast/text/content-language-mapped-to-webkit-locale.html
             fast/text/international/content-language-font-selection-expected.html
             fast/text/international/content-language-font-selection.html
             fast/text/international/content-language-with-subtags-expected.html
             fast/text/international/content-language-with-subtags.html
      
      * css/CSSStyleSelector.cpp:
      (WebCore::CSSStyleSelector::styleForDocument): Use content language when selecting initial font.
      * dom/Document.cpp:
      (WebCore::Document::setContentLanguage): Recalculate style so language is taken into account.
      (WebCore):
      * dom/Document.h:
      (Document):
      
      LayoutTests:
      
      Add tests that content-language from http-equiv sets document locale and is used in font selection.
      
      * fast/text/content-language-case-insensitivity-expected.txt: Added.
      * fast/text/content-language-case-insensitivity.html: Added.
      * fast/text/content-language-mapped-to-webkit-locale-expected.txt: Added.
      * fast/text/content-language-mapped-to-webkit-locale.html: Added.
      * fast/text/international/content-language-font-selection-expected.html: Added.
      * fast/text/international/content-language-font-selection.html: Added.
      * fast/text/international/content-language-with-subtags-expected.html: Added.
      * fast/text/international/content-language-with-subtags.html: Added.
      * fast/text/lang-mapped-to-webkit-locale-expected.txt:
      * fast/text/lang-mapped-to-webkit-locale.xhtml: Fix some style issues.
      * fast/text/xml-lang-ignored-in-html-expected.txt:
      * fast/text/xml-lang-ignored-in-html.html: Fix some style issues.
      * platform/efl/Skipped: Skip tests using overridePreference("WebKit*FontMap"...) on non-Chromium ports.
      * platform/gtk-wk2/Skipped: Ditto.
      * platform/gtk/Skipped: Ditto.
      * platform/mac/Skipped: Ditto.
      * platform/qt/Skipped: Ditto.
      * platform/win/Skipped: Ditto.
      * platform/wincairo/Skipped: Ditto.
      * platform/wk2/Skipped: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106632 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      335d75e4