Bug 1909142 part 1: Add Selection and nsFrameSelection getters to enable the accessibility engine to query custom highlight information. r=jjaschke

Differential Revision: https://phabricator.services.mozilla.com/D233805
This commit is contained in:
James Teh
2025-02-05 22:59:15 +00:00
parent f1aaea80be
commit 24f35ca025
3 changed files with 20 additions and 2 deletions

View File

@@ -4445,7 +4445,7 @@ void Selection::SetColors(const nsAString& aForegroundColor,
void Selection::ResetColors() { mCustomColors = nullptr; }
void Selection::SetHighlightSelectionData(
HighlightSelectionData aHighlightSelectionData) {
struct HighlightSelectionData aHighlightSelectionData) {
MOZ_ASSERT(mSelectionType == SelectionType::eHighlight);
mHighlightData = std::move(aHighlightSelectionData);
}