| Index: Source/core/css/resolver/FontBuilder.cpp
|
| diff --git a/Source/core/css/resolver/FontBuilder.cpp b/Source/core/css/resolver/FontBuilder.cpp
|
| index f4ac93595588604e94b3f5118cb37d9e43b2199b..28cebbcf4a2ddf7ff454393fd5d60a4840e8ef1d 100644
|
| --- a/Source/core/css/resolver/FontBuilder.cpp
|
| +++ b/Source/core/css/resolver/FontBuilder.cpp
|
| @@ -335,6 +335,10 @@ void FontBuilder::updateAdjustedSize(FontDescription& fontDescription, const Lay
|
| return;
|
|
|
| // We need to create a temporal Font to get xHeight of a primary font.
|
| + // The aspect value is based on the xHeight of the font for the computed font size,
|
| + // so we need to reset the adjustment.
|
| + fontDescription.setAdjustedSize(0);
|
| +
|
| Font font(fontDescription);
|
| font.update(fontSelector);
|
| if (!font.fontMetrics().hasXHeight())
|
|
|