Bug 1685303: part 28) Add `virtual` `AccessibleCaretManager::MaybeFlushLayout`. r...
commite18a0436b9c4bd2bf83c6e34d9b4f72b1fc25211
authorMirko Brodesser <mbrodesser@mozilla.com>
Fri, 22 Jan 2021 12:18:05 +0000 (22 12:18 +0000)
committerMirko Brodesser <mbrodesser@mozilla.com>
Fri, 22 Jan 2021 12:18:05 +0000 (22 12:18 +0000)
treef0a9193fc83c1f89d2f6be9126de359f66b89f76
parent17413678c3c3250f14fd85f014308ef49d230767
Bug 1685303: part 28) Add `virtual` `AccessibleCaretManager::MaybeFlushLayout`. r=TYLin,smaug

In the unit-tests, flushing is not done. This was prevented implicitly
by nulling `mPresShell`. This change makes that explicit by stubbing
`MaybeFlushLayout`.

Note that `IsTerminated`, which is called in the same context is already
virtual, so I expect this to not have a noticeable performance-impact.

Depends on D102607

Differential Revision: https://phabricator.services.mozilla.com/D102608
layout/base/AccessibleCaretManager.cpp
layout/base/AccessibleCaretManager.h
layout/base/gtest/TestAccessibleCaretManager.cpp