Index: Source/core/editing/EditorCommand.cpp |
diff --git a/Source/core/editing/EditorCommand.cpp b/Source/core/editing/EditorCommand.cpp |
index 29ac4dc5ff3396c19b15520e5a8a64a3d5820210..5fcf7e24a6324c364a275aad56fa3eb3ee843699 100644 |
--- a/Source/core/editing/EditorCommand.cpp |
+++ b/Source/core/editing/EditorCommand.cpp |
@@ -121,7 +121,7 @@ static bool executeApplyStyle(Frame* frame, EditorCommandSource source, EditActi |
return applyCommandToFrame(frame, source, action, style.get()); |
} |
-static bool executeApplyStyle(Frame* frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, int propertyValue) |
+static bool executeApplyStyle(Frame* frame, EditorCommandSource source, EditAction action, CSSPropertyID propertyID, CSSValueID propertyValue) |
{ |
RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); |
style->setProperty(propertyID, propertyValue); |
@@ -418,7 +418,7 @@ static bool executeFontName(Frame* frame, Event*, EditorCommandSource source, co |
static bool executeFontSize(Frame* frame, Event*, EditorCommandSource source, const String& value) |
{ |
- int size; |
+ CSSValueID size; |
if (!HTMLFontElement::cssValueFromFontSizeNumber(value, size)) |
return false; |
return executeApplyStyle(frame, source, EditActionChangeAttributes, CSSPropertyFontSize, size); |