Title: [293923] trunk/Source
Revision
293923
Author
[email protected]
Date
2022-05-06 14:10:44 -0700 (Fri, 06 May 2022)

Log Message

Remove abandoned WKPreference for SelectionPaintingWithoutSelectionGaps
https://bugs.webkit.org/show_bug.cgi?id=240129

Reviewed by Alan Bujtas.

Remove the abandoned WKPreference 'SelectionPaintingWithoutSelectionGaps', which was added to support
the EFL port. As the EFL port is no longer buildable, and this code is never used outside of EFL, we
should remove this dead code.

Source/WebCore:

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::shouldPaintSelectionGaps const):

Source/WebKit:

* UIProcess/API/C/WKPreferences.cpp:
(WKPreferencesSetSelectionPaintingWithoutSelectionGapsEnabled): Deleted.
(WKPreferencesGetSelectionPaintingWithoutSelectionGapsEnabled): Deleted.
* UIProcess/API/C/WKPreferencesRefPrivate.h:

Source/WTF:

* Scripts/Preferences/WebPreferences.yaml:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (293922 => 293923)


--- trunk/Source/WTF/ChangeLog	2022-05-06 21:03:27 UTC (rev 293922)
+++ trunk/Source/WTF/ChangeLog	2022-05-06 21:10:44 UTC (rev 293923)
@@ -1,5 +1,18 @@
 2022-05-06  Brent Fulgham  <[email protected]>
 
+        Remove abandoned WKPreference for SelectionPaintingWithoutSelectionGaps
+        https://bugs.webkit.org/show_bug.cgi?id=240129
+
+        Reviewed by Alan Bujtas.
+
+        Remove the abandoned WKPreference 'SelectionPaintingWithoutSelectionGaps', which was added to support
+        the EFL port. As the EFL port is no longer buildable, and this code is never used outside of EFL, we
+        should remove this dead code.
+
+        * Scripts/Preferences/WebPreferences.yaml:
+
+2022-05-06  Brent Fulgham  <[email protected]>
+
         Remove internal WKPreference for non-iTunesAVOutput now that all platform support it 
         https://bugs.webkit.org/show_bug.cgi?id=240141
 

Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml (293922 => 293923)


--- trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml	2022-05-06 21:03:27 UTC (rev 293922)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml	2022-05-06 21:10:44 UTC (rev 293923)
@@ -1899,16 +1899,6 @@
     WebCore:
       default: false
 
-SelectionPaintingWithoutSelectionGapsEnabled:
-  type: bool
-  defaultValue:
-    WebKitLegacy:
-      default: false
-    WebKit:
-      default: false
-    WebCore:
-      default: false
-
 SerifFontFamily:
   type: String
   webKitLegacyPreferenceKey: WebKitSerifFont

Modified: trunk/Source/WebCore/ChangeLog (293922 => 293923)


--- trunk/Source/WebCore/ChangeLog	2022-05-06 21:03:27 UTC (rev 293922)
+++ trunk/Source/WebCore/ChangeLog	2022-05-06 21:10:44 UTC (rev 293923)
@@ -1,3 +1,17 @@
+2022-05-06  Brent Fulgham  <[email protected]>
+
+        Remove abandoned WKPreference for SelectionPaintingWithoutSelectionGaps
+        https://bugs.webkit.org/show_bug.cgi?id=240129
+
+        Reviewed by Alan Bujtas.
+
+        Remove the abandoned WKPreference 'SelectionPaintingWithoutSelectionGaps', which was added to support
+        the EFL port. As the EFL port is no longer buildable, and this code is never used outside of EFL, we
+        should remove this dead code.
+
+        * rendering/RenderBlock.cpp:
+        (WebCore::RenderBlock::shouldPaintSelectionGaps const):
+
 2022-05-06  Gabriel Nava Marino  <[email protected]>
 
         null ptr deref in WebCore::Frame::setPrinting

Modified: trunk/Source/WebCore/rendering/RenderBlock.cpp (293922 => 293923)


--- trunk/Source/WebCore/rendering/RenderBlock.cpp	2022-05-06 21:03:27 UTC (rev 293922)
+++ trunk/Source/WebCore/rendering/RenderBlock.cpp	2022-05-06 21:10:44 UTC (rev 293923)
@@ -1445,9 +1445,6 @@
 
 bool RenderBlock::shouldPaintSelectionGaps() const
 {
-    if (settings().selectionPaintingWithoutSelectionGapsEnabled())
-        return false;
-
     return selectionState() != HighlightState::None && style().visibility() == Visibility::Visible && isSelectionRoot();
 }
 

Modified: trunk/Source/WebKit/ChangeLog (293922 => 293923)


--- trunk/Source/WebKit/ChangeLog	2022-05-06 21:03:27 UTC (rev 293922)
+++ trunk/Source/WebKit/ChangeLog	2022-05-06 21:10:44 UTC (rev 293923)
@@ -1,3 +1,19 @@
+2022-05-06  Brent Fulgham  <[email protected]>
+
+        Remove abandoned WKPreference for SelectionPaintingWithoutSelectionGaps
+        https://bugs.webkit.org/show_bug.cgi?id=240129
+
+        Reviewed by Alan Bujtas.
+
+        Remove the abandoned WKPreference 'SelectionPaintingWithoutSelectionGaps', which was added to support
+        the EFL port. As the EFL port is no longer buildable, and this code is never used outside of EFL, we
+        should remove this dead code.
+
+        * UIProcess/API/C/WKPreferences.cpp:
+        (WKPreferencesSetSelectionPaintingWithoutSelectionGapsEnabled): Deleted.
+        (WKPreferencesGetSelectionPaintingWithoutSelectionGapsEnabled): Deleted.
+        * UIProcess/API/C/WKPreferencesRefPrivate.h:
+
 2022-05-04  Ben Nham  <[email protected]>
 
         Improve Mac webpushd sandbox

Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp (293922 => 293923)


--- trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp	2022-05-06 21:03:27 UTC (rev 293922)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferences.cpp	2022-05-06 21:10:44 UTC (rev 293923)
@@ -1645,16 +1645,6 @@
     return toImpl(preferencesRef)->fetchAPIKeepAliveEnabled();
 }
 
-void WKPreferencesSetSelectionPaintingWithoutSelectionGapsEnabled(WKPreferencesRef preferencesRef, bool flag)
-{
-    toImpl(preferencesRef)->setSelectionPaintingWithoutSelectionGapsEnabled(flag);
-}
-
-bool WKPreferencesGetSelectionPaintingWithoutSelectionGapsEnabled(WKPreferencesRef preferencesRef)
-{
-    return toImpl(preferencesRef)->selectionPaintingWithoutSelectionGapsEnabled();
-}
-
 void WKPreferencesSetAllowsPictureInPictureMediaPlayback(WKPreferencesRef preferencesRef, bool enabled)
 {
     toImpl(preferencesRef)->setAllowsPictureInPictureMediaPlayback(enabled);

Modified: trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h (293922 => 293923)


--- trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h	2022-05-06 21:03:27 UTC (rev 293922)
+++ trunk/Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h	2022-05-06 21:10:44 UTC (rev 293923)
@@ -410,10 +410,6 @@
 WK_EXPORT void WKPreferencesSetDownloadAttributeEnabled(WKPreferencesRef, bool flag);
 WK_EXPORT bool WKPreferencesGetDownloadAttributeEnabled(WKPreferencesRef);
 
-// Defaults to false
-WK_EXPORT void WKPreferencesSetSelectionPaintingWithoutSelectionGapsEnabled(WKPreferencesRef, bool flag);
-WK_EXPORT bool WKPreferencesGetSelectionPaintingWithoutSelectionGapsEnabled(WKPreferencesRef);
-
 // Defaults to false.
 WK_EXPORT void WKPreferencesSetAllowsPictureInPictureMediaPlayback(WKPreferencesRef, bool flag);
 WK_EXPORT bool WKPreferencesGetAllowsPictureInPictureMediaPlayback(WKPreferencesRef);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to