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

Unified Diff: sky/engine/core/css/StylePropertySet.h

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/css/StylePropertySerializer.cpp ('k') | sky/engine/core/css/StylePropertySet.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StylePropertySet.h
diff --git a/sky/engine/core/css/StylePropertySet.h b/sky/engine/core/css/StylePropertySet.h
index 6ad87585fc76196493d60ec3fd5ed63f77ba853a..1f042ade9ffbdfb096d653f4240fa2c1b8ca99d6 100644
--- a/sky/engine/core/css/StylePropertySet.h
+++ b/sky/engine/core/css/StylePropertySet.h
@@ -59,7 +59,6 @@ public:
CSSPropertyID id() const { return static_cast<CSSPropertyID>(propertyMetadata().m_propertyID); }
CSSPropertyID shorthandID() const { return propertyMetadata().shorthandID(); }
- bool isImportant() const { return propertyMetadata().m_important; }
bool isInherited() const { return propertyMetadata().m_inherited; }
bool isImplicit() const { return propertyMetadata().m_implicit; }
@@ -91,7 +90,6 @@ public:
PassRefPtr<CSSValue> getPropertyCSSValue(CSSPropertyID) const;
String getPropertyValue(CSSPropertyID) const;
- bool propertyIsImportant(CSSPropertyID) const;
CSSPropertyID getPropertyShorthand(CSSPropertyID) const;
bool isPropertyImplicit(CSSPropertyID) const;
@@ -185,12 +183,12 @@ public:
void addParsedProperty(const CSSProperty&);
// These expand shorthand properties into multiple properties.
- bool setProperty(CSSPropertyID, const String& value, bool important = false, StyleSheetContents* contextStyleSheet = 0);
- void setProperty(CSSPropertyID, PassRefPtr<CSSValue>, bool important = false);
+ bool setProperty(CSSPropertyID, const String& value, StyleSheetContents* contextStyleSheet = 0);
+ void setProperty(CSSPropertyID, PassRefPtr<CSSValue>);
// These do not. FIXME: This is too messy, we can do better.
- bool setProperty(CSSPropertyID, CSSValueID identifier, bool important = false);
- bool setProperty(CSSPropertyID, CSSPropertyID identifier, bool important = false);
+ bool setProperty(CSSPropertyID, CSSValueID identifier);
+ bool setProperty(CSSPropertyID, CSSPropertyID identifier);
void appendProperty(const CSSProperty&);
void setProperty(const CSSProperty&, CSSProperty* slot = 0);
« no previous file with comments | « sky/engine/core/css/StylePropertySerializer.cpp ('k') | sky/engine/core/css/StylePropertySet.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698