Changeset 238913 in webkit
- Timestamp:
- Dec 5, 2018, 3:25:47 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 19 added
- 8 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r238853 r238913 1 2018-12-05 Don Olmstead <don.olmstead@sony.com> 2 3 [PlayStation] Enable WebCore 4 https://bugs.webkit.org/show_bug.cgi?id=192384 5 6 Reviewed by Brent Fulgham. 7 8 Adds CMake options for building WebCore on PlayStation. 9 10 * Source/cmake/FindLibPSL.cmake: 11 * Source/cmake/FindNghttp2.cmake: Copied from Source/cmake/FindWPE.cmake. 12 * Source/cmake/FindPixman.cmake: Added. 13 * Source/cmake/FindWPE.cmake: 14 * Source/cmake/OptionsPlayStation.cmake: 15 1 16 2018-12-04 Carlos Eduardo Ramalho <cadubentzen@gmail.com> 2 17 -
trunk/Source/WebCore/ChangeLog
r238912 r238913 1 2018-12-05 Don Olmstead <don.olmstead@sony.com> 2 3 [PlayStation] Enable WebCore 4 https://bugs.webkit.org/show_bug.cgi?id=192384 5 6 Reviewed by Brent Fulgham. 7 8 Implements WebCore for the PlayStation platform. 9 10 * PlatformPlayStation.cmake: Added. 11 * loader/cache/CachedResourceLoader.cpp: 12 * platform/generic/KeyedDecoderGeneric.cpp: Added. 13 (WebCore::KeyedDecoder::decoder): 14 (WebCore::KeyedDecoderGeneric::KeyedDecoderGeneric): 15 (WebCore::KeyedDecoderGeneric::~KeyedDecoderGeneric): 16 (WebCore::KeyedDecoderGeneric::decodeBytes): 17 (WebCore::KeyedDecoderGeneric::decodeBool): 18 (WebCore::KeyedDecoderGeneric::decodeUInt32): 19 (WebCore::KeyedDecoderGeneric::decodeUInt64): 20 (WebCore::KeyedDecoderGeneric::decodeInt32): 21 (WebCore::KeyedDecoderGeneric::decodeInt64): 22 (WebCore::KeyedDecoderGeneric::decodeFloat): 23 (WebCore::KeyedDecoderGeneric::decodeDouble): 24 (WebCore::KeyedDecoderGeneric::decodeString): 25 (WebCore::KeyedDecoderGeneric::beginObject): 26 (WebCore::KeyedDecoderGeneric::endObject): 27 (WebCore::KeyedDecoderGeneric::beginArray): 28 (WebCore::KeyedDecoderGeneric::beginArrayElement): 29 (WebCore::KeyedDecoderGeneric::endArrayElement): 30 (WebCore::KeyedDecoderGeneric::endArray): 31 * platform/generic/KeyedDecoderGeneric.h: Added. 32 * platform/generic/KeyedEncoderGeneric.cpp: Added. 33 (WebCore::KeyedEncoder::encoder): 34 (WebCore::KeyedEncoderGeneric::KeyedEncoderGeneric): 35 (WebCore::KeyedEncoderGeneric::~KeyedEncoderGeneric): 36 (WebCore::KeyedEncoderGeneric::encodeBytes): 37 (WebCore::KeyedEncoderGeneric::encodeBool): 38 (WebCore::KeyedEncoderGeneric::encodeUInt32): 39 (WebCore::KeyedEncoderGeneric::encodeUInt64): 40 (WebCore::KeyedEncoderGeneric::encodeInt32): 41 (WebCore::KeyedEncoderGeneric::encodeInt64): 42 (WebCore::KeyedEncoderGeneric::encodeFloat): 43 (WebCore::KeyedEncoderGeneric::encodeDouble): 44 (WebCore::KeyedEncoderGeneric::encodeString): 45 (WebCore::KeyedEncoderGeneric::beginObject): 46 (WebCore::KeyedEncoderGeneric::endObject): 47 (WebCore::KeyedEncoderGeneric::beginArray): 48 (WebCore::KeyedEncoderGeneric::beginArrayElement): 49 (WebCore::KeyedEncoderGeneric::endArrayElement): 50 (WebCore::KeyedEncoderGeneric::endArray): 51 (WebCore::KeyedEncoderGeneric::finishEncoding): 52 * platform/generic/KeyedEncoderGeneric.h: Added. 53 * platform/network/curl/NetworkStorageSessionCurl.cpp: 54 (WebCore::defaultCookieJarPath): 55 * platform/network/playstation/CurlSSLHandlePlayStation.cpp: Added. 56 (WebCore::getCACertPathEnv): 57 (WebCore::CurlSSLHandle::platformInitialize): 58 * platform/network/playstation/NetworkStateNotifierPlayStation.cpp: Added. 59 (WebCore::NetworkStateNotifier::updateStateWithoutNotifying): 60 (WebCore::NetworkStateNotifier::startObserving): 61 * platform/playstation/EventLoopPlayStation.cpp: Added. 62 (WebCore::EventLoop::cycle): 63 * platform/playstation/MIMETypeRegistryPlayStation.cpp: Added. 64 (WebCore::MIMETypeRegistry::getMIMETypeForExtension): 65 (WebCore::MIMETypeRegistry::isApplicationPluginMIMEType): 66 (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType): 67 * platform/playstation/PlatformScreenPlayStation.cpp: Added. 68 (WebCore::screenDepth): 69 (WebCore::screenDepthPerComponent): 70 (WebCore::screenIsMonochrome): 71 (WebCore::screenHasInvertedColors): 72 (WebCore::screenRect): 73 (WebCore::screenAvailableRect): 74 (WebCore::screenSupportsExtendedColor): 75 * platform/playstation/ScrollbarThemePlayStation.cpp: Added. 76 (WebCore::ScrollbarTheme::nativeTheme): 77 (WebCore::ScrollbarThemePlayStation::scrollbarThickness): 78 (WebCore::ScrollbarThemePlayStation::hasButtons): 79 (WebCore::ScrollbarThemePlayStation::hasThumb): 80 (WebCore::ScrollbarThemePlayStation::backButtonRect): 81 (WebCore::ScrollbarThemePlayStation::forwardButtonRect): 82 (WebCore::ScrollbarThemePlayStation::trackRect): 83 (WebCore::ScrollbarThemePlayStation::paintTrackBackground): 84 (WebCore::ScrollbarThemePlayStation::paintThumb): 85 * platform/playstation/ScrollbarThemePlayStation.h: Added. 86 * platform/playstation/UserAgentPlayStation.cpp: Added. 87 (WebCore::standardUserAgent): 88 (WebCore::standardUserAgentForURL): 89 * rendering/RenderThemePlayStation.cpp: Added. 90 (WebCore::RenderTheme::singleton): 91 (WebCore::RenderThemePlayStation::updateCachedSystemFontDescription const): 92 * rendering/RenderThemePlayStation.h: Added. 93 1 94 2018-12-05 Ryosuke Niwa <rniwa@webkit.org> 2 95 -
trunk/Source/WebCore/PAL/ChangeLog
r238791 r238913 1 2018-12-05 Don Olmstead <don.olmstead@sony.com> 2 3 [PlayStation] Enable WebCore 4 https://bugs.webkit.org/show_bug.cgi?id=192384 5 6 Reviewed by Brent Fulgham. 7 8 Implements PAL for the PlayStation platform. 9 10 * pal/PlatformPlayStation.cmake: Added. 11 1 12 2018-12-02 Zalan Bujtas <zalan@apple.com> 2 13 -
trunk/Source/WebCore/loader/cache/CachedResourceLoader.cpp
r236927 r238913 42 42 #include "ContentExtensionRule.h" 43 43 #include "ContentSecurityPolicy.h" 44 #include "CrossOriginAccessControl.h" 44 45 #include "DOMWindow.h" 45 46 #include "DiagnosticLoggingClient.h" -
trunk/Source/WebCore/platform/network/curl/NetworkStorageSessionCurl.cpp
r238771 r238913 52 52 return cookieJarPath; 53 53 54 #if PLATFORM(WIN) 54 55 return FileSystem::pathByAppendingComponent(FileSystem::localUserSpecificStorageDirectory(), defaultFileName); 56 #else 57 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=192417 58 return defaultFileName; 59 #endif 55 60 } 56 61 -
trunk/Source/cmake/FindLibPSL.cmake
r237118 r238913 55 55 endif () 56 56 57 if ("${LibPSL_FIND_VERSION}" VERSION_GREATER "${LIBPSL_VERSION}")58 message(FATAL_ERROR "Required version (" ${LibPSL_FIND_VERSION} ") is higher than found version (" ${LIBPSL_VERSION} ")")59 endif ()60 61 57 include(FindPackageHandleStandardArgs) 62 find_package_handle_standard_args(LIBPSL REQUIRED_VARS LIBPSL_INCLUDE_DIRS LIBPSL_LIBRARIES) 58 find_package_handle_standard_args(LibPSL REQUIRED_VARS LIBPSL_INCLUDE_DIRS LIBPSL_LIBRARIES 59 VERSION_VAR LIBPSL_VERSION) 63 60 64 61 mark_as_advanced( -
trunk/Source/cmake/FindNghttp2.cmake
r238912 r238913 1 # - Try to find WPE.2 # Once done, this will define1 # - Try to find nghttp2 2 # This module defines the following variables: 3 3 # 4 # WPE_FOUND - system has WPE.5 # WPE_INCLUDE_DIRS - the WPEinclude directories6 # WPE_LIBRARIES - link these to use WPE.4 # NGHTTP2_FOUND - nghttp2 was found 5 # NGHTTP2_INCLUDE_DIRS - the nghttp2 include directories 6 # NGHTTP2_LIBRARIES - link these to use nghttp2 7 7 # 8 # Copyright (C) 201 6 Igalia S.L.8 # Copyright (C) 2018 Sony Interactive Entertainment Inc. 9 9 # 10 10 # Redistribution and use in source and binary forms, with or without … … 30 30 31 31 find_package(PkgConfig) 32 pkg_check_modules(PC_ WPE QUIET wpe-0.2)32 pkg_check_modules(PC_NGHTTP2 QUIET nghttp2) 33 33 34 find_path(WPE_INCLUDE_DIRS 35 NAMES wpe/wpe.h 36 HINTS ${PC_WPE_INCLUDEDIR} ${PC_WPE_INCLUDE_DIRS} 34 find_path(NGHTTP2_INCLUDE_DIRS 35 NAMES nghttp2.h 36 HINTS ${PC_NGHTTP2_INCLUDEDIR} 37 ${PC_NGHTTP2_INCLUDE_DIRS} 38 PATH_SUFFIXES nghttp2 37 39 ) 38 40 39 find_library(WPE_LIBRARIES 40 NAMES wpe-0.2 41 HINTS ${PC_WPE_LIBDIR} ${PC_WPE_LIBRARY_DIRS} 41 find_library(NGHTTP2_LIBRARIES 42 NAMES nghttp2 43 HINTS ${PC_NGHTTP2_LIBDIR} 44 ${PC_NGHTTP2_LIBRARY_DIRS} 42 45 ) 43 46 44 mark_as_advanced(WPE_INCLUDE_DIRS WPE_LIBRARIES) 47 if (NGHTTP2_INCLUDE_DIRS) 48 if (EXISTS "${NGHTTP2_INCLUDE_DIRS}/nghttp2ver.h") 49 file(READ "${NGHTTP2_INCLUDE_DIRS}/nghttp2ver.h" _nghttp2_version_content) 50 51 string(REGEX MATCH "#define +NGHTTP2_VERSION +\"([0-9]+\.[0-9]+\.[0-9]+)\"" _dummy "${_nghttp2_version_content}") 52 set(NGHTTP2_VERSION "${CMAKE_MATCH_1}") 53 endif () 54 endif () 45 55 46 56 include(FindPackageHandleStandardArgs) 47 find_package_handle_standard_args(WPE REQUIRED_VARS WPE_INCLUDE_DIRS WPE_LIBRARIES) 57 find_package_handle_standard_args(Nghttp2 REQUIRED_VARS NGHTTP2_INCLUDE_DIRS NGHTTP2_LIBRARIES 58 VERSION_VAR NGHTTP2_VERSION) 59 60 mark_as_advanced( 61 NGHTTP2_INCLUDE_DIRS 62 NGHTTP2_LIBRARIES 63 ) -
trunk/Source/cmake/FindWPE.cmake
r235116 r238913 38 38 39 39 find_library(WPE_LIBRARIES 40 NAMES wpe-0.2 40 NAMES wpe-0.2 wpe 41 41 HINTS ${PC_WPE_LIBDIR} ${PC_WPE_LIBRARY_DIRS} 42 42 ) -
trunk/Source/cmake/OptionsPlayStation.cmake
r237621 r238913 12 12 # Disable Remote Inspector until implementation lands 13 13 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_REMOTE_INSPECTOR PRIVATE OFF) 14 15 # Enabled features 16 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ASYNC_SCROLLING PRIVATE ON) 17 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SMOOTH_SCROLLING PRIVATE ON) 18 19 # Experimental features 20 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_APPLICATION_MANIFEST PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 21 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_PAINTING_API PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 22 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FILTERS_LEVEL_2 PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 23 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SERVICE_WORKER PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 24 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_VARIATION_FONTS PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 25 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEBGL PRIVATE ${ENABLE_EXPERIMENTAL_FEATURES}) 26 27 # Features to investigate 28 # 29 # Features that are temporarily turned off because an implementation is not 30 # present at this time 31 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_GAMEPAD PRIVATE OFF) 32 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_AUDIO PRIVATE OFF) 33 34 # No support planned 35 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_FTPDIR PRIVATE OFF) 36 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_GEOLOCATION PRIVATE OFF) 37 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_ICONDATABASE PRIVATE OFF) 38 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_LEGACY_CUSTOM_PROTOCOL_MANAGER PRIVATE OFF) 39 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_MATHML PRIVATE OFF) 40 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_METER_ELEMENT PRIVATE OFF) 41 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NETSCAPE_PLUGIN_API PRIVATE OFF) 42 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_NOTIFICATIONS PRIVATE OFF) 43 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_SVG_FONTS PRIVATE OFF) 44 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_USERSELECT_ALL PRIVATE OFF) 45 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_USER_MESSAGE_HANDLERS PRIVATE OFF) 46 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_WEB_CRYPTO PRIVATE OFF) 47 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_XSLT PRIVATE OFF) 14 48 15 49 WEBKIT_OPTION_END() … … 39 73 find_library(POSIX_COMPATABILITY_LIBRARY posixex) 40 74 75 find_package(Cairo REQUIRED) 76 find_package(CURL REQUIRED) 77 find_package(EGL REQUIRED) 78 find_package(Fontconfig REQUIRED) 79 find_package(Freetype REQUIRED) 80 find_package(HarfBuzz REQUIRED) 81 find_package(ICU REQUIRED) 82 find_package(JPEG REQUIRED) 83 find_package(LibPSL REQUIRED) 84 find_package(LibXml2 REQUIRED) 85 find_package(Nghttp2 REQUIRED) 86 find_package(OpenSSL REQUIRED) 87 find_package(Pixman REQUIRED) 88 find_package(PNG REQUIRED) 89 find_package(Sqlite REQUIRED) 41 90 find_package(Threads REQUIRED) 42 find_package(ICU REQUIRED) 91 find_package(WebP REQUIRED) 92 find_package(WPE REQUIRED) 93 find_package(ZLIB REQUIRED) 94 95 # Emulate what pkg-config would do with statically compiled libraries 96 # FIXME: https://bugs.webkit.org/show_bug.cgi?id=192410 97 list(APPEND CAIRO_LIBRARIES ${PIXMAN_LIBRARIES}) 98 list(APPEND CURL_LIBRARIES ${NGHTTP2_LIBRARIES}) 99 100 # Temporarily turn off Accessibility support 101 SET_AND_EXPOSE_TO_BUILD(HAVE_ACCESSIBILITY OFF) 102 103 SET_AND_EXPOSE_TO_BUILD(HAVE_PTHREAD_SETNAME_NP ON) 43 104 44 105 SET_AND_EXPOSE_TO_BUILD(USE_EXPORT_MACROS ON) 45 SET_AND_EXPOSE_TO_BUILD(HAVE_PTHREAD_SETNAME_NP ON) 106 107 SET_AND_EXPOSE_TO_BUILD(USE_CAIRO ON) 108 SET_AND_EXPOSE_TO_BUILD(USE_CURL ON) 109 SET_AND_EXPOSE_TO_BUILD(USE_FREETYPE ON) 110 SET_AND_EXPOSE_TO_BUILD(USE_HARFBUZZ ON) 111 SET_AND_EXPOSE_TO_BUILD(USE_LIBWPE ON) 112 113 # Rendering options 114 SET_AND_EXPOSE_TO_BUILD(ENABLE_GRAPHICS_CONTEXT_3D ON) 115 SET_AND_EXPOSE_TO_BUILD(USE_COORDINATED_GRAPHICS ON) 116 SET_AND_EXPOSE_TO_BUILD(USE_COORDINATED_GRAPHICS_THREADED ON) 117 SET_AND_EXPOSE_TO_BUILD(USE_EGL ON) 118 SET_AND_EXPOSE_TO_BUILD(USE_NICOSIA TRUE) 119 SET_AND_EXPOSE_TO_BUILD(USE_OPENGL_ES ON) 120 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER ON) 121 SET_AND_EXPOSE_TO_BUILD(USE_TEXTURE_MAPPER_GL ON) 122 SET_AND_EXPOSE_TO_BUILD(USE_TILED_BACKING_STORE ON) 123 SET_AND_EXPOSE_TO_BUILD(USE_UNIX_DOMAIN_SOCKETS ON) 46 124 47 125 set(WTF_LIBRARY_TYPE STATIC) 48 126 set(JavaScriptCore_LIBRARY_TYPE SHARED) 127 set(WebCore_LIBRARY_TYPE STATIC) 49 128 50 129 set(ENABLE_API_TESTS ON) 51 set(ENABLE_WEBCORE O FF)130 set(ENABLE_WEBCORE ON) 52 131 set(ENABLE_WEBKIT OFF) 53 132 set(ENABLE_WEBKIT_LEGACY OFF)
Note:
See TracChangeset
for help on using the changeset viewer.