Title: [288646] trunk/Source/WebCore
Revision
288646
Author
hironori.fu...@sony.com
Date
2022-01-26 14:35:47 -0800 (Wed, 26 Jan 2022)

Log Message

REGRESSION(r288623) MSVC reports "InspectorDOMAgent.cpp(558,40): error C2059: syntax error: ':'"
https://bugs.webkit.org/show_bug.cgi?id=235667

Unreviewed build fix.


* inspector/agents/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::pushStyleableElementToFrontend):
(WebCore::InspectorDOMAgent::pushStyleablePathToFrontend):
Don't use GNU extension `?:`.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (288645 => 288646)


--- trunk/Source/WebCore/ChangeLog	2022-01-26 22:15:10 UTC (rev 288645)
+++ trunk/Source/WebCore/ChangeLog	2022-01-26 22:35:47 UTC (rev 288646)
@@ -1,3 +1,15 @@
+2022-01-26  Fujii Hironori  <hironori.fu...@sony.com>
+
+        REGRESSION(r288623) MSVC reports "InspectorDOMAgent.cpp(558,40): error C2059: syntax error: ':'"
+        https://bugs.webkit.org/show_bug.cgi?id=235667
+
+        Unreviewed build fix.
+
+        * inspector/agents/InspectorDOMAgent.cpp:
+        (WebCore::InspectorDOMAgent::pushStyleableElementToFrontend):
+        (WebCore::InspectorDOMAgent::pushStyleablePathToFrontend):
+        Don't use GNU extension `?:`.
+
 2022-01-26  Antoine Quint  <grao...@webkit.org>
 
         Add an iterator to KeyframeList

Modified: trunk/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp (288645 => 288646)


--- trunk/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp	2022-01-26 22:15:10 UTC (rev 288645)
+++ trunk/Source/WebCore/inspector/agents/InspectorDOMAgent.cpp	2022-01-26 22:35:47 UTC (rev 288646)
@@ -555,7 +555,7 @@
 Protocol::DOM::NodeId InspectorDOMAgent::pushStyleableElementToFrontend(const Styleable& styleable)
 {
     auto* element = elementToPushForStyleable(styleable);
-    return pushNodeToFrontend(element ?: &styleable.element);
+    return pushNodeToFrontend(element ? element : &styleable.element);
 }
 
 Protocol::DOM::NodeId InspectorDOMAgent::pushNodeToFrontend(Node* nodeToPush)
@@ -660,7 +660,7 @@
 Ref<Protocol::DOM::Styleable> InspectorDOMAgent::pushStyleablePathToFrontend(Protocol::ErrorString errorString, const Styleable& styleable)
 {
     auto* element = elementToPushForStyleable(styleable);
-    auto nodeId = pushNodePathToFrontend(errorString, element ?: &styleable.element);
+    auto nodeId = pushNodePathToFrontend(errorString, element ? element : &styleable.element);
 
     auto protocolStyleable = Protocol::DOM::Styleable::create()
         .setNodeId(nodeId)
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to