Index: Source/WebCore/css/StyleResolver.cpp |
=================================================================== |
--- Source/WebCore/css/StyleResolver.cpp (revision 136563) |
+++ Source/WebCore/css/StyleResolver.cpp (working copy) |
@@ -3967,7 +3967,7 @@ |
size = fontSizeForKeyword(m_checker.document(), CSSValueXxSmall + childFont.keywordSize() - 1, childFont.useFixedDefaultSize()); |
else { |
Settings* settings = documentSettings(); |
- float fixedScaleFactor = settings |
+ float fixedScaleFactor = (settings && settings->defaultFixedFontSize() && settings->defaultFontSize()) |
? static_cast<float>(settings->defaultFixedFontSize()) / settings->defaultFontSize() |
: 1; |
size = parentFont.useFixedDefaultSize() ? |