          return result;
      }
      
+diff -Naur webkitgtk-2.10.7/Source/cmake/OptionsGTK.cmake webkitgtk-2.10.7/Source/cmake/OptionsGTK.cmake
+--- webkitgtk-2.10.7/Source/cmake/OptionsGTK.cmake	2016-01-29 22:23:52.000000000 +0530
++++ webkitgtk-2.10.7/Source/cmake/OptionsGTK.cmake	2016-04-03 17:02:18.000000000 +0530
+@@ -201,6 +201,7 @@
+ endif ()
+ 
+ set(USE_UDIS86 ON)
++set(ENABLE_WEBCORE ON)
+ set(ENABLE_WEBKIT OFF)
+ set(ENABLE_WEBKIT2 ON)
+ set(ENABLE_PLUGIN_PROCESS ${ENABLE_X11_TARGET})
+diff -Naur webkitgtk-2.10.7/Source/cmake/OptionsJSC.cmake webkitgtk-2.10.7/Source/cmake/OptionsJSC.cmake
+--- webkitgtk-2.10.7/Source/cmake/OptionsJSC.cmake	1970-01-01 05:30:00.000000000 +0530
++++ webkitgtk-2.10.7/Source/cmake/OptionsJSC.cmake	2016-04-03 17:01:28.000000000 +0530
+@@ -0,0 +1,130 @@
++include(GNUInstallDirs)
++
++set(PROJECT_VERSION_MAJOR 2)
++set(PROJECT_VERSION_MINOR 10)
++set(PROJECT_VERSION_MICRO 7)
++set(PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_MICRO})
++set(WEBKITGTK_API_VERSION 4.0)
++
++# IndexedDB support requires GCC 4.9, see https://bugs.webkit.org/show_bug.cgi?id=98932.
++if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
++    if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9.0")
++        message(FATAL_ERROR "GCC 4.9.0 is required to build WebKitGTK+, use a newer GCC version or clang")
++    endif ()
++endif ()
++
++# Libtool library version, not to be confused with API version.
++# See http://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html
++CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(WEBKIT2 48 10 11)
++CALCULATE_LIBRARY_VERSIONS_FROM_LIBTOOL_TRIPLE(JAVASCRIPTCORE 20 15 2)
++
++# These are shared variables, but we special case their definition so that we can use the
++# CMAKE_INSTALL_* variables that are populated by the GNUInstallDirs macro.
++set(LIB_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE PATH "Absolute path to library installation directory")
++set(EXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_BINDIR}" CACHE PATH "Absolute path to executable installation directory")
++set(LIBEXEC_INSTALL_DIR "${CMAKE_INSTALL_FULL_LIBEXECDIR}/webkit2gtk-${WEBKITGTK_API_VERSION}" CACHE PATH "Absolute path to install executables executed by the library")
++
++set(DATA_BUILD_DIR "${CMAKE_BINARY_DIR}/share/${WebKit_OUTPUT_NAME}")
++set(DATA_INSTALL_DIR "${CMAKE_INSTALL_DATADIR}/webkitgtk-${WEBKITGTK_API_VERSION}")
++set(WEBKITGTK_HEADER_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/webkitgtk-${WEBKITGTK_API_VERSION}")
++set(INTROSPECTION_INSTALL_GIRDIR "${CMAKE_INSTALL_FULL_DATADIR}/gir-1.0")
++set(INTROSPECTION_INSTALL_TYPELIBDIR "${LIB_INSTALL_DIR}/girepository-1.0")
++
++find_package(ICU REQUIRED)
++find_package(Threads REQUIRED)
++find_package(ZLIB REQUIRED)
++
++WEBKIT_OPTION_BEGIN()
++
++# Set the default value for ENABLE_GLES2 automatically.
++# We are not enabling or disabling automatically a feature here, because
++# the feature is by default always on (ENABLE_OPENGL=ON).
++# What we select here automatically is if we use OPENGL (ENABLE_GLES2=OFF)
++# or OPENGLES2 (ENABLE_GLES2=ON) for building the feature.
++set(ENABLE_GLES2_DEFAULT OFF)
++
++if (NOT OPENGL_FOUND AND OPENGLES2_FOUND)
++    set(ENABLE_GLES2_DEFAULT ON)
++endif ()
++
++if (CMAKE_SYSTEM_NAME MATCHES "Linux")
++    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEMORY_SAMPLER PUBLIC ON)
++else ()
++    WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MEMORY_SAMPLER PUBLIC OFF)
++endif ()
++
++WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_JIT PUBLIC ON)
++WEBKIT_OPTION_DEFAULT_PORT_VALUE(USE_SYSTEM_MALLOC PUBLIC OFF)
++
++# Finalize the value for all options. Do not attempt to use an option before
++# this point, and do not attempt to change any option after this point.
++WEBKIT_OPTION_END()
++
++set(USE_UDIS86 ON)
++set(ENABLE_WEBKIT OFF)
++set(ENABLE_WEBKIT2 OFF)
++set(ENABLE_WEBCORE OFF)
++
++add_definitions(-DBUILDING_GTK__=1)
++#add_definitions(-DGETTEXT_PACKAGE="WebKit2GTK-${WEBKITGTK_API_VERSION}")
++add_definitions(-DDATA_DIR="${CMAKE_INSTALL_DATADIR}")
++add_definitions(-DUSER_AGENT_GTK_MAJOR_VERSION=602)
++add_definitions(-DUSER_AGENT_GTK_MINOR_VERSION=1)
++add_definitions(-DWEBKITGTK_API_VERSION_STRING="${WEBKITGTK_API_VERSION}")
++
++#set(GTK_LIBRARIES ${GTK3_LIBRARIES})
++#set(GTK_INCLUDE_DIRS ${GTK3_INCLUDE_DIRS})
++#set(GDK_LIBRARIES ${GDK3_LIBRARIES})
++#set(GDK_INCLUDE_DIRS ${GDK3_INCLUDE_DIRS})
++
++#SET_AND_EXPOSE_TO_BUILD(HAVE_GTK_GESTURES ${GTK3_SUPPORTS_GESTURES})
++#SET_AND_EXPOSE_TO_BUILD(HAVE_GTK_UNIX_PRINTING ${GTK_UNIX_PRINT_FOUND})
++
++set(glib_components gio gobject gthread gmodule)
++if (ENABLE_GAMEPAD_DEPRECATED OR ENABLE_GEOLOCATION)
++    list(APPEND glib_components gio-unix)
++endif ()
++find_package(GLIB 2.36 REQUIRED COMPONENTS ${glib_components})
++
++# Override the cached variables, gtk-doc and gobject-introspection do not really work when cross-building.
++if (CMAKE_CROSSCOMPILING)
++    set(ENABLE_GTKDOC OFF)
++    set(ENABLE_INTROSPECTION OFF)
++endif ()
++
++set(SHOULD_INSTALL_JS_SHELL ON)
++
++# CMake does not automatically add --whole-archive when building shared objects from
++# a list of convenience libraries. This can lead to missing symbols in the final output.
++# We add --whole-archive to all libraries manually to prevent the linker from trimming
++# symbols that we actually need later. (--whole-archive isn't an option on XCode's
++# linker, though.)
++macro(ADD_WHOLE_ARCHIVE_TO_LIBRARIES _list_name)
++    if (NOT CMAKE_SYSTEM_NAME MATCHES "Darwin")
++        foreach (library IN LISTS ${_list_name})
++          list(APPEND ${_list_name}_TMP -Wl,--whole-archive ${library} -Wl,--no-whole-archive)
++        endforeach ()
++        set(${_list_name} "${${_list_name}_TMP}")
++    endif ()
++endmacro()
++
++if (CMAKE_MAJOR_VERSION LESS 3)
++    # Before CMake 3 it was necessary to use a build script instead of using cmake --build directly
++    # to preserve colors and pretty-printing.
++
++    build_command(COMMAND_LINE_TO_BUILD)
++    # build_command unconditionally adds -i (ignore errors) for make, and there's
++    # no reasonable way to turn that off, so we just replace it with -k, which has
++    # the same effect, except that the return code will indicate that an error occurred.
++    # See: http://www.cmake.org/cmake/help/v3.0/command/build_command.html
++    string(REPLACE " -i" " -k" COMMAND_LINE_TO_BUILD ${COMMAND_LINE_TO_BUILD})
++    file(WRITE
++        ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/build.sh
++        "#!/bin/sh\n"
++        "${COMMAND_LINE_TO_BUILD} $@"
++    )
++    file(COPY ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/build.sh
++        DESTINATION ${CMAKE_BINARY_DIR}
++        FILE_PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
++    )
++endif ()
 diff -Naur webkitgtk-2.10.7/Tools/MiniBrowser/gtk/CMakeLists.txt webkitgtk-2.10.7/Tools/MiniBrowser/gtk/CMakeLists.txt
 --- webkitgtk-2.10.7/Tools/MiniBrowser/gtk/CMakeLists.txt	2016-01-28 14:25:09.000000000 +0530
 +++ webkitgtk-2.10.7/Tools/MiniBrowser/gtk/CMakeLists.txt	2016-03-06 19:56:51.000000000 +0530

diff -Naur webkitgtk-2.10.7/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp webkitgtk-2.10.7/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp
--- webkitgtk-2.10.7/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp	2016-01-29 21:59:32.000000000 +0530
+++ webkitgtk-2.10.7/Source/JavaScriptCore/assembler/MacroAssemblerARM.cpp	2016-02-25 21:42:09.000000000 +0530

     ${ZLIB_LIBRARIES}
 )
 
diff -Naur webkitgtk-2.10.7/Source/WTF/wtf/PlatformJSC.cmake webkitgtk-2.10.7/Source/WTF/wtf/PlatformJSC.cmake
--- webkitgtk-2.10.7/Source/WTF/wtf/PlatformJSC.cmake	1970-01-01 05:30:00.000000000 +0530
+++ webkitgtk-2.10.7/Source/WTF/wtf/PlatformJSC.cmake	2016-04-03 17:19:11.000000000 +0530
@@ -0,0 +1,24 @@
+set(WTF_LIBRARY_TYPE STATIC)
+set(WTF_OUTPUT_NAME WTFGTK)
+
+list(APPEND WTF_SOURCES
+    glib/GLibUtilities.cpp
+    glib/GMainLoopSource.cpp
+    glib/GRefPtr.cpp
+    glib/GThreadSafeMainLoopSource.cpp
+    glib/MainThreadGLib.cpp
+    glib/RunLoopGLib.cpp
+    glib/WorkQueueGLib.cpp
+)
+
+list(APPEND WTF_LIBRARIES
+    ${GLIB_GIO_LIBRARIES}
+    ${GLIB_GOBJECT_LIBRARIES}
+    ${GLIB_LIBRARIES}
+#    pthread
+    ${ZLIB_LIBRARIES}
+)
+
+list(APPEND WTF_SYSTEM_INCLUDE_DIRECTORIES
+    ${GLIB_INCLUDE_DIRS}
+)
diff -Naur webkitgtk-2.10.7/Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp webkitgtk-2.10.7/Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp
--- webkitgtk-2.10.7/Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp	2016-01-28 14:25:09.000000000 +0530
+++ webkitgtk-2.10.7/Source/WTF/wtf/ThreadIdentifierDataPthreads.cpp	2016-02-25 08:25:04.000000000 +0530
