Changeset 274074 in webkit for trunk/Source/WebCore/css/CSSStyleDeclaration.cpp
- Timestamp:
- Mar 8, 2021, 8:57:53 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSStyleDeclaration.cpp
r273688 r274074 213 213 } 214 214 215 ExceptionOr<void> CSSStyleDeclaration::setPropertyValueInternal(CSSPropertyID propertyID, String value)216 {217 bool important = false;218 if (DeprecatedGlobalSettings::shouldRespectPriorityInCSSAttributeSetters()) {219 auto importantIndex = value.findIgnoringASCIICase("!important");220 if (importantIndex && importantIndex != notFound) {221 important = true;222 value = value.left(importantIndex - 1);223 }224 }225 226 return setPropertyInternal(propertyID, WTFMove(value), important);227 }228 229 215 const Settings* CSSStyleDeclaration::settings() const 230 216 { … … 258 244 259 245 propertySupported = true; 260 return setProperty ValueInternal(propertyID, WTFMove(value));246 return setPropertyInternal(propertyID, WTFMove(value), false); 261 247 } 262 248
Note:
See TracChangeset
for help on using the changeset viewer.