Title: [273637] trunk/Source/WebCore
Revision
273637
Author
wei...@apple.com
Date
2021-02-28 11:42:46 -0800 (Sun, 28 Feb 2021)

Log Message

Consider removing support for CSS value keywords with the -khtml- prefix
https://bugs.webkit.org/show_bug.cgi?id=222515

Reviewed by Darin Adler.

Try removing re-writing of the -khtml- prefix to -webkit- for CSS value keywords
and see what breaks.

* css/parser/CSSPropertyParser.cpp:
(WebCore::cssValueKeywordID):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (273636 => 273637)


--- trunk/Source/WebCore/ChangeLog	2021-02-28 16:22:20 UTC (rev 273636)
+++ trunk/Source/WebCore/ChangeLog	2021-02-28 19:42:46 UTC (rev 273637)
@@ -1,3 +1,16 @@
+2021-02-28  Sam Weinig  <wei...@apple.com>
+
+        Consider removing support for CSS value keywords with the -khtml- prefix
+        https://bugs.webkit.org/show_bug.cgi?id=222515
+
+        Reviewed by Darin Adler.
+
+        Try removing re-writing of the -khtml- prefix to -webkit- for CSS value keywords
+        and see what breaks. 
+
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::cssValueKeywordID):
+
 2021-02-28  Zalan Bujtas  <za...@apple.com>
 
         [LFC][IFC] Every line box must have a root inline box

Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (273636 => 273637)


--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2021-02-28 16:22:20 UTC (rev 273636)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2021-02-28 19:42:46 UTC (rev 273637)
@@ -175,7 +175,7 @@
         // This makes the string one character longer.
         // On iOS we don't want to change values starting with -apple-system to -webkit-system.
         // FIXME: Remove this mangling without breaking the web.
-        if (isAppleLegacyCssValueKeyword(buffer, length) || hasPrefix(buffer, length, "-khtml-")) {
+        if (isAppleLegacyCssValueKeyword(buffer, length)) {
             memmove(buffer + 7, buffer + 6, length + 1 - 6);
             memcpy(buffer, "-webkit", 7);
             ++length;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to