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

Unified Diff: sky/engine/core/dom/Element.cpp

Issue 860423004: Remove css !important (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/editing/EditingStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Element.cpp
diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
index 2a9d24f901e6ec83e82b353daeb666eab1a6eba4..f5257ef68af0358adc7d4a0eaca757b9a7ad6ee2 100644
--- a/sky/engine/core/dom/Element.cpp
+++ b/sky/engine/core/dom/Element.cpp
@@ -1686,26 +1686,26 @@ void Element::inlineStyleChanged()
elementData()->m_styleAttributeIsDirty = true;
}
-bool Element::setInlineStyleProperty(CSSPropertyID propertyID, CSSValueID identifier, bool important)
+bool Element::setInlineStyleProperty(CSSPropertyID propertyID, CSSValueID identifier)
{
ASSERT(isStyledElement());
- ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier), important);
+ ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createIdentifierValue(identifier));
inlineStyleChanged();
return true;
}
-bool Element::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitType unit, bool important)
+bool Element::setInlineStyleProperty(CSSPropertyID propertyID, double value, CSSPrimitiveValue::UnitType unit)
{
ASSERT(isStyledElement());
- ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit), important);
+ ensureMutableInlineStyle().setProperty(propertyID, cssValuePool().createValue(value, unit));
inlineStyleChanged();
return true;
}
-bool Element::setInlineStyleProperty(CSSPropertyID propertyID, const String& value, bool important)
+bool Element::setInlineStyleProperty(CSSPropertyID propertyID, const String& value)
{
ASSERT(isStyledElement());
- bool changes = ensureMutableInlineStyle().setProperty(propertyID, value, important, document().elementSheet().contents());
+ bool changes = ensureMutableInlineStyle().setProperty(propertyID, value, document().elementSheet().contents());
if (changes)
inlineStyleChanged();
return changes;
« no previous file with comments | « sky/engine/core/dom/Element.h ('k') | sky/engine/core/editing/EditingStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698