From 40a355a42d4a9444dc753c04c6608dade2f06a23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 03:13:27 +0200 Subject: Adding upstream version 125.0.1. Signed-off-by: Daniel Baumann --- accessible/base/nsCoreUtils.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'accessible/base/nsCoreUtils.h') diff --git a/accessible/base/nsCoreUtils.h b/accessible/base/nsCoreUtils.h index 2c3e7330ff..5e77d6bfe0 100644 --- a/accessible/base/nsCoreUtils.h +++ b/accessible/base/nsCoreUtils.h @@ -30,6 +30,7 @@ namespace mozilla { class PresShell; namespace dom { class Document; +class Element; class XULTreeElement; } // namespace dom } // namespace mozilla @@ -41,6 +42,7 @@ class nsCoreUtils { public: typedef mozilla::PresShell PresShell; typedef mozilla::dom::Document Document; + typedef mozilla::dom::Element Element; /** * Return true if the given node is a label of a control. @@ -305,6 +307,11 @@ class nsCoreUtils { aChar == 0xa0; } + /** + * Remove non-breaking spaces from the beginning and end of the string. + */ + static void TrimNonBreakingSpaces(nsAString& aString); + /* * Return true if there are any observers of accessible events. */ @@ -324,6 +331,15 @@ class nsCoreUtils { */ static bool IsDocumentVisibleConsideringInProcessAncestors( const Document* aDocument); + + /** + * Return true if `aDescendant` is a descendant of any of `aStartAncestor`'s + * shadow-including ancestors. + */ + static bool IsDescendantOfAnyShadowIncludingAncestor(nsINode* aDescendant, + nsINode* aStartAncestor); + + static Element* GetAriaActiveDescendantElement(Element* aElement); }; #endif -- cgit v1.2.3