mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 06:37:30 +09:00
Bug 1448774. r=dholbert, a=RyanVM
--HG-- extra : source : edfd9ffbd7208ef0a59f40a0d77d8dd53c905cb9 extra : intermediate-source : 3784b22ec536b08ce95201d73ae8806340c18b8c
This commit is contained in:
parent
7f57b96c83
commit
25bd606d80
2 changed files with 3 additions and 2 deletions
|
|
@ -29,6 +29,7 @@ typedef SVGGraphicsElement SVGTextContentElementBase;
|
||||||
|
|
||||||
class SVGTextContentElement : public SVGTextContentElementBase
|
class SVGTextContentElement : public SVGTextContentElementBase
|
||||||
{
|
{
|
||||||
|
friend class ::SVGTextFrame;
|
||||||
public:
|
public:
|
||||||
using FragmentOrElement::TextLength;
|
using FragmentOrElement::TextLength;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5111,8 +5111,8 @@ SVGTextFrame::DoGlyphPositioning()
|
||||||
float actualTextLength =
|
float actualTextLength =
|
||||||
static_cast<float>(presContext->AppUnitsToGfxUnits(frameLength) * factor);
|
static_cast<float>(presContext->AppUnitsToGfxUnits(frameLength) * factor);
|
||||||
|
|
||||||
RefPtr<SVGAnimatedEnumeration> lengthAdjustEnum = element->LengthAdjust();
|
uint16_t lengthAdjust =
|
||||||
uint16_t lengthAdjust = lengthAdjustEnum->AnimVal();
|
element->EnumAttributes()[SVGTextContentElement::LENGTHADJUST].GetAnimValue();
|
||||||
switch (lengthAdjust) {
|
switch (lengthAdjust) {
|
||||||
case SVG_LENGTHADJUST_SPACINGANDGLYPHS:
|
case SVG_LENGTHADJUST_SPACINGANDGLYPHS:
|
||||||
// Scale the glyphs and their positions.
|
// Scale the glyphs and their positions.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue