| Index: Source/core/rendering/style/RenderStyle.cpp
|
| diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
|
| index d89e8f6753fdc0e58afeeaa2c7cc5dd4aad2201b..2b8e3b49d73c33809e3407a1581ae56d6ce95998 100644
|
| --- a/Source/core/rendering/style/RenderStyle.cpp
|
| +++ b/Source/core/rendering/style/RenderStyle.cpp
|
| @@ -1121,6 +1121,7 @@ float RenderStyle::specifiedFontSize() const { return fontDescription().specifie
|
| float RenderStyle::computedFontSize() const { return fontDescription().computedSize(); }
|
| int RenderStyle::fontSize() const { return fontDescription().computedPixelSize(); }
|
| FontWeight RenderStyle::fontWeight() const { return fontDescription().weight(); }
|
| +FontStretch RenderStyle::fontStretch() const { return fontDescription().stretch(); }
|
|
|
| TextDecoration RenderStyle::textDecorationsInEffect() const
|
| {
|
| @@ -1295,6 +1296,15 @@ void RenderStyle::clearAppliedTextDecorations()
|
| rareInheritedData.access()->appliedTextDecorations = nullptr;
|
| }
|
|
|
| +void RenderStyle::setFontStretch(FontStretch stretch)
|
| +{
|
| + FontSelector* currentFontSelector = font().fontSelector();
|
| + FontDescription desc(fontDescription());
|
| + desc.setStretch(stretch);
|
| + setFontDescription(desc);
|
| + font().update(currentFontSelector);
|
| +}
|
| +
|
| void RenderStyle::getShadowExtent(const ShadowList* shadowList, LayoutUnit &top, LayoutUnit &right, LayoutUnit &bottom, LayoutUnit &left) const
|
| {
|
| top = 0;
|
|
|