1. 12 Nov, 2013 2 commits
  2. 11 Nov, 2013 38 commits
    • ossy@webkit.org's avatar
      Unreviewed, rolling out r159088. · edbbfcd9
      ossy@webkit.org authored
      http://trac.webkit.org/changeset/159088
      https://bugs.webkit.org/show_bug.cgi?id=124187
      
      It broke the EFL build, because it removed a used function
      (rs=thorton) (Requested by Ossy_night on #webkit).
      
      Patch by Commit Queue <commit-queue@webkit.org> on 2013-11-11
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::urlAtProcessExit):
      (WebKit::WebPageProxy::loadStateAtProcessExit):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159096 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      edbbfcd9
    • beidson@apple.com's avatar
      Make IDBTransaction tasks asynchronous · f596c75a
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124183
      
      Reviewed by Tim Horton.
      
      This is an almost zero-change in behavior.
      
      The one thing that is different is that previously, IDBTransactionBackends would synchronously
      run through their entire set of IDBOperation’s without ever returning control to the runloop.
      
      Now, they start one task and then wait for its completion to schedule the start of the next task.
      
      Change IDBOperation’s perform() to take a completion handler so it can be asynchronous.
      Add an IDBSynchronousOperation class to handle "Abort" tasks, which never need to perform i/o
      and therefore can be entirely synchronous.
      * Modules/indexeddb/IDBOperation.h:
      (WebCore::IDBSynchronousOperation::~IDBSynchronousOperation):
      
      * Modules/indexeddb/IDBTransactionBackend.cpp:
      (WebCore::IDBTransactionBackend::scheduleTask): "Abort tasks" are now IDBSynchronousOperations.
      (WebCore::IDBTransactionBackend::abort):
      (WebCore::IDBTransactionBackend::taskTimerFired): Instead of running through the entire set of tasks,
        perform a single task asynchronously. The completion handler for the task will reset the task timer
        to asynchronously start the next task.
      * Modules/indexeddb/IDBTransactionBackend.h:
      (WebCore::IDBTransactionBackend::scheduleTask): "Abort tasks" are now IDBSynchronousOperations.
      
      Update all operations to take completion handlers.
      For now, perform things synchronously like before, calling the completion handler when complete.
      * Modules/indexeddb/IDBCursorBackend.cpp:
      (WebCore::CallOnDestruct::CallOnDestruct): Helper class to make sure completion callbacks are always called perform() exits.
      (WebCore::CallOnDestruct::~CallOnDestruct):
      (WebCore::IDBCursorBackend::CursorIterationOperation::create):
      (WebCore::IDBCursorBackend::CursorAdvanceOperation::create):
      (WebCore::IDBCursorBackend::CursorPrefetchIterationOperation::create):
      (WebCore::IDBCursorBackend::CursorAdvanceOperation::perform):
      (WebCore::IDBCursorBackend::CursorIterationOperation::perform):
      (WebCore::IDBCursorBackend::CursorPrefetchIterationOperation::perform):
      
      * Modules/indexeddb/IDBTransactionBackendOperations.cpp:
      (WebCore::CallOnDestruct::CallOnDestruct): Helper class to make sure completion callbacks are always called when perform() exits.
      (WebCore::CallOnDestruct::~CallOnDestruct):
      (WebCore::CreateObjectStoreOperation::perform):
      (WebCore::CreateIndexOperation::perform):
      (WebCore::DeleteIndexOperation::perform):
      (WebCore::GetOperation::perform):
      (WebCore::PutOperation::perform):
      (WebCore::SetIndexesReadyOperation::perform):
      (WebCore::OpenCursorOperation::perform):
      (WebCore::CountOperation::perform):
      (WebCore::DeleteRangeOperation::perform):
      (WebCore::ClearOperation::perform):
      (WebCore::DeleteObjectStoreOperation::perform):
      (WebCore::IDBDatabaseBackend::VersionChangeOperation::perform):
      
      * Modules/indexeddb/IDBTransactionBackendOperations.h:
      (WebCore::CreateObjectStoreOperation::create):
      (WebCore::DeleteObjectStoreOperation::create):
      (WebCore::IDBDatabaseBackend::VersionChangeOperation::create):
      (WebCore::CreateObjectStoreAbortOperation::create):
      (WebCore::DeleteObjectStoreAbortOperation::create):
      (WebCore::IDBDatabaseBackend::VersionChangeAbortOperation::create):
      (WebCore::CreateIndexOperation::create):
      (WebCore::CreateIndexAbortOperation::create):
      (WebCore::DeleteIndexOperation::create):
      (WebCore::DeleteIndexAbortOperation::create):
      (WebCore::GetOperation::create):
      (WebCore::PutOperation::create):
      (WebCore::SetIndexesReadyOperation::create):
      (WebCore::OpenCursorOperation::create):
      (WebCore::CountOperation::create):
      (WebCore::DeleteRangeOperation::create):
      (WebCore::ClearOperation::create):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159095 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f596c75a
    • ossy@webkit.org's avatar
      URTBF after r159077 to make GTK build happy. · 0def2e0d
      ossy@webkit.org authored
      * GNUmakefile.list.am:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159094 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0def2e0d
    • commit-queue@webkit.org's avatar
      Web Inspector: Remove some unused generated code · 22b31891
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124179
      
      Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-11-11
      Reviewed by Timothy Hatcher.
      
      * inspector/CodeGeneratorInspectorStrings.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159093 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22b31891
    • gyuyoung.kim@samsung.com's avatar
      Clean up static_cast<Element*> usage · a4e7a7b1
      gyuyoung.kim@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124133
      
      Reviewed by Andreas Kling.
      
      We need to use toFoo cast function instead of static_cast<>. Though there is toElement(),
      static_cast<Element*> is still being used.
      
      No new tests, no behavior changes.
      
      * bindings/gobject/WebKitDOMPrivate.cpp:
      (WebKit::wrap):
      * dom/ElementTraversal.h:
      (WebCore::::lastWithinTemplate):
      (WebCore::::nextTemplate):
      (WebCore::::previousTemplate):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a4e7a7b1
    • fpizlo@apple.com's avatar
      Get rid of the lastResultRegister optimization in the baseline JIT · 9a5ab80f
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124171
      
      Rubber stamped by Mark Hahnenberg.
              
      The baseline JIT no longer needs amazing throughput. And this optimization has caused
      way too many OSR exit bugs. And it constrains how much we can do in the DFG/FTL. So,
      I'm getting rid of it.
      
      * dfg/DFGOSRExit.cpp:
      (JSC::DFG::OSRExit::OSRExit):
      (JSC::DFG::OSRExit::convertToForward):
      * dfg/DFGOSRExit.h:
      * dfg/DFGOSRExitCompiler32_64.cpp:
      (JSC::DFG::OSRExitCompiler::compileExit):
      * dfg/DFGOSRExitCompiler64.cpp:
      (JSC::DFG::OSRExitCompiler::compileExit):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::SpeculativeJIT):
      (JSC::DFG::SpeculativeJIT::compileMovHint):
      (JSC::DFG::SpeculativeJIT::compileCurrentBlock):
      * dfg/DFGSpeculativeJIT.h:
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::LowerDFGToLLVM):
      (JSC::FTL::LowerDFGToLLVM::compileZombieHint):
      (JSC::FTL::LowerDFGToLLVM::compileInvalidationPoint):
      (JSC::FTL::LowerDFGToLLVM::appendOSRExit):
      (JSC::FTL::LowerDFGToLLVM::observeMovHint):
      * ftl/FTLOSRExit.cpp:
      (JSC::FTL::OSRExit::OSRExit):
      (JSC::FTL::OSRExit::convertToForward):
      * ftl/FTLOSRExit.h:
      * ftl/FTLOSRExitCompiler.cpp:
      (JSC::FTL::compileStub):
      * jit/JIT.cpp:
      (JSC::JIT::JIT):
      (JSC::JIT::privateCompileMainPass):
      (JSC::JIT::privateCompileSlowCases):
      * jit/JIT.h:
      (JSC::JIT::appendCall):
      * jit/JITArithmetic32_64.cpp:
      (JSC::JIT::emit_op_lshift):
      (JSC::JIT::emitRightShift):
      (JSC::JIT::emit_op_bitand):
      (JSC::JIT::emit_op_bitor):
      (JSC::JIT::emit_op_bitxor):
      (JSC::JIT::emit_op_inc):
      (JSC::JIT::emit_op_dec):
      * jit/JITCall.cpp:
      (JSC::JIT::emitPutCallResult):
      (JSC::JIT::compileLoadVarargs):
      * jit/JITInlines.h:
      (JSC::JIT::emitGetFromCallFrameHeaderPtr):
      (JSC::JIT::emitGetFromCallFrameHeader32):
      (JSC::JIT::emitGetFromCallFrameHeader64):
      (JSC::JIT::emitLoadTag):
      (JSC::JIT::emitLoadPayload):
      (JSC::JIT::emitLoad2):
      (JSC::JIT::emitGetVirtualRegister):
      (JSC::JIT::emitGetVirtualRegisters):
      (JSC::JIT::emitPutVirtualRegister):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_mov):
      (JSC::JIT::emit_op_catch):
      (JSC::JIT::emit_op_new_func):
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::emit_op_mov):
      (JSC::JIT::emit_op_to_primitive):
      (JSC::JIT::emit_op_to_number):
      (JSC::JIT::emit_op_catch):
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::emit_op_resolve_scope):
      (JSC::JIT::emit_op_get_from_scope):
      (JSC::JIT::emit_op_put_to_scope):
      * jit/JITPropertyAccess32_64.cpp:
      (JSC::JIT::emit_op_get_by_val):
      (JSC::JIT::emit_op_get_by_id):
      (JSC::JIT::emit_op_get_by_pname):
      (JSC::JIT::emitResolveClosure):
      (JSC::JIT::emit_op_resolve_scope):
      (JSC::JIT::emit_op_get_from_scope):
      (JSC::JIT::emit_op_init_global_const):
      * jit/SlowPathCall.h:
      (JSC::JITSlowPathCall::call):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159091 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a5ab80f
    • gns@gnome.org's avatar
      REGRESSION(r158976): Web Inspector: unable to start docked or dock · 889fdd3a
      gns@gnome.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124148
      
      Reviewed by Timothy Hatcher.
      
      * UIProcess/WebInspectorProxy.cpp:
      (WebKit::WebInspectorProxy::canAttach): check for a level that is greater than 1 rather than 0
      to deny attachment, since 1 is the first level of inspectors.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159090 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      889fdd3a
    • andersca@apple.com's avatar
      FrameFilter can just be an std::function instead · 54b12055
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124176
      
      Reviewed by Tim Horton.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * loader/archive/cf/LegacyWebArchive.cpp:
      (WebCore::LegacyWebArchive::create):
      * loader/archive/cf/LegacyWebArchive.h:
      
      Source/WebKit/mac:
      
      * DOM/WebDOMOperations.mm:
      (-[DOMNode webArchiveByFilteringSubframes:]):
      
      Source/WebKit2:
      
      * WebProcess/WebPage/WebFrame.cpp:
      (WebKit::WebFrame::webArchiveData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      54b12055
    • andersca@apple.com's avatar
      Remove unused Qt cruft · 6f9ac118
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124174
      
      Reviewed by Tim Horton.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::resetStateAfterProcessExited):
      * UIProcess/WebPageProxy.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f9ac118
    • andersca@apple.com's avatar
      REGRESSION (r158927): curly-braces-escaping.html is broken on Mac WebKit2 · d34c02cc
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124164
      
      Reviewed by Alexey Proskuryakov.
      
      Back out the change to use NSSecureCoding for encoding/decoding NSURLRequest and
      NSURLResponse objects; turns out the NSURL encoding/decoding doesn't preserve the raw URL bytes.
      
      * Shared/mac/WebCoreArgumentCodersMac.mm:
      (CoreIPC::encodePlatformData):
      (CoreIPC::decodePlatformData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159084 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d34c02cc
    • ryuan.choi@samsung.com's avatar
      Unreviewed build fix on CMake Based port since r159077. · 2dfecd17
      ryuan.choi@samsung.com authored
      * CMakeLists.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2dfecd17
    • simon.fraser@apple.com's avatar
      REGRESSION (r155660): box-shadow causes overlay scrollbars to be in the wrong... · 1c06cdda
      simon.fraser@apple.com authored
      REGRESSION (r155660): box-shadow causes overlay scrollbars to be in the wrong position when element is composited (85647)
      https://bugs.webkit.org/show_bug.cgi?id=124090
      
      Source/WebCore:
      
      Reviewed by Beth Dakin.
      
      After r155660 we did fewer layouts, so were left with overlay scrollbars in the
      wrong locations because nothing would update them after RenderLayerBacking
      computed a new offsetFromRenderer.
      
      First part of the fix is to wean positionOverflowControlsLayers() off of
      an absolute offset from the root. Do this by not using Widget::frameRect()
      to position the layers, but instead RenderLayer::rectFor{Horizontal|Vertical}Scrollbar
      which is what we used to position the scrollbars in the first place.
      
      Second part of the fix is to call positionOverflowControlsLayers() from
      RenderLayerBacking::updateGraphicsLayerGeometry() if the offsetFromRenderer
      changed.
      
      Test: compositing/overflow/overflow-scrollbar-layer-positions.html
      
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::positionOverflowControls):
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
      (WebCore::RenderLayerBacking::positionOverflowControlsLayers):
      * rendering/RenderLayerBacking.h:
      
      LayoutTests:
      
      Reviewed by Beth Dakin.
      
      Test, but it doesn't actually test the fix until we enable overlay scrollbars
      in tests (bug 60716).
      
      * compositing/overflow/overflow-scrollbar-layer-positions-expected.txt: Added.
      * compositing/overflow/overflow-scrollbar-layer-positions.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159082 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1c06cdda
    • bfulgham@apple.com's avatar
      [Win] m_isCompositeFontReference is uninitialized. · b017a3d3
      bfulgham@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124170
      
      Reviewed by Tim Horton.
      
      Initialize value to false, as is done in the other constructors for this data type.
      
      * platform/graphics/win/FontPlatformDataCGWin.cpp:
      (WebCore::FontPlatformData::FontPlatformData):
      * platform/graphics/win/FontPlatformDataCairoWin.cpp:
      (WebCore::FontPlatformData::FontPlatformData):
      * platform/graphics/win/FontPlatformDataWin.cpp:
      (WebCore::FontPlatformData::FontPlatformData):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b017a3d3
    • simon.fraser@apple.com's avatar
      Actually land a result for the test that I added (and make it a text test). · 9aa5303c
      simon.fraser@apple.com authored
      * compositing/tiling/tiled-in-iframe-expected.txt: Added.
      * compositing/tiling/tiled-in-iframe.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9aa5303c
    • timothy_horton@apple.com's avatar
      Remote Layer Tree: Implement Page Overlays · d808c0da
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124165
      <rdar://problem/15199056>
      
      Reviewed by Anders Carlsson.
      
      Implement page overlays, very similar to how they work in TiledCoreAnimationDrawingArea,
      but manipulating the PlatformCALayer tree instead of the CALayer tree directly.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
      (WebKit::RemoteLayerTreeContext::outOfTreeLayerWasAdded):
      (WebKit::RemoteLayerTreeContext::outOfTreeLayerWillBeRemoved):
      (WebKit::RemoteLayerTreeContext::flushLayers):
      Add a list of out-of-tree GraphicsLayers which are flushed in addition
      to the page's GraphicsLayer tree, and functions to manipulate this list.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      Make RemoteLayerTreeDrawingArea a GraphicsLayerClient, so we can get callbacks
      from the GraphicsLayers that drive our page overlays.
      Override the relevant page overlay functions.
      Add storage for the root layer, view size, and a map of PageOverlay->GraphicsLayer.
      
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::setRootCompositingLayer):
      Store the root GraphicsLayer for later use.
      
      (WebKit::RemoteLayerTreeDrawingArea::updateGeometry):
      Update the size of the page overlays when the DrawingArea's geometry changes.
      
      (WebKit::RemoteLayerTreeDrawingArea::updatePreferences):
      Update the page overlay settings when necessary.
      
      (WebKit::RemoteLayerTreeDrawingArea::didInstallPageOverlay):
      Create a GraphicsLayer for our page overlay, set it up, and parent it.
      Inform the RemoteLayerTreeContext that it will need to flush this GraphicsLayer,
      since it's not a part of the page's GraphicsLayer tree.
      
      (WebKit::RemoteLayerTreeDrawingArea::didUninstallPageOverlay):
      Tear down our page overlay's GraphicsLayer.
      
      (WebKit::RemoteLayerTreeDrawingArea::setPageOverlayNeedsDisplay):
      (WebKit::RemoteLayerTreeDrawingArea::setPageOverlayOpacity):
      (WebKit::RemoteLayerTreeDrawingArea::paintContents):
      (WebKit::RemoteLayerTreeDrawingArea::deviceScaleFactor):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159079 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d808c0da
    • andersca@apple.com's avatar
      Add a FrameLoadState object and begin moving loading related members from WebFrameProxy · 016f6b4c
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124163
      
      Reviewed by Beth Dakin.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameGetFrameLoadState):
      * UIProcess/FrameLoadState.cpp: Added.
      (WebKit::FrameLoadState::FrameLoadState):
      (WebKit::FrameLoadState::~FrameLoadState):
      * UIProcess/FrameLoadState.h: Added.
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::WebFrameProxy):
      (WebKit::WebFrameProxy::didStartProvisionalLoad):
      (WebKit::WebFrameProxy::didReceiveServerRedirectForProvisionalLoad):
      (WebKit::WebFrameProxy::didFailProvisionalLoad):
      (WebKit::WebFrameProxy::didCommitLoad):
      (WebKit::WebFrameProxy::didFinishLoad):
      (WebKit::WebFrameProxy::didFailLoad):
      (WebKit::WebFrameProxy::didSameDocumentNavigation):
      (WebKit::WebFrameProxy::setUnreachableURL):
      * UIProcess/WebFrameProxy.h:
      (WebKit::WebFrameProxy::frameLoadState):
      (WebKit::WebFrameProxy::loadState):
      (WebKit::WebFrameProxy::url):
      (WebKit::WebFrameProxy::provisionalURL):
      (WebKit::WebFrameProxy::unreachableURL):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
      (WebKit::WebPageProxy::activeURL):
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::loadStateAtProcessExit):
      * WebKit2.xcodeproj/project.pbxproj:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159077 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      016f6b4c
    • commit-queue@webkit.org's avatar
      [Mac] Characters too close together in complex Arabic text · 52659d14
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124057
      
      Patch by Myles C. Maxfield <mmaxfield@apple.com> on 2013-11-11
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      We weren't updating our total width variable with run's initial
      advance information, leading to widths that were too narrow.
      
      In addition, while initial advances for runs that aren't the first
      run are accounted for by baking in the initial advances into the
      previous character's advance, the initial advance for the first run
      has to be accounted for in ComplexTextController::offsetForPosition.
      
      Test: fast/text/complex-grapheme-cluster-with-initial-advance.html
      Test: fast/text/selection-in-initial-advance-region.html
      
      * platform/graphics/mac/ComplexTextController.cpp:
      (WebCore::ComplexTextController::adjustGlyphsAndAdvances): Update
      total width variable
      (WebCore::ComplexTextController::offsetOfPosition): Account for
      the first run's initial advance.
      
      LayoutTests:
      
      complex-grapheme-cluster-with-initial-advance adds a span around a word in some
      complex Arabic text, and expects that the word spacing is the same as without the
      span.
      
      selection-in-initial-advance-region simulates a mouse drag across a complex text run
      with an initial advance. This makes sure that ComplexTextController::offsetForPosition
      doesn't crash when there is an initial advance.
      
      * fast/text/complex-grapheme-cluster-with-initial-advance-expected.html: Added.
      * fast/text/complex-grapheme-cluster-with-initial-advance.html: Added.
      * fast/text/selection-in-initial-advance-region-expected.txt: added
      * fast/text/selection-in-initial-advance-region.html: added
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159076 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      52659d14
    • commit-queue@webkit.org's avatar
      Remove #include from test input of the *Messages.in processing scripts. · fb17ee13
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=123563
      
      Patch by Gergo Balogh <geryxyz@inf.u-szeged.hu> on 2013-11-11
      Reviewed by Darin Adler.
      
      * Scripts/webkit2/messages_unittest.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159075 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fb17ee13
    • fpizlo@apple.com's avatar
      Remove ConstantFoldingPhase's weirdo compile-time optimization · f0dac3b6
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124169
      
      Reviewed by Mark Hahnenberg.
              
      It turns out that this compile-time optimization doesn't optimize compile times
      anymore. Kill it with fire.
      
      * dfg/DFGConstantFoldingPhase.cpp:
      (JSC::DFG::ConstantFoldingPhase::foldConstants):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159074 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f0dac3b6
    • alex.christensen@flexsim.com's avatar
      Unreviewed build fix for Win64. · dcee015c
      alex.christensen@flexsim.com authored
      * WebKit.vcxproj/WebKitExportGenerator/WebKitExports.def.in:
      Fixed 64-bit linker symbols.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159073 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dcee015c
    • beidson@apple.com's avatar
      Make IDBBackingStoreTransaction be RefCounted · ce8b1f89
      beidson@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124168
      
      Reviewed by Tim Horton.
      
      This is necessarily to safely add a fully asynchronous interface into the IDB mechanism.
      
      * Modules/indexeddb/IDBBackingStoreInterface.h:
      * Modules/indexeddb/IDBBackingStoreTransactionInterface.h:
      * Modules/indexeddb/IDBTransactionBackend.h:
      
      * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.cpp:
      (WebCore::IDBBackingStoreLevelDB::createBackingStoreTransaction):
      * Modules/indexeddb/leveldb/IDBBackingStoreLevelDB.h:
      * Modules/indexeddb/leveldb/IDBBackingStoreTransactionLevelDB.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159072 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce8b1f89
    • antti@apple.com's avatar
      End of line whitespace should collapse with white-space:pre-wrap;... · aae30d1b
      antti@apple.com authored
      End of line whitespace should collapse with white-space:pre-wrap; overflow-wrap:break-word in all cases
      https://bugs.webkit.org/show_bug.cgi?id=124158
      
      Source/WebCore: 
      
      Reviewed by Dave Hyatt.
              
      If a word just fits the line but the following space overflows we fail to collapse whitespaces 
      at the end of the line. This happens because with break-word we end up taking word breaking
      code path that does not have pre-wrap whitespace handling.
              
      This patch makes the behavior consistent and also matches Firefox.
      
      Test: fast/text/break-word-pre-wrap.html
      
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::BreakingContext::handleText):
              
          Don't take the word break code path if we are pre-wrap and the current character is space.
          Instead proceed to break the line normally as this is a valid break position.
      
      LayoutTests: 
      
      Reviewed by Dave Hyatt.
              
      Added a specific test and updates the test results of some complex tests that demonstrate the same issue.
      
      * fast/text/break-word-pre-wrap-expected.html: Added.
      * fast/text/break-word-pre-wrap.html: Added.
      * platform/mac/fast/forms/basic-textareas-expected.png:
      * platform/mac/fast/forms/basic-textareas-expected.txt:
      * platform/mac/fast/forms/basic-textareas-quirks-expected.png:
      * platform/mac/fast/forms/basic-textareas-quirks-expected.txt:
      * platform/mac-mountainlion/fast/forms/basic-textareas-expected.txt:
      * platform/mac-mountainlion/fast/forms/basic-textareas-quirks-expected.txt:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159071 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aae30d1b
    • betravis@adobe.com's avatar
      Web Inspector: [CSS Shapes] Highlight shape-outside when its element is... · 3422dd42
      betravis@adobe.com authored
      Web Inspector: [CSS Shapes] Highlight shape-outside when its element is selected in the Web Inspector
      https://bugs.webkit.org/show_bug.cgi?id=124071
      
      Reviewed by Timothy Hatcher.
      
      Source/WebCore:
      
      Adding code to pass computed shape information (path and bounds) to the Inspector overlay
      canvas, and the code to display it. The code creates a path based on ShapeInfo's computed
      shape. The shape highlight draws whenever an element is highlighted, via selection in
      the Inspector elements view.
      
      Test: inspector-protocol/model/highlight-shape-outside.html
      
      * inspector/InspectorOverlay.cpp:
      (WebCore::localPointToRoot): Convert a local point to be relative to the root view.
      (WebCore::appendPathCommandAndPoints): Helper for building a single segment's worth
      of the overall path.
      (WebCore::appendPathSegment): Build a single segment's worth of the overall path.
      (WebCore::buildObjectForShapeOutside): Build an object to pass to the Inspector overlay
      that represents the shape.
      (WebCore::buildObjectForElementInfo): Call buildObjectForShapeOutside and pass the
      resulting object along.
      * inspector/InspectorOverlayPage.js:
      (pathCommand): Draw a single path command.
      (drawPath): Draw the overall path.
      (_drawShapeHighlight): Draw the highlight for the given shapeInfo.
      (drawNodeHighlight): Call _drawShapeHighlight.
      * rendering/shapes/PolygonShape.h:
      (WebCore::PolygonShape::polygon): Expose the underlying vertex information for a
      PolygonShape.
      * rendering/shapes/RasterShape.h:
      * rendering/shapes/RectangleShape.h:
      (WebCore::RectangleShape::logicalRx): Expose the logical radii for a shape.
      (WebCore::RectangleShape::logicalRy): Ditto.
      * rendering/shapes/Shape.h:
      * rendering/shapes/ShapeInfo.h:
      (WebCore::ShapeInfo::computedShapePhysicalBoundingBox): The physical bounds of a
      shape in renderer coordinates.
      (WebCore::ShapeInfo::shapeToRendererPoint): Convert shape coordinates to renderer
      coordinates.
      (WebCore::ShapeInfo::shapeToRendererSize): Ditto.
      (WebCore::ShapeInfo::ShapeInfo):
      
      LayoutTests:
      
      Test that the information passed to the Inspector overlay properly corresponds to the
      underlying shape. Retrieving the shape highlight information involves a series of
      steps and has been abstracted into shape-info-helper.js, which supplies
      Inspector.shapeOutsideInfo inside an Inspector test, and the ShapeInfoHelper.runShapesTest
      method to begin a test.
      
      * inspector-protocol/model/highlight-shape-outside-expected.txt: Added.
      * inspector-protocol/model/highlight-shape-outside.html: Added.
      * inspector-protocol/resources/shape-info-helper.js: Added.
      (window.ShapeInfoHelper): Exposes ShapeInfoHelper.runShapesTest.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159070 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3422dd42
    • fpizlo@apple.com's avatar
      Make bytecode dumping use the right opcode names for inc/dec. · 9bca4b84
      fpizlo@apple.com authored
      Rubber stamped by Mark Hahnenberg.
      
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dumpBytecode):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159069 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9bca4b84
    • ap@apple.com's avatar
      Support WebCrypto KeyPair interface · b4086485
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124161
      
      Reviewed by Geoffrey Garen.
      
      No new tests yet, will be tested once generateKey is implemented for any RSA algorithms.
      
      * CMakeLists.txt:
      * DerivedSources.make:
      * GNUmakefile.list.am:
      * WebCore.xcodeproj/project.pbxproj:
      Added new files.
      
      * bindings/js/JSDOMPromise.h: Support returning a key pair via a promise.
      
      * bindings/js/JSCryptoKeyPairCustom.cpp: Added.
      (WebCore::JSCryptoKeyPair::visitChildren):
      * crypto/CryptoKey.idl:
      CryptoKey wrapper is reachable through KeyPair, but it doesn't have (or need)
      a back pointer.
      
      * crypto/CryptoKeyPair.cpp: Added.
      (WebCore::CryptoKeyPair::CryptoKeyPair):
      (WebCore::CryptoKeyPair::~CryptoKeyPair):
      * crypto/CryptoKeyPair.h: Added.
      (WebCore::CryptoKeyPair::create):
      (WebCore::CryptoKeyPair::publicKey):
      (WebCore::CryptoKeyPair::privateKey):
      * crypto/CryptoKeyPair.idl: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159068 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b4086485
    • samuel_white@apple.com's avatar
      AX: support helpText() in DumpRenderTree · 44f0520a
      samuel_white@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=40194
      
      Reviewed by Chris Fleizach.
      
      Tools:
      
      Implemented stubbed helpText methods so we can move aria-help.html back to LayoutTests/accessibility.
      
      * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
      (AccessibilityUIElement::helpText):
      
      LayoutTests:
      
      Moving layout test back to its original location. Shouldn't be platform specific.
      
      * accessibility/aria-help.html: Renamed from LayoutTests/platform/mac/accessibility/aria-help.html.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      44f0520a
    • m.pakula@samsung.com's avatar
      Unreviewed EFL gardening · 07e0004c
      m.pakula@samsung.com authored
      Update test expectations after r158188.
      
      * platform/efl/css2.1/t0804-c5507-padn-r-00-c-ag-expected.png:
      * platform/efl/css2.1/t0804-c5507-padn-r-00-c-ag-expected.txt:
      * platform/efl/css2.1/t0804-c5509-padn-l-00-b-ag-expected.png:
      * platform/efl/css2.1/t0804-c5509-padn-l-00-b-ag-expected.txt:
      * platform/efl/css2.1/t0804-c5510-padn-00-b-ag-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159066 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      07e0004c
    • commit-queue@webkit.org's avatar
      Fix build after r158967 · fafed391
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124160
      
      Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-11-11
      Reviewed by Anders Carlsson.
      
      After r158967, gcc debug builds with "-Werror=type-limits" enabled
      fail. This patch fixes it.
      
      * rendering/shapes/RasterShape.h:
      (WebCore::RasterShapeIntervals::intervalsAt):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159065 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fafed391
    • fpizlo@apple.com's avatar
      DFG Int52 boxing code may clobber the source without telling anyone · 644e77b7
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124137
      
      Source/JavaScriptCore: 
      
      Reviewed by Mark Hahnenberg.
      
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::boxInt52): This is called in places where source is expected to be unchanged. We never call this expecting super-amazing codegen. So, preserve the source's value the dumb way (by recovering it mathematically).
      * jit/AssemblyHelpers.h: Document the invariant for boxInt52.
      * jsc.cpp:
      (GlobalObject::finishCreation): It's been super annoying that sometimes we say noInline() and sometimes we say neverInlineFunction(). The LayoutTests harnesses ensure that we have something called noInline(), but it's great to also ensure that the shell has it.
      
      LayoutTests: 
      
      Reviewed by Mark Hahnenberg.
              
      Write the test as a JSRegress test because we currently need a couple
      recompiles to get the bug. JSRegress tests are meant to be longer-running
      stress tests and they are usually run with different compilation thresholds, so
      that ensures that we will actually hit the relevant code path.
      
      * js/regress/int52-spill-expected.txt: Added.
      * js/regress/int52-spill.html: Added.
      * js/regress/script-tests/int52-spill.js: Added.
      (bar):
      (foo):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      644e77b7
    • oliver@apple.com's avatar
      ExtJS breaks with modern Array.prototype.values API due to use of with() · 5abfea03
      oliver@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=123440
      
      Reviewed by Beth Dakin.
      
      Source/JavaScriptCore:
      
      As with our attempt to make Arguments use the Array prototype, ExtJS has
      a weird dependency on not adding new APIs to core types.  In this case
      Array.prototype.values.  The fix is to remove it, and push for ES6 to drop
      the API.
      
      * runtime/ArrayPrototype.cpp:
      
      LayoutTests:
      
      Update tests for removal of Array.prototype.values, and add test to ensure that
      it's gone.
      
      * js/Object-getOwnPropertyNames-expected.txt:
      * js/array-iterators-expected.txt:
      * js/basic-for-of-expected.txt:
      * js/script-tests/Object-getOwnPropertyNames.js:
      * js/script-tests/array-iterators.js:
      * js/script-tests/basic-for-of.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159063 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5abfea03
    • oliver@apple.com's avatar
      Fix layout test · e171705f
      oliver@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e171705f
    • zandobersek@gmail.com's avatar
      Remove the OperationsNotDeletable attribute from most of the WebIDL interfaces · d5961560
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124151
      
      Reviewed by Geoffrey Garen.
      
      The OperationsNotDeletable attribute currently doesn't have any effect, but will soon enforce
      non-configurability of operations on the interface that uses the attribute. Non-configurability
      of operations is the default behavior at the moment, but will be changed to follow the WebIDL
      specification which requires that the operations are configurable (i.e. -- in JSC terms -- deletable).
      IE and Firefox already exhibit this behavior in the majority of cases, while Chrome and Opera don't.
      
      The attribute remains in use on the Location interface to mimic the Unforgeable attribute which
      also makes operations of an interface non-configurable. Unforgeable attribute will be used instead
      when support for it will be added to the JSC bindings generator.
      
      * Modules/battery/BatteryManager.idl:
      * Modules/encryptedmedia/MediaKeySession.idl:
      * Modules/encryptedmedia/MediaKeys.idl:
      * Modules/gamepad/GamepadList.idl:
      * Modules/geolocation/Geolocation.idl:
      * Modules/indexeddb/IDBCursor.idl:
      * Modules/indexeddb/IDBDatabase.idl:
      * Modules/indexeddb/IDBFactory.idl:
      * Modules/indexeddb/IDBIndex.idl:
      * Modules/indexeddb/IDBKeyRange.idl:
      * Modules/indexeddb/IDBObjectStore.idl:
      * Modules/indexeddb/IDBTransaction.idl:
      * Modules/indexeddb/IDBVersionChangeEvent.idl:
      * Modules/mediacontrols/MediaControlsHost.idl:
      * Modules/mediasource/MediaSource.idl:
      * Modules/mediasource/SourceBuffer.idl:
      * Modules/mediasource/SourceBufferList.idl:
      * Modules/mediastream/MediaStream.idl:
      * Modules/mediastream/MediaStreamTrack.idl:
      * Modules/mediastream/RTCDTMFSender.idl:
      * Modules/mediastream/RTCDataChannel.idl:
      * Modules/mediastream/RTCPeerConnection.idl:
      * Modules/mediastream/RTCStatsReport.idl:
      * Modules/mediastream/RTCStatsResponse.idl:
      * Modules/networkinfo/NetworkInfoConnection.idl:
      * Modules/notifications/Notification.idl:
      * Modules/notifications/NotificationCenter.idl:
      * Modules/proximity/DeviceProximityEvent.idl:
      * Modules/quota/StorageInfo.idl:
      * Modules/quota/StorageQuota.idl:
      * Modules/speech/SpeechGrammarList.idl:
      * Modules/speech/SpeechRecognition.idl:
      * Modules/speech/SpeechRecognitionResult.idl:
      * Modules/speech/SpeechRecognitionResultList.idl:
      * Modules/speech/SpeechSynthesis.idl:
      * Modules/webaudio/AnalyserNode.idl:
      * Modules/webaudio/AudioBuffer.idl:
      * Modules/webaudio/AudioBufferSourceNode.idl:
      * Modules/webaudio/AudioContext.idl:
      * Modules/webaudio/AudioListener.idl:
      * Modules/webaudio/AudioNode.idl:
      * Modules/webaudio/AudioParam.idl:
      * Modules/webaudio/BiquadFilterNode.idl:
      * Modules/webaudio/OscillatorNode.idl:
      * Modules/webaudio/PannerNode.idl:
      * Modules/webdatabase/Database.idl:
      * Modules/webdatabase/DatabaseSync.idl:
      * Modules/webdatabase/SQLResultSetRowList.idl:
      * Modules/webdatabase/SQLTransaction.idl:
      * Modules/webdatabase/SQLTransactionSync.idl:
      * Modules/websockets/WebSocket.idl:
      * crypto/CryptoKey.idl:
      * crypto/SubtleCrypto.idl:
      * css/CSSHostRule.idl:
      * css/CSSMediaRule.idl:
      * css/CSSPrimitiveValue.idl:
      * css/CSSRuleList.idl:
      * css/CSSStyleDeclaration.idl:
      * css/CSSStyleSheet.idl:
      * css/CSSSupportsRule.idl:
      * css/CSSValueList.idl:
      * css/DOMWindowCSS.idl:
      * css/FontLoader.idl:
      * css/MediaList.idl:
      * css/MediaQueryList.idl:
      * css/MediaQueryListListener.idl:
      * css/StyleMedia.idl:
      * css/StyleSheet.idl:
      * css/StyleSheetList.idl:
      * css/WebKitCSSFilterValue.idl:
      * css/WebKitCSSKeyframesRule.idl:
      * css/WebKitCSSMatrix.idl:
      * css/WebKitCSSTransformValue.idl:
      * dom/CharacterData.idl:
      * dom/ChildNode.idl:
      * dom/ClientRectList.idl:
      * dom/Clipboard.idl:
      * dom/CompositionEvent.idl:
      * dom/CustomEvent.idl:
      * dom/DOMCoreException.idl:
      * dom/DOMImplementation.idl:
      * dom/DOMNamedFlowCollection.idl:
      * dom/DOMStringList.idl:
      * dom/DOMStringMap.idl:
      * dom/DataTransferItem.idl:
      * dom/DataTransferItemList.idl:
      * dom/DeviceMotionEvent.idl:
      * dom/DeviceOrientationEvent.idl:
      * dom/Document.idl:
      * dom/DocumentFragment.idl:
      * dom/DocumentType.idl:
      * dom/Element.idl:
      * dom/Event.idl:
      * dom/EventException.idl:
      * dom/EventListener.idl:
      * dom/EventTarget.idl:
      * dom/HashChangeEvent.idl:
      * dom/KeyboardEvent.idl:
      * dom/MessageEvent.idl:
      * dom/MessagePort.idl:
      * dom/MouseEvent.idl:
      * dom/MutationEvent.idl:
      * dom/MutationObserver.idl:
      * dom/NamedNodeMap.idl:
      * dom/Node.idl:
      * dom/NodeFilter.idl:
      * dom/NodeIterator.idl:
      * dom/NodeList.idl:
      * dom/Range.idl:
      * dom/RangeException.idl:
      * dom/ShadowRoot.idl:
      * dom/Text.idl:
      * dom/TextEvent.idl:
      * dom/TouchEvent.idl:
      * dom/TouchList.idl:
      * dom/TreeWalker.idl:
      * dom/UIEvent.idl:
      * dom/WebKitNamedFlow.idl:
      * dom/WheelEvent.idl:
      * fileapi/Blob.idl:
      * fileapi/FileException.idl:
      * fileapi/FileList.idl:
      * fileapi/FileReader.idl:
      * fileapi/FileReaderSync.idl:
      * html/DOMFormData.idl:
      * html/DOMSettableTokenList.idl:
      * html/DOMTokenList.idl:
      * html/DOMURL.idl:
      * html/HTMLAllCollection.idl:
      * html/HTMLAnchorElement.idl:
      * html/HTMLButtonElement.idl:
      * html/HTMLCanvasElement.idl:
      * html/HTMLCollection.idl:
      * html/HTMLDocument.idl:
      * html/HTMLElement.idl:
      * html/HTMLEmbedElement.idl:
      * html/HTMLFieldSetElement.idl:
      * html/HTMLFormControlsCollection.idl:
      * html/HTMLFormElement.idl:
      * html/HTMLFrameElement.idl:
      * html/HTMLIFrameElement.idl:
      * html/HTMLInputElement.idl:
      * html/HTMLKeygenElement.idl:
      * html/HTMLMarqueeElement.idl:
      * html/HTMLMediaElement.idl:
      * html/HTMLObjectElement.idl:
      * html/HTMLOptionsCollection.idl:
      * html/HTMLOutputElement.idl:
      * html/HTMLSelectElement.idl:
      * html/HTMLTableElement.idl:
      * html/HTMLTableRowElement.idl:
      * html/HTMLTableSectionElement.idl:
      * html/HTMLTextAreaElement.idl:
      * html/HTMLVideoElement.idl:
      * html/MediaController.idl:
      * html/RadioNodeList.idl:
      * html/TimeRanges.idl:
      * html/canvas/CanvasGradient.idl:
      * html/canvas/CanvasRenderingContext2D.idl:
      * html/canvas/DOMPath.idl:
      * html/canvas/EXTDrawBuffers.idl:
      * html/canvas/OESVertexArrayObject.idl:
      * html/canvas/WebGLDebugShaders.idl:
      * html/canvas/WebGLLoseContext.idl:
      * html/canvas/WebGLRenderingContext.idl:
      * html/track/AudioTrackList.idl:
      * html/track/TextTrack.idl:
      * html/track/TextTrackCue.idl:
      * html/track/TextTrackCueList.idl:
      * html/track/TextTrackList.idl:
      * html/track/TextTrackRegionList.idl:
      * html/track/VideoTrackList.idl:
      * loader/appcache/DOMApplicationCache.idl:
      * page/Console.idl:
      * page/Crypto.idl:
      * page/DOMSecurityPolicy.idl:
      * page/DOMSelection.idl:
      * page/DOMWindow.idl:
      * page/EventSource.idl:
      * page/History.idl:
      * page/Navigator.idl:
      * page/Performance.idl:
      * page/PerformanceEntryList.idl:
      * page/SpeechInputResultList.idl:
      * page/WindowBase64.idl:
      * page/WindowTimers.idl:
      * plugins/DOMMimeTypeArray.idl:
      * plugins/DOMPlugin.idl:
      * plugins/DOMPluginArray.idl:
      * storage/Storage.idl:
      * storage/StorageEvent.idl:
      * svg/SVGAngle.idl:
      * svg/SVGAnimationElement.idl:
      * svg/SVGColor.idl:
      * svg/SVGCursorElement.idl:
      * svg/SVGDocument.idl:
      * svg/SVGElement.idl:
      * svg/SVGElementInstanceList.idl:
      * svg/SVGException.idl:
      * svg/SVGFEDropShadowElement.idl:
      * svg/SVGFEGaussianBlurElement.idl:
      * svg/SVGFEMorphologyElement.idl:
      * svg/SVGFilterElement.idl:
      * svg/SVGGraphicsElement.idl:
      * svg/SVGLength.idl:
      * svg/SVGLengthList.idl:
      * svg/SVGMarkerElement.idl:
      * svg/SVGMaskElement.idl:
      * svg/SVGMatrix.idl:
      * svg/SVGNumberList.idl:
      * svg/SVGPaint.idl:
      * svg/SVGPathElement.idl:
      * svg/SVGPathSegList.idl:
      * svg/SVGPatternElement.idl:
      * svg/SVGPoint.idl:
      * svg/SVGPointList.idl:
      * svg/SVGSVGElement.idl:
      * svg/SVGStringList.idl:
      * svg/SVGTests.idl:
      * svg/SVGTextContentElement.idl:
      * svg/SVGTransform.idl:
      * svg/SVGTransformList.idl:
      * workers/DedicatedWorkerGlobalScope.idl:
      * workers/Worker.idl:
      * workers/WorkerGlobalScope.idl:
      * workers/WorkerLocation.idl:
      * xml/DOMParser.idl:
      * xml/XMLHttpRequest.idl:
      * xml/XMLHttpRequestException.idl:
      * xml/XMLHttpRequestUpload.idl:
      * xml/XMLSerializer.idl:
      * xml/XPathEvaluator.idl:
      * xml/XPathException.idl:
      * xml/XPathExpression.idl:
      * xml/XPathNSResolver.idl:
      * xml/XPathResult.idl:
      * xml/XSLTProcessor.idl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159061 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d5961560
    • simon.fraser@apple.com's avatar
      Add a testcase for a tiled layer inside an iframe · 82217e00
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124159
      
      Reviewed by Tim Horton.
      
      Add a test for a tiled compositing layer inside an iframe.
      
      * compositing/tiling/resources/tiled-layer-tall.html: Added.
      * compositing/tiling/tiled-in-iframe.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      82217e00
    • andersca@apple.com's avatar
      Remove block based APIs from the WebKit2 C API · 57910a8c
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124157
      
      Reviewed by Sam Weinig.
      
      Source/WebKit2:
      
      Remove most of the block based C APIs from WebKit2. We want to discourage people from using
      them since any C API "objects" captured by blocks won't be implicitly retained which
      can lead to dangling pointer bugs.
      
      * UIProcess/API/C/WKDatabaseManager.cpp:
      * UIProcess/API/C/WKDatabaseManager.h:
      * UIProcess/API/C/WKFrame.cpp:
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/API/C/WKPage.cpp:
      * UIProcess/API/C/WKPage.h:
      * UIProcess/API/C/WKPagePrivate.h:
      
      Tools:
      
      Update for WK2 changes.
      
      * MiniBrowser/mac/WK2BrowserWindowController.m:
      (dumpSource):
      (-[WK2BrowserWindowController dumpSourceToConsole:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159059 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      57910a8c
    • commit-queue@webkit.org's avatar
      [CSS Regions] Selection focusNode set to the "region" block, instead of the "source" block · 5ce6c901
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120769
      
      Patch by Javier Fernandez <jfernandez@igalia.com> on 2013-11-11
      Reviewed by David Hyatt.
      
      Source/WebCore:
      
      When a point hits a Region block, current positionForPoint algorithm determines its
      position in the DOM and returns either the start or end offset for such block, since
      Region blocks have no children in the DOM.
      
      It's necessary to map the point into Flow Thread coordinates in order to determine
      the DOM position of the specific element rendered by the Region.
      
      Top margin, padding and border points should be mapped to the beginning of the Region
      block, while bottom points are mapped to the block end. The Left coordinate its just
      adjusted to fit in the Flow Thread boundaries, since its not affected by the Flow
      direction.
      
      Besides, when inspecting the Flow Thread blocks looking for the last candidate box,
      the Region originally associated to the point might be taken into account. Only the
      blocks/boxes rendered by the Region are potential candidates.
      
      Tests: fast/regions/selection/position-for-point-1-vert-lr.html
             fast/regions/selection/position-for-point-1-vert-rl.html
             fast/regions/selection/position-for-point-1.html
             fast/regions/selection/position-for-point-vert-lr.html
             fast/regions/selection/position-for-point-vert-rl.html
             fast/regions/selection/position-for-point.html
      
      * rendering/RenderBlock.cpp:
      (WebCore::isChildHitTestCandidate):
      (WebCore::RenderBlock::positionForPoint):
      * rendering/RenderBlockFlow.cpp:
      (WebCore::RenderBlockFlow::positionForPoint): Added.
      It just redirects the call to the associated RenderNamedFlowFragment instance.
      * rendering/RenderBlockFlow.h:
      * rendering/RenderRegion.cpp:
      (WebCore::RenderRegion::mapRegionPointIntoFlowThreadCoordinates): Added.
      It performs the coordinates mapping.
      (WebCore::RenderRegion::positionForPoint): Added.
      It determines the corresponding LayoutPoint in the FlowThread the Region
      is associated to, forwarding the call to the RenderBlock class using the
      FlowThread's first child block and such new point.
      * rendering/RenderRegion.h:
      
      LayoutTests:
      
      * fast/regions/resources/helper.js:
      (selectContentFromIdToPos):
      (selectContentFromIdToPosVert):
      (.document.onmouseup):
      (onMouseUpLogSelectionAndFocus):
      * fast/regions/selection/position-for-point-1-expected.txt: Added.
      * fast/regions/selection/position-for-point-1-vert-lr-expected.txt: Added.
      * fast/regions/selection/position-for-point-1-vert-lr.html: Added.
      * fast/regions/selection/position-for-point-1-vert-rl-expected.txt: Added.
      * fast/regions/selection/position-for-point-1-vert-rl.html: Added.
      * fast/regions/selection/position-for-point-1.html: Added.
      * fast/regions/selection/position-for-point-expected.txt: Added.
      * fast/regions/selection/position-for-point-vert-lr-expected.txt: Added.
      * fast/regions/selection/position-for-point-vert-lr.html: Added.
      * fast/regions/selection/position-for-point-vert-rl-expected.txt: Added.
      * fast/regions/selection/position-for-point-vert-rl.html: Added.
      * fast/regions/selection/position-for-point.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ce6c901
    • rgabor@webkit.org's avatar
      Fix CPU(ARM_TRADITIONAL) build after r159039. · ebfd2507
      rgabor@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=124149
      
      Reviewed by Geoffrey Garen.
      
      * assembler/ARMAssembler.h:
      (JSC::ARMAssembler::firstRegister):
      (JSC::ARMAssembler::lastRegister):
      (JSC::ARMAssembler::firstFPRegister):
      (JSC::ARMAssembler::lastFPRegister):
      * assembler/MacroAssemblerARM.h:
      * jit/FPRInfo.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159055 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ebfd2507
    • mitz@apple.com's avatar
      [Mac] .exp files are not source code · aecd5cbc
      mitz@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=124154
      
      Reviewed by Andy Estes.
      
      ../WebKit: 
      
      * WebKit.xcodeproj/project.pbxproj: Removed WebKit.iOS.exp from the Compile Sources build
      phase.
      
      ../WebKit/mac: 
      
      * Configurations/WebKit.xcconfig: Removed WebKit.iOS.exp from
      EXCLUDED_SOURCE_FILE_NAMES_macosx.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aecd5cbc
    • commit-queue@webkit.org's avatar
      [curl] Remove unused includes. · 1bd595cc
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=120415
      
      Patch by Gergo Balogh <geryxyz@inf.u-szeged.hu> on 2013-11-11
      Reviewed by Csaba Osztrogonác.
      
      Original patch by 2013-08-28  Tamas Czene  <tczene@inf.u-szeged.hu>
      
      * platform/network/curl/ProxyServerCurl.cpp:
      * platform/network/curl/ResourceHandleCurl.cpp:
      * platform/network/curl/ResourceHandleManager.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@159053 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1bd595cc