#ifndef FontSize_h
#define FontSize_h
-namespace WebCore {
+#include "core/CSSValueKeywords.h"
+#include "platform/fonts/FixedPitchFontType.h"
+
+namespace blink {
class Document;
// Given a CSS keyword in the range (xx-small to -webkit-xxx-large), this function will return
// the correct font size scaled relative to the user's default (medium).
- static float fontSizeForKeyword(const Document*, int keyword, bool shouldUseFixedDefaultSize);
+ static float fontSizeForKeyword(const Document*, CSSValueID keyword, FixedPitchFontType);
// Given a font size in pixel, this function will return legacy font size between 1 and 7.
- static int legacyFontSize(const Document*, int pixelFontSize, bool shouldUseFixedDefaultSize);
+ static int legacyFontSize(const Document*, int pixelFontSize, FixedPitchFontType);
};
-} // namespace WebCore
+} // namespace blink
#endif // FontSize_h