1. 09 Dec, 2013 28 commits
    • fpizlo@apple.com's avatar
      CSE should work in SSA · 49079f7d
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125430
      
      Reviewed by Oliver Hunt and Mark Hahnenberg.
      
      * dfg/DFGCSEPhase.cpp:
      (JSC::DFG::CSEPhase::run):
      (JSC::DFG::CSEPhase::performNodeCSE):
      * dfg/DFGPlan.cpp:
      (JSC::DFG::Plan::compileInThreadImpl):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      49079f7d
    • akling@apple.com's avatar
      REGRESSION(r160260): Memory pressure signal causes web process to hang. · 6a401857
      akling@apple.com authored
      <https://webkit.org/b/125465>
      
      Reviewed by Tim Horton.
      
      This command caused all of my web processes to hang:
      
          notifyutil -p org.WebKit.lowMemory
      
      This only happens when the cache pruning code encounters a resource
      using purgeable memory.
      
      * loader/cache/MemoryCache.cpp:
      (WebCore::MemoryCache::pruneLiveResourcesToSize):
      
          Grab the next CachedResource pointer before continuing the loop.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6a401857
    • weinig@apple.com's avatar
      Fix the build of projects including <WebKit/WebUIDelegatePrivate.h> · edecfb93
      weinig@apple.com authored
      Rubber-stamped by Dan Bernstein.
      
      * WebView/WebAllowDenyPolicyListener.h:
      Use TARGET_OS_IPHONE rather than PLATFORM(IOS) in an exposed header.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      edecfb93
    • commit-queue@webkit.org's avatar
      Remove docs/make-bytecode-docs.pl · 2268f170
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125462
      
      This sript is very old and no longer outputs useful data since the
      op code definitions have moved from Interpreter.cpp.
      
      Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-12-09
      Reviewed by Darin Adler.
      
      * DerivedSources.make:
      * docs/make-bytecode-docs.pl: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2268f170
    • commit-queue@webkit.org's avatar
      [WinCairo] OpenGL compile error. · 6f2ed0b4
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125383
      
      Patch by peavo@outlook.com <peavo@outlook.com> on 2013-12-09
      Reviewed by Darin Adler.
      
      * platform/graphics/opengl/Extensions3DOpenGLES.h: Define GL_HALF_FLOAT_ARB on Windows when OPENGL_ES_2 is used.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160324 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f2ed0b4
    • mario.prada@samsung.com's avatar
      [ATK] Translate ATK_ROLE_SECTION into "AXSection" in DRT/WKTR · 477a556f
      mario.prada@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125456
      
      Reviewed by Chris Fleizach.
      
      Tools:
      
      Return 'AXSection' for section roles instead of 'AXDiv'.
      
      * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
      * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
      
      LayoutTests:
      
      Update expectations for GTK and EFL that were expecting AXDiv for
      section roles, so they now expect AXSection.
      
      * accessibility/adjacent-continuations-cause-assertion-failure-expected.txt:
      * accessibility/div-within-anchors-causes-crash-expected.txt:
      * platform/efl-wk1/accessibility/image-map2-expected.txt:
      * platform/efl-wk1/accessibility/transformed-element-expected.txt:
      * platform/efl-wk2/accessibility/image-map2-expected.txt:
      * platform/efl-wk2/accessibility/transformed-element-expected.txt:
      * platform/efl/accessibility/media-emits-object-replacement-expected.txt:
      * platform/gtk/accessibility/aria-roles-unignored-expected.txt:
      * platform/gtk/accessibility/aria-roles-unignored.html:
      * platform/gtk/accessibility/entry-and-password-expected.txt:
      * platform/gtk/accessibility/image-map2-expected.txt:
      * platform/gtk/accessibility/media-emits-object-replacement-expected.txt:
      * platform/gtk/accessibility/object-with-title-expected.txt:
      * platform/gtk/accessibility/object-with-title.html:
      * platform/gtk/accessibility/replaced-objects-in-anonymous-blocks-expected.txt:
      * platform/gtk/accessibility/spans-paragraphs-and-divs-expected.txt:
      * platform/gtk/accessibility/spans-paragraphs-and-divs.html:
      * platform/gtk/accessibility/transformed-element-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      477a556f
    • commit-queue@webkit.org's avatar
      Fix handling of 'inherit' and 'initial' for grid lines. · 04ecf467
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125223
      
      Patch by Peter Molnar <pmolnar.u-szeged@partner.samsung.com> on 2013-12-09
      Reviewed by Darin Adler.
      
      'initial' and 'inherit' are always allowed values for CSS properties.
      As the CSSParser handles them automatically, those 2 values were never
      taken care of in StyleResolver, leading to crashes.
      
      Source/WebCore:
      
      Added tests cases for 'inherit' and 'initial' to the following tests:
      
      fast/css-grid-layout/grid-item-column-row-get-set.html
      fast/css-grid-layout/grid-item-end-after-get-set.html
      fast/css-grid-layout/grid-item-start-before-get-set.html
      
      Patch backported from Blink: https://src.chromium.org/viewvc/blink?revision=149257&view=revision
      
      * css/StyleResolver.cpp:
      (WebCore::StyleResolver::applyProperty):
      * rendering/style/RenderStyle.h:
      * rendering/style/StyleGridItemData.cpp:
      (WebCore::StyleGridItemData::StyleGridItemData):
      
      LayoutTests:
      
      Patch backported from Blink: https://src.chromium.org/viewvc/blink?revision=149257&view=revision
      
      * fast/css-grid-layout/grid-item-column-row-get-set-expected.txt:
      * fast/css-grid-layout/grid-item-column-row-get-set.html:
      * fast/css-grid-layout/grid-item-end-after-get-set-expected.txt:
      * fast/css-grid-layout/grid-item-end-after-get-set.html:
      * fast/css-grid-layout/grid-item-start-before-get-set-expected.txt:
      * fast/css-grid-layout/grid-item-start-before-get-set.html:
      * fast/css-grid-layout/resources/grid-item-column-row-parsing-utils.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160322 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      04ecf467
    • ryuan.choi@samsung.com's avatar
      [EFL][WK2] LayoutTests are broken after r160301 · ff559a5e
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125447
      
      Reviewed by Darin Adler.
      
      r160301 moved FullScreenManagerProxyClient logic to WebViewEfl, child class
      of CoordinatedGraphics::WebView, because implementations are EFL specific.
      However, CoordinatedGraphics::WebView creates WebPageProxy in constructor and
      WebPageProxy requires FullScreenManagerProxyClient in constructor.
      So, All WK2/Efl based applications got crashed
      
      This patch adds virtual methods for FullScreenManagerProxyClient to CoordinatedGraphics::WebView
      so that WebPageProxy can get FullScreenManagerProxyClient instance without
      pure viertual methods.
      
      * UIProcess/API/C/CoordinatedGraphics/WKView.cpp:
      (WKViewExitFullScreen):
      * UIProcess/CoordinatedGraphics/WebView.cpp:
      (WebKit::WebView::fullScreenManagerProxyClient):
      (WebKit::WebView::requestExitFullScreen):
      renamed from exitFullScreen not to conflict with methods of FullScreenManagerProxyClient.
      * UIProcess/CoordinatedGraphics/WebView.h:
      * UIProcess/efl/WebViewEfl.cpp:
      * UIProcess/efl/WebViewEfl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160321 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff559a5e
    • commit-queue@webkit.org's avatar
      Web Inspector: Inspector.json and CodeGenerator tweaks · 8cde5c7f
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125321
      
      Patch by Joseph Pecoraro <pecoraro@apple.com> on 2013-12-09
      Reviewed by Timothy Hatcher.
      
      * inspector/protocol/Runtime.json:
      Runtime.js was depending on Network.FrameId. This is a layering
      violation, so ideally we can fix this later. For now, just copy
      the FrameId type into Runtime. They are strings so all is good.
      
      * inspector/CodeGeneratorInspector.py:
      (Generator.EventMethodStructTemplate.append_epilog):
      * inspector/CodeGeneratorInspectorStrings.py:
      Improve --help usage information.
      Make the script work with a single domain json file.
      Add ASCIILiteral's where appropriate.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8cde5c7f
    • commit-queue@webkit.org's avatar
      check-webkit-style should check for extra newlines at EOF · da62da0e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125424
      
      Patch by Brian J. Burg <burg@cs.washington.edu> on 2013-12-09
      Reviewed by Darin Adler.
      
      Report a style violation if extraneous newlines are added
      to the end of a C++ file. There should only be one newline at EOF.
      
      * Scripts/webkitpy/style/checkers/cpp.py:
      (check_for_missing_new_line_at_eof): Renamed from check_for_new_line_at_eof.
      (check_for_extra_new_line_at_eof): Added.
      (_process_lines): Added new check and renamed existing EOF check.
      * Scripts/webkitpy/style/checkers/cpp_unittest.py:
      (CppStyleTest.test_extra_newlines_at_eof): Added.
      (CppStyleTest.test_extra_newlines_at_eof.do_test): Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160319 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da62da0e
    • commit-queue@webkit.org's avatar
      check-webkit-style: ternary operator in macro call identified as initialization list · f60cfbae
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125443
      
      Patch by Laszlo Vidacs <lac@inf.u-szeged.hu> on 2013-12-09
      Reviewed by Ryosuke Niwa.
      
      Do not match initialization list when questionmark is placed before :
      
      * Scripts/webkitpy/style/checkers/cpp.py:
      (check_member_initialization_list):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f60cfbae
    • rniwa@webkit.org's avatar
      Add a test for style sharing if grandparents matches different rule chain and nth-last child · df92752f
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125397
      
      Reviewed by Darin Adler.
      
      Add the test from https://chromium.googlesource.com/chromium/blink/+/30ff49bf63cdec31070ab4eda8784564f56789d4
      and https://chromium.googlesource.com/chromium/blink/+/3cb1724bb52f3607006ddd0a89d356da23766115
      so that we may not introduce the same regressions in WebKit.
      
      * fast/css/nth-last-child-recalc-expected.html: Added.
      * fast/css/nth-last-child-recalc.html: Added.
      * fast/css/style-sharing-grand-parent-invalidate-expected.txt: Added.
      * fast/css/style-sharing-grand-parent-invalidate.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      df92752f
    • jdiggs@igalia.com's avatar
      AX: [ATK] Convert the get_{string,text}_at_offset atktest.c unit tests to layout tests · 01279e99
      jdiggs@igalia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125451
      
      Reviewed by Mario Sanchez Prada.
      
      Source/WebKit/gtk:
      
      * tests/testatk.c: Remove the tests which now exist as layout tests. Note that the
      tests for atk_text_get_text_{before,after}_offset were removed without equivalents
      added to the layout tests. The same is true for the END AtkTextBoundary types. Both
      have been deprecated in ATK and are not being used by AT-SPI2 assistive technologies.
      (testGetTextFunction):
      (main):
      
      Tools:
      
      Create the needed callbacks for DRT and WKTR.
      
      * DumpRenderTree/AccessibilityUIElement.cpp:
      (characterAtOffsetCallback): added
      (wordAtOffsetCallback): added
      (lineAtOffsetCallback): added
      (sentenceAtOffsetCallback): added
      (AccessibilityUIElement::getJSClass):
      * DumpRenderTree/AccessibilityUIElement.h:
      * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
      (stringAtOffset): added
      (AccessibilityUIElement::characterAtOffset): added
      (AccessibilityUIElement::wordAtOffset): added
      (AccessibilityUIElement::lineAtOffset): added
      (AccessibilityUIElement::sentenceAtOffset): added
      * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.cpp:
      (WTR::AccessibilityUIElement::characterAtOffset): added
      (WTR::AccessibilityUIElement::wordAtOffset): added
      (WTR::AccessibilityUIElement::lineAtOffset): added
      (WTR::AccessibilityUIElement::sentenceAtOffset): added
      * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h:
      * WebKitTestRunner/InjectedBundle/Bindings/AccessibilityUIElement.idl:
      * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
      (WTR::stringAtOffset): added
      (WTR::AccessibilityUIElement::characterAtOffset): added
      (WTR::AccessibilityUIElement::wordAtOffset): added
      (WTR::AccessibilityUIElement::lineAtOffset): added
      (WTR::AccessibilityUIElement::sentenceAtOffset): added
      
      LayoutTests:
      
      New tests and expectations based on the tests and expectations found in atktest.c.
      These were done as platform-specific tests because only ATK-based assistive technologies
      seem to have any need for this support.
      
      * platform/gtk/accessibility/text-at-offset-embedded-objects-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-embedded-objects.html: Added.
      * platform/gtk/accessibility/text-at-offset-newlines-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-newlines.html: Added.
      * platform/gtk/accessibility/text-at-offset-preformatted-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-preformatted.html: Added.
      * platform/gtk/accessibility/text-at-offset-simple-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-simple.html: Added.
      * platform/gtk/accessibility/text-at-offset-special-chars-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-special-chars.html: Added.
      * platform/gtk/accessibility/text-at-offset-textarea-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-textarea.html: Added.
      * platform/gtk/accessibility/text-at-offset-textinput-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-textinput.html: Added.
      * platform/gtk/accessibility/text-at-offset-wrapped-lines-expected.txt: Added.
      * platform/gtk/accessibility/text-at-offset-wrapped-lines.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160316 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      01279e99
    • commit-queue@webkit.org's avatar
      Fix sh4 LLINT build. · 9e799621
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125454
      
      Patch by Julien Brianceau <jbriance@cisco.com> on 2013-12-09
      Reviewed by Michael Saboff.
      
      In LLINT, sh4 backend implementation didn't handle properly conditional jumps using
      a LabelReference instance. This patch fixes it through sh4LowerMisplacedLabels phase.
      Also, to avoid the need of a 4th temporary gpr, this phase is triggered later in
      getModifiedListSH4.
      
      * offlineasm/sh4.rb:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160315 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e799621
    • commit-queue@webkit.org's avatar
      [Nix] Fix file name typo in PlatformNix.cmake · 0eddb455
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125457
      
      Patch by Nick Diego Yamane <nick.yamane@openbossa.org> on 2013-12-09
      Reviewed by Gustavo Noronha Silva.
      
      Wrong file name introduced in http://trac.webkit.org/changeset/160310.
      * PlatformNix.cmake:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160314 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0eddb455
    • m.pakula@samsung.com's avatar
      Unreviewed EFL gardening · 075ef665
      m.pakula@samsung.com authored
      Add failure test expectations and rebaselines for failing tests.
      
      * platform/efl-wk2/TestExpectations:
      * platform/efl/TestExpectations:
      * platform/efl-wk1/fast/forms/validation-message-appearance-expected.png: Rebaseline after r159915.
      * platform/efl-wk2/fast/forms/validation-message-appearance-expected.png: Ditto.
      * platform/efl/fast/forms/validation-message-appearance-expected.txt: Ditto.
      * platform/efl/fast/parser/entity-comment-in-textarea-expected.png: Rebaseline after r159192.
      * platform/efl/fast/parser/entity-comment-in-textarea-expected.txt: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160313 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      075ef665
    • commit-queue@webkit.org's avatar
      [GStreamer] Memory leak due to incorrect use of gst_tag_list_merge in TextCombinerGStreamer · 5896f368
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125452
      
      Patch by Brendan Long <b.long@cablelabs.com> on 2013-12-09
      Reviewed by Philippe Normand.
      
      No new tests because this fixes a memory leak.
      
      * platform/graphics/gstreamer/TextCombinerGStreamer.cpp:
      (webkitTextCombinerPadEvent): Use gst_tag_list_insert instead of gst_tag_list_merge, since we don't want to create a new list.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5896f368
    • cfleizach@apple.com's avatar
      AX: WebKit ignores @alt on IMG elements with role="text" · e1a8ccb6
      cfleizach@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125363
      
      Reviewed by Mario Sanchez Prada.
      
      Source/WebCore:
      
      If an <img> element has a different role, the alt attribute should still be used in the
      name calculation if present.
      
      Test: accessibility/alt-tag-on-image-with-nonimage-role.html
      
      * accessibility/AccessibilityNodeObject.cpp:
      (WebCore::AccessibilityNodeObject::usesAltTagForTextComputation):
      (WebCore::AccessibilityNodeObject::alternativeText):
      (WebCore::AccessibilityNodeObject::accessibilityDescription):
      (WebCore::AccessibilityNodeObject::text):
      * accessibility/AccessibilityNodeObject.h:
      
      LayoutTests:
      
      * accessibility/alt-tag-on-image-with-nonimage-role-expected.txt: Added.
      * accessibility/alt-tag-on-image-with-nonimage-role.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160311 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e1a8ccb6
    • mrobinson@webkit.org's avatar
      [WK2][Soup] Use didReceiveBuffer instead of didReceiveData · 13897756
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=118598
      
      Reviewed by Gustavo Noronha Silva.
      
      Original patch by Kwang Yul Seo  <skyul@company100.net> and Csaba Osztrogonác  <ossy@webkit.org>.
      
      Switch from using didReceiveData to didReceiveBuffer for the Soup backend and
      let SharedBuffer wrap a SoupBuffer. This is necessary because the NetworkProcess
      only supports getting data via SharedBuffer.
      
      Source/WebCore:
      
      * GNUmakefile.list.am: Add the new SharedBufferSoup.cpp file to the list.
      * PlatformEfl.cmake:
      * PlatformGTK.cmake:
      * PlatformNix.cmake:
      * platform/SharedBuffer.cpp: We no longer used the no-op version of the platformFoo methods.
      * platform/SharedBuffer.h: Ditto.
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:  Use didReceiveBuffer instead of didReceiveData.
      * platform/network/ResourceHandleInternal.h: Have only a m_soupBuffer member instead of three to manage the buffer.
      * platform/network/soup/GOwnPtrSoup.cpp: Add support for SoupBuffer.
      * platform/network/soup/GOwnPtrSoup.h: Ditto.
      * platform/network/soup/ResourceHandleSoup.cpp:
      (WebCore::WebCoreSynchronousLoader::didReceiveData): ASSERT_NOT_REACHED here, since it should never be
      called now.
      (WebCore::WebCoreSynchronousLoader::didReceiveBuffer): Handle this call properly.
      (WebCore::ResourceHandle::ensureReadBuffer): Now we package up our buffer into a SoupBuffer.
      (WebCore::redirectSkipCallback): Use the new m_soupBuffer member.
      (WebCore::cleanupSoupRequestOperation): Ditto.
      (WebCore::nextMultipartResponsePartCallback): Ditto.
      (WebCore::sendRequestCallback): Ditto.
      (WebCore::readCallback):
      * platform/soup/SharedBufferSoup.cpp: Added.
      
      Source/WebKit/gtk:
      
      * webkit/webkitdownload.cpp:
      (DownloadClient::didReceiveData): Replace with ASSERT_NOT_REACHED.
      (DownloadClient::didReceiveBuffer): Use this to process incoming data.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160310 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      13897756
    • commit-queue@webkit.org's avatar
      Source/WebCore: DataCloneError exception is not thrown when postMessage's... · a776731d
      commit-queue@webkit.org authored
      Source/WebCore: DataCloneError exception is not thrown when postMessage's second parameter is the source
      port or the target port.
      
      https://bugs.webkit.org/show_bug.cgi?id=124708
      
      Patch by Michal Poteralski <m.poteralski@samsung.com> on 2013-12-09
      Reviewed by Alexey Proskuryakov.
      
      According to specification:
      http://www.whatwg.org/specs/web-apps/current-work/multipage/web-messaging.html#dom-window-postmessage
      
      If the method was invoked with a second argument transfer then if any of the objects in the
      transfer are either the source port or the target port (if any), then a DataCloneError
      exception should be thrown. Currently an InvalidStateError exception is thrown what is an
      incorrect behaviour.
      
      The proposed solution is change to the correct the exception value.
      
      Tests: fast/dom/Window/postMessage-clone-port-error.html
      
      * dom/MessagePort.cpp:
      (WebCore::MessagePort::postMessage): Improve exception value
      
      LayoutTests: DataCloneError exception is not thrown when postMessage's second parameter
      is the source port or the target port.
      
      https://bugs.webkit.org/show_bug.cgi?id=124708
      
      Patch by Michal Poteralski <m.poteralski@samsung.com> on 2013-12-09
      Reviewed by Alexey Proskuryakov.
      
      Added layout test to check correctness of value thrown by postMessage:
      
      * fast/dom/Window/postMessage-clone-port-error-expected.txt: Added.
      * fast/dom/Window/postMessage-clone-port-error.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a776731d
    • svillar@igalia.com's avatar
      [WK2] Add UNIX_DOMAIN_SOCKETS specific bits for supporting NetworkProcess · e78749f6
      svillar@igalia.com authored
      https://bugs.webkit.org/show_bug.cgi?id=110093
      
      Reviewed by Martin Robinson.
      
      Original patch by Balazs Kelemen <kbalazs@webkit.org>.
      
      Adds the UNIX specific bits to support connections to the
      NetworkProcess. Since the process of creating the pair of sockets
      is exactly the same as in the PluginProcess, I've decided to
      refactor it in ConnectionUnix::createPlatformConnection(). This
      can be reused later to create a cross-platform solution and remove
      all the ifdefs (see bug 110978).
      
      * NetworkProcess/NetworkProcess.cpp:
      (WebKit::NetworkProcess::createNetworkConnectionToWebProcess):
      * Platform/CoreIPC/Connection.h:
      * Platform/CoreIPC/unix/ConnectionUnix.cpp:
      (CoreIPC::Connection::createPlatformConnection):
      * PluginProcess/PluginProcess.cpp:
      (WebKit::PluginProcess::createWebProcessConnection):
      * UIProcess/Network/NetworkProcessProxy.cpp:
      (WebKit::NetworkProcessProxy::networkProcessCrashedOrFailedToLaunch):
      (WebKit::NetworkProcessProxy::didCreateNetworkConnectionToWebProcess):
      * WebProcess/WebProcess.cpp:
      (WebKit::WebProcess::ensureNetworkProcessConnection):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e78749f6
    • kseo@webkit.org's avatar
      [WK2][Soup] Support cache model in NetworkProcess · 7920f1c3
      kseo@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=118343
      
      Reviewed by Carlos Garcia Campos.
      
      Original patch by Kwang Yul Seo <skyul@company100.net> and Csaba Osztrogonác <ossy@webkit.org>.
      
      Copied cache model code from WebProcess.
      NetworkProcess is configured not to use the WebCore memory cache.
      
      * NetworkProcess/soup/NetworkProcessSoup.cpp:
      (WebKit::getCacheDiskFreeSize):
      (WebKit::getMemorySize):
      (WebKit::NetworkProcess::platformInitializeNetworkProcess):
      Initialize soup cache.
      (WebKit::NetworkProcess::platformSetCacheModel):
      Copied code from WebProcess::platformSetCacheModel but removed
      WebCore memory cache initialization because NetworkProcess does not use
      the WebCore memory cache.
      (WebKit::NetworkProcess::clearCacheForAllOrigins):
      Copied code from WebProcess::clearCacheForAllOrigins.
      * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
      Copied initialization code from WebProcessMainGtk.cpp.
      (WebKit::NetworkProcessMain):
      * WebProcess/soup/WebProcessSoup.cpp:
      (WebKit::WebProcess::platformSetCacheModel):
      Don't set the disk cache if NetworkProcess is used.
      (WebKit::WebProcess::platformClearResourceCaches):
      Don't clear the non-existing disk cache. (if NetworkProcess is used)
      (WebKit::WebProcess::platformInitializeWebProcess):
      Don't initialize the disk cache if NetworkProcess is used.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7920f1c3
    • carlosgc@webkit.org's avatar
      Unreviewed. Fix the GTK+ build with NetworkProcess enabled. · 4620d039
      carlosgc@webkit.org authored
      * GNUmakefile.list.am: Add missing file to compilation.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160306 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4620d039
    • gns@gnome.org's avatar
      accessibility/press-targets-center-point.html should not depend on font layout · 34ce9670
      gns@gnome.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125387
      
      Reviewed by Chris Fleizach.
      
      * accessibility/press-targets-center-point.html: use explicit sizes for heights (and width
      for vertical writing mode), so that font layout does not alter the results.
      * platform/gtk/TestExpectations: remove failure expectation for accessibility/press-targets-center-point.html
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160305 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      34ce9670
    • gns@gnome.org's avatar
      [GTK] run-webkit-tests may DOS the system, specially in debug builds · 518567f2
      gns@gnome.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125436
      
      Reviewed by Martin Robinson.
      
      * GNUmakefile.am: use -no-fast-install for WebKitWebProcess and WebKitPluginProcess so
      they do not need to be relinked the first time they are executed in-tree.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      518567f2
    • zandobersek@gmail.com's avatar
      [GTK][WK2] Move WebFullScreenManagerProxyGtk logic to PageClientImpl · 0817d7bb
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125440
      
      Reviewed by Martin Robinson.
      
      Make PageClientImpl a WebFullScreenManagerProxyClient. This brings the GTK port in line
      with changes in r160296 and fixes the WK2 build for that port.
      
      * GNUmakefile.list.am:
      * UIProcess/API/gtk/PageClientImpl.cpp:
      (WebKit::PageClientImpl::fullScreenManagerProxyClient):
      (WebKit::PageClientImpl::closeFullScreenManager):
      (WebKit::PageClientImpl::isFullScreen):
      (WebKit::PageClientImpl::enterFullScreen):
      (WebKit::PageClientImpl::exitFullScreen):
      (WebKit::PageClientImpl::beganEnterFullScreen):
      (WebKit::PageClientImpl::beganExitFullScreen):
      * UIProcess/API/gtk/PageClientImpl.h:
      * UIProcess/API/gtk/WebKitWebViewBase.cpp:
      (webkitWebViewBaseCreateWebPage):
      * UIProcess/gtk/WebFullScreenManagerProxyGtk.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160303 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0817d7bb
    • commit-queue@webkit.org's avatar
      [WK2][Gtk] Add support for ENABLE_NETWORK_PROCESS to the build system · c6a81677
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=118231
      
      Patch by Brian Holt <brian.holt@samsung.com> on 2013-12-09
      Reviewed by Martin Robinson.
      
      Original patch by Kwang Yul Seo  <skyul@company100.net>.
      
      .:
      
      Disabled ENABLE_NETWORK_PROCESS by default.
      
      * Source/autotools/SetupAutomake.m4:
      * Source/autotools/SetupWebKitFeatures.m4:
      
      Source/WebKit2:
      
      Add source files to the build system and build NetworkProcess executable.
      
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * NetworkProcess/unix/NetworkProcessMainUnix.cpp:
      * UIProcess/gtk/WebContextGtk.cpp:
      (WebKit::WebContext::platformInitializeWebProcess):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160302 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c6a81677
    • ryuan.choi@samsung.com's avatar
      [EFL][WK2] Move FullScreenManager logic to WebViewEfl · ce0d3670
      ryuan.choi@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125438
      
      Reviewed by Gyuyoung Kim.
      
      This patch fixed build break on EFL port Since r160296.
      
      * PlatformEfl.cmake: Removed WebFullScreenManagerProxyEfl.cpp.
      * UIProcess/WebFullScreenManagerProxy.cpp: Removed EFL specific code.
      (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
      * UIProcess/WebFullScreenManagerProxy.h: Ditto.
      * UIProcess/efl/WebFullScreenManagerProxyEfl.cpp: Removed file and moved logic to WebViewEfl.
      * UIProcess/efl/WebViewEfl.cpp:
      (WebKit::WebViewEfl::WebViewEfl):
      (WebKit::WebViewEfl::setEwkView): Removed call to setWebView().
      (WebKit::WebViewEfl::fullScreenManagerProxyClient):
      (WebKit::WebViewEfl::isFullScreen):
      (WebKit::WebViewEfl::enterFullScreen):
      (WebKit::WebViewEfl::exitFullScreen):
      * UIProcess/efl/WebViewEfl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160301 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce0d3670
  2. 08 Dec, 2013 12 commits
    • weinig@apple.com's avatar
      Remove WebContext::sharedProcessContext() · 735b24e6
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125437
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/ios/WKGeolocationProviderIOS.mm:
      * UIProcess/WebContext.cpp:
      * UIProcess/WebContext.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160300 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      735b24e6
    • rniwa@webkit.org's avatar
      getComputedStyle border-radius shorthand omits vertical radius information · 8b7200fe
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125394
      
      Reviewed by Andreas Kling.
      
      Source/WebCore:
      
      Merge https://chromium.googlesource.com/chromium/blink/+/4c2866855dddbb28bb7d978ad627acc368af23d0
      
      getComputedStyle of border-radius shows the vertical radius components if they differ from their horizontal counterpants.
      We were incorrectly detecting this case and over simplifying the results of getComputedStyle.
      This patch ensures we only hide the vertical values if they are identical to the horizontal values.
      
      * css/CSSComputedStyleDeclaration.cpp:
      (WebCore::getBorderRadiusShorthandValue):
      
      LayoutTests:
      
      * fast/css/getComputedStyle/getComputedStyle-border-radius-shorthand-expected.txt:
      * fast/css/getComputedStyle/getComputedStyle-border-radius-shorthand.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b7200fe
    • weinig@apple.com's avatar
      32-bit MiniBrowser doesn't build · 6a27a26a
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125420
      
      Reviewed by Dan Bernstein.
      
      * MiniBrowser/mac/AppDelegate.h:
      * MiniBrowser/mac/AppDelegate.m:
      (-[BrowserAppDelegate init]):
      (-[BrowserAppDelegate applicationWillTerminate:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160298 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6a27a26a
    • weinig@apple.com's avatar
      Fix the iOS build. · cccc13e3
      weinig@apple.com authored
      * UIProcess/API/ios/PageClientImplIOS.h:
      * UIProcess/API/ios/PageClientImplIOS.mm:
      * UIProcess/ios/WebFullScreenManagerProxyIOS.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cccc13e3
    • weinig@apple.com's avatar
      [Cocoa] Remove knowledge of the WKView from the WebFullScreenManagerProxy by adding a proper client · 93360c27
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125427
      
      Reviewed by Dan Bernstein.
      
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::fullScreenManagerProxyClient):
      (WebKit::PageClientImpl::closeFullScreenManager):
      (WebKit::PageClientImpl::isFullScreen):
      (WebKit::PageClientImpl::enterFullScreen):
      (WebKit::PageClientImpl::exitFullScreen):
      (WebKit::PageClientImpl::beganEnterFullScreen):
      (WebKit::PageClientImpl::beganExitFullScreen):
      Implement the new client.
      
      * UIProcess/API/mac/WKView.mm:
      Remove call to setWebView() and do some cleanup.
      
      * UIProcess/API/mac/WKViewInternal.h:
      Convert to property syntax and re-arrange.
      
      * UIProcess/PageClient.h:
      Expose access to the new client.
      
      * UIProcess/WebFullScreenManagerProxy.cpp:
      (WebKit::WebFullScreenManagerProxy::create):
      (WebKit::WebFullScreenManagerProxy::WebFullScreenManagerProxy):
      (WebKit::WebFullScreenManagerProxy::invalidate):
      (WebKit::WebFullScreenManagerProxy::close):
      (WebKit::WebFullScreenManagerProxy::isFullScreen):
      (WebKit::WebFullScreenManagerProxy::enterFullScreen):
      (WebKit::WebFullScreenManagerProxy::exitFullScreen):
      (WebKit::WebFullScreenManagerProxy::beganEnterFullScreen):
      (WebKit::WebFullScreenManagerProxy::beganExitFullScreen):
      * UIProcess/WebFullScreenManagerProxy.h:
      Use the new client.
      
      * UIProcess/WebPageProxy.cpp:
      Pass the new client.
      
      * UIProcess/mac/WebFullScreenManagerProxyMac.mm:
      Removed. Now goes through the client.
      
      * WebKit2.xcodeproj/project.pbxproj:
      Remove WebFullScreenManagerProxyMac.mm.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      93360c27
    • fpizlo@apple.com's avatar
      Add the notion of ConstantStoragePointer to DFG IR · 9ca951e8
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125395
      
      Reviewed by Oliver Hunt.
              
      This pushes more typed array folding into StrengthReductionPhase, and enables CSE on
      storage pointers. Previously, you might have separate nodes for the same storage
      pointer and this would cause some bad register pressure in the DFG. Note that this
      was really a theoretical problem and not, to my knowledge a practical one - so this
      patch is basically just a clean-up.
      
      * dfg/DFGAbstractInterpreterInlines.h:
      (JSC::DFG::::executeEffects):
      * dfg/DFGCSEPhase.cpp:
      (JSC::DFG::CSEPhase::constantStoragePointerCSE):
      (JSC::DFG::CSEPhase::performNodeCSE):
      * dfg/DFGClobberize.h:
      (JSC::DFG::clobberize):
      * dfg/DFGFixupPhase.cpp:
      (JSC::DFG::FixupPhase::fixupNode):
      * dfg/DFGGraph.cpp:
      (JSC::DFG::Graph::dump):
      * dfg/DFGNode.h:
      (JSC::DFG::Node::convertToConstantStoragePointer):
      (JSC::DFG::Node::hasStoragePointer):
      (JSC::DFG::Node::storagePointer):
      * dfg/DFGNodeType.h:
      * dfg/DFGPredictionPropagationPhase.cpp:
      (JSC::DFG::PredictionPropagationPhase::propagate):
      * dfg/DFGSafeToExecute.h:
      (JSC::DFG::safeToExecute):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::compileConstantStoragePointer):
      (JSC::DFG::SpeculativeJIT::compileGetIndexedPropertyStorage):
      * dfg/DFGSpeculativeJIT.h:
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGStrengthReductionPhase.cpp:
      (JSC::DFG::StrengthReductionPhase::handleNode):
      (JSC::DFG::StrengthReductionPhase::foldTypedArrayPropertyToConstant):
      (JSC::DFG::StrengthReductionPhase::prepareToFoldTypedArray):
      * dfg/DFGWatchpointCollectionPhase.cpp:
      (JSC::DFG::WatchpointCollectionPhase::handle):
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileNode):
      (JSC::FTL::LowerDFGToLLVM::compileConstantStoragePointer):
      (JSC::FTL::LowerDFGToLLVM::compileGetIndexedPropertyStorage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160295 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9ca951e8
    • fpizlo@apple.com's avatar
      FTL should support UntypedUse versions of Compare nodes · 929434af
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125426
      
      Reviewed by Oliver Hunt.
              
      This adds UntypedUse versions of all comparisons except CompareStrictEq, which is
      sufficiently different that I thought I'd do it in another patch.
              
      This also extends our ability to abstract over comparison kind and removes a bunch of
      copy-paste code.
      
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::nonSpeculativeNonPeepholeCompare):
      * ftl/FTLCapabilities.cpp:
      (JSC::FTL::canCompile):
      * ftl/FTLIntrinsicRepository.h:
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileCompareEq):
      (JSC::FTL::LowerDFGToLLVM::compileCompareLess):
      (JSC::FTL::LowerDFGToLLVM::compileCompareLessEq):
      (JSC::FTL::LowerDFGToLLVM::compileCompareGreater):
      (JSC::FTL::LowerDFGToLLVM::compileCompareGreaterEq):
      (JSC::FTL::LowerDFGToLLVM::compare):
      (JSC::FTL::LowerDFGToLLVM::nonSpeculativeCompare):
      * ftl/FTLOutput.h:
      (JSC::FTL::Output::icmp):
      (JSC::FTL::Output::equal):
      (JSC::FTL::Output::notEqual):
      (JSC::FTL::Output::above):
      (JSC::FTL::Output::aboveOrEqual):
      (JSC::FTL::Output::below):
      (JSC::FTL::Output::belowOrEqual):
      (JSC::FTL::Output::greaterThan):
      (JSC::FTL::Output::greaterThanOrEqual):
      (JSC::FTL::Output::lessThan):
      (JSC::FTL::Output::lessThanOrEqual):
      (JSC::FTL::Output::fcmp):
      (JSC::FTL::Output::doubleEqual):
      (JSC::FTL::Output::doubleNotEqualOrUnordered):
      (JSC::FTL::Output::doubleLessThan):
      (JSC::FTL::Output::doubleLessThanOrEqual):
      (JSC::FTL::Output::doubleGreaterThan):
      (JSC::FTL::Output::doubleGreaterThanOrEqual):
      (JSC::FTL::Output::doubleEqualOrUnordered):
      (JSC::FTL::Output::doubleNotEqual):
      (JSC::FTL::Output::doubleLessThanOrUnordered):
      (JSC::FTL::Output::doubleLessThanOrEqualOrUnordered):
      (JSC::FTL::Output::doubleGreaterThanOrUnordered):
      (JSC::FTL::Output::doubleGreaterThanOrEqualOrUnordered):
      * tests/stress/untyped-equality.js: Added.
      (foo):
      * tests/stress/untyped-less-than.js: Added.
      (foo):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      929434af
    • commit-queue@webkit.org's avatar
      [WK2] Add ENABLE_NETWORK_PROCESS flag · 3e55f651
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125421
      
      Add support to build with the Network Process enabled.
      
      Patch by Brian Holt <brian.holt@samsung.com> on 2013-12-08
      Reviewed by Martin Robinson.
      
      * Scripts/webkitperl/FeatureList.pm:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160293 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e55f651
    • fpizlo@apple.com's avatar
      Fold typedArray.length if typedArray is constant · ce995b22
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125252
      
      Source/JavaScriptCore: 
      
      Reviewed by Sam Weinig.
              
      This was meant to be easy. The problem is that there was no good place for putting
      the folding of typedArray.length to a constant. You can't quite do it in the
      bytecode parser because at that point you don't yet know if typedArray is really
      a typed array. You can't do it as part of constant folding because the folder
      assumes that it can opportunistically forward-flow a constant value without changing
      the IR; this doesn't work since we need to first change the IR to register a
      desired watchpoint and only after that can we introduce that constant. We could have
      done it in Fixup but that would have been awkward since Fixup's code for turning a
      GetById of "length" into GetArrayLength is already somewhat complex. We could have
      done it in CSE but CSE is already fairly gnarly and will probably get rewritten.
              
      So I introduced a new phase, called StrengthReduction. This phase should have any
      transformations that don't requite CFA or CSE and that it would be weird to put into
      those other phases.
              
      I also took the opportunity to refactor some of the other folding code.
              
      This also adds a test, but the test couldn't quite be a LayoutTests/js/regress so I
      introduced the notion of JavaScriptCore/tests/stress.
              
      The goal of this patch isn't really to improve performance or anything like that.
      It adds an optimization for completeness, and in doing so it unlocks a bunch of new
      possibilities. The one that I'm most excited about is revealing array length checks
      in DFG IR, which will allow for array bounds check hoisting and elimination.
      
      * CMakeLists.txt:
      * GNUmakefile.list.am:
      * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
      * JavaScriptCore.xcodeproj/project.pbxproj:
      * dfg/DFGAbstractInterpreterInlines.h:
      (JSC::DFG::::executeEffects):
      * dfg/DFGClobberize.h:
      (JSC::DFG::clobberize):
      * dfg/DFGFixupPhase.cpp:
      (JSC::DFG::FixupPhase::fixupNode):
      * dfg/DFGGraph.cpp:
      (JSC::DFG::Graph::tryGetFoldableView):
      (JSC::DFG::Graph::tryGetFoldableViewForChild1):
      * dfg/DFGGraph.h:
      * dfg/DFGNode.h:
      (JSC::DFG::Node::hasTypedArray):
      (JSC::DFG::Node::typedArray):
      * dfg/DFGNodeType.h:
      * dfg/DFGPlan.cpp:
      (JSC::DFG::Plan::compileInThreadImpl):
      * dfg/DFGPredictionPropagationPhase.cpp:
      (JSC::DFG::PredictionPropagationPhase::propagate):
      * dfg/DFGSafeToExecute.h:
      (JSC::DFG::safeToExecute):
      * dfg/DFGSpeculativeJIT.cpp:
      (JSC::DFG::SpeculativeJIT::jumpForTypedArrayOutOfBounds):
      (JSC::DFG::SpeculativeJIT::compileConstantIndexedPropertyStorage):
      * dfg/DFGSpeculativeJIT32_64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGSpeculativeJIT64.cpp:
      (JSC::DFG::SpeculativeJIT::compile):
      * dfg/DFGStrengthReductionPhase.cpp: Added.
      (JSC::DFG::StrengthReductionPhase::StrengthReductionPhase):
      (JSC::DFG::StrengthReductionPhase::run):
      (JSC::DFG::StrengthReductionPhase::handleNode):
      (JSC::DFG::StrengthReductionPhase::foldTypedArrayPropertyToConstant):
      (JSC::DFG::performStrengthReduction):
      * dfg/DFGStrengthReductionPhase.h: Added.
      * dfg/DFGWatchpointCollectionPhase.cpp:
      (JSC::DFG::WatchpointCollectionPhase::handle):
      * ftl/FTLCapabilities.cpp:
      (JSC::FTL::canCompile):
      * ftl/FTLLowerDFGToLLVM.cpp:
      (JSC::FTL::LowerDFGToLLVM::compileNode):
      (JSC::FTL::LowerDFGToLLVM::compileGetIndexedPropertyStorage):
      (JSC::FTL::LowerDFGToLLVM::compilePutByVal):
      (JSC::FTL::LowerDFGToLLVM::typedArrayLength):
      * jsc.cpp:
      (GlobalObject::finishCreation):
      (functionTransferArrayBuffer):
      * runtime/ArrayBufferView.h:
      * tests/stress: Added.
      * tests/stress/fold-typed-array-properties.js: Added.
      (foo):
      
      Tools: 
      
      Reviewed by Sam Weinig.
              
      Add Source/JavaScriptCore/tests/stress to the set of JS tests. This is where you
      should put tests that run just like JSRegress but don't run as part of LayoutTests.
      Currently I'm using it for tests that require some surgical support from jsc.cpp.
      
      * Scripts/run-javascriptcore-tests:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160292 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce995b22
    • weinig@apple.com's avatar
      [Cocoa] Remove webProcessPlugInInitialize: from the WKWebProcessPlugIn protocol · 5398143b
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125405
      
      Reviewed by Dan Bernstein.
      
      * WebProcess/InjectedBundle/API/mac/WKWebProcessPlugIn.h:
      * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm:
      (WebKit::InjectedBundle::load):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160291 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5398143b
    • commit-queue@webkit.org's avatar
      [WK2] Guard include of SecItemShim.h with ENABLE(SEC_ITEM_SHIM) · b48afca6
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125415
      
      Patch by Brian Holt <brian.holt@samsung.com> on 2013-12-08
      Reviewed by Gustavo Noronha Silva.
      
      * NetworkProcess/NetworkProcess.cpp:
      * UIProcess/Network/NetworkProcessProxy.cpp:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160290 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b48afca6
    • carlosgc@webkit.org's avatar
      [GTK] Do not skip attributes with only custom setter · 0fea17ca
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=125417
      
      Reviewed by Gustavo Noronha Silva.
      
      For attributes with a custom setter, we now generate the code as a
      read-only attribute with a getter method, unless it also has a
      custom getter in which case the attribute is skipped.
      
      * bindings/gobject/GNUmakefile.am: Generate WebKitDOMMediaController
      that is now required by an attribute having a custom setter.
      * bindings/gobject/WebKitDOMCustom.cpp: Remove methods that are now generated.
      * bindings/gobject/WebKitDOMCustom.h: Ditto.
      * bindings/gobject/WebKitDOMCustom.symbols: Ditto.
      * bindings/gobject/webkitdom.symbols: Add new symbols.
      * bindings/scripts/CodeGeneratorGObject.pm:
      (SkipAttribute): Do not skip attributes having a custom setter.
      (GetWriteableProperties): Do not include attributes having a
      custom setter.
      (GenerateProperty): Do not return early for attributes having
      custom setter.
      (GenerateFunctions): Do not generate setter for attributes having
      a custom setter.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0fea17ca