Changeset 273637 in webkit


Ignore:
Timestamp:
Feb 28, 2021 11:42:46 AM (17 months ago)
Author:
weinig@apple.com
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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r273636 r273637  
     12021-02-28  Sam Weinig  <weinig@apple.com>
     2
     3        Consider removing support for CSS value keywords with the -khtml- prefix
     4        https://bugs.webkit.org/show_bug.cgi?id=222515
     5
     6        Reviewed by Darin Adler.
     7
     8        Try removing re-writing of the -khtml- prefix to -webkit- for CSS value keywords
     9        and see what breaks.
     10
     11        * css/parser/CSSPropertyParser.cpp:
     12        (WebCore::cssValueKeywordID):
     13
    1142021-02-28  Zalan Bujtas  <zalan@apple.com>
    215
  • trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp

    r273068 r273637  
    176176        // On iOS we don't want to change values starting with -apple-system to -webkit-system.
    177177        // FIXME: Remove this mangling without breaking the web.
    178         if (isAppleLegacyCssValueKeyword(buffer, length) || hasPrefix(buffer, length, "-khtml-")) {
     178        if (isAppleLegacyCssValueKeyword(buffer, length)) {
    179179            memmove(buffer + 7, buffer + 6, length + 1 - 6);
    180180            memcpy(buffer, "-webkit", 7);
Note: See TracChangeset for help on using the changeset viewer.