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

Unified Diff: Source/core/dom/StyledElement.h

Issue 16339006: Make sure to use CSSValueID and CSSPropertyID rather than integers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/dom/StyledElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyledElement.h
diff --git a/Source/core/dom/StyledElement.h b/Source/core/dom/StyledElement.h
index c6811a9e316447b306f67e1bbd16d292eacd0ef1..a93efe2b99217224050b819c5f998f02fc664a52 100644
--- a/Source/core/dom/StyledElement.h
+++ b/Source/core/dom/StyledElement.h
@@ -47,7 +47,8 @@ public:
const StylePropertySet* inlineStyle() const { return elementData() ? elementData()->m_inlineStyle.get() : 0; }
- bool setInlineStyleProperty(CSSPropertyID, int identifier, bool important = false);
+ bool setInlineStyleProperty(CSSPropertyID, CSSValueID identifier, bool important = false);
+ bool setInlineStyleProperty(CSSPropertyID, CSSPropertyID identifier, bool important = false);
bool setInlineStyleProperty(CSSPropertyID, double value, CSSPrimitiveValue::UnitTypes, bool important = false);
bool setInlineStyleProperty(CSSPropertyID, const String& value, bool important = false);
bool removeInlineStyleProperty(CSSPropertyID);
@@ -70,7 +71,7 @@ protected:
virtual bool isPresentationAttribute(const QualifiedName&) const { return false; }
- void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, int identifier);
+ void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, CSSValueID identifier);
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, double value, CSSPrimitiveValue::UnitTypes);
void addPropertyToPresentationAttributeStyle(MutableStylePropertySet*, CSSPropertyID, const String& value);
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/dom/StyledElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698