Title: [287262] trunk/Source/WebCore
Revision
287262
Author
[email protected]
Date
2021-12-20 08:23:17 -0800 (Mon, 20 Dec 2021)

Log Message

Fixes dead code in compareIcons()
https://bugs.webkit.org/show_bug.cgi?id=234234

Patch by Karl Dubost <[email protected]> on 2021-12-20
Reviewed by Youenn Fablet.

* html/LinkIconCollector.cpp:
(WebCore::compareIcons):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (287261 => 287262)


--- trunk/Source/WebCore/ChangeLog	2021-12-20 16:04:07 UTC (rev 287261)
+++ trunk/Source/WebCore/ChangeLog	2021-12-20 16:23:17 UTC (rev 287262)
@@ -1,3 +1,13 @@
+2021-12-20  Karl Dubost  <[email protected]>
+
+        Fixes dead code in compareIcons()
+        https://bugs.webkit.org/show_bug.cgi?id=234234
+
+        Reviewed by Youenn Fablet.
+
+        * html/LinkIconCollector.cpp:
+        (WebCore::compareIcons):
+
 2021-12-20  Alan Bujtas  <[email protected]>
 
         [LFC][IFC] Adjust the atomic/generic inline level boxes with marginLeft in RTL

Modified: trunk/Source/WebCore/html/LinkIconCollector.cpp (287261 => 287262)


--- trunk/Source/WebCore/html/LinkIconCollector.cpp	2021-12-20 16:04:07 UTC (rev 287261)
+++ trunk/Source/WebCore/html/LinkIconCollector.cpp	2021-12-20 16:23:17 UTC (rev 287262)
@@ -53,7 +53,7 @@
     // Apple Touch icons always come first.
     if (a.type == LinkIconType::Favicon && b.type != LinkIconType::Favicon)
         return 1;
-    if (a.type == LinkIconType::Favicon && b.type != LinkIconType::Favicon)
+    if (b.type == LinkIconType::Favicon && a.type != LinkIconType::Favicon)
         return -1;
 
     unsigned aSize = iconSize(a);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to