| Index: Source/core/platform/graphics/FontDescription.cpp
|
| diff --git a/Source/core/platform/graphics/FontDescription.cpp b/Source/core/platform/graphics/FontDescription.cpp
|
| index 5b0f32cf25d09da10d78d139dc27e284e73cfdab..25ad74cb10268ce01c96fe359a8e7307c2a82c08 100644
|
| --- a/Source/core/platform/graphics/FontDescription.cpp
|
| +++ b/Source/core/platform/graphics/FontDescription.cpp
|
| @@ -30,6 +30,8 @@
|
| #include "config.h"
|
| #include "core/platform/graphics/FontDescription.h"
|
|
|
| +#include "FontFamilyNames.h"
|
| +
|
| namespace WebCore {
|
|
|
| struct SameSizeAsFontDescription {
|
| @@ -87,6 +89,12 @@ FontWeight FontDescription::bolderWeight(void) const
|
| return FontWeightNormal;
|
| }
|
|
|
| +bool FontDescription::useFixedDefaultSize() const
|
| +{
|
| + // only use fixed default size when there is only one font family, and that family is "monospace"
|
| + return genericFamily() == MonospaceFamily && !family().next() && family().family() == FontFamilyNames::monospaceFamily;
|
| +}
|
| +
|
| FontTraitsMask FontDescription::traitsMask() const
|
| {
|
| return static_cast<FontTraitsMask>((m_italic ? FontStyleItalicMask : FontStyleNormalMask)
|
|
|