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

Unified Diff: sky/engine/core/css/CSSPropertySourceData.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/css/CSSPropertySourceData.h ('k') | sky/engine/core/css/CSSStyleDeclaration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/CSSPropertySourceData.cpp
diff --git a/sky/engine/core/css/CSSPropertySourceData.cpp b/sky/engine/core/css/CSSPropertySourceData.cpp
index a0dc0e4f3af5cee0467c17c452e711dae9e8bf0b..c210ebdc42e0c0ab2e2691b56ddba0ceba1afeb0 100644
--- a/sky/engine/core/css/CSSPropertySourceData.cpp
+++ b/sky/engine/core/css/CSSPropertySourceData.cpp
@@ -55,10 +55,9 @@ unsigned SourceRange::length() const
return end - start;
}
-CSSPropertySourceData::CSSPropertySourceData(const String& name, const String& value, bool important, bool disabled, bool parsedOk, const SourceRange& range)
+CSSPropertySourceData::CSSPropertySourceData(const String& name, const String& value, bool disabled, bool parsedOk, const SourceRange& range)
: name(name)
, value(value)
- , important(important)
, disabled(disabled)
, parsedOk(parsedOk)
, range(range)
@@ -68,7 +67,6 @@ CSSPropertySourceData::CSSPropertySourceData(const String& name, const String& v
CSSPropertySourceData::CSSPropertySourceData(const CSSPropertySourceData& other)
: name(other.name)
, value(other.value)
- , important(other.important)
, disabled(other.disabled)
, parsedOk(other.parsedOk)
, range(other.range)
@@ -78,7 +76,6 @@ CSSPropertySourceData::CSSPropertySourceData(const CSSPropertySourceData& other)
CSSPropertySourceData::CSSPropertySourceData()
: name("")
, value("")
- , important(false)
, disabled(false)
, parsedOk(false)
, range(SourceRange(0, 0))
@@ -97,8 +94,6 @@ String CSSPropertySourceData::toString() const
result.append(name);
result.appendLiteral(": ");
result.append(value);
- if (important)
- result.appendLiteral(" !important");
result.append(';');
if (disabled)
result.appendLiteral(" */");
@@ -107,7 +102,7 @@ String CSSPropertySourceData::toString() const
unsigned CSSPropertySourceData::hash() const
{
- return StringHash::hash(name) + 3 * StringHash::hash(value) + 7 * important + 13 * parsedOk + 31;
+ return StringHash::hash(name) + 3 * StringHash::hash(value) + 13 * parsedOk + 31;
}
} // namespace blink
« no previous file with comments | « sky/engine/core/css/CSSPropertySourceData.h ('k') | sky/engine/core/css/CSSStyleDeclaration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698