Title: [143734] trunk/Source/WebKit/chromium
Revision
143734
Author
[email protected]
Date
2013-02-22 08:41:20 -0800 (Fri, 22 Feb 2013)

Log Message

[Chromium] WebKit::initialize should take a Platform* now that WebKitPlatformSupport is empty
https://bugs.webkit.org/show_bug.cgi?id=110605

Reviewed by Adam Barth.

Part of a larger refactoring series; see tracking bug 82948.

* public/WebKit.h:
(WebKit):
* src/WebKit.cpp:
(WebKit::initialize):
(WebKit::initializeWithoutV8):
(WebKit::webKitPlatformSupport):

Modified Paths

Diff

Modified: trunk/Source/WebKit/chromium/ChangeLog (143733 => 143734)


--- trunk/Source/WebKit/chromium/ChangeLog	2013-02-22 16:33:54 UTC (rev 143733)
+++ trunk/Source/WebKit/chromium/ChangeLog	2013-02-22 16:41:20 UTC (rev 143734)
@@ -1,3 +1,19 @@
+2013-02-22  Mark Pilgrim  <[email protected]>
+
+        [Chromium] WebKit::initialize should take a Platform* now that WebKitPlatformSupport is empty
+        https://bugs.webkit.org/show_bug.cgi?id=110605
+
+        Reviewed by Adam Barth.
+
+        Part of a larger refactoring series; see tracking bug 82948.
+
+        * public/WebKit.h:
+        (WebKit):
+        * src/WebKit.cpp:
+        (WebKit::initialize):
+        (WebKit::initializeWithoutV8):
+        (WebKit::webKitPlatformSupport):
+
 2013-02-22  Andrey Kosyakov  <[email protected]>
 
         Web Inspector: [Chromium] add a browser test for frames on timeline

Modified: trunk/Source/WebKit/chromium/public/WebKit.h (143733 => 143734)


--- trunk/Source/WebKit/chromium/public/WebKit.h	2013-02-22 16:33:54 UTC (rev 143733)
+++ trunk/Source/WebKit/chromium/public/WebKit.h	2013-02-22 16:41:20 UTC (rev 143734)
@@ -35,28 +35,28 @@
 
 namespace WebKit {
 
-class WebKitPlatformSupport;
+class Platform;
 
 // Must be called on the thread that will be the main WebKit thread before
-// using any other WebKit APIs. The provided WebKitPlatformSupport; must be
+// using any other WebKit APIs. The provided Platform; must be
 // non-null and must remain valid until the current thread calls shutdown.
-WEBKIT_EXPORT void initialize(WebKitPlatformSupport*);
+WEBKIT_EXPORT void initialize(Platform*);
 
 // Must be called on the thread that will be the main WebKit thread before
-// using any other WebKit APIs. The provided WebKitPlatformSupport; must be
+// using any other WebKit APIs. The provided Platform; must be
 // non-null and must remain valid until the current thread calls shutdown.
 //
 // This is a special variant of initialize that does not intitialize V8.
-WEBKIT_EXPORT void initializeWithoutV8(WebKitPlatformSupport*);
+WEBKIT_EXPORT void initializeWithoutV8(Platform*);
 
-// Once shutdown, the WebKitPlatformSupport passed to initialize will no longer
+// Once shutdown, the Platform passed to initialize will no longer
 // be accessed. No other WebKit objects should be in use when this function is
 // called. Any background threads created by WebKit are promised to be
 // terminated by the time this function returns.
 WEBKIT_EXPORT void shutdown();
 
-// Returns the WebKitPlatformSupport instance passed to initialize.
-WEBKIT_EXPORT WebKitPlatformSupport* webKitPlatformSupport();
+// Returns the Platform instance passed to initialize.
+WEBKIT_EXPORT Platform* webKitPlatformSupport();
 
 // Alters the rendering of content to conform to a fixed set of rules.
 WEBKIT_EXPORT void setLayoutTestMode(bool);

Modified: trunk/Source/WebKit/chromium/src/WebKit.cpp (143733 => 143734)


--- trunk/Source/WebKit/chromium/src/WebKit.cpp	2013-02-22 16:33:54 UTC (rev 143733)
+++ trunk/Source/WebKit/chromium/src/WebKit.cpp	2013-02-22 16:41:20 UTC (rev 143734)
@@ -91,7 +91,7 @@
 // Doing so may cause hard to reproduce crashes.
 static bool s_webKitInitialized = false;
 
-static WebKitPlatformSupport* s_webKitPlatformSupport = 0;
+static Platform* s_webKitPlatformSupport = 0;
 
 static bool generateEntropy(unsigned char* buffer, size_t length)
 {
@@ -109,7 +109,7 @@
 }
 #endif
 
-void initialize(WebKitPlatformSupport* webKitPlatformSupport)
+void initialize(Platform* webKitPlatformSupport)
 {
     initializeWithoutV8(webKitPlatformSupport);
 
@@ -128,7 +128,7 @@
     }
 }
 
-void initializeWithoutV8(WebKitPlatformSupport* webKitPlatformSupport)
+void initializeWithoutV8(Platform* webKitPlatformSupport)
 {
     ASSERT(!s_webKitInitialized);
     s_webKitInitialized = true;
@@ -189,7 +189,7 @@
     WebPrerenderingSupport::shutdown();
 }
 
-WebKitPlatformSupport* webKitPlatformSupport()
+Platform* webKitPlatformSupport()
 {
     return s_webKitPlatformSupport;
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to