Changeset 161915 in webkit
- Timestamp:
- Jan 13, 2014 4:02:55 PM (10 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r161890 r161915 1 2014-01-13 Jinwoo Song <jinwoo7.song@samsung.com> 2 3 [EFL][WK2] Replace usage of DEFINE_STATIC_LOCAL with NeverDestroyed 4 https://bugs.webkit.org/show_bug.cgi?id=126882 5 6 Reviewed by Gyuyoung Kim. 7 8 * Shared/efl/ProcessExecutablePathEfl.cpp: 9 (WebKit::executablePathOfWebProcess): 10 (WebKit::executablePathOfPluginProcess): 11 (WebKit::executablePathOfNetworkProcess): 12 * UIProcess/API/efl/EwkView.cpp: 13 (wkPageToEvasObjectMap): 14 * UIProcess/API/efl/ewk_context.cpp: 15 (contextMap): 16 * UIProcess/API/efl/ewk_page_group.cpp: 17 (pageGroupMap): 18 * UIProcess/efl/TextCheckerClientEfl.cpp: 19 (TextCheckerClientEfl::instance): 20 * UIProcess/efl/TextCheckerClientEfl.h: 21 1 22 2014-01-13 Carlos Garcia Campos <cgarcia@igalia.com> 2 23 -
trunk/Source/WebKit2/Shared/efl/ProcessExecutablePathEfl.cpp
r161857 r161915 30 30 #include <libgen.h> 31 31 #include <unistd.h> 32 #include <wtf/NeverDestroyed.h> 32 33 #include <wtf/StdLibExtras.h> 33 34 #include <wtf/text/CString.h> … … 69 70 String executablePathOfWebProcess() 70 71 { 71 DEFINE_STATIC_LOCAL(const String, webKitWebProcessName, (findProcessPath(WEBPROCESSNAME)));72 static NeverDestroyed<const String> webKitWebProcessName(findProcessPath(WEBPROCESSNAME)); 72 73 73 74 return webKitWebProcessName; … … 76 77 String executablePathOfPluginProcess() 77 78 { 78 DEFINE_STATIC_LOCAL(const String, webKitPluginProcessName, (findProcessPath(PLUGINPROCESSNAME)));79 static NeverDestroyed<const String> webKitPluginProcessName(findProcessPath(PLUGINPROCESSNAME)); 79 80 80 81 return webKitPluginProcessName; … … 84 85 String executablePathOfNetworkProcess() 85 86 { 86 DEFINE_STATIC_LOCAL(const String, webKitNetworkProcessName, (findProcessPath(NETWORKPROCESSNAME)));87 static NeverDestroyed<const String> webKitNetworkProcessName(findProcessPath(NETWORKPROCESSNAME)); 87 88 88 89 return webKitNetworkProcessName; -
trunk/Source/WebKit2/UIProcess/API/efl/EwkView.cpp
r161758 r161915 77 77 #include <WebKit2/WKImageCairo.h> 78 78 #include <wtf/MathExtras.h> 79 #include <wtf/NeverDestroyed.h> 79 80 #include <wtf/StdLibExtras.h> 80 81 … … 245 246 static inline WKPageToEvasObjectMap& wkPageToEvasObjectMap() 246 247 { 247 DEFINE_STATIC_LOCAL(WKPageToEvasObjectMap, map, ());248 static NeverDestroyed<WKPageToEvasObjectMap> map; 248 249 return map; 249 250 } -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_context.cpp
r161758 r161915 44 44 #include <WebCore/IconDatabase.h> 45 45 #include <wtf/HashMap.h> 46 #include <wtf/NeverDestroyed.h> 46 47 #include <wtf/text/WTFString.h> 47 48 … … 57 58 static inline ContextMap& contextMap() 58 59 { 59 DEFINE_STATIC_LOCAL(ContextMap, map, ());60 static NeverDestroyed<ContextMap> map; 60 61 return map; 61 62 } -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_page_group.cpp
r161254 r161915 33 33 #include "WKString.h" 34 34 #include "ewk_page_group_private.h" 35 #include <wtf/NeverDestroyed.h> 35 36 36 37 using namespace WebKit; … … 40 41 static inline PageGroupMap& pageGroupMap() 41 42 { 42 DEFINE_STATIC_LOCAL(PageGroupMap, map, ());43 static NeverDestroyed<PageGroupMap> map; 43 44 return map; 44 45 } -
trunk/Source/WebKit2/UIProcess/efl/TextCheckerClientEfl.cpp
r160128 r161915 40 40 #include "ewk_text_checker_private.h" 41 41 #include <Eina.h> 42 #include <wtf/NeverDestroyed.h> 42 43 43 44 using namespace WebCore; … … 83 84 TextCheckerClientEfl& TextCheckerClientEfl::instance() 84 85 { 85 DEFINE_STATIC_LOCAL(TextCheckerClientEfl, textCheckerClient, ());86 static NeverDestroyed<TextCheckerClientEfl> textCheckerClient; 86 87 return textCheckerClient; 87 88 } -
trunk/Source/WebKit2/UIProcess/efl/TextCheckerClientEfl.h
r148670 r161915 39 39 public: 40 40 static TextCheckerClientEfl& instance(); 41 friend class NeverDestroyed<TextCheckerClientEfl>; 41 42 42 43 // Can be set by ewk APIs, by default they are 0.
Note: See TracChangeset
for help on using the changeset viewer.