Title: [270182] trunk/Source/WebKit
Revision
270182
Author
[email protected]
Date
2020-11-27 00:28:03 -0800 (Fri, 27 Nov 2020)

Log Message

[PlayStation] Define platform argument coders for Font
https://bugs.webkit.org/show_bug.cgi?id=219300

Reviewed by Fujii Hironori.

* PlatformPlayStation.cmake:
* Shared/playstation/WebCoreArgumentCodersPlayStation.cpp: Added.
Define required member functions of ArgumentCoder<Ref<WebCore::Font>> class.

Modified Paths

Added Paths

Diff

Modified: trunk/Source/WebKit/ChangeLog (270181 => 270182)


--- trunk/Source/WebKit/ChangeLog	2020-11-27 08:07:42 UTC (rev 270181)
+++ trunk/Source/WebKit/ChangeLog	2020-11-27 08:28:03 UTC (rev 270182)
@@ -1,3 +1,14 @@
+2020-11-27  Yoshiaki Jitsukawa  <[email protected]>
+
+        [PlayStation] Define platform argument coders for Font
+        https://bugs.webkit.org/show_bug.cgi?id=219300
+
+        Reviewed by Fujii Hironori.
+
+        * PlatformPlayStation.cmake:
+        * Shared/playstation/WebCoreArgumentCodersPlayStation.cpp: Added.
+        Define required member functions of ArgumentCoder<Ref<WebCore::Font>> class.
+
 2020-11-26  Wenson Hsieh  <[email protected]>
 
         Calling waitForAndDispatchImmediately<M> on a loop fails when multiple M messages arrive simultaneously

Modified: trunk/Source/WebKit/PlatformPlayStation.cmake (270181 => 270182)


--- trunk/Source/WebKit/PlatformPlayStation.cmake	2020-11-27 08:07:42 UTC (rev 270181)
+++ trunk/Source/WebKit/PlatformPlayStation.cmake	2020-11-27 08:28:03 UTC (rev 270182)
@@ -71,6 +71,8 @@
     Shared/libwpe/NativeWebWheelEventLibWPE.cpp
     Shared/libwpe/WebEventFactory.cpp
 
+    Shared/playstation/WebCoreArgumentCodersPlayStation.cpp
+
     Shared/unix/AuxiliaryProcessMain.cpp
 
     UIProcess/BackingStore.cpp

Added: trunk/Source/WebKit/Shared/playstation/WebCoreArgumentCodersPlayStation.cpp (0 => 270182)


--- trunk/Source/WebKit/Shared/playstation/WebCoreArgumentCodersPlayStation.cpp	                        (rev 0)
+++ trunk/Source/WebKit/Shared/playstation/WebCoreArgumentCodersPlayStation.cpp	2020-11-27 08:28:03 UTC (rev 270182)
@@ -0,0 +1,58 @@
+/*
+ * Copyright (C) 2020 Sony Interactive Entertainment Inc.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include "config.h"
+#include "WebCoreArgumentCoders.h"
+
+#include <WebCore/Font.h>
+#include <WebCore/FontAttributes.h>
+
+namespace IPC {
+
+using namespace WebCore;
+
+void ArgumentCoder<FontAttributes>::encodePlatformData(Encoder&, const FontAttributes&)
+{
+    ASSERT_NOT_REACHED();
+}
+
+Optional<FontAttributes> ArgumentCoder<FontAttributes>::decodePlatformData(Decoder&, FontAttributes&)
+{
+    ASSERT_NOT_REACHED();
+    return WTF::nullopt;
+}
+
+void ArgumentCoder<Ref<Font>>::encodePlatformData(Encoder& encoder, const Ref<Font>& font)
+{
+    ASSERT_NOT_REACHED();
+}
+
+Optional<FontPlatformData> ArgumentCoder<Ref<Font>>::decodePlatformData(Decoder& decoder)
+{
+    ASSERT_NOT_REACHED();
+    return WTF::nullopt;
+}
+
+} // namespace IPC
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to