1. 12 Nov, 2012 40 commits
    • arv@chromium.org's avatar
      Replace DOMException TYPE_MISMATCH_ERR with TypeError · 04fc7b0e
      arv@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101604
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      DOMException.TYPE_MISMATCH_ERR is deprecated in favor of using TypeError.
      
      We have historically used TYPE_MISMATCH_ERR as a blanket DOMException code when
      the spec mandates TypeError being thrown.
      
      Updated existing tests.
      
      * Modules/mediastream/MediaConstraintsImpl.cpp:
      * Modules/mediastream/MediaStreamTrackList.cpp:
      * Modules/mediastream/PeerConnection00.cpp:
      * Modules/mediastream/RTCDataChannel.cpp:
      * Modules/mediastream/RTCIceCandidate.cpp:
      * Modules/mediastream/RTCPeerConnection.cpp:
      * Modules/mediastream/RTCSessionDescription.cpp:
      * Modules/mediastream/SessionDescription.cpp:
      * bindings/js/CallbackFunction.cpp:
      * bindings/js/JSCustomXPathNSResolver.cpp:
      * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
      * bindings/js/JSHTMLSelectElementCustom.cpp:
      * bindings/js/JSMutationObserverCustom.cpp:
      * bindings/js/JSSQLResultSetRowListCustom.cpp:
      * bindings/js/JSSQLTransactionCustom.cpp:
      * bindings/js/JSSQLTransactionSyncCustom.cpp:
      * bindings/scripts/CodeGeneratorJS.pm:
      * bindings/scripts/CodeGeneratorObjC.pm:
      * bindings/scripts/CodeGeneratorV8.pm:
      * bindings/v8/V8Callback.h:
      * bindings/v8/V8Collection.cpp:
      * bindings/v8/custom/V8DocumentCustom.cpp:
      * bindings/v8/custom/V8HTMLOptionsCollectionCustom.cpp:
      * bindings/v8/custom/V8MutationObserverCustom.cpp:
      * bindings/v8/custom/V8SQLTransactionCustom.cpp:
      * bindings/v8/custom/V8SQLTransactionSyncCustom.cpp:
      * dom/DOMCoreException.idl:
      * html/HTMLElement.cpp:
      * html/HTMLMediaElement.cpp:
      * html/HTMLOptionsCollection.cpp:
      * html/canvas/CanvasRenderingContext2D.cpp:
      * page/Crypto.cpp:
      * page/DOMSelection.cpp:
      * svg/properties/SVGTransformListPropertyTearOff.h:
      
      LayoutTests:
      
      Update the tests to test for TypeError instead of DOMException with the TYPE_MISMATCH_ERR code.
      
      * canvas/philip/tests/2d.drawImage.null.html:
      * canvas/philip/tests/2d.imageData.put.null.html:
      * canvas/philip/tests/2d.pattern.image.null.html:
      * editing/selection/extend-expected.txt:
      * fast/dom/Geolocation/argument-types-expected.txt:
      * fast/dom/Geolocation/not-enough-arguments-expected.txt:
      * fast/dom/Geolocation/script-tests/argument-types.js:
      * fast/dom/HTMLSelectElement/select-selectedIndex-expected.txt:
      * fast/dom/HTMLSelectElement/select-selectedIndex-multiple-expected.txt:
      * fast/js/select-options-add-expected.txt:
      * fast/mediastream/RTCIceCandidate-expected.txt:
      * fast/mediastream/RTCPeerConnection-expected.txt:
      * fast/mediastream/RTCSessionDescription-expected.txt:
      * fast/mediastream/SessionDescription-expected.txt:
      * fast/mediastream/peerconnection-addstream-expected.txt:
      * fast/mediastream/peerconnection-iceoptions-expected.txt:
      * fast/mediastream/peerconnection-iceoptions.html:
      * fast/mediastream/peerconnection-removestream-expected.txt:
      * media/encrypted-media/encrypted-media-syntax.html:
      * media/video-test.js:
      * platform/chromium/fast/dynamic/insertAdjacentElement-expected.txt:
      * security/crypto-random-values-types-expected.txt:
      * svg/dom/SVGTransformList-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04fc7b0e
    • dbates@webkit.org's avatar
      Perl errors from Tools/Scripts/copy-webkitlibraries-to-product-directory · d4a2bf71
      dbates@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101980
      
      Reviewed by Mark Rowe.
      
      Remove library libWebKitSystemInterfaceLeopard.a and libWebKitSystemInterfaceSnowLeopard.a
      from the list of libraries to copy to the specified built products directory
      as these libraries were removed from the repository in <http://trac.webkit.org/changeset/133670>.
      
      * Scripts/copy-webkitlibraries-to-product-directory:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4a2bf71
    • jsbell@chromium.org's avatar
      IndexedDB: storage/indexeddb/cursor-prev-no-duplicate.html is flaky · 724950a7
      jsbell@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101990
      
      Reviewed by Tony Chang.
      
      Race condition in test leads to flaky behavior. Refactor test to remove flake
      and clean up output.
      
      * storage/indexeddb/cursor-prev-no-duplicate-expected.txt:
      * storage/indexeddb/resources/cursor-prev-no-duplicate.js:
      (testFarRangeCursor_closed):
      (.trans.oncomplete):
      (.storeReq.onsuccess):
      (runTest):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      724950a7
    • jsbell@chromium.org's avatar
      IndexedDB: Use sequence<> instead of DOMString[] in IDL · f9ad3f4f
      jsbell@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=100539
      
      Reviewed by Adam Barth.
      
      In the binding layer, DOMString[] is implemented as an alias for DOMStringList.
      WebIDL usage is tending towards sequence<DOMString> anyway for inputs, so switch
      to that. Note webkit.org/b/100537 which requires sequence<String> instead.
      
      Covered by storage/indexeddb/transaction-basics.html and objectstore-basics.html
      
      * Modules/indexeddb/IDBDatabase.cpp:
      (WebCore::IDBDatabase::transaction): DOMStringList -> Vector<String>
      * Modules/indexeddb/IDBDatabase.h:
      (WebCore::IDBDatabase::transaction):
      (IDBDatabase):
      * Modules/indexeddb/IDBDatabase.idl: DOMString[] -> sequence<String>
      * Modules/indexeddb/IDBObjectStore.cpp: Move trivial impls to header.
      * Modules/indexeddb/IDBObjectStore.h:
      (WebCore::IDBObjectStore::createIndex):
      * Modules/indexeddb/IDBObjectStore.idl: DOMString[] -> sequence<String>
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f9ad3f4f
    • hayato@chromium.org's avatar
      Unreviewed, gardening. · 8fd02994
      hayato@chromium.org authored
      Rebase after r134287.
      
      * platform/chromium-mac/platform/chromium/virtual/softwarecompositing/repaint/invalidations-on-composited-layers-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8fd02994
    • andersca@apple.com's avatar
      Remove Leopard only gradient code · 5155f9e7
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=102033
      
      Reviewed by Dan Bernstein.
      
      USE_CG_SHADING was only ever true on Leopard, so we can remove it now.
      
      * platform/graphics/Gradient.h:
      * platform/graphics/cg/GradientCG.cpp:
      (WebCore::Gradient::platformDestroy):
      (WebCore::Gradient::platformGradient):
      (WebCore::Gradient::paint):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5155f9e7
    • commit-queue@webkit.org's avatar
      Add WebCore::Setting to block displaying and/or running insecure content on secure pages · 4e57fe3c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=58378
      
      Patch by Josh Rickmar <jrick@devio.us> on 2012-11-12
      Reviewed by Martin Robinson.
      
      * webkit/webkitwebsettings.cpp:
      (webkit_web_settings_class_init):
      (webkit_web_settings_set_property):
      (webkit_web_settings_get_property):
      (webkit_web_settings_copy):
      * webkit/webkitwebview.cpp:
      (webkit_web_view_update_settings):
      (webkit_web_view_settings_notify):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4e57fe3c
    • commit-queue@webkit.org's avatar
      [BlackBerry] Update BB10 form theme. · 4c24fbb3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=100760
      
      Patch by Tiancheng Jiang <tijiang@rim.com> on 2012-11-12
      Reviewed by Rob Buis.
      
      RIM PR 237003
      Internally Reviewed by Eli Fidler.
      Since we nolonger use small font for form controls, adjust paddingDivisor
      ratio to decrease the padding value.
      
      * platform/blackberry/RenderThemeBlackBerry.cpp:
      (WebCore):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c24fbb3
    • andersca@apple.com's avatar
      Include child layers in the remote layer tree transaction · f3b054bf
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=102026
      
      Reviewed by Andreas Kling.
      
      * Shared/mac/RemoteLayerTreeTransaction.h:
      * Shared/mac/RemoteLayerTreeTransaction.mm:
      (WebKit::RemoteLayerTreeTransaction::LayerProperties::encode):
      (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
      Encode and decode child layer IDs.
      
      (WebKit::RemoteLayerTreeTransaction::layerPropertiesChanged):
      Grab all child layer IDs and stick them in a vector.
      
      (WebKit::dumpChangedLayers):
      Dump child layer IDs as well.
      
      * WebProcess/WebPage/mac/RemoteGraphicsLayer.h:
      * WebProcess/WebPage/mac/RemoteGraphicsLayer.mm:
      (WebKit::RemoteGraphicsLayer::setChildren):
      (WebKit::RemoteGraphicsLayer::addChild):
      (WebKit::RemoteGraphicsLayer::addChildAtIndex):
      (WebKit::RemoteGraphicsLayer::addChildAbove):
      (WebKit::RemoteGraphicsLayer::addChildBelow):
      (WebKit::RemoteGraphicsLayer::replaceChild):
      Call noteSublayersChanged.
      
      (WebKit::RemoteGraphicsLayer::noteSublayersChanged):
      Note that the Children property changed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3b054bf
    • dgrogan@chromium.org's avatar
      IndexedDB: Convert some non-simple tests from setVersion to upgradeneeded · f4a55a0a
      dgrogan@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101959
      
      Reviewed by Tony Chang.
      
      Ongoing work to remove calls to setVersion from our tests before
      removing it from the IndexedDB API.
      
      * storage/indexeddb/create-and-remove-object-store-expected.txt:
      * storage/indexeddb/deletedatabase-delayed-by-open-and-versionchange-expected.txt:
      * storage/indexeddb/duplicates-expected.txt:
      * storage/indexeddb/resources/create-and-remove-object-store.js:
        Create and delete were running between open and setVersion, which no
        longer makes sense.
      
      * storage/indexeddb/resources/database-deletepending-flag.js:
        Use optional object parameter instead of optional version parameter.
      
      * storage/indexeddb/resources/deletedatabase-delayed-by-open-and-versionchange.js:
        This used to call delete just after issuing setVersion but before
        receiving the corresponding success event.  Now it calls delete while
        in the upgradeneeded transaction, still causing the delete to be
        delayed by an in flight versionchange transaction.
      
      * storage/indexeddb/resources/duplicates.js:
        Call indexedDBTest twice to rerun the tests with a different
        database.
      
      * storage/indexeddb/resources/shared.js:
        Added a suffix option to support duplicates.js, switched to an
        optional object parameter.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4a55a0a
    • commit-queue@webkit.org's avatar
      Fix windowRect calculation for webplugin due to page scale factors · 147819e2
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=100182
      
      Patch by Min Qin <qinmin@chromium.org> on 2012-11-12
      Reviewed by Adam Barth.
      
      The current calculaton of windowRect in WebPluginContainerImpl is wrong. Even after some of our latest changes.
      The problem is caused by page scale factor.
      For example, windowToContents(IntPoint) will return an unscaled offset for an iframe, but will return a scaled offset for the main frame. So in order to obtain the correct window coordinate, we need to use contentsToWindow().
      Since webview_plugin.cc is expecting window coordinates, we need to use contentsToWindow(IntRect) to calculate the windowRect so that the rect size can get correctly scaled.
      It is difficult to write a test for this because it's pixel-based, and plugin placeholder is managed on the Chromium side (webview_plugin.cc).
      
      * src/WebPluginContainerImpl.cpp:
      (WebKit::WebPluginContainerImpl::paint):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      147819e2
    • commit-queue@webkit.org's avatar
      [BlackBerry] Ensure we only receive one KeyUp per key event · 62a73646
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101967
      
      Patch by Nima Ghanavatian <nghanavatian@rim.com> on 2012-11-12
      Reviewed by Rob Buis.
      
      We are creating synthetic KeyUps too often, and get into trouble since IMF will send up a KeyUp on all key events.
      Furthermore, these KeyUps can arrive both when we are composing and not. To bypass this check, we are storing the KeyDown
      character and comparing against it on KeyUp.
      
      Internally reviewed by Mike Fenton.
      
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::InputHandler):
      (BlackBerry::WebKit::InputHandler::handleKeyboardInput):
      (BlackBerry::WebKit::InputHandler::insertText):
      (BlackBerry::WebKit::InputHandler::setText):
      * WebKitSupport/InputHandler.h:
      (InputHandler):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62a73646
    • fpizlo@apple.com's avatar
      Patching of jumps to stubs should use jump replacement rather than branch destination overwrite · db01087b
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101909
      
      Reviewed by Geoffrey Garen.
      
      This saves a few instructions in inline cases, on those architectures where it is
      easy to figure out where to put the jump replacement. Sub-1% speed-up across the
      board.
      
      * assembler/MacroAssemblerARMv7.h:
      (MacroAssemblerARMv7):
      (JSC::MacroAssemblerARMv7::canJumpReplacePatchableBranchPtrWithPatch):
      (JSC::MacroAssemblerARMv7::startOfPatchableBranchPtrWithPatch):
      (JSC::MacroAssemblerARMv7::revertJumpReplacementToPatchableBranchPtrWithPatch):
      * assembler/MacroAssemblerX86.h:
      (JSC::MacroAssemblerX86::canJumpReplacePatchableBranchPtrWithPatch):
      (MacroAssemblerX86):
      (JSC::MacroAssemblerX86::startOfPatchableBranchPtrWithPatch):
      (JSC::MacroAssemblerX86::revertJumpReplacementToPatchableBranchPtrWithPatch):
      * assembler/MacroAssemblerX86_64.h:
      (JSC::MacroAssemblerX86_64::canJumpReplacePatchableBranchPtrWithPatch):
      (MacroAssemblerX86_64):
      (JSC::MacroAssemblerX86_64::startOfPatchableBranchPtrWithPatch):
      (JSC::MacroAssemblerX86_64::revertJumpReplacementToPatchableBranchPtrWithPatch):
      * assembler/RepatchBuffer.h:
      (JSC::RepatchBuffer::startOfPatchableBranchPtrWithPatch):
      (RepatchBuffer):
      (JSC::RepatchBuffer::replaceWithJump):
      (JSC::RepatchBuffer::revertJumpReplacementToPatchableBranchPtrWithPatch):
      * assembler/X86Assembler.h:
      (X86Assembler):
      (JSC::X86Assembler::revertJumpTo_movq_i64r):
      (JSC::X86Assembler::revertJumpTo_cmpl_im_force32):
      (X86InstructionFormatter):
      * bytecode/StructureStubInfo.h:
      * dfg/DFGRepatch.cpp:
      (JSC::DFG::replaceWithJump):
      (DFG):
      (JSC::DFG::tryCacheGetByID):
      (JSC::DFG::tryBuildGetByIDList):
      (JSC::DFG::tryBuildGetByIDProtoList):
      (JSC::DFG::tryCachePutByID):
      (JSC::DFG::dfgResetGetByID):
      (JSC::DFG::dfgResetPutByID):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      db01087b
    • andersca@apple.com's avatar
      Send along the current remote layer tree transaction with the commit message · 9f799688
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=102014
      
      Reviewed by Tim Horton.
      
      Add encode and decode member functions to RemoteLayerTreeTransaction and RemoteLayerTreeTransaction::LayerProperties.
      
      * Shared/mac/RemoteLayerTreeTransaction.h:
      * Shared/mac/RemoteLayerTreeTransaction.mm:
      (WebKit::RemoteLayerTreeTransaction::LayerProperties::encode):
      (WebKit::RemoteLayerTreeTransaction::LayerProperties::decode):
      (WebKit::RemoteLayerTreeTransaction::encode):
      (WebKit::RemoteLayerTreeTransaction::decode):
      * UIProcess/mac/RemoteLayerTreeHost.h:
      * UIProcess/mac/RemoteLayerTreeHost.messages.in:
      * UIProcess/mac/RemoteLayerTreeHost.mm:
      (WebKit::RemoteLayerTreeHost::commit):
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
      (WebKit::RemoteLayerTreeContext::flushLayers):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f799688
    • simon.fraser@apple.com's avatar
      Fix filter dirty rect regression from r134311 · 56dc1a90
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=102002
      
      Reviewed by Beth Dakin.
      
      When rendering with filters, the code can inflate the root-relative
      paintDirtyRect in RenderLayer::paintLayerContents(), and my cleanup
      broke this behavior.
      
      Fix by making a local copy of LayerPaintingInfo, updating its paintDirtyRect,
      and using it for the rest of the function.
      
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::paintLayerContents):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56dc1a90
    • haraken@chromium.org's avatar
      [V8] V8Event::valueAccessorGetter() in custom binding is not used · cec736c6
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101893
      
      Reviewed by Adam Barth.
      
      No tests. No change in behavior.
      
      * bindings/v8/custom/V8EventCustom.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cec736c6
    • beidson@apple.com's avatar
      Get rid of the CrossOriginRedirectReceived message to the NetworkProcess. · 68bb5944
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=102010
      
      Reviewed by Alexey Proskuryakov.
      
      This message was a stop-gap measure for when the NetworkProcess did scheduling but not loading.
      Now that the NetworkProcess does loading it doesn't need to be told when redirect is received.
      
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      * NetworkProcess/NetworkConnectionToWebProcess.messages.in: Get rid of the message to the NetworkProcess.
      
      * NetworkProcess/NetworkRequest.cpp:
      (WebKit::NetworkRequest::willSendRequest): After willSendRequest is dispatched to the WebProcess, directly call
        "receivedRedirect" on the NetworkResourceLoadScheduler.
      
      * NetworkProcess/NetworkResourceLoadScheduler.cpp:
      (WebKit::NetworkResourceLoadScheduler::receivedRedirect): Renamed from crossOriginRedirectReceived, as the
        function already checks to see if the redirect was actually cross-origin.
      * NetworkProcess/NetworkResourceLoadScheduler.h:
      
      * WebProcess/Network/WebResourceLoadScheduler.cpp:
      (WebKit::WebResourceLoadScheduler::crossOriginRedirectReceived): A no-op so the WebProcess doesn't
        do any host record accounting of its own.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68bb5944
    • roger_fong@apple.com's avatar
      Web Inspector: Fix docking behavior on Windows. · 88083137
      roger_fong@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101978
      
      Reviewed by Brian Weinstein.
      
      There are a number of problems with docking behaviour on Windows.
      For starters, it does not ever constrain the inspector's size properly while docked.
      It also does not properly set the whether or not the inspector can be docked/undocked.
      This patch fixes both issues.
      
      * inspector/InspectorFrontendClientLocal.cpp:
      (WebCore::InspectorFrontendClientLocal::frontendLoaded):
      Switch order of calling bringToFront and setDockingUnavailable.
      * WebCoreSupport/WebInspectorClient.cpp:
      (WebInspectorFrontendClient::frontendLoaded): 
      (WebInspectorFrontendClient::attachWindow):
      Call restoreAttachedWindowHeight so that when first loading or reattaching the inspector,
      we resize the inspector window properly.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      88083137
    • timothy_horton@apple.com's avatar
      PDFPlugin should use PDFKit's context menu instead of the default WebKit one · 56882c03
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101896
      <rdar://problem/12555173>
      
      Reviewed by Anders Carlsson.
      
      Show the context menu that PDFKit vends us instead of the default WebKit one
      when PDFPlugin is told to show a context menu.
      
      Also, react to the didChangeContentScaleFactor callback, so that when the context
      menu (or HUD) is used to change the scale factor, we can inform PluginView.
      
      * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h:
      Add pdfLayerController:didChangeContentScaleFactor: delegate callback.
      Rename tileScaleFactor to contentScaleFactor.
      Add rightMouseDown: and menuForEvent: on PDFLayerController.
      * WebProcess/Plugins/PDF/PDFPlugin.h:
      (PDFPlugin):
      Add notifyContentScaleFactorChanged, handleContextMenuEvent, and nsEventForWebMouseEvent.
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      (-[WKPDFLayerControllerDelegate pdfLayerController:didChangeContentScaleFactor:]): Forward content scale factor changes to PDFPlugin.
      (WebKit::PDFPlugin::pdfDocumentDidLoad): Rename tileScaleFactor to contentScaleFactor.
      (WebKit::PDFPlugin::geometryDidChange): Rename tileScaleFactor to contentScaleFactor.
      (WebKit::eventTypeFromWebEvent): It turns out we can infer whether the mouse is being dragged during a MouseMove event
      by whether it has a mouse button associated with it or not, so we don't need to track this state manually.
      (WebKit::PDFPlugin::nsEventForWebMouseEvent): Factor the part of handleMouseEvent that creates NSEvents* out into its own function.
      (WebKit::PDFPlugin::handleMouseEvent):
      Don't track mouseButtonIsDown manually, make use of the new nsEventForWebMouseEvent.
      Hand rightMouseDown: to PDFLayerController instead of mouseDown: if necessary.
      (WebKit::PDFPlugin::handleContextMenuEvent): Grab the relevant NSMenu from PDFKit and display it.
      (WebKit::PDFPlugin::handleKeyboardEvent): Don't pass a bogus mouseButtonIsDown to eventTypeFromWebEvent.
      (WebKit::PDFPlugin::notifyContentScaleFactorChanged): Update PluginView and co.'s notion of page scale when
      PDFKit changes it (generally from the context menu/HUD). Also update page size and scrollbar size/position.
      (WebKit::PDFPlugin::setScrollOffset): Don't call SimplePDFPlugin's implementation, as PDFKit handles invalidation itself.
      * WebProcess/Plugins/PDF/PDFPluginChoiceAnnotation.mm:
      (WebKit::PDFPluginChoiceAnnotation::updateGeometry): Rename tileScaleFactor to contentScaleFactor.
      * WebProcess/Plugins/PDF/PDFPluginTextAnnotation.mm:
      (WebKit::PDFPluginTextAnnotation::updateGeometry): Rename tileScaleFactor to contentScaleFactor.
      * WebProcess/Plugins/PDF/SimplePDFPlugin.h: Make m_scrollOffset protected.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56882c03
    • rakuco@webkit.org's avatar
      [EFL] WebKit1 gardening. · 43962d03
      rakuco@webkit.org authored
      Mark fast/repaint/block-selection-gap-stale-cache.html and
      fast/repaint/block-selection-gap-stale-cache-2.html as image failures.
      
      * platform/efl-wk1/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43962d03
    • andersca@apple.com's avatar
      Add a RemoteLayerTreeHost object in the UI process · 37da2ccb
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101999
      
      Reviewed by Tim Horton.
      
      Add a (mostly empty) RemoteLayerTreeHost class that will live in the UI process and host the layer tree.
      
      * DerivedSources.make:
      Add RemoteLayerTreeHost.messages.in.
      
      * Platform/CoreIPC/MessageID.h:
      Add a RemoteLayerTreeHost message class.
      
      * UIProcess/WebProcessProxy.cpp:
      (WebKit::WebProcessProxy::addMessageReceiver):
      (WebKit::WebProcessProxy::removeMessageReceiver):
      (WebKit::WebProcessProxy::didReceiveMessage):
      (WebKit::WebProcessProxy::didReceiveSyncMessage):
      * UIProcess/WebProcessProxy.h:
      Add a message receiver map to the web process proxy.
      
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
      Add a RemoteLayerTreeHost member variable.
      
      * UIProcess/mac/RemoteLayerTreeHost.h:
      Add new class.
      
      * UIProcess/mac/RemoteLayerTreeHost.messages.in:
      Add new messages file with a single Commit message.
      
      * UIProcess/mac/RemoteLayerTreeHost.mm:
      (WebKit::RemoteLayerTreeHost::RemoteLayerTreeHost):
      Add the layer tree host as a message receiver.
      
      (WebKit::RemoteLayerTreeHost::~RemoteLayerTreeHost):
      Remote the layer tree host as a message receiver.
      
      (WebKit::RemoteLayerTreeHost::didReceiveMessage):
      Call the generated member function.
      
      (WebKit::RemoteLayerTreeHost::commit):
      Add an empty stub for now.
      
      * WebKit2.xcodeproj/project.pbxproj:
      Add new files.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
      (WebKit::RemoteLayerTreeContext::flushLayers):
      Send a commit message to the remote layer tree host.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37da2ccb
    • abarth@webkit.org's avatar
      [V8] Update callers to use the aligned pointer API rather than the deprecated unaligned pointer API · fe1d6076
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101519
      
      Reviewed by Ojan Vafai.
      
      There should be no change in behavior.  The new API is slightly faster
      than the old API (and apparently works correctly internally in V8).
      
      * bindings/scripts/CodeGeneratorV8.pm:
      (GenerateHeader):
      * bindings/scripts/test/V8/V8Float64Array.h:
      (WebCore::V8Float64Array::toNative):
      * bindings/scripts/test/V8/V8TestActiveDOMObject.h:
      (WebCore::V8TestActiveDOMObject::toNative):
      * bindings/scripts/test/V8/V8TestCustomNamedGetter.h:
      (WebCore::V8TestCustomNamedGetter::toNative):
      * bindings/scripts/test/V8/V8TestEventConstructor.h:
      (WebCore::V8TestEventConstructor::toNative):
      * bindings/scripts/test/V8/V8TestEventTarget.h:
      (WebCore::V8TestEventTarget::toNative):
      * bindings/scripts/test/V8/V8TestException.h:
      (WebCore::V8TestException::toNative):
      * bindings/scripts/test/V8/V8TestInterface.h:
      (WebCore::V8TestInterface::toNative):
      * bindings/scripts/test/V8/V8TestMediaQueryListListener.h:
      (WebCore::V8TestMediaQueryListListener::toNative):
      * bindings/scripts/test/V8/V8TestNamedConstructor.h:
      (WebCore::V8TestNamedConstructor::toNative):
      * bindings/scripts/test/V8/V8TestNode.h:
      (WebCore::V8TestNode::toNative):
      * bindings/scripts/test/V8/V8TestObj.h:
      (WebCore::V8TestObj::toNative):
      * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
      (WebCore::V8TestSerializedScriptValueInterface::toNative):
      * bindings/v8/NPV8Object.cpp:
      (WebCore::v8ObjectToNPObject):
      (WebCore::npCreateV8ScriptObject):
      * bindings/v8/V8Collection.h:
      (WebCore::toNativeCollection):
      * bindings/v8/V8DOMWindowShell.cpp:
      (WebCore::setIsolatedWorldField):
      (WebCore::V8DOMWindowShell::enteredIsolatedWorldContext):
      * bindings/v8/V8DOMWrapper.cpp:
      (WebCore::V8DOMWrapper::isWrapperOfType):
      * bindings/v8/V8DOMWrapper.h:
      (WebCore::V8DOMWrapper::setDOMWrapper):
      (WebCore::V8DOMWrapper::clearDOMWrapper):
      * bindings/v8/WrapperTypeInfo.h:
      (WebCore::toNative):
      (WebCore::toWrapperTypeInfo):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fe1d6076
    • kling@webkit.org's avatar
      Rename AttributeStyle => PresentationAttributeStyle across WebCore. · 569556d7
      kling@webkit.org authored
      <http://webkit.org/b/101975>
      
      Rubber-stamped by Antti Koivisto.
      
      The completely separate concepts of "attribute style" and "style attribute" were a bit too
      easy to confuse in variable and method names. Reconfigure our terminology to call it
      "presentation attribute style" instead of "attribute style".
      
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::sweepMatchedPropertiesCache):
      (WebCore::StyleResolver::matchAllRules):
      (WebCore::StyleResolver::canShareStyleWithElement):
      * dom/Attr.cpp:
      (WebCore::Attr::style):
      * dom/ElementAttributeData.cpp:
      (WebCore::MutableElementAttributeData::MutableElementAttributeData):
      (WebCore::ElementAttributeData::reportMemoryUsage):
      * dom/ElementAttributeData.h:
      (WebCore::ElementAttributeData::presentationAttributeStyle):
      (WebCore::ElementAttributeData::setPresentationAttributeStyle):
      (ElementAttributeData):
      * dom/Node.h:
      (WebCore::Node::attributeStyleDirty):
      (WebCore::Node::setPresentationAttributeStyleDirty):
      (WebCore::Node::clearPresentationAttributeStyleDirty):
      * dom/StyledElement.cpp:
      (WebCore::StyledElement::attributeChanged):
      (WebCore::StyledElement::rebuildPresentationAttributeStyle):
      (WebCore::StyledElement::addPropertyToPresentationAttributeStyle):
      * dom/StyledElement.h:
      (WebCore::StyledElement::additionalPresentationAttributeStyle):
      (StyledElement):
      (WebCore::StyledElement::collectStyleForPresentationAttribute):
      (WebCore::StyledElement::presentationAttributeStyle):
      * html/HTMLBRElement.cpp:
      (WebCore::HTMLBRElement::collectStyleForPresentationAttribute):
      * html/HTMLBRElement.h:
      (HTMLBRElement):
      * html/HTMLBodyElement.cpp:
      (WebCore::HTMLBodyElement::collectStyleForPresentationAttribute):
      * html/HTMLBodyElement.h:
      (HTMLBodyElement):
      * html/HTMLDivElement.cpp:
      (WebCore::HTMLDivElement::collectStyleForPresentationAttribute):
      * html/HTMLDivElement.h:
      (HTMLDivElement):
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::applyBorderAttributeToStyle):
      (WebCore::HTMLElement::mapLanguageAttributeToLocale):
      (WebCore::HTMLElement::collectStyleForPresentationAttribute):
      (WebCore::HTMLElement::applyAlignmentAttributeToStyle):
      (WebCore::HTMLElement::addHTMLLengthToStyle):
      * html/HTMLElement.h:
      (HTMLElement):
      * html/HTMLEmbedElement.cpp:
      (WebCore::HTMLEmbedElement::collectStyleForPresentationAttribute):
      * html/HTMLEmbedElement.h:
      (HTMLEmbedElement):
      * html/HTMLFontElement.cpp:
      (WebCore::HTMLFontElement::collectStyleForPresentationAttribute):
      * html/HTMLFontElement.h:
      (HTMLFontElement):
      * html/HTMLFrameSetElement.cpp:
      (WebCore::HTMLFrameSetElement::collectStyleForPresentationAttribute):
      * html/HTMLFrameSetElement.h:
      (HTMLFrameSetElement):
      * html/HTMLHRElement.cpp:
      (WebCore::HTMLHRElement::collectStyleForPresentationAttribute):
      * html/HTMLHRElement.h:
      (HTMLHRElement):
      * html/HTMLIFrameElement.cpp:
      (WebCore::HTMLIFrameElement::collectStyleForPresentationAttribute):
      * html/HTMLIFrameElement.h:
      (HTMLIFrameElement):
      * html/HTMLImageElement.cpp:
      (WebCore::HTMLImageElement::collectStyleForPresentationAttribute):
      * html/HTMLImageElement.h:
      (HTMLImageElement):
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::collectStyleForPresentationAttribute):
      * html/HTMLInputElement.h:
      (HTMLInputElement):
      * html/HTMLLIElement.cpp:
      (WebCore::HTMLLIElement::collectStyleForPresentationAttribute):
      * html/HTMLLIElement.h:
      (HTMLLIElement):
      * html/HTMLMarqueeElement.cpp:
      (WebCore::HTMLMarqueeElement::collectStyleForPresentationAttribute):
      * html/HTMLMarqueeElement.h:
      (HTMLMarqueeElement):
      * html/HTMLOListElement.cpp:
      (WebCore::HTMLOListElement::collectStyleForPresentationAttribute):
      * html/HTMLOListElement.h:
      (HTMLOListElement):
      * html/HTMLObjectElement.cpp:
      (WebCore::HTMLObjectElement::collectStyleForPresentationAttribute):
      * html/HTMLObjectElement.h:
      (HTMLObjectElement):
      * html/HTMLParagraphElement.cpp:
      (WebCore::HTMLParagraphElement::collectStyleForPresentationAttribute):
      * html/HTMLParagraphElement.h:
      (HTMLParagraphElement):
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::collectStyleForPresentationAttribute):
      * html/HTMLPlugInElement.h:
      (HTMLPlugInElement):
      * html/HTMLPreElement.cpp:
      (WebCore::HTMLPreElement::collectStyleForPresentationAttribute):
      * html/HTMLPreElement.h:
      (HTMLPreElement):
      * html/HTMLTableCaptionElement.cpp:
      (WebCore::HTMLTableCaptionElement::collectStyleForPresentationAttribute):
      * html/HTMLTableCaptionElement.h:
      (HTMLTableCaptionElement):
      * html/HTMLTableCellElement.cpp:
      (WebCore::HTMLTableCellElement::collectStyleForPresentationAttribute):
      (WebCore::HTMLTableCellElement::additionalPresentationAttributeStyle):
      * html/HTMLTableCellElement.h:
      (HTMLTableCellElement):
      * html/HTMLTableColElement.cpp:
      (WebCore::HTMLTableColElement::collectStyleForPresentationAttribute):
      (WebCore::HTMLTableColElement::additionalPresentationAttributeStyle):
      * html/HTMLTableColElement.h:
      (HTMLTableColElement):
      * html/HTMLTableElement.cpp:
      (WebCore::HTMLTableElement::collectStyleForPresentationAttribute):
      (WebCore::HTMLTableElement::additionalPresentationAttributeStyle):
      * html/HTMLTableElement.h:
      (HTMLTableElement):
      * html/HTMLTablePartElement.cpp:
      (WebCore::HTMLTablePartElement::collectStyleForPresentationAttribute):
      * html/HTMLTablePartElement.h:
      (HTMLTablePartElement):
      * html/HTMLTableSectionElement.cpp:
      (WebCore::HTMLTableSectionElement::additionalPresentationAttributeStyle):
      * html/HTMLTableSectionElement.h:
      (HTMLTableSectionElement):
      * html/HTMLTextAreaElement.cpp:
      (WebCore::HTMLTextAreaElement::collectStyleForPresentationAttribute):
      * html/HTMLTextAreaElement.h:
      (HTMLTextAreaElement):
      * html/HTMLUListElement.cpp:
      (WebCore::HTMLUListElement::collectStyleForPresentationAttribute):
      * html/HTMLUListElement.h:
      (HTMLUListElement):
      * html/HTMLVideoElement.cpp:
      (WebCore::HTMLVideoElement::collectStyleForPresentationAttribute):
      * html/HTMLVideoElement.h:
      (HTMLVideoElement):
      * inspector/InspectorCSSAgent.cpp:
      (WebCore::InspectorCSSAgent::buildObjectForAttributesStyle):
      * mathml/MathMLElement.cpp:
      (WebCore::MathMLElement::collectStyleForPresentationAttribute):
      * mathml/MathMLElement.h:
      (MathMLElement):
      * svg/SVGImageElement.cpp:
      (WebCore::SVGImageElement::collectStyleForPresentationAttribute):
      * svg/SVGImageElement.h:
      (SVGImageElement):
      * svg/SVGStyledElement.cpp:
      (WebCore::SVGStyledElement::collectStyleForPresentationAttribute):
      * svg/SVGStyledElement.h:
      (SVGStyledElement):
      * svg/SVGTextContentElement.cpp:
      (WebCore::SVGTextContentElement::collectStyleForPresentationAttribute):
      * svg/SVGTextContentElement.h:
      (SVGTextContentElement):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      569556d7
    • abarth@webkit.org's avatar
      Unreviewed. Roll Chromium DEPS. · 802316af
      abarth@webkit.org authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      802316af
    • dglazkov@chromium.org's avatar
      [Chromium] Added more Hi-DPI wont-fixes. · 79d4081c
      dglazkov@chromium.org authored
      * platform/chromium/TestExpectations: Added wont-fixes.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79d4081c
    • abarth@webkit.org's avatar
      [V8] Many things crash when switching to V8's new aligned pointer API · 85276b36
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101994
      
      Reviewed by Eric Seidel.
      
      When using the aligned pointer API, we need to make sure to initialize
      every internal field that we later read because the new API has better
      error checks than the old API. This patch explicitly initializes the
      enteredIsolatedWorldIndex internal field to zero for main worlds,
      fixing the LayoutTest crashes from our previous attempt to move the
      aligned pointer API.
      
      * bindings/v8/V8DOMWindowShell.cpp:
      (WebCore::V8DOMWindowShell::initializeIfNeeded):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85276b36
    • timothy_horton@apple.com's avatar
      PDFPlugin should support non-1 device scale factor · 889cd132
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101923
      
      Reviewed by Alexey Proskuryakov.
      
      Do the appropriate plumbing to ensure that PDFPlugin handles device scale factor > 1
      (it's called contentsScaleFactor in plugins), both for normal drawing and for snapshotting.
      
      * WebProcess/Plugins/PDF/PDFLayerControllerDetails.h: Add deviceScaleFactor setter/getter to PDFLayerController.
      * WebProcess/Plugins/PDF/PDFPlugin.h:
      (PDFPlugin): Override contentsScaleFactorChanged.
      * WebProcess/Plugins/PDF/PDFPlugin.mm:
      (WebKit::PDFPlugin::pdfDocumentDidLoad): Plumb device scale factor through to PDFLayerController.
      (WebKit::PDFPlugin::contentsScaleFactorChanged): Plumb device scale factor through to PDFLayerController
      when we're notified that it has changed.
      (WebKit::PDFPlugin::snapshot): Create snapshots with the device scale factor applied.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      889cd132
    • fpizlo@apple.com's avatar
      DFG ArithMul overflow check elimination is too aggressive · 8bb40d7f
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101871
      
      Reviewed by Oliver Hunt.
      
      Source/JavaScriptCore: 
      
      The code was ignoring the fact that ((a * b) | 0) == (((a | 0) * (b | 0)) | 0)
      only holds if a * b < 2^53. So, I changed it to only enable the optimization
      when a < 2^22 and b is an int32 (and vice versa), using a super trivial peephole
      analysis to prove the inequality. I considered writing an epic forward flow
      formulation that tracks the ranges of integer values but then I thought better
      of it.
              
      This also rewires the ArithMul integer speculation logic. Previously, we would
      assume that an ArithMul was only UsedAsNumber if it escaped, and separately we
      would decide whether to speculate integer based on a proof of the <2^22
      inequality. Now, we treat the double rounding behavior of ArithMul as if the
      result was UsedAsNumber even if it did not escape. Then we try to prove that
      double rounding cannot happen by attemping to prove that a < 2^22. This then
      feeds back into the decision of whether or not to speculate integer (if we fail
      to prove a < 2^22 then we're UsedAsNumber, and if we're also MayOverflow then
      that forces double speculation).
              
      No performance impact. It just fixes a bug.
      
      * dfg/DFGGraph.h:
      (JSC::DFG::Graph::mulShouldSpeculateInteger):
      * dfg/DFGPredictionPropagationPhase.cpp:
      (PredictionPropagationPhase):
      (JSC::DFG::PredictionPropagationPhase::isWithinPowerOfTwoForConstant):
      (JSC::DFG::PredictionPropagationPhase::isWithinPowerOfTwoNonRecursive):
      (JSC::DFG::PredictionPropagationPhase::isWithinPowerOfTwo):
      (JSC::DFG::PredictionPropagationPhase::propagate):
      
      LayoutTests: 
      
      * fast/js/dfg-mul-big-integer-with-small-integer-and-bitor-expected.txt: Added.
      * fast/js/dfg-mul-big-integer-with-small-integer-and-bitor.html: Added.
      * fast/js/dfg-mul-big-integer-with-small-integer-and-detect-overflow-expected.txt: Added.
      * fast/js/dfg-mul-big-integer-with-small-integer-and-detect-overflow.html: Added.
      * fast/js/dfg-mul-big-integer-with-small-integer-expected.txt: Added.
      * fast/js/dfg-mul-big-integer-with-small-integer.html: Added.
      * fast/js/dfg-mul-big-integers-expected.txt: Added.
      * fast/js/dfg-mul-big-integers.html: Added.
      * fast/js/jsc-test-list:
      * fast/js/script-tests/dfg-mul-big-integer-with-small-integer-and-bitor.js: Added.
      (foo):
      * fast/js/script-tests/dfg-mul-big-integer-with-small-integer-and-detect-overflow.js: Added.
      (foo):
      * fast/js/script-tests/dfg-mul-big-integer-with-small-integer.js: Added.
      (foo):
      * fast/js/script-tests/dfg-mul-big-integers.js: Added.
      (foo):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8bb40d7f
    • fpizlo@apple.com's avatar
      DFG should not emit function checks if we've already proved that the operand is that exact function · 18e7bc1d
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101885
      
      Reviewed by Oliver Hunt.
      
      * dfg/DFGAbstractState.cpp:
      (JSC::DFG::AbstractState::execute):
      * dfg/DFGAbstractValue.h:
      (JSC::DFG::AbstractValue::filterByValue):
      (AbstractValue):
      * dfg/DFGConstantFoldingPhase.cpp:
      (JSC::DFG::ConstantFoldingPhase::foldConstants):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18e7bc1d
    • andersca@apple.com's avatar
      Rename RemoteLayerTreeController to RemoteLayerTreeContext · c2fdb9c2
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101993
      
      Reviewed by Andreas Kling.
      
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebPage/mac/RemoteGraphicsLayer.h:
      (RemoteGraphicsLayer):
      * WebProcess/WebPage/mac/RemoteGraphicsLayer.mm:
      (WebKit::RemoteGraphicsLayer::create):
      (WebKit::RemoteGraphicsLayer::RemoteGraphicsLayer):
      (WebKit::RemoteGraphicsLayer::flushCompositingStateForThisLayerOnly):
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.h: Renamed from Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeController.h.
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm: Renamed from Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeController.mm.
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      (RemoteLayerTreeDrawingArea):
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
      (WebKit::RemoteLayerTreeDrawingArea::graphicsLayerFactory):
      (WebKit::RemoteLayerTreeDrawingArea::setRootCompositingLayer):
      (WebKit::RemoteLayerTreeDrawingArea::scheduleCompositingLayerFlush):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c2fdb9c2
    • simon.fraser@apple.com's avatar
      Reduce the crazy number of parameters to RenderLayer painting member functions · 6b087208
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101895
      
      Reviewed by Beth Dakin.
      
      The various RenderLayer::paintLayer* functions took a lot of arguments, most
      of which were passed down directly to descendants.
      
      Gather these arguments into a LayerPaintingInfo struct.
      
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::paint): Create a LayerPaintingInfo struct to pass
      to descendant paint calls.
      (WebCore::RenderLayer::paintOverlayScrollbars): Ditto.
      (WebCore::RenderLayer::paintLayer): When painting transformed layers, we
      make a new LayerPaintingInfo because the root layer is shifted.
      (WebCore::RenderLayer::paintLayerContentsAndReflection):
      (WebCore::RenderLayer::paintLayerContents):
      (WebCore::RenderLayer::paintList):
      (WebCore::RenderLayer::paintPaginatedChildLayer):
      (WebCore::RenderLayer::paintChildLayerIntoColumns): Create a new LayerPaintingInfo
      struct for column painting.
      * rendering/RenderLayer.h:
      (WebCore::RenderLayer::LayerPaintingInfo::LayerPaintingInfo):
      (LayerPaintingInfo):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::paintIntoLayer): Build a LayerPaintingInfo
      to enter layer painting.
      * rendering/RenderReplica.cpp:
      (WebCore::RenderReplica::paint): Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b087208
    • dpranke@chromium.org's avatar
      webkitpy: integrate pylint into check-webkit-style, part I · 52449c27
      dpranke@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101285
      
      Reviewed by Ojan Vafai.
      
      This patch re-works lint-webkitpy so that the logic is pushed
      into check-webkit-style (mostly); we don't yet control which
      messages are displayed using the rules in webkitpy/style/checker.py
      (we're still using the pylintrc to suppress messages instead),
      but otherwise things work. For now we will only report pylint
      "errors", not warnings.
      
      * Scripts/lint-webkitpy:
      * Scripts/webkitpy/style/checker.py:
      * Scripts/webkitpy/style/checkers/python.py:
      (PythonChecker):
      (PythonChecker.check):
      (PythonChecker._check_pep8):
      (PythonChecker._check_pylint):
      (Pylinter):
      (Pylinter.__init__):
      (Pylinter.run):
      (_FilteredStringIO):
      (_FilteredStringIO.__init__):
      (_FilteredStringIO.write):
      (_FilteredStringIO._filter):
      * Scripts/webkitpy/style/checkers/python_unittest.py:
      (PythonCheckerTest.test_check):
      * Scripts/webkitpy/style/checkers/python_unittest_input.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      52449c27
    • dpranke@chromium.org's avatar
      nrwt: remove a bunch of broken chromium-specific flags · a00078e0
      dpranke@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101979
      
      Reviewed by Tony Chang.
      
      There were a bunch of chromium-specific flags that used to be
      supported by NRWT (and handled and passed on to DRT) but have
      probably been broken for a long time and are currently ignored.
      
      This patch removes all of those flags; the rule of thumb going forward
      is that we should only add flags that affect how the python code functions.
      If a flag is just passed verbatim to DRT, the user can use --additional-drt-flag
      for that.
      
      * Scripts/webkitpy/layout_tests/run_webkit_tests.py:
      (parse_args):
      * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
      (MainTest.setUp):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a00078e0
    • andersca@apple.com's avatar
      Add debug only code to dump the contents of a transaction · 41c3a317
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101991
      
      Reviewed by Andreas Kling.
      
      * Shared/mac/RemoteLayerTreeTransaction.h:
      * Shared/mac/RemoteLayerTreeTransaction.mm:
      (WebKit::writeIndent):
      (WebKit::dumpChangedLayers):
      (WebKit::RemoteLayerTreeTransaction::dump):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41c3a317
    • dglazkov@chromium.org's avatar
      [Chromium] Updated expectations for calendar-picker. · a944dd17
      dglazkov@chromium.org authored
      * platform/chromium/TestExpectations: Updated expectations.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a944dd17
    • zhajiang@rim.com's avatar
      [BlackBerry] When opening an image it does not scale to fit our window · d06296ca
      zhajiang@rim.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101778
      
      Jacky Jiang  <zhajiang@rim.com>.
      Reviewed by Rob Buis.
      Internally reviewed by Konrad Piascik.
      
      PR: 230935
      For image document, the actual image size can be different with the
      contents size. Zoom the document based on the image width so that
      images can fit the screen horizontally. Set 2.0 as the maximum zoom to
      fit scale for image document so that very small images won't get
      ridiculous large scales during the initial load.
      
      * Api/WebPage.cpp:
      (WebKit):
      (BlackBerry::WebKit::WebPagePrivate::zoomToFitScale):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d06296ca
    • dglazkov@chromium.org's avatar
      Marked transforms/3d/point-mapping tests as flakey. · a34a42f3
      dglazkov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=101988
      
      * platform/chromium/TestExpectations: Added Expectations.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a34a42f3
    • dglazkov@chromium.org's avatar
      [Chromium] Added expectations for... · 9c6073a9
      dglazkov@chromium.org authored
      [Chromium] Added expectations for platform/chromium/compositing/force-compositing-mode/overflow-iframe-layer.html
      https://bugs.webkit.org/show_bug.cgi?id=101986
      
      * platform/chromium/TestExpectations: Added expectations.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9c6073a9
    • andersca@apple.com's avatar
      Store name changes in the layer transaction · ea6340a9
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101981
      
      Reviewed by Andreas Kling.
      
      * Shared/mac/RemoteLayerTreeTransaction.h:
      (LayerProperties):
      Add new LayerProperties class.
      
      (RemoteLayerTreeTransaction):
      * Shared/mac/RemoteLayerTreeTransaction.mm:
      (WebKit::RemoteLayerTreeTransaction::layerPropertiesChanged):
      Find the changed layer properties for the given layer and apply the changed properties.
      
      * WebProcess/WebPage/mac/RemoteGraphicsLayer.h:
      (WebKit::RemoteGraphicsLayer::layerID):
      Add new getter.
      
      * WebProcess/WebPage/mac/RemoteGraphicsLayer.mm:
      (WebKit::generateLayerID):
      (WebKit::RemoteGraphicsLayer::RemoteGraphicsLayer):
      Give each remote graphics layer a unique ID.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea6340a9
    • beidson@apple.com's avatar
      NetworkProcess: Use an accurate shouldContentSniff value when creating ResourceHandles · f03d66a8
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=101872
      
      Reviewed by Alexey Proskuryakov.
      
      Source/WebCore:
      
      Expose shouldSniffContent to pass it along to the NetworkProcess.
      
      * loader/ResourceLoader.h:
      (WebCore::ResourceLoader::shouldSniffContent):
      
      Source/WebKit2:
      
      The WebProcess now passes "shouldContentSniff" over to the NetworkProcess with the requests so it can be respected.
      
      * NetworkProcess/NetworkConnectionToWebProcess.cpp:
      (WebKit::NetworkConnectionToWebProcess::scheduleNetworkRequest): Update to pass through "shouldContentSniff"
      * NetworkProcess/NetworkConnectionToWebProcess.h:
      * NetworkProcess/NetworkConnectionToWebProcess.messages.in:
      
      * NetworkProcess/NetworkRequest.cpp:
      (WebKit::NetworkRequest::NetworkRequest):
      (WebKit::NetworkRequest::start):
      * NetworkProcess/NetworkRequest.h:
      (WebKit::NetworkRequest::create):
      
      * NetworkProcess/NetworkResourceLoadScheduler.cpp:
      (WebKit::NetworkResourceLoadScheduler::scheduleNetworkRequest): Update to pass through "shouldContentSniff"
      * NetworkProcess/NetworkResourceLoadScheduler.h:
      * WebProcess/Network/NetworkProcessConnection.h:
      
      * WebProcess/Network/WebResourceLoadScheduler.cpp:
      (WebKit::WebResourceLoadScheduler::scheduleLoad): Update to pass through "shouldContentSniff"
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@134299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f03d66a8