1. 17 Oct, 2012 40 commits
    • fpizlo@apple.com's avatar
      Array and object allocations via 'new Object' or 'new Array' should be inlined... · 4500e353
      fpizlo@apple.com authored
      Array and object allocations via 'new Object' or 'new Array' should be inlined in bytecode to allow allocation site profiling
      https://bugs.webkit.org/show_bug.cgi?id=99557
      
      Reviewed by Geoffrey Garen.
      
      This uses the old jneq_ptr trick to allow for the bytecode to "see" that the
      operation in question is what we almost certainly know it to be.
      
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dump):
      * bytecode/Opcode.h:
      (JSC):
      (JSC::padOpcodeName):
      * bytecode/SpecialPointer.h:
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::emitCall):
      (JSC::BytecodeGenerator::emitCallEval):
      (JSC::BytecodeGenerator::expectedFunctionForIdentifier):
      (JSC):
      (JSC::BytecodeGenerator::emitExpectedFunctionSnippet):
      (JSC::BytecodeGenerator::emitConstruct):
      * bytecompiler/BytecodeGenerator.h:
      (BytecodeGenerator):
      * bytecompiler/NodesCodegen.cpp:
      (JSC::NewExprNode::emitBytecode):
      (JSC::FunctionCallValueNode::emitBytecode):
      (JSC::FunctionCallResolveNode::emitBytecode):
      (JSC::FunctionCallBracketNode::emitBytecode):
      (JSC::FunctionCallDotNode::emitBytecode):
      (JSC::CallFunctionCallDotNode::emitBytecode):
      (JSC::ApplyFunctionCallDotNode::emitBytecode):
      * dfg/DFGByteCodeParser.cpp:
      (JSC::DFG::ByteCodeParser::parseBlock):
      * dfg/DFGCapabilities.h:
      (JSC::DFG::canCompileOpcode):
      * jit/JIT.cpp:
      (JSC::JIT::privateCompileMainPass):
      * jit/JIT.h:
      (JIT):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_new_array_with_size):
      (JSC):
      * jit/JITStubs.cpp:
      (JSC::DEFINE_STUB_FUNCTION):
      (JSC):
      * jit/JITStubs.h:
      * llint/LLIntSlowPaths.cpp:
      (JSC::LLInt::LLINT_SLOW_PATH_DECL):
      (LLInt):
      * llint/LLIntSlowPaths.h:
      (LLInt):
      * llint/LowLevelInterpreter.asm:
      * runtime/ArrayConstructor.cpp:
      (JSC::constructArrayWithSizeQuirk):
      (JSC):
      * runtime/ArrayConstructor.h:
      (JSC):
      * runtime/CommonIdentifiers.h:
      * runtime/JSGlobalObject.cpp:
      (JSC::JSGlobalObject::reset):
      (JSC):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131644 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4500e353
    • tony@chromium.org's avatar
      Unreviewed, Apple Mac baselines for shadow DOM changes to RenderSlider. · decef1e6
      tony@chromium.org authored
      * platform/mac/TestExpectations:
      * platform/mac/fast/dom/HTMLInputElement/input-slider-update-expected.txt:
      * platform/mac/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt: Added.
      * platform/mac/fast/forms/box-shadow-override-expected.txt:
      * platform/mac/fast/forms/range/input-appearance-range-expected.txt:
      * platform/mac/fast/forms/range/range-thumb-height-percentage-expected.txt:
      * platform/mac/fast/forms/range/slider-padding-expected.txt:
      * platform/mac/fast/forms/range/slider-thumb-shared-style-expected.txt:
      * platform/mac/fast/forms/range/slider-thumb-stylability-expected.txt: Added.
      * platform/mac/fast/multicol/client-rects-expected.txt:
      * platform/mac/fast/repaint/slider-thumb-drag-release-expected.txt:
      * platform/mac/fast/repaint/slider-thumb-float-expected.txt: Added.
      * platform/mac/media/audio-controls-rendering-expected.txt:
      * platform/mac/media/controls-after-reload-expected.txt:
      * platform/mac/media/controls-strict-expected.txt:
      * platform/mac/media/controls-styling-strict-expected.txt:
      * platform/mac/media/video-controls-rendering-expected.txt:
      * platform/mac/media/video-display-toggle-expected.txt:
      * platform/mac/media/video-no-audio-expected.txt:
      * platform/mac/media/video-playing-and-pause-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131643 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      decef1e6
    • fpizlo@apple.com's avatar
      JIT op_get_by_pname should call cti_get_by_val_generic and not cti_get_by_val · a2909633
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99631
      <rdar://problem/12483221>
      
      Reviewed by Mark Hahnenberg.
      
      Source/JavaScriptCore: 
      
      cti_get_by_val assumes that the return address has patching metadata associated with it, which won't
      be true for op_get_by_pname. cti_get_by_val_generic makes no such assumptions.
      
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::emitSlow_op_get_by_pname):
      * jit/JITPropertyAccess32_64.cpp:
      (JSC::JIT::emitSlow_op_get_by_pname):
      
      LayoutTests: 
      
      * fast/js/get-by-pname-that-looks-like-a-patchable-get-by-val-expected.txt: Added.
      * fast/js/get-by-pname-that-looks-like-a-patchable-get-by-val.html: Added.
      * fast/js/jsc-test-list:
      * fast/js/script-tests/get-by-pname-that-looks-like-a-patchable-get-by-val.js: Added.
      (foo):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a2909633
    • tony@chromium.org's avatar
      Unreviewed, second set of GTK+ baselines for shadow DOM changes to RenderSlider. · 1295cda8
      tony@chromium.org authored
      * platform/gtk/TestExpectations:
      * platform/gtk/media/audio-controls-rendering-expected.txt:
      * platform/gtk/media/audio-repaint-expected.txt:
      * platform/gtk/media/controls-after-reload-expected.txt:
      * platform/gtk/media/controls-strict-expected.txt:
      * platform/gtk/media/controls-styling-expected.txt:
      * platform/gtk/media/controls-styling-strict-expected.txt:
      * platform/gtk/media/controls-without-preload-expected.txt:
      * platform/gtk/media/media-controls-clone-expected.txt:
      * platform/gtk/media/media-document-audio-repaint-expected.txt:
      * platform/gtk/media/track/track-cue-rendering-horizontal-expected.txt:
      * platform/gtk/media/track/track-cue-rendering-vertical-expected.txt:
      * platform/gtk/media/video-controls-rendering-expected.txt:
      * platform/gtk/media/video-display-toggle-expected.txt:
      * platform/gtk/media/video-empty-source-expected.txt:
      * platform/gtk/media/video-no-audio-expected.txt:
      * platform/gtk/media/video-playing-and-pause-expected.txt:
      * platform/gtk/media/video-zoom-controls-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131641 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1295cda8
    • commit-queue@webkit.org's avatar
      Integer overflows/underflows in all Gamepad controller api calls. · dd847711
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=97262
      
      Patch by Scott Graham <scottmg@chromium.org> on 2012-10-17
      Reviewed by Abhishek Arya.
      
      Tools:
      
      Range check controller inputs. This code is not exposed to the web,
      but makes fuzzers try less hard to break uninteresting code.
      
      * DumpRenderTree/chromium/TestRunner/GamepadController.cpp:
      (GamepadController::setButtonCount):
      (GamepadController::setButtonData):
      (GamepadController::setAxisCount):
      (GamepadController::setAxisData):
      
      LayoutTests:
      
      * gamepad/gamepad-out-of-range-crasher.html: Added.
      * gamepad/gamepad-out-of-range-crasher-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131640 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd847711
    • tony@chromium.org's avatar
      Unreviewed, Chromium baselines for shadow DOM changes to RenderSlider. · 7699b3fe
      tony@chromium.org authored
      * platform/chromium-linux-x86/fast/multicol/client-rects-expected.txt: Removed.
      * platform/chromium-linux/fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.png:
      * platform/chromium-mac-snowleopard/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt.
      * platform/chromium-mac-snowleopard/fast/forms/box-shadow-override-expected.png:
      * platform/chromium-mac-snowleopard/fast/forms/datalist/input-appearance-range-with-datalist-expected.png:
      * platform/chromium-mac-snowleopard/fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.png:
      * platform/chromium-mac-snowleopard/fast/forms/input-appearance-height-expected.png:
      * platform/chromium-mac-snowleopard/fast/forms/range/slider-thumb-stylability-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/range/slider-thumb-stylability-expected.txt.
      * platform/chromium-mac-snowleopard/fast/repaint/slider-thumb-float-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/repaint/slider-thumb-float-expected.txt.
      * platform/chromium-mac/fast/dom/HTMLInputElement/input-slider-update-expected.txt: Added.
      * platform/chromium-mac/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt.
      * platform/chromium-mac/fast/forms/box-shadow-override-expected.png:
      * platform/chromium-mac/fast/forms/box-shadow-override-expected.txt:
      * platform/chromium-mac/fast/forms/datalist/input-appearance-range-with-datalist-expected.png:
      * platform/chromium-mac/fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.png:
      * platform/chromium-mac/fast/forms/input-appearance-height-expected.png:
      * platform/chromium-mac/fast/forms/input-appearance-height-expected.txt:
      * platform/chromium-mac/fast/forms/range/input-appearance-range-expected.txt:
      * platform/chromium-mac/fast/forms/range/range-thumb-height-percentage-expected.txt: Added.
      * platform/chromium-mac/fast/forms/range/slider-padding-expected.txt: Added.
      * platform/chromium-mac/fast/forms/range/slider-thumb-shared-style-expected.txt: Added.
      * platform/chromium-mac/fast/forms/range/slider-thumb-stylability-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/range/slider-thumb-stylability-expected.txt.
      * platform/chromium-mac/fast/hidpi/video-controls-in-hidpi-expected.txt:
      * platform/chromium-mac/fast/layers/video-layer-expected.txt:
      * platform/chromium-mac/fast/multicol/client-rects-expected.txt:
      * platform/chromium-mac/fast/repaint/slider-thumb-drag-release-expected.txt: Added.
      * platform/chromium-mac/fast/repaint/slider-thumb-float-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/repaint/slider-thumb-float-expected.txt.
      * platform/chromium-mac/media/audio-controls-rendering-expected.txt:
      * platform/chromium-mac/media/audio-repaint-expected.txt:
      * platform/chromium-mac/media/controls-after-reload-expected.txt:
      * platform/chromium-mac/media/controls-strict-expected.txt:
      * platform/chromium-mac/media/controls-styling-expected.txt:
      * platform/chromium-mac/media/controls-styling-strict-expected.txt:
      * platform/chromium-mac/media/controls-without-preload-expected.txt:
      * platform/chromium-mac/media/media-controls-clone-expected.txt:
      * platform/chromium-mac/media/media-document-audio-repaint-expected.txt:
      * platform/chromium-mac/media/track/track-cue-rendering-horizontal-expected.txt:
      * platform/chromium-mac/media/track/track-cue-rendering-vertical-expected.txt:
      * platform/chromium-mac/media/video-controls-rendering-expected.txt:
      * platform/chromium-mac/media/video-display-toggle-expected.txt:
      * platform/chromium-mac/media/video-empty-source-expected.txt:
      * platform/chromium-mac/media/video-no-audio-expected.txt:
      * platform/chromium-mac/media/video-playing-and-pause-expected.txt:
      * platform/chromium-mac/media/video-zoom-controls-expected.txt:
      * platform/chromium-mac/platform/chromium/virtual/gpu/fast/hidpi/video-controls-in-hidpi-expected.txt: Copied from LayoutTests/platform/chromium-mac/fast/hidpi/video-controls-in-hidpi-expected.txt.
      * platform/chromium-win-xp/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt.
      * platform/chromium-win-xp/fast/forms/datalist/input-appearance-range-with-datalist-expected.png: Removed.
      * platform/chromium-win-xp/fast/forms/range/slider-thumb-stylability-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/forms/range/slider-thumb-stylability-expected.txt.
      * platform/chromium-win-xp/fast/repaint/slider-thumb-float-expected.txt: Copied from LayoutTests/platform/chromium-win/fast/repaint/slider-thumb-float-expected.txt.
      * platform/chromium-win/fast/dom/HTMLInputElement/input-slider-update-expected.txt:
      * platform/chromium-win/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt:
      * platform/chromium-win/fast/forms/box-shadow-override-expected.txt:
      * platform/chromium-win/fast/forms/datalist/input-appearance-range-with-datalist-expected.png:
      * platform/chromium-win/fast/forms/datalist/input-appearance-range-with-datalist-zoomed-expected.png:
      * platform/chromium-win/fast/forms/input-appearance-height-expected.txt:
      * platform/chromium-win/fast/forms/range/input-appearance-range-expected.png:
      * platform/chromium-win/fast/forms/range/input-appearance-range-expected.txt:
      * platform/chromium-win/fast/forms/range/range-thumb-height-percentage-expected.txt:
      * platform/chromium-win/fast/forms/range/slider-padding-expected.txt:
      * platform/chromium-win/fast/forms/range/slider-thumb-shared-style-expected.txt:
      * platform/chromium-win/fast/forms/range/slider-thumb-stylability-expected.txt:
      * platform/chromium-win/fast/hidpi/video-controls-in-hidpi-expected.txt:
      * platform/chromium-win/fast/multicol/client-rects-expected.txt:
      * platform/chromium-win/fast/repaint/slider-thumb-drag-release-expected.txt:
      * platform/chromium-win/fast/repaint/slider-thumb-float-expected.txt:
      * platform/chromium-win/media/track/track-cue-rendering-vertical-expected.txt:
      * platform/chromium-win/platform/chromium/virtual/gpu/fast/hidpi/video-controls-in-hidpi-expected.txt: Renamed from LayoutTests/platform/chromium-linux/fast/hidpi/video-controls-in-hidpi-expected.txt.
      * platform/chromium/TestExpectations:
      * platform/mac-lion/media/audio-repaint-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131639 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7699b3fe
    • rniwa@webkit.org's avatar
      Performance test should support asynchronous tests · 667af5d5
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=95668
      
      Reviewed by Dirk Pranke.
      
      Added PerfTestRunner.prepareToMeasureValuesAsync and PerfTestRunner.measureValueAsync,
      and deployed it in Animation/balls.
      
      * Animation/balls.html:
      * resources/runner.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      667af5d5
    • danakj@chromium.org's avatar
      936966fb
    • tony@chromium.org's avatar
      Unreviewed, first set of GTK+ baselines for shadow DOM changes to RenderSlider. · ef87041f
      tony@chromium.org authored
      * fast/forms/range/slider-thumb-stylability-expected.txt: Renamed from LayoutTests/platform/efl/fast/forms/range/slider-thumb-stylability-expected.txt.
      * platform/chromium-mac-snowleopard/fast/hidpi/video-controls-in-hidpi-expected.txt: Removed.
      * platform/chromium-mac-snowleopard/fast/multicol/client-rects-expected.txt: Removed.
      * platform/chromium-win-xp/fast/multicol/client-rects-expected.txt: Removed.
      * platform/gtk/TestExpectations:
      * platform/gtk/fast/dom/HTMLInputElement/input-slider-update-expected.txt:
      * platform/gtk/fast/dom/HTMLInputElement/input-slider-update-styled-expected.txt: Added.
      * platform/gtk/fast/forms/box-shadow-override-expected.txt:
      * platform/gtk/fast/forms/input-appearance-height-expected.txt:
      * platform/gtk/fast/forms/range/input-appearance-range-expected.txt:
      * platform/gtk/fast/forms/range/range-thumb-height-percentage-expected.txt: Added.
      * platform/gtk/fast/forms/range/slider-padding-expected.txt:
      * platform/gtk/fast/forms/range/slider-thumb-shared-style-expected.txt:
      * platform/gtk/fast/forms/range/slider-thumb-stylability-expected.png: Removed.
      * platform/gtk/fast/forms/range/slider-thumb-stylability-expected.txt:
      * platform/gtk/fast/hidpi/video-controls-in-hidpi-expected.txt:
      * platform/gtk/fast/layers/video-layer-expected.txt:
      * platform/gtk/fast/multicol/client-rects-expected.txt:
      * platform/gtk/fast/repaint/slider-thumb-drag-release-expected.txt:
      * platform/gtk/fast/repaint/slider-thumb-float-expected.txt: Added.
      * platform/mac/fast/forms/range/slider-thumb-stylability-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131636 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ef87041f
    • danakj@chromium.org's avatar
      Rebaseline some windows tests now that the bot is providing results in the right place. · 9e00e7e2
      danakj@chromium.org authored
      Unreviewed gardening.
      
      * platform/chromium-win-xp/css1/basic/inheritance-expected.png: Removed.
      * platform/chromium-win-xp/fast/sub-pixel/selection/selection-rect-in-sub-pixel-table-expected.png: Removed.
      * platform/chromium-win-xp/ietestcenter/css3/bordersbackgrounds/border-radius-content-edge-001-expected.png: Removed.
      * platform/chromium-win-xp/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png: Removed.
      * platform/chromium-win-xp/tables/mozilla/bugs/bug73321-expected.png: Removed.
      * platform/chromium-win/css1/basic/inheritance-expected.png:
      * platform/chromium-win/fast/sub-pixel/selection/selection-rect-in-sub-pixel-table-expected.png:
      * platform/chromium-win/ietestcenter/css3/bordersbackgrounds/border-radius-content-edge-001-expected.png:
      * platform/chromium-win/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.png:
      * platform/chromium-win/tables/mozilla/bugs/bug73321-expected.png:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e00e7e2
    • rakuco@webkit.org's avatar
      [EFL] Remove redundant OpenGL library addition from the build system. · ad8ee962
      rakuco@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99629
      
      Reviewed by Rob Buis.
      
      * PlatformEfl.cmake: Do not add OPENGL_gl_LIBRARY to
      WebCore_LIBRARIES, this is already done in CMakeLists.txt these
      days.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ad8ee962
    • rakuco@webkit.org's avatar
      [CMake] Set WebCore_LIBRARIES earlier. · e36aff00
      rakuco@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99630
      
      Reviewed by Rob Buis.
      
      * CMakeLists.txt: Follow the style we use in other CMakeList.txt
      files and set the Foo_LIBRARIES variables before we start checking
      for optional features, as they might append other libraries to the
      list (it already happens with WTF_USE_3D_GRAPHICS, for example).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131633 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e36aff00
    • pdr@google.com's avatar
      Allow lazy initialization of SVG XML animated properties. · 6bb6e21c
      pdr@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=84657
      
      Reviewed by Tim Horton.
      
      Source/WebCore:
      
      When animating a property in the shadow tree, instance properties and tearoffs are created
      but they simply reference the animated element's animating properties.
      
      When starting an animation for the first time (see SVGAnimateElement::resetAnimatedType),
      we initialize the root property and instance properties using startAnimValAnimation(...).
      If an instance property is added while the root property is animating, this initialization
      will not occur and we crash.
      
      This patch updates the resetAnimValToBaseVal codepath to start (and initialize) an animated
      property if it is not already animating. After this patch, instance properties can be added
      in the middle of animation and they will be properly started/initialized.
      
      Test: svg/animations/use-while-animating-crash.html
      
      * svg/SVGAnimatedTypeAnimator.h:
      (WebCore::SVGAnimatedTypeAnimator::resetFromBaseValue):
      (WebCore::SVGAnimatedTypeAnimator::resetFromBaseValues):
      (WebCore::SVGAnimatedTypeAnimator::executeAction):
      
      LayoutTests:
      
      * platform/mac/svg/animations/use-while-animating-crash-expected.txt: Added.
      * svg/animations/use-while-animating-crash.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131631 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6bb6e21c
    • joepeck@webkit.org's avatar
      Unreviewed watchlist email change. · f530d882
      joepeck@webkit.org authored
      * Scripts/webkitpy/common/config/watchlist:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f530d882
    • commit-queue@webkit.org's avatar
      Bind isolatedWorldSecurityOrigin to world · dc12146a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99582
      
      Patch by Dan Carney <dcarney@google.com> on 2012-10-17
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Security origin of isolated worlds was not previously set at the world
      level, although it could have been.
      
      No new tests. No change in functionality.
      
      * bindings/v8/DOMWrapperWorld.cpp:
      (WebCore::DOMWrapperWorld::deallocate):
      (WebCore):
      (WebCore::isolatedWorldSecurityOrigins):
      (WebCore::DOMWrapperWorld::isolatedWorldSecurityOrigin):
      (WebCore::DOMWrapperWorld::setIsolatedWorldSecurityOrigin):
      (WebCore::DOMWrapperWorld::clearIsolatedWorldSecurityOrigin):
      * bindings/v8/DOMWrapperWorld.h:
      (DOMWrapperWorld):
      (WebCore::DOMWrapperWorld::isIsolatedWorldId):
      (WebCore::DOMWrapperWorld::isIsolatedWorld):
      * bindings/v8/ScriptController.cpp:
      (WebCore::ScriptController::resetIsolatedWorlds):
      (WebCore::ScriptController::evaluateInIsolatedWorld):
      (WebCore::ScriptController::collectIsolatedContexts):
      * bindings/v8/ScriptController.h:
      (ScriptController):
      (WebCore::ScriptController::setIsolatedWorldSecurityOrigin):
      * bindings/v8/V8DOMWindowShell.cpp:
      (WebCore::V8DOMWindowShell::initializeIfNeeded):
      * bindings/v8/V8DOMWindowShell.h:
      (V8DOMWindowShell):
      * bindings/v8/custom/V8XMLHttpRequestConstructor.cpp:
      (WebCore::V8XMLHttpRequest::constructorCallback):
      
      Tools:
      
      Added ability to unset isolatedWorldSecurityOrigin.
      
      * DumpRenderTree/chromium/DRTTestRunner.cpp:
      (DRTTestRunner::setIsolatedWorldSecurityOrigin):
      
      LayoutTests:
      
      Clean up of isolated worlds added after test completion.
      
      * http/tests/security/isolatedWorld/cross-origin-xhr.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc12146a
    • commit-queue@webkit.org's avatar
      [Mac] Uninitialized Members in WebDataSourcePrivate · 8d0f6982
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99617
      
      Patch by Joseph Pecoraro <pecoraro@apple.com> on 2012-10-17
      Reviewed by David Kilzer.
      
      Initialize BOOL member variables.
      
      * WebView/WebDataSource.mm:
      (WebDataSourcePrivate::WebDataSourcePrivate):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8d0f6982
    • joepeck@webkit.org's avatar
      Unreviewed watchlist addition. · 51371006
      joepeck@webkit.org authored
      * Scripts/webkitpy/common/config/watchlist:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      51371006
    • simon.fraser@apple.com's avatar
      GraphicsLayer visible rect computation needs to use the current animating transform · 5cabb329
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99529
      
      Reviewed by Dean Jackson.
      
      Source/WebCore:
      
      If we're running an accelerated animation of transform
      on a GraphicsLayerCA, the current value of the transform won't
      be reflected in the GraphicsLayer's m_transform. However,
      we need the current value of the transform in order to correctly
      compute the visible rect of this layer and descendants.
      
      Add a function to GraphicsLayerClient to retrieve the current
      value of the transform from the client.
      
      RenderLayer's currentTransform() used to return a transform
      with transform-origin baked in; GraphicsLayerClient needs one
      that excludes transform-origin, so enhance RenderLayer::currentTransform()
      to be able to produce either.
      
      Tests: compositing/visible-rect/animated-from-none.html
             compositing/visible-rect/animated.html
      
      * platform/graphics/GraphicsLayerClient.h:
      (WebCore):
      (GraphicsLayerClient):
      (WebCore::GraphicsLayerClient::getCurrentTransform):
      * platform/graphics/ca/GraphicsLayerCA.cpp:
      (WebCore::GraphicsLayerCA::computeVisibleRect):
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::currentTransform):
      * rendering/RenderLayer.h:
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::currentTransform):
      * rendering/RenderLayerBacking.h:
      (RenderLayerBacking):
      
      LayoutTests:
      
      Tests that exercise visible-rect computation on an animating layer.
      
      * compositing/visible-rect/animated-expected.txt: Added.
      * compositing/visible-rect/animated-from-none-expected.txt: Added.
      * compositing/visible-rect/animated-from-none.html: Added.
      * compositing/visible-rect/animated.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5cabb329
    • commit-queue@webkit.org's avatar
      plugins: Allow a plugin to dictate whether it can receive drag events or not. · ed2e01ec
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99355
      
      Patch by Sadrul Habib Chowdhury <sadrul@chromium.org> on 2012-10-17
      Reviewed by Tony Chang.
      
      Source/WebCore:
      
      When doing a drag over a plugin, ask the plugin whether it can accept
      drag/drop to decide whether drag/drop is possible or not. At present,
      plugins do not receive drag events through WebCore (i.e. various
      implementations of PluginView::handleMouseEvent ignores the
      drop-events). This change makes it possible for the ports to ask the
      plugin first to decide whether it can (or wants to) accept drag events.
      The default implementation remains the same, i.e. plugins do not receive
      drag events. For chromium, the overridden implementation uses the
      WebPlugin interface to check whether the plugin can accept drag events.
      
      * html/HTMLPlugInElement.cpp:
      (WebCore::HTMLPlugInElement::canProcessDrag):
      (WebCore):
      * html/HTMLPlugInElement.h:
      (WebCore):
      (HTMLPlugInElement):
      * page/DragController.cpp:
      (WebCore::DragController::canProcessDrag):
      * plugins/PluginViewBase.h:
      (WebCore):
      (WebCore::PluginViewBase::canProcessDrag):
      
      Source/WebKit/chromium:
      
      Introduce WebPlugin::canProcessDrag() and use that to implement PluginViewBase::canProcessDrag.
      
      * public/WebPlugin.h:
      (WebKit::WebPlugin::canProcessDrag):
      (WebPlugin):
      * src/WebPluginContainerImpl.cpp:
      (WebKit::WebPluginContainerImpl::canProcessDrag):
      (WebKit):
      (WebKit::WebPluginContainerImpl::handleMouseEvent):
      * src/WebPluginContainerImpl.h:
      (WebPluginContainerImpl):
      
      Tools:
      
      Update the TestWebPlugin to implement the new |canProcessDrag| interface.
      
      * DumpRenderTree/chromium/TestWebPlugin.h:
      (TestWebPlugin::canProcessDrag):
      
      LayoutTests:
      
      Update test to not set contentEditable on the plugin anymore.
      
      * platform/chromium/plugins/drag-events-expected.txt:
      * platform/chromium/plugins/drag-events.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ed2e01ec
    • dmazzoni@google.com's avatar
      Unreviewed. Create an accessibility watchlist. · d18e7d0b
      dmazzoni@google.com authored
      * Scripts/webkitpy/common/config/committers.py:
      * Scripts/webkitpy/common/config/watchlist:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d18e7d0b
    • andersca@apple.com's avatar
      Always use fastRealloc when growing or shrinking the Vector buffer · 6e61af6f
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99616
      
      Reviewed by Andreas Kling.
      
      Remove the pointless #if PLATFORM(BLACKBERRY) and always try to use fastRealloc to grow or shrink the
      vector buffer when possible; realloc should always be at least as fast as free+malloc.
      
      * wtf/Vector.h:
      (WTF::VectorBufferBase::shouldReallocateBuffer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6e61af6f
    • mifenton@rim.com's avatar
      [BlackBerry] Prevent focus zoom on non-userscalable pages. · 159c476e
      mifenton@rim.com authored
      https://bugs.webkit.org/show_bug.cgi?id=99608
      
      Reviewed by Rob Buis.
      
      PR 222378.
      
      Disable focus zoom when the page is non-user scalable.
      
      Reviewed Internally by Nima Ghanavatian.
      
      * WebKitSupport/InputHandler.cpp:
      (BlackBerry::WebKit::InputHandler::ensureFocusTextElementVisible):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      159c476e
    • jianli@chromium.org's avatar
      [chromium] Remove legacy members from WebDraggableRegion · 775e75a8
      jianli@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99612
      
      Reviewed by Adam Barth.
      
      Those legacy members to support old syntax are not longer needed after
      chromium side changes landed.
      
      * public/WebDraggableRegion.h:
      (WebDraggableRegion):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      775e75a8
    • kling@webkit.org's avatar
      Shrink EventTargetData by making firingEventListeners vector optional. · 9f752033
      kling@webkit.org authored
      <http://webkit.org/b/99532>
      <rdar://problem/12515099>
      
      Reviewed by Anders Carlsson.
      
      The majority of event listeners never actually fire, and EventTargetData::firingEventListeners
      is just sitting there taking up space. Make it an OwnPtr instead, shrinking EventTargetData
      by 48 bytes and progressing Membuster3 by 395kB.
      
      * dom/EventTarget.cpp:
      (WebCore::EventTarget::removeEventListener):
      (WebCore::EventTarget::fireEventListeners):
      (WebCore::EventTarget::removeAllEventListeners):
      * dom/EventTarget.h:
      (WebCore::EventTarget::isFiringEventListeners):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f752033
    • mhahnenberg@apple.com's avatar
      Block freeing thread should sleep indefinitely when there's no work to do · 3ea87598
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=98084
      
      Reviewed by Geoffrey Garen.
      
      r130212 didn't fully fix the problem.
      
      * heap/BlockAllocator.cpp:
      (JSC::BlockAllocator::blockFreeingThreadMain): We would just continue to the next iteration if
      we found that we had zero blocks to copy. We should move the indefinite wait up to where that
      check is done so that we properly detect the "no more blocks to copy, wait for more" condition.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ea87598
    • commit-queue@webkit.org's avatar
      xss-DENIED-xsl-document-securityOrigin.xml crashes with icon assertion · 24e4717c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99571
      
      Patch by Christophe Dumez <christophe.dumez@intel.com> on 2012-10-17
      Reviewed by Kenneth Rohde Christiansen.
      
      Source/WebCore:
      
      Check that the iconURL is not empty in IconController::continueLoadWithDecision()
      to avoid hitting assertions later when trying to commit this empty URL to the
      database. IconController::url() may indeed return an empty URL but there was
      no check for it.
      
      No new tests, already covered by http/tests/security/xss-DENIED-xsl-document-securityOrigin.xml.
      
      * loader/icon/IconController.cpp:
      (WebCore::IconController::continueLoadWithDecision):
      
      LayoutTests:
      
      Unskip http/tests/security/xss-DENIED-xsl-document-securityOrigin.xml
      for EFL WebKit2 now that it no longer hits an assertion in
      IconDatabase.
      
      * platform/efl-wk2/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      24e4717c
    • commit-queue@webkit.org's avatar
      Fix build warnings : -Wunused-parameter, -Wunused-variable · 83d68c0c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99539
      
      Patch by Byungwoo Lee <bw80.lee@samsung.com> on 2012-10-17
      Reviewed by Kentaro Hara.
      
      Fix build warnings about unused parameter or unused variable when
      WTF_USE_TILED_BACKING_STORE option is enabled.
      
      Source/WebCore:
      
      * html/shadow/HTMLContentElement.cpp:
      (WebCore::contentTagName):
      * platform/graphics/efl/GraphicsContext3DEfl.cpp:
      (WebCore::GraphicsContext3D::getImageData):
      * platform/graphics/efl/GraphicsContext3DPrivate.cpp:
      (WebCore::GraphicsContext3DPrivate::createSurface):
      (WebCore::GraphicsContext3DPrivate::paintToTextureMapper):
      * platform/graphics/opengl/Extensions3DOpenGL.cpp:
      (WebCore::Extensions3DOpenGL::bindVertexArrayOES):
      * platform/graphics/texmap/TextureMapper.h:
      (WebCore::BitmapTexture::canReuseWith):
      (WebCore::TextureMapper::beginPainting):
      * platform/graphics/texmap/TextureMapperGL.cpp:
      (WebCore::TextureMapperGL::drawRepaintCounter):
      * platform/graphics/texmap/TextureMapperImageBuffer.cpp:
      (WebCore::BitmapTextureImageBuffer::updateContents):
      * platform/graphics/texmap/TextureMapperImageBuffer.h:
      * platform/graphics/texmap/TextureMapperLayer.cpp:
      (WebCore::TextureMapperLayer::sortByZOrder):
      (WebCore::TextureMapperLayer::flushCompositingStateSelf):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::allowsIndependentlyCompositedFrames):
      
      Source/WebKit/efl:
      
      * WebCoreSupport/ChromeClientEfl.cpp:
      (WebCore::ChromeClientEfl::attachRootGraphicsLayer):
      (WebCore::ChromeClientEfl::delegatedScrollRequested):
      
      Source/WebKit2:
      
      * UIProcess/CoordinatedGraphics/CoordinatedBackingStore.cpp:
      (WebKit::CoordinatedBackingStore::paintToTextureMapper):
      * UIProcess/CoordinatedGraphics/LayerTreeRenderer.cpp:
      (WebKit::LayerTreeRenderer::createLayer):
      * UIProcess/DrawingAreaProxy.cpp:
      (WebKit::DrawingAreaProxy::didReceiveLayerTreeCoordinatorProxyMessage):
      * UIProcess/DrawingAreaProxy.h:
      (WebKit::DrawingAreaProxy::setVisibleContentsRect):
      (WebKit::DrawingAreaProxy::createTileForLayer):
      (WebKit::DrawingAreaProxy::updateTileForLayer):
      (WebKit::DrawingAreaProxy::removeTileForLayer):
      (WebKit::DrawingAreaProxy::update):
      (WebKit::DrawingAreaProxy::didUpdateBackingStoreState):
      (WebKit::DrawingAreaProxy::enterAcceleratedCompositingMode):
      (WebKit::DrawingAreaProxy::exitAcceleratedCompositingMode):
      (WebKit::DrawingAreaProxy::updateAcceleratedCompositingMode):
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedGraphicsLayer.cpp:
      (WebCore::CoordinatedGraphicsLayer::tiledBackingStorePaintEnd):
      * WebProcess/WebPage/CoordinatedGraphics/CoordinatedTile.cpp:
      (WebKit::CoordinatedTile::paint):
      * WebProcess/WebPage/CoordinatedGraphics/LayerTreeCoordinator.cpp:
      (WebKit::LayerTreeCoordinator::scrollNonCompositedContents):
      (WebKit::LayerTreeCoordinator::notifyAnimationStarted):
      * WebProcess/WebPage/LayerTreeHost.h:
      (WebKit::LayerTreeHost::setVisibleContentsRect):
      (WebKit::LayerTreeHost::setVisibleContentsRectForLayer):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      83d68c0c
    • jsbell@chromium.org's avatar
      [Chromium] IndexedDB: Delete obsolete public API method · b6efcf6b
      jsbell@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99603
      
      Reviewed by Dimitri Glazkov.
      
      Remove a stub that was necessary while the Chromium side of webkit.org/b/99097 was landing.
      
      * public/WebIDBTransactionCallbacks.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b6efcf6b
    • shinyak@chromium.org's avatar
      Dynamically added elements do not get re-projected. · beecbf14
      shinyak@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99227
      
      Reviewed by Dimitri Glazkov.
      
      Source/WebCore:
      
      When distribution happens, we have to invalidate its host shadow's distribution, since the children of the host
      is changed.
      
      Test: fast/dom/shadow/content-reprojection-dynamic.html
      
      * html/shadow/ContentDistributor.cpp:
      (WebCore::ContentDistributor::distribute):
      
      LayoutTests:
      
      * fast/dom/shadow/content-reprojection-dynamic-expected.html: Added.
      * fast/dom/shadow/content-reprojection-dynamic.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      beecbf14
    • danakj@chromium.org's avatar
      Layout Test http/tests/workers/text-encoding.html is flaky crashing on debug bots · 3ee6d9fc
      danakj@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99604
      
      Unreviewed gardening.
      
      * platform/chromium/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ee6d9fc
    • jochen@chromium.org's avatar
      [gyp] fix bundle resources for DumpRenderTree on mac · 3ebc5987
      jochen@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99558
      
      Reviewed by Adam Barth.
      
      mac_bundle_resources doesn't propagate to targets that depend on it,
      so I'm wrapping it in an all_dependent_settings block.
      
      * DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ebc5987
    • yurys@chromium.org's avatar
      Web Inspector: no "delete watch expression" context menu item when clicking on the expression value · 43c21b78
      yurys@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99602
      
      Reviewed by Pavel Feldman.
      
      Add delete items to the watch expression's value's context menu.
      
      * inspector/front-end/ObjectPropertiesSection.js:
      (WebInspector.ObjectPropertyTreeElement.prototype._contextMenuFired):
      (WebInspector.ObjectPropertyTreeElement.prototype.populateContextMenu):
      * inspector/front-end/WatchExpressionsSidebarPane.js:
      (WebInspector.WatchExpressionTreeElement.prototype.populateContextMenu):
      (WebInspector.WatchExpressionTreeElement.prototype._contextMenu):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43c21b78
    • vsevik@chromium.org's avatar
      Unreviewed inspector test fixed and skipped on JSC. · 949b959f
      vsevik@chromium.org authored
      * inspector/debugger/live-edit-breakpoints-expected.txt:
      * inspector/debugger/live-edit-breakpoints.html:
      * platform/efl/TestExpectations:
      * platform/gtk/TestExpectations:
      * platform/mac/TestExpectations:
      * platform/qt/TestExpectations:
      * platform/win/TestExpectations:
      * platform/wincairo/TestExpectations:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      949b959f
    • commit-queue@webkit.org's avatar
      [CSS Exclusions] Additional simple polygon tests · e9144b99
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=98548
      
      Patch by Hans Muller <hmuller@adobe.com> on 2012-10-17
      Reviewed by Dirk Schulze.
      
      Added a pair of CSS Exclusions shape-inside ref-tests for regular polygons
      with 8 and 16 sides. Also made some small revisions to the supporting code,
      simple-polyon.js, and the existing simple polygon tests, and to localize and
      correct the conversion from float to layout coordinates. All of the tests
      now round/truncate the left edge of line segment intervals depending on whether
      subpixel layout is enabled.
      
      * fast/exclusions/resources/simple-polygon.js:
      (createRegularPolygonVertices):
      (polygonXIntercepts):
      (simulatePolygonShape):
      (generateSimulatedPolygonShapeInsideElement):
      (createPolygonShapeInsideTestCase):
      (createPolygonShapeInsideTestCaseExpected):
      * fast/exclusions/shape-inside/shape-inside-regular-polygon16-expected.html: Added.
      * fast/exclusions/shape-inside/shape-inside-regular-polygon16.html: Added.
      * fast/exclusions/shape-inside/shape-inside-regular-polygon8-expected.html: Added.
      * fast/exclusions/shape-inside/shape-inside-regular-polygon8.html: Added.
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-001-expected.html:
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-001.html:
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-002-expected.html:
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-002.html:
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-003-expected.html:
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-003.html:
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-004-expected.html:
      * fast/exclusions/shape-inside/shape-inside-simple-polygon-004.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9144b99
    • commit-queue@webkit.org's avatar
      Add myself to the MediaStream watchlist · 5998f3be
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99589
      
      Patch by Harald Alvestrand <hta@google.com> on 2012-10-17
      Reviewed by Adam Barth.
      
      * Scripts/webkitpy/common/config/watchlist:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5998f3be
    • carlosgc@webkit.org's avatar
      [GTK] Don't use the C API internally in WebKitDownload · b7bdb561
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96773
      
      Reviewed by Gustavo Noronha Silva.
      
      Using the C++ classes directly instead of the C API wrappers we
      avoid a lot of toImpl/toAPI casts, string conversions and
      allocations. The code is also a lot simpler and easier to read.
      
      * UIProcess/API/gtk/WebKitDownload.cpp:
      (_WebKitDownloadPrivate):
      (webkitDownloadCreate):
      (webkit_download_get_request):
      (webkit_download_cancel):
      * UIProcess/API/gtk/WebKitDownloadPrivate.h:
      * UIProcess/API/gtk/WebKitWebContext.cpp:
      (webkit_web_context_download_uri):
      (webkitWebContextGetOrCreateDownload):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b7bdb561
    • carlosgc@webkit.org's avatar
      [GTK] Don't use the C API internally in WebKitCookieManager · d084e913
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96772
      
      Reviewed by Gustavo Noronha Silva.
      
      Using the C++ classes directly instead of the C API wrappers we
      avoid a lot of toImpl/toAPI casts, string conversions and
      allocations. The code is also a lot simpler and easier to read.
      
      * UIProcess/API/gtk/WebKitCookieManager.cpp:
      (_WebKitCookieManagerPrivate):
      (webkitCookieManagerFinalize):
      (webkitCookieManagerCreate):
      (webkit_cookie_manager_set_persistent_storage):
      (webkit_cookie_manager_set_accept_policy):
      (webkit_cookie_manager_get_accept_policy):
      (webkitCookieManagerGetDomainsWithCookiesCallback):
      (webkit_cookie_manager_get_domains_with_cookies):
      (webkit_cookie_manager_delete_cookies_for_domain):
      (webkit_cookie_manager_delete_all_cookies):
      * UIProcess/API/gtk/WebKitCookieManagerPrivate.h:
      * UIProcess/API/gtk/WebKitWebContext.cpp:
      (webkit_web_context_get_cookie_manager):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d084e913
    • carlosgc@webkit.org's avatar
      [GTK] Don't use the C API internally in WebKitContextMenu · 086b246f
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96770
      
      Reviewed by Gustavo Noronha Silva.
      
      Using the C++ classes directly instead of the C API wrappers we
      avoid a lot of toImpl/toAPI casts, string conversions and
      allocations. The code is also a lot simpler and easier to read.
      
      * UIProcess/API/gtk/WebKitContextMenu.cpp:
      (webkitContextMenuCreate):
      * UIProcess/API/gtk/WebKitContextMenuItem.cpp:
      (webkitContextMenuItemCreate):
      * UIProcess/API/gtk/WebKitContextMenuItemPrivate.h:
      * UIProcess/API/gtk/WebKitContextMenuPrivate.h:
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkitWebViewPopulateContextMenu):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      086b246f
    • carlosgc@webkit.org's avatar
      [GTK] Don't use the C API internally in WebKitBackForwardList · 93c5cf65
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=96769
      
      Reviewed by Gustavo Noronha Silva.
      
      Using the C++ classes directly instead of the C API wrappers we
      avoid a lot of toImpl/toAPI casts, string conversions and
      allocations. The code is also a lot simpler and easier to read.
      
      * UIProcess/API/gtk/WebKitBackForwardList.cpp:
      (_WebKitBackForwardListPrivate):
      (webkitBackForwardListGetOrCreateItem):
      (webkitBackForwardListCreateList):
      (webkitBackForwardListCreate):
      (webkitBackForwardListChanged):
      (webkit_back_forward_list_get_current_item):
      (webkit_back_forward_list_get_back_item):
      (webkit_back_forward_list_get_forward_item):
      (webkit_back_forward_list_get_nth_item):
      (webkit_back_forward_list_get_length):
      (webkit_back_forward_list_get_back_list):
      (webkit_back_forward_list_get_back_list_with_limit):
      (webkit_back_forward_list_get_forward_list):
      (webkit_back_forward_list_get_forward_list_with_limit):
      * UIProcess/API/gtk/WebKitBackForwardListItem.cpp:
      (_WebKitBackForwardListItemPrivate):
      (webkitBackForwardListItemFinalized):
      (webkitBackForwardListItemGetOrCreate):
      (webkitBackForwardListItemGetItem):
      (webkit_back_forward_list_item_get_uri):
      (webkit_back_forward_list_item_get_title):
      (webkit_back_forward_list_item_get_original_uri):
      * UIProcess/API/gtk/WebKitBackForwardListPrivate.h:
      * UIProcess/API/gtk/WebKitLoaderClient.cpp:
      (didChangeBackForwardList):
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkitWebViewConstructed):
      (webkit_web_view_go_to_back_forward_list_item):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93c5cf65
    • vsevik@chromium.org's avatar
      Web Inspector: [Regression] Undoing script changes does not restore breakpoints. · 953f33a0
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=99598
      
      Reviewed by Pavel Feldman.
      
      Source/WebCore:
      
      workingCopyChanged now dispatches did/willMergeToVM instead of did/willDivergeFromVM
      when change returns uiSourceCode to non dirty state.
      Added wasDirty parameter to workingCopyChanged event.
      
      Test: inspector/debugger/live-edit-breakpoints.html
      
      * inspector/front-end/ResourceScriptMapping.js:
      (WebInspector.ResourceScriptFile.prototype._workingCopyCommitted):
      (WebInspector.ResourceScriptFile.prototype._workingCopyChanged):
      * inspector/front-end/UISourceCode.js:
      (WebInspector.UISourceCode.prototype.setWorkingCopy):
      
      LayoutTests:
      
      * http/tests/inspector/live-edit-test.js:
      (initialize_LiveEditTest.InspectorTest.replaceInSource):
      (initialize_LiveEditTest.InspectorTest.commitSource):
      (initialize_LiveEditTest.InspectorTest.undoSourceEditing):
      (initialize_LiveEditTest):
      * inspector/debugger/live-edit-breakpoints-expected.txt: Added.
      * inspector/debugger/live-edit-breakpoints.html: Added.
      * inspector/debugger/live-edit.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      953f33a0