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

Unified Diff: Source/core/html/HTMLElement.cpp

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/editing/EditorCommand.cpp ('k') | Source/core/html/HTMLFontElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLElement.cpp
diff --git a/Source/core/html/HTMLElement.cpp b/Source/core/html/HTMLElement.cpp
index fda24bc8eb8e8e3406c47a8957006dd914ae2195..f40633f164f4e0ca2f8acf6a8cd414e3e5bfd09c 100644
--- a/Source/core/html/HTMLElement.cpp
+++ b/Source/core/html/HTMLElement.cpp
@@ -105,7 +105,7 @@ bool HTMLElement::ieForbidsInsertHTML() const
return false;
}
-static inline int unicodeBidiAttributeForDirAuto(HTMLElement* element)
+static inline CSSValueID unicodeBidiAttributeForDirAuto(HTMLElement* element)
{
if (element->hasLocalName(preTag) || element->hasLocalName(textareaTag))
return CSSValueWebkitPlaintext;
@@ -564,8 +564,8 @@ void HTMLElement::applyAlignmentAttributeToStyle(const AtomicString& alignment,
{
// Vertical alignment with respect to the current baseline of the text
// right or left means floating images.
- int floatValue = CSSValueInvalid;
- int verticalAlignValue = CSSValueInvalid;
+ CSSValueID floatValue = CSSValueInvalid;
+ CSSValueID verticalAlignValue = CSSValueInvalid;
if (equalIgnoringCase(alignment, "absmiddle"))
verticalAlignValue = CSSValueMiddle;
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | Source/core/html/HTMLFontElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698