Unreviewed. Fix debug build after r183176.
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Apr 2015 09:43:36 +0000 (09:43 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Apr 2015 09:43:36 +0000 (09:43 +0000)
* Platform/unix/SharedMemoryUnix.cpp:
(WebKit::SharedMemory::Handle::decode):
(WebKit::SharedMemory::createHandle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@183184 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/unix/SharedMemoryUnix.cpp

index c6a14af..e5ac296 100644 (file)
@@ -1,3 +1,11 @@
+2015-04-23  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        Unreviewed. Fix debug build after r183176.
+
+        * Platform/unix/SharedMemoryUnix.cpp:
+        (WebKit::SharedMemory::Handle::decode):
+        (WebKit::SharedMemory::createHandle):
+
 2015-04-23  Andreas Kling  <akling@apple.com>
 
         There should only be one way to get the system memory size.
index 0c5a2cc..0f07a4a 100644 (file)
@@ -72,7 +72,6 @@ void SharedMemory::Handle::encode(IPC::ArgumentEncoder& encoder) const
 
 bool SharedMemory::Handle::decode(IPC::ArgumentDecoder& decoder, Handle& handle)
 {
-    ASSERT_ARG(handle, !handle.m_size);
     ASSERT_ARG(handle, handle.isNull());
 
     IPC::Attachment attachment;
@@ -174,7 +173,6 @@ SharedMemory::~SharedMemory()
 
 bool SharedMemory::createHandle(Handle& handle, Protection)
 {
-    ASSERT_ARG(handle, !handle.m_size);
     ASSERT_ARG(handle, handle.isNull());
 
     // FIXME: Handle the case where the passed Protection is ReadOnly.