Index: Source/core/css/PropertySetCSSStyleDeclaration.cpp |
diff --git a/Source/core/css/PropertySetCSSStyleDeclaration.cpp b/Source/core/css/PropertySetCSSStyleDeclaration.cpp |
index 6d132943686b75d5d9fdcffa0b5e59874c31fb18..140976939473e0247f639ca7ff1908dcfc42801d 100644 |
--- a/Source/core/css/PropertySetCSSStyleDeclaration.cpp |
+++ b/Source/core/css/PropertySetCSSStyleDeclaration.cpp |
@@ -215,7 +215,9 @@ void AbstractPropertySetCSSStyleDeclaration::setProperty(const String& propertyN |
if (!propertyID) |
return; |
- bool important = priority.find("important", 0, false) != kNotFound; |
+ bool important = equalIgnoringCase(priority, "important"); |
+ if (!important && !priority.isEmpty()) |
+ return; |
willMutate(); |