Title: [163362] trunk/Source/WebKit2
- Revision
- 163362
- Author
- jae.p...@company100.net
- Date
- 2014-02-03 21:05:43 -0800 (Mon, 03 Feb 2014)
Log Message
Use nullptr in ShareableBitmap
https://bugs.webkit.org/show_bug.cgi?id=128153
Reviewed by Gyuyoung Kim.
* Shared/ShareableBitmap.cpp:
(WebKit::ShareableBitmap::create):
(WebKit::ShareableBitmap::createShareable):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (163361 => 163362)
--- trunk/Source/WebKit2/ChangeLog 2014-02-04 04:13:54 UTC (rev 163361)
+++ trunk/Source/WebKit2/ChangeLog 2014-02-04 05:05:43 UTC (rev 163362)
@@ -1,3 +1,14 @@
+2014-02-03 Jae Hyun Park <jae.p...@company100.net>
+
+ Use nullptr in ShareableBitmap
+ https://bugs.webkit.org/show_bug.cgi?id=128153
+
+ Reviewed by Gyuyoung Kim.
+
+ * Shared/ShareableBitmap.cpp:
+ (WebKit::ShareableBitmap::create):
+ (WebKit::ShareableBitmap::createShareable):
+
2014-02-03 Anders Carlsson <ander...@apple.com>
Add title and hasOnlySecureContent properties to WKWebView
Modified: trunk/Source/WebKit2/Shared/ShareableBitmap.cpp (163361 => 163362)
--- trunk/Source/WebKit2/Shared/ShareableBitmap.cpp 2014-02-04 04:13:54 UTC (rev 163361)
+++ trunk/Source/WebKit2/Shared/ShareableBitmap.cpp 2014-02-04 05:05:43 UTC (rev 163362)
@@ -63,7 +63,7 @@
void* data = ""
if (!tryFastMalloc(numBytes).getValue(data))
- return 0;
+ return nullptr;
return adoptRef(new ShareableBitmap(size, flags, data));
}
@@ -74,7 +74,7 @@
RefPtr<SharedMemory> sharedMemory = SharedMemory::create(numBytes);
if (!sharedMemory)
- return 0;
+ return nullptr;
return adoptRef(new ShareableBitmap(size, flags, sharedMemory));
}
@@ -94,7 +94,7 @@
// Create the shared memory.
RefPtr<SharedMemory> sharedMemory = SharedMemory::create(handle.m_handle, protection);
if (!sharedMemory)
- return 0;
+ return nullptr;
return create(handle.m_size, handle.m_flags, sharedMemory.release());
}
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes