Bug 1738701 - Fix getNumberOfChars for tspan and textPath elements r=jfkthame

Differential Revision: https://phabricator.services.mozilla.com/D151164
This commit is contained in:
Robert Longson 2022-07-07 16:38:20 +00:00
parent ec32b38edb
commit 1c3f01bcb5
2 changed files with 1 additions and 4 deletions

View File

@ -73,7 +73,7 @@ Maybe<int32_t> SVGTextContentElement::GetNonLayoutDependentNumberOfChars() {
SVGTextFrame* frame = GetSVGTextFrameForNonLayoutDependentQuery();
if (!frame || frame != GetPrimaryFrame()) {
// Only support this fast path on <text>, not child <tspan>s, etc.
return Some(0);
return Nothing();
}
uint32_t num = 0;

View File

@ -1,3 +0,0 @@
[getextentofchar.html]
[Multiple chunks in a tspan]
expected: FAIL