Changeset 268599 in webkit for trunk/Source/WebCore/css/CSSStyleDeclaration.cpp
- Timestamp:
- Oct 16, 2020, 11:29:40 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSStyleDeclaration.cpp
r268564 r268599 32 32 #include "Document.h" 33 33 #include "HashTools.h" 34 #include "RuntimeEnabledFeatures.h"35 34 #include "Settings.h" 36 35 #include "StyledElement.h" … … 46 45 47 46 enum class PropertyNamePrefix { 48 None, Epub, CSS, Pixel, Pos, WebKit, 49 #if ENABLE(LEGACY_CSS_VENDOR_PREFIXES) 50 Apple, KHTML, 51 #endif 47 None, 48 Epub, 49 CSS, 50 Pixel, 51 Pos, 52 WebKit 52 53 }; 53 54 … … 90 91 UChar firstChar = toASCIILower(propertyName[0]); 91 92 switch (firstChar) { 92 #if ENABLE(LEGACY_CSS_VENDOR_PREFIXES)93 case 'a':94 if (RuntimeEnabledFeatures::sharedFeatures().legacyCSSVendorPrefixesEnabled() && matchesCSSPropertyNamePrefix(propertyName, "apple"))95 return PropertyNamePrefix::Apple;96 break;97 #endif98 93 case 'c': 99 94 if (matchesCSSPropertyNamePrefix(propertyName, "css")) 100 95 return PropertyNamePrefix::CSS; 101 96 break; 102 #if ENABLE(LEGACY_CSS_VENDOR_PREFIXES)103 case 'k':104 if (RuntimeEnabledFeatures::sharedFeatures().legacyCSSVendorPrefixesEnabled() && matchesCSSPropertyNamePrefix(propertyName, "khtml"))105 return PropertyNamePrefix::KHTML;106 break;107 #endif108 97 case 'e': 109 98 if (matchesCSSPropertyNamePrefix(propertyName, "epub")) … … 198 187 hadPixelOrPosPrefix = true; 199 188 break; 200 #if ENABLE(LEGACY_CSS_VENDOR_PREFIXES)201 case PropertyNamePrefix::Apple:202 case PropertyNamePrefix::KHTML:203 ASSERT(RuntimeEnabledFeatures::sharedFeatures().legacyCSSVendorPrefixesEnabled());204 writeWebKitPrefix(bufferPtr);205 i += 5;206 break;207 #endif208 189 case PropertyNamePrefix::Epub: 209 190 writeEpubPrefix(bufferPtr);
Note:
See TracChangeset
for help on using the changeset viewer.