Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(622)

Unified Diff: Source/core/css/StylePropertySet.cpp

Issue 1036653002: Clamp shape-margin to zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add contentWidthExcludingScrollbar Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/StylePropertySet.cpp
diff --git a/Source/core/css/StylePropertySet.cpp b/Source/core/css/StylePropertySet.cpp
index e5c546159c2e13d1ff44bdb87690f14d8c6b1d00..fdcdc7845d0a835b54420549f8b0c5aaf83d13af 100644
--- a/Source/core/css/StylePropertySet.cpp
+++ b/Source/core/css/StylePropertySet.cpp
@@ -357,7 +357,7 @@ void MutableStylePropertySet::addParsedProperties(const WillBeHeapVector<CSSProp
void MutableStylePropertySet::addParsedProperty(const CSSProperty& property)
{
// Only add properties that have no !important counterpart present
- if (!propertyIsImportant(property.id()) || property.isImportant())
+ if (!propertyIsImportant(property.id()) || property.isImportant() || forceOverride())
setProperty(property);
}

Powered by Google App Engine
This is Rietveld 408576698