1. 06 Jan, 2014 38 commits
    • weinig@apple.com's avatar
      [JS] Implement Promise.all() · 7817ee1e
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126510
      
      Reviewed by Gavin Barraclough.
      
      Source/JavaScriptCore: 
      
      Add Promise.all() implementation and factor out performing resolves and rejects
      on deferreds to share a bit of code. Also moves the abruptRejection helper to
      JSPromiseDeferred so it can be used in JSPromiseFunctions.
      
      * runtime/CommonIdentifiers.h:
      * runtime/JSPromiseConstructor.cpp:
      (JSC::JSPromiseConstructorFuncCast):
      (JSC::JSPromiseConstructorFuncResolve):
      (JSC::JSPromiseConstructorFuncReject):
      (JSC::JSPromiseConstructorFuncAll):
      * runtime/JSPromiseDeferred.cpp:
      (JSC::updateDeferredFromPotentialThenable):
      (JSC::performDeferredResolve):
      (JSC::performDeferredReject):
      (JSC::abruptRejection):
      * runtime/JSPromiseDeferred.h:
      * runtime/JSPromiseFunctions.cpp:
      (JSC::promiseAllCountdownFunction):
      (JSC::createPromiseAllCountdownFunction):
      * runtime/JSPromiseFunctions.h:
      * runtime/JSPromiseReaction.cpp:
      (JSC::ExecutePromiseReactionMicrotask::run):
      
      LayoutTests: 
      
      Enabled and fix the existing Promise.all() test case.
      - Promise.all() and Promise.all({}) should reject by my reading of the spec.
      Also removes the Promise.all() shim used by the crypto tests.
      
      * crypto/subtle/resources/common.js:
      * js/dom/Promise-static-all-expected.txt:
      * js/dom/Promise-static-all.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7817ee1e
    • fpizlo@apple.com's avatar
      Get rid of ENABLE(VALUE_PROFILER). It's on all the time now. · ba83364c
      fpizlo@apple.com authored
      Rubber stamped by Mark Hahnenberg.
      
      Source/JavaScriptCore: 
      
      * bytecode/CallLinkStatus.cpp:
      (JSC::CallLinkStatus::computeFor):
      * bytecode/CodeBlock.cpp:
      (JSC::CodeBlock::dumpValueProfiling):
      (JSC::CodeBlock::dumpArrayProfiling):
      (JSC::CodeBlock::dumpRareCaseProfile):
      (JSC::CodeBlock::dumpBytecode):
      (JSC::CodeBlock::CodeBlock):
      (JSC::CodeBlock::setNumParameters):
      (JSC::CodeBlock::shrinkToFit):
      (JSC::CodeBlock::shouldOptimizeNow):
      * bytecode/CodeBlock.h:
      (JSC::CodeBlock::valueProfileForBytecodeOffset):
      * bytecode/GetByIdStatus.cpp:
      (JSC::GetByIdStatus::computeForChain):
      (JSC::GetByIdStatus::computeFor):
      * bytecode/LazyOperandValueProfile.cpp:
      * bytecode/LazyOperandValueProfile.h:
      * bytecode/PutByIdStatus.cpp:
      (JSC::PutByIdStatus::computeFor):
      * bytecode/ValueProfile.h:
      * bytecompiler/BytecodeGenerator.cpp:
      (JSC::BytecodeGenerator::newArrayProfile):
      (JSC::BytecodeGenerator::newArrayAllocationProfile):
      (JSC::BytecodeGenerator::emitProfiledOpcode):
      * jit/GPRInfo.h:
      * jit/JIT.cpp:
      (JSC::JIT::JIT):
      (JSC::JIT::privateCompileSlowCases):
      (JSC::JIT::privateCompile):
      * jit/JIT.h:
      * jit/JITArithmetic.cpp:
      (JSC::JIT::compileBinaryArithOp):
      (JSC::JIT::emit_op_mul):
      (JSC::JIT::emit_op_div):
      * jit/JITArithmetic32_64.cpp:
      (JSC::JIT::emitBinaryDoubleOp):
      (JSC::JIT::emit_op_mul):
      (JSC::JIT::emitSlow_op_mul):
      (JSC::JIT::emit_op_div):
      * jit/JITCall.cpp:
      (JSC::JIT::emitPutCallResult):
      * jit/JITCall32_64.cpp:
      (JSC::JIT::emitPutCallResult):
      * jit/JITInlines.h:
      (JSC::JIT::appendCallWithExceptionCheckSetJSValueResultWithProfile):
      (JSC::JIT::emitValueProfilingSite):
      (JSC::JIT::emitArrayProfilingSiteForBytecodeIndex):
      (JSC::JIT::emitArrayProfileStoreToHoleSpecialCase):
      (JSC::JIT::emitArrayProfileOutOfBoundsSpecialCase):
      (JSC::arrayProfileSaw):
      (JSC::JIT::chooseArrayMode):
      * jit/JITOpcodes.cpp:
      (JSC::JIT::emit_op_get_argument_by_val):
      * jit/JITOpcodes32_64.cpp:
      (JSC::JIT::emit_op_get_argument_by_val):
      * jit/JITPropertyAccess.cpp:
      (JSC::JIT::emit_op_get_by_val):
      (JSC::JIT::emitSlow_op_get_by_val):
      (JSC::JIT::emit_op_get_by_id):
      (JSC::JIT::emit_op_get_from_scope):
      * jit/JITPropertyAccess32_64.cpp:
      (JSC::JIT::emit_op_get_by_val):
      (JSC::JIT::emitSlow_op_get_by_val):
      (JSC::JIT::emit_op_get_by_id):
      (JSC::JIT::emit_op_get_from_scope):
      * llint/LLIntOfflineAsmConfig.h:
      * llint/LLIntSlowPaths.cpp:
      (JSC::LLInt::LLINT_SLOW_PATH_DECL):
      * llint/LowLevelInterpreter.asm:
      * llint/LowLevelInterpreter32_64.asm:
      * llint/LowLevelInterpreter64.asm:
      * profiler/ProfilerBytecodeSequence.cpp:
      (JSC::Profiler::BytecodeSequence::BytecodeSequence):
      * runtime/CommonSlowPaths.cpp:
      
      Source/WTF: 
      
      * wtf/Platform.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ba83364c
    • ap@apple.com's avatar
      Gtk and Efl API test results confuse the dashboard · 0de5e877
      ap@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126535
      
      Reviewed by Tim Horton.
      
      Added "API tests" step as "platform api tests".
      
      * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Buildbot.js:
      (Buildbot.prototype.platformAPITestResultsURLForIteration):
      * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotIteration.js:
      (BuildbotIteration):
      (BuildbotIteration.prototype.update):
      * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/BuildbotTesterQueueView.js:
      (BuildbotTesterQueueView.prototype.update.appendBuilderQueueStatus):
      (BuildbotTesterQueueView.prototype._presentPopoverForMultipleFailureKinds):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0de5e877
    • zandobersek@gmail.com's avatar
      Remove using directives for the std namespace from WTF · 277fac66
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126524
      
      Reviewed by Alexey Proskuryakov.
      
      Remove the using directives for the std namespace throughout the WTF code.
      The more explicit std:: nested name specifier should be used instead.
      
      * wtf/MediaTime.cpp:
      (WTF::MediaTime::createWithFloat):
      (WTF::MediaTime::createWithDouble):
      * wtf/text/StringImpl.cpp:
      (WTF::StringImpl::create):
      (WTF::StringImpl::lower):
      (WTF::StringImpl::upper):
      (WTF::StringImpl::foldCase):
      (WTF::StringImpl::find):
      (WTF::StringImpl::findIgnoringCase):
      (WTF::reverseFindInner):
      (WTF::StringImpl::reverseFind):
      (WTF::reverseFindIgnoringCaseInner):
      (WTF::StringImpl::reverseFindIgnoringCase):
      (WTF::StringImpl::replace):
      (WTF::StringImpl::utf8ForCharacters):
      (WTF::StringImpl::utf8ForRange):
      * wtf/text/WTFString.cpp:
      (WTF::String::append):
      (WTF::String::appendInternal):
      (WTF::String::insert):
      (WTF::String::substringSharingImpl):
      (WTF::String::fromUTF8):
      (WTF::toIntegralType):
      * wtf/win/RunLoopWin.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      277fac66
    • timothy_horton@apple.com's avatar
      build.webkit.org/dashboard should still function if localStorage is disabled · 7632e79c
      timothy_horton@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126511
      
      Reviewed by Alexey Proskuryakov.
      
      If localStorage is disabled, we should carry on with a warning.
      
      * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Main.js:
      Don't show the gear if localStorage isn't working.
      
      * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/QueueView.js:
      (QueueView.prototype._updateHiddenState):
      Bail if localStorage isn't working.
      
      * BuildSlaveSupport/build.webkit.org-config/public_html/dashboard/Scripts/Settings.js:
      (Settings.prototype.available):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7632e79c
    • zandobersek@gmail.com's avatar
      [GTK] configure errors out when building with libc++ · ab976442
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126431
      
      Reviewed by Martin Robinson.
      
      Ease up the Clang and libstdc++ combination test to only fail if libstdc++ < 4.8.1 is actually used.
      This allows for libc++ to be used as well. The test is moved into SetupCompilerFlags.m4 and is done
      after the CXXFLAGS variable is properly set up, that is when all the C++ compiler options are determined.
      
      * Source/autotools/CheckSystemAndBasicDependencies.m4:
      * Source/autotools/SetupCompilerFlags.m4:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ab976442
    • enrica@apple.com's avatar
      Add support to retrieve the autocorrection context. · 7f1a0f04
      enrica@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126479
      
      Reviewed by Sam Weinig.
              
      We are adding the support to retrieve the input context for autocorrection
      and input methods on iOS. The implementation is provided both via synchronous
      and asynchronous calls to the WebProcess.
      
      * Platform/IPC/HandleMessage.h: Added template with zero input parameters and six reply parameters.
      * UIProcess/API/ios/WKInteractionView.mm:
      (autocorrectionData):
      (-[WKInteractionView requestAutocorrectionRectsForString:withCompletionHandler:]):
      (autocorrectionResult):
      (-[WKInteractionView applyAutocorrection:toString:withCompletionHandler:]):
      (autocorrectionContext):
      (-[WKInteractionView requestAutocorrectionContextWithCompletionHandler:]):
      (-[WKInteractionView hasMarkedText]):
      (-[WKInteractionView _startAssistingNode]):
      (+[WKAutocorrectionContext autocorrectionContextWithData:markedText:selectedText:afterText:selectedRangeInMarkedText:]):
      (-[WKAutocorrectionContext dealloc]):
      * UIProcess/AutoCorrectionCallback.h:
      (WebKit::AutocorrectionContextCallback::create):
      (WebKit::AutocorrectionContextCallback::~AutocorrectionContextCallback):
      (WebKit::AutocorrectionContextCallback::performCallbackWithReturnValue):
      (WebKit::AutocorrectionContextCallback::invalidate):
      (WebKit::AutocorrectionContextCallback::AutocorrectionContextCallback):
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::resetState):
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/ios/WebPageProxyIOS.mm:
      (WebKit::WebPageProxy::autocorrectionContextCallback):
      (WebKit::WebPageProxy::requestAutocorrectionContext):
      (WebKit::WebPageProxy::getAutocorrectionContext):
      * WebProcess/WebPage/WebPage.h:
      * WebProcess/WebPage/WebPage.messages.in:
      * WebProcess/WebPage/ios/WebPageIOS.mm:
      (WebKit::computeAutocorrectionContext):
      (WebKit::WebPage::requestAutocorrectionContext):
      (WebKit::WebPage::getAutocorrectionContext):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f1a0f04
    • barraclough@apple.com's avatar
      Move ViewState to WebCore · aecbfa41
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126488
      
      Reviewed by Anders Carlson.
      
      This change also partial reverts handling of LayerHostingMode, making this
      a separate message again. With hindsight the new way of doing this wasn't
      in all ways simpler, and it won't make sense to move this to WebCore.
      
      Source/WebCore: 
      
      * WebCore.xcodeproj/project.pbxproj:
      * page/ViewState.h: Added.
          - Moved from WebKit2, will be used by Page & FocusController.
      
      Source/WebKit2: 
      
      * Shared/ViewState.h: Removed.
          - Moved to WebCore.
      * Shared/WebPageCreationParameters.cpp:
      (WebKit::WebPageCreationParameters::encode):
      (WebKit::WebPageCreationParameters::decode):
      * Shared/WebPageCreationParameters.h:
          - Added layerHostingMode.
      * UIProcess/API/mac/PageClientImpl.h:
      * UIProcess/API/mac/PageClientImpl.mm:
      (WebKit::PageClientImpl::PageClientImpl):
      (WebKit::PageClientImpl::viewLayerHostingMode):
      * UIProcess/PageClient.h:
      (WebKit::PageClient::viewLayerHostingMode):
          - Revert isLayerWindowServerHosted -> viewLayerHostingMode.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::WebPageProxy):
          - Added back m_layerHostingMode.
      (WebKit::WebPageProxy::updateViewState):
          - Removed IsLayerWindowServerHosted from ViewState.
      (WebKit::WebPageProxy::viewStateDidChange):
          - Added SetLayerHostingMode message.
      (WebKit::WebPageProxy::initializeCreationParameters):
          - Pass layerHostingMode.
      * UIProcess/WebPageProxy.h:
      (WebKit::WebPageProxy::isInWindow):
      (WebKit::WebPageProxy::isViewVisible):
          - ViewState moved to WebCore.
      * WebKit2.xcodeproj/project.pbxproj:
          - Removed ViewState.
      * WebProcess/Plugins/PluginView.cpp:
      (WebKit::PluginView::setLayerHostingMode):
      (WebKit::PluginView::platformViewStateDidChange):
          - Separated setLayerHostingMode from platformViewStateDidChange.
      * WebProcess/Plugins/PluginView.h:
      * WebProcess/WebPage/DrawingArea.h:
      (WebKit::DrawingArea::viewStateDidChange):
      (WebKit::DrawingArea::setLayerHostingMode):
          - Added virtual function, overridden in TiledCoreAnimationDrawingArea.
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::setLayerHostingMode):
          - Separated setLayerHostingMode from platformViewStateDidChange.
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::isVisible):
      (WebKit::WebPage::layerHostingMode):
          - ViewState moved to WebCore.
      * WebProcess/WebPage/WebPage.messages.in:
          - Added SetLayerHostingMode message.
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.h:
      * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm:
      (WebKit::TiledCoreAnimationDrawingArea::viewStateDidChange):
          - viewStateDidChange no longer calls setLayerHostingMode (this is called by WebPage).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aecbfa41
    • fpizlo@apple.com's avatar
      LLInt shouldn't check for ENABLE(JIT). · 752acb36
      fpizlo@apple.com authored
      Rubber stamped by Mark Hahnenberg.
      
      * llint/LLIntCommon.h:
      * llint/LLIntOfflineAsmConfig.h:
      * llint/LLIntSlowPaths.cpp:
      (JSC::LLInt::entryOSR):
      (JSC::LLInt::LLINT_SLOW_PATH_DECL):
      * llint/LowLevelInterpreter.asm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      752acb36
    • roger_fong@apple.com's avatar
      Set VSINSTALLDIR in win ews start script. · 0073eee9
      roger_fong@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126407
      
      Reviewed by Brent Fulgham.
      
      * EWSTools/start-queue-win.sh:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161355 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0073eee9
    • mrobinson@webkit.org's avatar
      [GTK] [CMake] Parallel builds still fail when building WebKit2 GObject API unit tests · 18e34e95
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126465
      
      Reviewed by Gustavo Noronha Silva.
      
      * UIProcess/API/gtk/tests/CMakeLists.txt: Explicitly link the libWebKit2APITestCore static object against
      WebKit2, which seems to be necessary on my new system. Also create an explicit dependency between the
      injected bundle tests and WebKit2, because they need to use the generated headers.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18e34e95
    • fpizlo@apple.com's avatar
      LLInt shouldnt check for ENABLE(JAVASCRIPT_DEBUGGER). · 3ebfeda8
      fpizlo@apple.com authored
      Rubber stamped by Mark Hahnenberg.
      
      * debugger/Debugger.h:
      (JSC::Debugger::Debugger):
      * llint/LLIntOfflineAsmConfig.h:
      * llint/LowLevelInterpreter.asm:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ebfeda8
    • bjonesbe@adobe.com's avatar
      Adding myself as a reviewer. · a16c6b42
      bjonesbe@adobe.com authored
      Unreviewed.
      
      * Scripts/webkitpy/common/config/contributors.json:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a16c6b42
    • mrobinson@webkit.org's avatar
      [CMake] [GTK] Fix the build for the WebKitGTK+ developer configuration · 7529c73f
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126505
      
      Reviewed by Gustavo Noronha Silva.
      
      .:
      
      * Source/cmake/FindGLIB.cmake: Add support for finding the gio-unix include directory location.
      * Source/cmake/FindGUdev.cmake: Added.
      * Source/cmake/FindGeoClue.cmake: Added.
      * Source/cmake/OptionsGTK.cmake: When gamepad is enabled look for gio-unix and GUdev. When
      geolocation is enabled look for GeoClue.
      
      Source/WebCore:
      
      * CMakeLists.txt: Add missing IDLS and source files to the lists.
      * PlatformGTK.cmake: Add missing include directories and source files to the lists.
      Use the GeoClue, GUdev, and gio-unix include paths and libraries and sort the list
      of WebCore include directories.
      * UseJSC.cmake: Align the sourced list with the contents of the bindings/js directory.
      
      Source/WebKit:
      
      * PlatformGTK.cmake: Add the geoclue platform directory to the include directory list.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161351 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7529c73f
    • barraclough@apple.com's avatar
      Refactor NSActivity handling code from ChildProcess to UserActivity · ec90783d
      barraclough@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126330
      
      Unreviewed speculative Windows build fix.
      
      * WebCore.vcxproj/WebCore.vcxproj:
          - Added UserActivity.cpp/.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ec90783d
    • mhahnenberg@apple.com's avatar
      DoublyLinkedLists can't be concatenated · c8d6fcf0
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=125976
      
      Reviewed by Filip Pizlo.
      
      * wtf/DoublyLinkedList.h:
      (WTF::DoublyLinkedList<T>::append):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c8d6fcf0
    • commit-queue@webkit.org's avatar
      [Win] Link error. · faee3aa1
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126526
      
      Patch by peavo@outlook.com <peavo@outlook.com> on 2014-01-06
      Reviewed by Brent Fulgham.
      
      * WebCore.vcxproj/WebCore.vcxproj: Include UserActivity files in build.
      * WebCore.vcxproj/WebCore.vcxproj.filters: Ditto.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      faee3aa1
    • mrowe@apple.com's avatar
      Mountain Lion build fix after r161332. · 062c8e69
      mrowe@apple.com authored
      * Carbon/HIWebView.h: Mountain Lion's version of CF_AVAILABLE_MAC doesn't accept a message
      argument so remove it.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      062c8e69
    • lforschler@apple.com's avatar
      Versioning. · 0fb1c9d5
      lforschler@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0fb1c9d5
    • zandobersek@gmail.com's avatar
      Unreviewed GTK gardening. · a0ec46b9
      zandobersek@gmail.com authored
      * platform/gtk/TestExpectations:
      Mark accessibility/menu-list-sends-change-notification.html as flaky.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0ec46b9
    • thiago.lacerda@openbossa.org's avatar
      [Nix] Adding screenRect implementation to PlatformScreenNix · 1299879e
      thiago.lacerda@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126231
      
      Reviewed by Csaba Osztrogonác.
      
      No new tests needed.
      
      * platform/nix/PlatformScreenNix.cpp:
      (WebCore::screenRect):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1299879e
    • thiago.lacerda@openbossa.org's avatar
      [Nix] Adding missing platform #ifs to WebCore files · d0ec5eca
      thiago.lacerda@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126227
      
      Reviewed by Csaba Osztrogonác.
      
      No new tests needed.
      
      * loader/EmptyClients.h:
      * page/ChromeClient.h:
      * page/DragController.cpp:
      (WebCore::DragController::startDrag):
      * platform/LocalizedStrings.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0ec5eca
    • zandobersek@gmail.com's avatar
      Unreviewed GTK gardening. · f2cfacfc
      zandobersek@gmail.com authored
      Adding failure expectations for the set of currently failing tests.
      
      * platform/gtk/TestExpectations:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2cfacfc
    • zandobersek@gmail.com's avatar
      Unreviewed. Unbreaking JSC tests after r161328. · cd56e354
      zandobersek@gmail.com authored
      * Scripts/webkitdirs.pm:
      (cmakeBasedPortName): Only recognize the GTK port as CMake-based if actually building
      through the CMake build system (i.e. passing --gtkcmake to build-webkit).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd56e354
    • thiago.lacerda@openbossa.org's avatar
      [Nix] Adding new strings to LocalizedStringsNix · 22605241
      thiago.lacerda@openbossa.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126228
      
      Reviewed by Csaba Osztrogonác.
      
      No new tests needed.
      
      * platform/nix/LocalizedStringsNix.cpp:
      (WebCore::submitButtonDefaultLabel):
      (WebCore::inputElementAltText):
      (WebCore::resetButtonDefaultLabel):
      (WebCore::defaultDetailsSummaryText):
      (WebCore::searchableIndexIntroduction):
      (WebCore::fileButtonChooseFileLabel):
      (WebCore::fileButtonChooseMultipleFilesLabel):
      (WebCore::fileButtonNoFileSelectedLabel):
      (WebCore::fileButtonNoFilesSelectedLabel):
      (WebCore::contextMenuItemTagOpenLinkInNewWindow):
      (WebCore::contextMenuItemTagDownloadLinkToDisk):
      (WebCore::contextMenuItemTagCopyLinkToClipboard):
      (WebCore::contextMenuItemTagOpenImageInNewWindow):
      (WebCore::contextMenuItemTagDownloadImageToDisk):
      (WebCore::contextMenuItemTagCopyImageToClipboard):
      (WebCore::contextMenuItemTagCopyImageUrlToClipboard):
      (WebCore::contextMenuItemTagOpenVideoInNewWindow):
      (WebCore::contextMenuItemTagOpenAudioInNewWindow):
      (WebCore::contextMenuItemTagDownloadVideoToDisk):
      (WebCore::contextMenuItemTagDownloadAudioToDisk):
      (WebCore::contextMenuItemTagCopyVideoLinkToClipboard):
      (WebCore::contextMenuItemTagCopyAudioLinkToClipboard):
      (WebCore::contextMenuItemTagToggleMediaControls):
      (WebCore::contextMenuItemTagShowMediaControls):
      (WebCore::contextMenuitemTagHideMediaControls):
      (WebCore::contextMenuItemTagToggleMediaLoop):
      (WebCore::contextMenuItemTagEnterVideoFullscreen):
      (WebCore::contextMenuItemTagMediaPlay):
      (WebCore::contextMenuItemTagMediaPause):
      (WebCore::contextMenuItemTagMediaMute):
      (WebCore::contextMenuItemTagOpenFrameInNewWindow):
      (WebCore::contextMenuItemTagCopy):
      (WebCore::contextMenuItemTagDelete):
      (WebCore::contextMenuItemTagSelectAll):
      (WebCore::contextMenuItemTagUnicode):
      (WebCore::contextMenuItemTagInputMethods):
      (WebCore::contextMenuItemTagGoBack):
      (WebCore::contextMenuItemTagGoForward):
      (WebCore::contextMenuItemTagStop):
      (WebCore::contextMenuItemTagReload):
      (WebCore::contextMenuItemTagCut):
      (WebCore::contextMenuItemTagPaste):
      (WebCore::contextMenuItemTagNoGuessesFound):
      (WebCore::contextMenuItemTagIgnoreSpelling):
      (WebCore::contextMenuItemTagLearnSpelling):
      (WebCore::contextMenuItemTagSearchWeb):
      (WebCore::contextMenuItemTagLookUpInDictionary):
      (WebCore::contextMenuItemTagOpenLink):
      (WebCore::contextMenuItemTagIgnoreGrammar):
      (WebCore::contextMenuItemTagSpellingMenu):
      (WebCore::contextMenuItemTagShowSpellingPanel):
      (WebCore::contextMenuItemTagCheckSpelling):
      (WebCore::contextMenuItemTagCheckSpellingWhileTyping):
      (WebCore::contextMenuItemTagCheckGrammarWithSpelling):
      (WebCore::contextMenuItemTagFontMenu):
      (WebCore::contextMenuItemTagBold):
      (WebCore::contextMenuItemTagItalic):
      (WebCore::contextMenuItemTagUnderline):
      (WebCore::contextMenuItemTagOutline):
      (WebCore::contextMenuItemTagInspectElement):
      (WebCore::contextMenuItemTagRightToLeft):
      (WebCore::contextMenuItemTagLeftToRight):
      (WebCore::contextMenuItemTagWritingDirectionMenu):
      (WebCore::contextMenuItemTagTextDirectionMenu):
      (WebCore::contextMenuItemTagDefaultDirection):
      (WebCore::searchMenuNoRecentSearchesText):
      (WebCore::searchMenuRecentSearchesText):
      (WebCore::searchMenuClearRecentSearchesText):
      (WebCore::AXDefinitionText):
      (WebCore::AXDescriptionListText):
      (WebCore::AXDescriptionListTermText):
      (WebCore::AXDescriptionListDetailText):
      (WebCore::AXFooterRoleDescriptionText):
      (WebCore::AXSearchFieldCancelButtonText):
      (WebCore::AXButtonActionVerb):
      (WebCore::AXRadioButtonActionVerb):
      (WebCore::AXTextFieldActionVerb):
      (WebCore::AXCheckedCheckBoxActionVerb):
      (WebCore::AXUncheckedCheckBoxActionVerb):
      (WebCore::AXLinkActionVerb):
      (WebCore::unknownFileSizeText):
      (WebCore::imageTitle):
      (WebCore::AXListItemActionVerb):
      (WebCore::localizedMediaControlElementString):
      (WebCore::localizedMediaControlElementHelpText):
      (WebCore::localizedMediaTimeDescription):
      (WebCore::mediaElementLoadingStateText):
      (WebCore::mediaElementLiveBroadcastStateText):
      (WebCore::validationMessagePatternMismatchText):
      (WebCore::validationMessageRangeOverflowText):
      (WebCore::validationMessageRangeUnderflowText):
      (WebCore::validationMessageStepMismatchText):
      (WebCore::validationMessageTooLongText):
      (WebCore::validationMessageTypeMismatchText):
      (WebCore::validationMessageTypeMismatchForEmailText):
      (WebCore::validationMessageTypeMismatchForMultipleEmailText):
      (WebCore::validationMessageTypeMismatchForURLText):
      (WebCore::validationMessageValueMissingText):
      (WebCore::validationMessageValueMissingForCheckboxText):
      (WebCore::validationMessageValueMissingForFileText):
      (WebCore::validationMessageValueMissingForMultipleFileText):
      (WebCore::validationMessageValueMissingForRadioText):
      (WebCore::validationMessageValueMissingForSelectText):
      (WebCore::validationMessageBadInputForNumberText):
      (WebCore::missingPluginText):
      (WebCore::AXMenuListPopupActionVerb):
      (WebCore::AXMenuListActionVerb):
      (WebCore::multipleFileUploadText):
      (WebCore::crashedPluginText):
      (WebCore::blockedPluginByContentSecurityPolicyText):
      (WebCore::insecurePluginVersionText):
      (WebCore::inactivePluginText):
      (WebCore::unacceptableTLSCertificate):
      (WebCore::textTrackClosedCaptionsText):
      (WebCore::textTrackSubtitlesText):
      (WebCore::textTrackOffMenuItemText):
      (WebCore::textTrackAutomaticMenuItemText):
      (WebCore::textTrackNoLabelText):
      (WebCore::snapshottedPlugInLabelTitle):
      (WebCore::snapshottedPlugInLabelSubtitle):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      22605241
    • commit-queue@webkit.org's avatar
      Use unsigned consistently, and check for invalid casts when calling into... · 6ada5311
      commit-queue@webkit.org authored
      Use unsigned consistently, and check for invalid casts when calling into SharedBuffer from other code.
      https://bugs.webkit.org/show_bug.cgi?id=124579
      
      Patch by László Langó <lango@inf.u-szeged.hu> on 2014-01-06
      Reviewed by Anders Carlsson.
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * loader/NetscapePlugInStreamLoader.cpp:
      (WebCore::NetscapePlugInStreamLoader::didReceiveData):
      * loader/NetscapePlugInStreamLoader.h:
      * loader/PingLoader.h:
      * loader/ResourceBuffer.cpp:
      (WebCore::ResourceBuffer::ResourceBuffer):
      * loader/ResourceBuffer.h:
      (WebCore::ResourceBuffer::create):
      * loader/ResourceLoader.cpp:
      (WebCore::ResourceLoader::addDataOrBuffer):
      (WebCore::ResourceLoader::didReceiveData):
      (WebCore::ResourceLoader::didReceiveDataOrBuffer):
      (WebCore::ResourceLoader::willStopBufferingData):
      * loader/ResourceLoader.h:
      * loader/SubresourceLoader.cpp:
      (WebCore::SubresourceLoader::didReceiveData):
      * loader/SubresourceLoader.h:
      * loader/appcache/ApplicationCacheGroup.cpp:
      (WebCore::ApplicationCacheGroup::didReceiveData):
      * loader/appcache/ApplicationCacheGroup.h:
      * loader/mac/ResourceLoaderMac.mm:
      (WebCore::ResourceLoader::didReceiveDataArray):
      * platform/SharedBuffer.cpp:
      (WebCore::SharedBuffer::SharedBuffer):
      * platform/SharedBuffer.h:
      (WebCore::SharedBuffer::create):
      * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
      (ResourceHandleStreamingClient::didReceiveData):
      * platform/network/BlobResourceHandle.cpp:
      * platform/network/ResourceHandleClient.h:
      (WebCore::ResourceHandleClient::didReceiveData):
      (WebCore::ResourceHandleClient::willStopBufferingData):
      * platform/network/SynchronousLoaderClient.cpp:
      (WebCore::SynchronousLoaderClient::didReceiveData):
      * platform/network/SynchronousLoaderClient.h:
      * platform/network/blackberry/BlobStream.cpp:
      (WebCore::BlobStream::didReceiveData):
      * platform/network/blackberry/BlobStream.h:
      * platform/network/blackberry/ResourceHandleBlackBerry.cpp:
      (WebCore::WebCoreSynchronousLoader::didReceiveData):
      * platform/network/curl/ResourceHandleCurl.cpp:
      (WebCore::WebCoreSynchronousLoader::didReceiveData):
      * platform/network/mac/WebCoreResourceHandleAsDelegate.mm:
      (-[WebCoreResourceHandleAsDelegate connection:willStopBufferingData:]):
      * platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm:
      (-[WebCoreResourceHandleAsOperationQueueDelegate connection:willStopBufferingData:]):
      * platform/network/soup/ResourceHandleSoup.cpp:
      (WebCore::WebCoreSynchronousLoader::didReceiveData):
      * platform/network/win/ResourceHandleWin.cpp:
      (WebCore::WebCoreSynchronousLoader::didReceiveData):
      
      Source/WebKit/gtk:
      
      * webkit/webkitdownload.cpp:
      (DownloadClient::didReceiveData):
      
      Source/WebKit/win:
      
      * WebKitDLL.cpp:
      (loadResourceIntoBuffer):
      
      Source/WebKit2:
      
      * NetworkProcess/NetworkResourceLoader.cpp:
      (WebKit::NetworkResourceLoader::didReceiveData):
      (WebKit::NetworkResourceLoader::willStopBufferingData):
      * NetworkProcess/NetworkResourceLoader.h:
      * Shared/Downloads/soup/DownloadSoup.cpp:
      (WebKit::DownloadClient::didReceiveData):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ada5311
    • akling@apple.com's avatar
      RenderBlock::clone() should return RenderPtr. · b688242c
      akling@apple.com authored
      <https://webkit.org/b/126513>
      
      Reviewed by Antti Koivisto.
      
      * rendering/RenderBlock.h:
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::clone):
      
          Tweaked to return RenderPtr<RenderBlock>.
      
      (WebCore::RenderBlock::splitBlocks):
      
          Store cloned RenderBlocks in RenderPtrs. Use leakPtr() to sink
          them into ownership-taking APIs that still use raw pointers.
      
      * rendering/RenderPtr.h:
      
          Add a simple static_pointer_cast for RenderPtr&&.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b688242c
    • akling@apple.com's avatar
      Fix ChangeLog authors that got mixed up in last commit. · 17da831c
      akling@apple.com authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      17da831c
    • akling@apple.com's avatar
      RenderInline::clone() should return RenderPtr. · 94441879
      akling@apple.com authored
      <https://webkit.org/b/126514>
      
      Patch by Gurpreet Kaur <k.gurpreet@samsung.com> on 2014-01-06
      Reviewed by Antti Koivisto.
      
      * rendering/RenderInline.h:
      * rendering/RenderInline.cpp:
      (WebCore::RenderInline::clone):
      
          Tweaked to return RenderPtr<RenderInline>.
      
      (WebCore::RenderInline::splitInlines):
      
          Store cloned RenderInlines in RenderPtrs. Use leakPtr() to sink
          them into ownership-taking APIs that still use raw pointers.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      94441879
    • commit-queue@webkit.org's avatar
      <hr> appears gray instead of green because of color attribute is defined... · af23827c
      commit-queue@webkit.org authored
      <hr> appears gray instead of green because of color attribute is defined followed by noshade attribute
      https://bugs.webkit.org/show_bug.cgi?id=17674
      
      Patch by Gurpreet Kaur <k.gurpreet@samsung.com> on 2014-01-06
      Reviewed by Simon Fraser.
      
      Source/WebCore:
      
      The noshade attribute is a boolean attribute and when set on hr element
      it shows a gray color. When there is color attribute the default gray
      color should be replaced by the color mentioned by the color attribute.
      Firefox and IE show the same behaviour but Webkit is different. Making
      the behaviour of Webkit similiar to Firefox and IE's behaviour.
      
      Test: fast/dom/HTMLHrElement/hr-color-noshade-attribute.html
      
      * html/HTMLHRElement.cpp:
      (WebCore::HTMLHRElement::collectStyleForPresentationAttribute):
      When the color attribute is present that value is applied and the
      default gray color is ignored. Incase of no color attribute the default
      gray color is applied.
      
      LayoutTests:
      
      * fast/dom/HTMLHrElement: Added.
      * fast/dom/HTMLHrElement/hr-color-noshade-attribute-expected.txt: Added.
      * fast/dom/HTMLHrElement/hr-color-noshade-attribute.html: Added.
      Added new test cases to test the functionality of noshade and color
      attribute of hr element when color attribute is present along with
      noshade attribute, invalid color attribute and color noshade attributes
      added via javascript.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af23827c
    • zandobersek@gmail.com's avatar
      [GTK] Use libc++ for C++11 on darwin · 8e872441
      zandobersek@gmail.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126325
      
      Reviewed by Martin Robinson.
      
      * Source/autotools/SetupCompilerFlags.m4: Don't default to libstdc++ when compiling with Clang.
      Instead, the compiler should determine itself what standard library to use, except on Darwin,
      where libc++ should be enforced. The standard library of user's choosing can still be enforced
      through the CXXFLAGS environment variable.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e872441
    • mrowe@apple.com's avatar
      <https://webkit.org/b/126499> Move WebKit off the legacy WebKit availability macros · 7d764722
      mrowe@apple.com authored
      The legacy WebKit availability macros are verbose, confusing, and provide no benefit
      over using the system availability macros directly. The original vision was that
      they'd serve a cross-platform purpose but that never came to be.
      
      Since WebKit1 is API on OS X but SPI on iOS, some indirection is still needed in the
      availability macros to allow the headers to advertise the API as unavailable on OS X
      without interfering with the ability to build on iOS. This is achieved by defining
      WEBKIT-prefixed versions of the Foundation availability macros that are defined to
      their NS-prefixed equivalents. The installed headers are post-processed to map these
      macros back to their Foundation equivalents.
      
      Part of <rdar://problem/15512304>.
      
      Source/WebCore:
      
      Reviewed by Sam Weinig.
      
      * WebCore.xcodeproj/project.pbxproj:
      * bindings/objc/WebKitAvailability.h: Added. This lives at the WebCore level since it
      will be needed by the Objective-C DOM bindings.
      
      Source/WebKit:
      
      Reviewed by Sam Weinig.
      
      * WebKit.xcodeproj/project.pbxproj: Change the Postprocess Headers build phase to
      invoke mac/postprocess-headers.sh.
      
      Source/WebKit/mac:
      
      The OS X version used in the new availability macros is based on the mapping in
      JavaScriptCore/WebKitAvailability.h.
      
      Reviewed by Sam Weinig.
      
      * Carbon/CarbonUtils.h:
      * Carbon/HIWebView.h:
      * MigrateHeaders.make: Migrate WebKitAvailability.h from WebCore as an API header.
      * Plugins/WebPlugin.h:
      * Plugins/WebPluginViewFactory.h:
      * WebView/WebFrameLoadDelegate.h:
      * WebView/WebResourceLoadDelegatePrivate.h:
      * WebView/WebUIDelegate.h:
      * postprocess-headers.sh: Added. Extracted from the Xcode project. Extended to map the
      WEBKIT-prefixed macros to their NS-prefixed equivalents on OS X and to remove them on iOS.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d764722
    • jinwoo7.song@samsung.com's avatar
      [EFL] Fix failing WebKit1 API test of ewk_view_setting_tiled_backing_store · 586362fb
      jinwoo7.song@samsung.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126509
      
      Reviewed by Gyuyoung Kim.
      
      In WebKit1 EFL port, unit test was using a webview based on tiled backing store,
      so ewk_view_setting_tiled_backing_store_enabled_set() was set as true as default.
      As we do not need to use tiled backing store, we disable tiled backing store
      and remove unnecessary EwkViewType in unit test webview.
      
      * tests/UnitTestUtils/EWKTestView.cpp:
      (EWKUnitTests::EWKTestView::init):
      * tests/UnitTestUtils/EWKTestView.h:
      * tests/test_ewk_view.cpp: Fix wrong comment in the unit test.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      586362fb
    • weinig@apple.com's avatar
      [JS] Implement Promise.race() · c7329eb8
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126506
      
      Reviewed by Oliver Hunt.
      
      Source/JavaScriptCore: 
      
      * runtime/CommonIdentifiers.h:
      Add identifier for "cast".
          
      * runtime/JSPromiseConstructor.cpp:
      (JSC::abruptRejection):
      Helper for the RejectIfAbrupt abstract operation.
        
      (JSC::JSPromiseConstructorFuncRace):
      Add implementation of Promise.race()
      
      LayoutTests: 
      
      Enabled and fix the existing Promise.race() test case.
      - Promise.race() and Promise.race({}) should reject by my reading of the spec.
      
      * js/dom/Promise-static-race-expected.txt:
      * js/dom/Promise-static-race.html:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7329eb8
    • simon.fraser@apple.com's avatar
      Add encoding of ViewportConstraint and ScrollingParameter types · 2d64f20d
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126497
      
      Reviewed by Andreas Kling.
      
      Add encoding/decoding of ScrollableAreaParameters, FixedPositionViewportConstraints
      and StickyPositionViewportConstraints.
      
      * Shared/WebCoreArgumentCoders.cpp:
      (IPC::ArgumentCoder<WebCore::ScrollableAreaParameters>::encode):
      (IPC::ArgumentCoder<WebCore::ScrollableAreaParameters>::decode):
      (IPC::ArgumentCoder<WebCore::FixedPositionViewportConstraints>::encode):
      (IPC::ArgumentCoder<WebCore::FixedPositionViewportConstraints>::decode):
      (IPC::ArgumentCoder<WebCore::StickyPositionViewportConstraints>::encode):
      (IPC::ArgumentCoder<WebCore::StickyPositionViewportConstraints>::decode):
      * Shared/WebCoreArgumentCoders.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d64f20d
    • mrobinson@webkit.org's avatar
      [GTK][CMake] Add support for building the GTK+ port with cmake to build-webkit · e5f9c621
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=126212
      
      Reviewed by Daniel Bates.
      
      Allow building the GTK+ cmake port with --gtkcmake.
      
      * Scripts/build-webkit: Use the new isGtkCMake function to head down the CMake path
      when appropriate. Skip the autotoos path when isGtkAutotools is false.
      * Scripts/webkitdirs.pm: Add an isGtkCMake path in addition to the newly renamed isGtkAutotools.
      Add isGtk which checks isGtkCMake || isGtkAutotools
      (determineArchitecture): Use the CMake path for GTK+ when appropriate.
      (argumentsForConfiguration): use --gtkcmake when appropriate.
      (jscProductDir): Look in the CMake directory when appropriate.
      (builtDylibPathForName): CMake builds the library into a different directory, so handle that.
      (determineIsGtkCMake): Added.
      (isGtkCMake): Added.
      (isGtkAutotools): Renamed from isGtk.
      (isGtk): New function which returns isGtkAutotools || isGtkCMake.
      (determineIsGtkAutotools): Renamed from determineIsGtk.
      (cmakeBasedPortName): Added a GTK+ path.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161328 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5f9c621
    • simon.fraser@apple.com's avatar
      Move responsibility for remote layer tree committing to RemoteLayerTreeDrawingArea · 8b87de58
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=126501
      
      Source/WebCore:
      
      Reviewed by Sam Weinig.
      
      Add type-safe casting to GraphicsLayer.
      
      * platform/graphics/GraphicsLayer.h:
      (WebCore::GraphicsLayer::isGraphicsLayerCA):
      (WebCore::GraphicsLayer::isGraphicsLayerCARemote):
      * platform/graphics/ca/GraphicsLayerCA.h:
      (WebCore::GraphicsLayerCA::isGraphicsLayerCA):
      
      Source/WebKit2:
      
      Reviewed by Sam Weinig.
      
      Soon we shall need to do atomic commits of both the remote layer tree, and
      the remote scrolling tree. Pave the way by moving responsibility for remote
      layer tree committing to RemoteLayerTreeDrawingArea.
      
      So move the flushing logic from RemoteLayerTreeHost to RemoteLayerTreeDrawingArea.
      After this change, RemoteLayerTreeHost doesn't do much and could possibly be
      removed in future.
      
      Also add type-safe casting to GraphicsLayer and DrawingArea.
      
      * DerivedSources.make: Out with RemoteLayerTreeHost, in with RemoteLayerTreeDrawingAreaProxy
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.h:
      (WebKit::RemoteLayerTreeDrawingAreaProxy::remoteLayerTreeHost):
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.messages.in: Renamed from Source/WebKit2/UIProcess/mac/RemoteLayerTreeHost.messages.in.
      * UIProcess/mac/RemoteLayerTreeDrawingAreaProxy.mm:
      (WebKit::RemoteLayerTreeDrawingAreaProxy::RemoteLayerTreeDrawingAreaProxy): Add message receiver.
      (WebKit::RemoteLayerTreeDrawingAreaProxy::~RemoteLayerTreeDrawingAreaProxy): Remove message receiver.
      (WebKit::RemoteLayerTreeDrawingAreaProxy::commitLayerTree): Hand the transaction off to the layer
      tree host.
      * UIProcess/mac/RemoteLayerTreeHost.h:
      * UIProcess/mac/RemoteLayerTreeHost.mm:
      (WebKit::RemoteLayerTreeHost::RemoteLayerTreeHost): No longer a message receiver.
      (WebKit::RemoteLayerTreeHost::~RemoteLayerTreeHost):
      (WebKit::RemoteLayerTreeHost::updateLayerTree):
      * WebKit2.xcodeproj/project.pbxproj:
      * WebProcess/WebPage/DrawingArea.h:
      (WebKit::DrawingArea::type):
      * WebProcess/WebPage/mac/GraphicsLayerCARemote.h:
      * WebProcess/WebPage/mac/PlatformCALayerRemote.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeContext.mm:
      (WebKit::RemoteLayerTreeContext::RemoteLayerTreeContext):
      (WebKit::RemoteLayerTreeContext::flushOutOfTreeLayers):
      (WebKit::RemoteLayerTreeContext::buildTransaction):
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.h:
      * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
      (WebKit::RemoteLayerTreeDrawingArea::RemoteLayerTreeDrawingArea):
      (WebKit::RemoteLayerTreeDrawingArea::setRootCompositingLayer):
      (WebKit::RemoteLayerTreeDrawingArea::setLayerTreeStateIsFrozen):
      (WebKit::RemoteLayerTreeDrawingArea::forceRepaint):
      (WebKit::RemoteLayerTreeDrawingArea::scheduleCompositingLayerFlush):
      (WebKit::RemoteLayerTreeDrawingArea::layerFlushTimerFired):
      (WebKit::RemoteLayerTreeDrawingArea::flushLayers):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b87de58
    • mrobinson@webkit.org's avatar
      [GTK] [CMake] Ensure that the autotools build and the CMake install the same files · 742e8e47
      mrobinson@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=116379
      
      Reviewed by Gustavo Noronha Silva.
      
      .:
      
      * Source/PlatformGTK.cmake: Install the documentation.
      * Source/cmake/OptionsCommon.cmake: Add a LIBEXEC variable for WebKit2 executables, and
      don't use the default locations on GTK+. We will get them from the CMake-provided GNU installation
      variables.
      * Source/cmake/OptionsGTK.cmake: Setup the installation variables using the ones provided
      by CMake's GNU installation directory support. Fix the definition of DATADIR. Always install
      the jsc binary.
      
      Source/JavaScriptCore:
      
      * PlatformGTK.cmake: Install API headers, gir files, and the pkg-config file.
      
      Source/WebCore:
      
      * PlatformGTK.cmake: Reformat some install directives to be consistent with the rest of them.
      Install the GObject DOM bindings headers.
      
      Source/WebKit:
      
      * PlatformGTK.cmake: Install API headers, gir files, and the pkg-config file. Move
      a couple installed and generated headers to the installed headers list.
      
      Source/WebKit2:
      
      * CMakeLists.txt: Install the plugin process to the new LIBEXEC directory, which
      for non-GTK+ platforms is the same as EXEC.
      * PlatformGTK.cmake: Install API headers, gir files, and the pkg-config file. Move
      a couple installed and generated headers to the installed headers list. Rename the
      headers list to be consistent with the WebKit1 build. No longer use a variable for
      the name of the plugin process, as it's unnecessary.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161325 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      742e8e47
  2. 05 Jan, 2014 2 commits