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

Unified Diff: Source/core/css/FontSize.h

Issue 342883004: Using Enum in place of bool for better code readability (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Comment fixes Created 6 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
Index: Source/core/css/FontSize.h
diff --git a/Source/core/css/FontSize.h b/Source/core/css/FontSize.h
index 6eea72cd025a7419206e4041edf3433eb37744bc..cd3465a192bcd84658c55fb056e568f6c2a15b9c 100644
--- a/Source/core/css/FontSize.h
+++ b/Source/core/css/FontSize.h
@@ -22,6 +22,9 @@
#ifndef FontSize_h
#define FontSize_h
+#include "core/CSSValueKeywords.h"
+#include "platform/fonts/FixedPitchFontType.h"
+
namespace WebCore {
class Document;
@@ -39,10 +42,10 @@ public:
// 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

Powered by Google App Engine
This is Rietveld 408576698