[Webkit-unassigned] [Bug 261180] Fix inconsistent LengthMode definition for 'textLength'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Sep 12 18:05:00 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=261180

--- Comment #5 from Said Abou-Hallawa <sabouhallawa at apple.com> ---
In WebKit we do not have inconsistency in the LengthMode when changing the baseVal of 'textLength'.

This is how  we create the textLength in SVGTextContentElement:

    Ref<SVGAnimatedLength> m_textLength { SVGAnimatedLength::create(this, SVGLengthMode::Other) };

And this is how we change its baseVal

    m_textLength->setBaseValInternal(SVGLengthValue::construct(SVGLengthMode::Other, newValue, parseError, SVGLengthNegativeValuesMode::Forbid));

So the LengthMode is always SVGLengthMode::Other.

If you want to change the LengthMode to be SVGLengthMode::Width, please retitle this bug. Otherwise please close it.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230913/767e289f/attachment.htm>


More information about the webkit-unassigned mailing list