Open Bug 1739559 Opened 3 years ago Updated 7 months ago

Cache isn't updated when text attributes change

Categories

(Core :: Disability Access APIs, defect)

defect

Tracking

()

People

(Reporter: Jamie, Unassigned)

References

Details

Bug 1730096 implemented support for caching text attributes. However, if text attributes are updated on a container, the cache isn't updated accordingly. We need to get notified about such updates and push the cache when they occur.

Morgan noted that there is a nsIFrame::DidSetComputedStyle we can probably tweak to get notifications. (I think that's the function she meant. :) )

One thing to note is that I think style changes we care about often (always?) cause text to be reflowed. In that case, I think we're going to get text change notifications as well, where we already push the cache. We'll need to ensure we don't end up with redundant pushes as a result. For example, we might add code to prevent the text update push if the text string hasn't changed.

See Also: → 1901177
Duplicate of this bug: 1908275

We should be able to use LocalAccessible::MaybeQueueCacheUpdateForStyleChanges for this.

Bug 1908275 suggests we don't reflow, at least for colour changes. We'll need to look into which changes we handle correctly already and which ones we don't.

I'm marking this s3 because it doesn't appear to have impacted anyone in over a year, but it's probably bordering on an s2 for some users and use cases such as web or document authoring.

Severity: -- → S3
Type: task → defect
Summary: Update cache when text attributes change → Cache isn't updated when text attributes change
You need to log in before you can comment on or make changes to this bug.