summaryrefslogtreecommitdiff
path: root/layout
diff options
context:
space:
mode:
authorRobert Longson <longsonr@gmail.com>2018-03-29 03:12:05 +0100
committerwolfbeast <mcwerewolf@gmail.com>2018-04-19 11:39:36 +0200
commitacf95284e7d9b00d4ab1e526dc5f12b4d29bdff1 (patch)
tree177bf9ba21e1997671bb0ad0082a2d33ceaccf40 /layout
parent1d126c1d566d104a0976992c63c624785825770d (diff)
downloaduxp-acf95284e7d9b00d4ab1e526dc5f12b4d29bdff1.tar.gz
Bug 1448774. r=dholbert, a=RyanVM
--HG-- extra : source : edfd9ffbd7208ef0a59f40a0d77d8dd53c905cb9 extra : intermediate-source : 3784b22ec536b08ce95201d73ae8806340c18b8c
Diffstat (limited to 'layout')
-rw-r--r--layout/svg/SVGTextFrame.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/layout/svg/SVGTextFrame.cpp b/layout/svg/SVGTextFrame.cpp
index e681260682..e5a03333f9 100644
--- a/layout/svg/SVGTextFrame.cpp
+++ b/layout/svg/SVGTextFrame.cpp
@@ -5111,8 +5111,8 @@ SVGTextFrame::DoGlyphPositioning()
float actualTextLength =
static_cast<float>(presContext->AppUnitsToGfxUnits(frameLength) * factor);
- RefPtr<SVGAnimatedEnumeration> lengthAdjustEnum = element->LengthAdjust();
- uint16_t lengthAdjust = lengthAdjustEnum->AnimVal();
+ uint16_t lengthAdjust =
+ element->EnumAttributes()[SVGTextContentElement::LENGTHADJUST].GetAnimValue();
switch (lengthAdjust) {
case SVG_LENGTHADJUST_SPACINGANDGLYPHS:
// Scale the glyphs and their positions.