mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-26 17:17:31 +09:00
Issue #2472 - Part 4: Make TopLayer{Push|Pop} part of nsIDocument.
This commit is contained in:
parent
79c7489bb0
commit
7a04afab4a
2 changed files with 11 additions and 2 deletions
|
|
@ -904,11 +904,11 @@ public:
|
||||||
void CleanupFullscreenState();
|
void CleanupFullscreenState();
|
||||||
|
|
||||||
// Pushes aElement onto the top layer
|
// Pushes aElement onto the top layer
|
||||||
bool TopLayerPush(Element* aElement);
|
bool TopLayerPush(Element* aElement) override;
|
||||||
|
|
||||||
// Removes the topmost element which have aPredicate return true from the top
|
// Removes the topmost element which have aPredicate return true from the top
|
||||||
// layer. The removed element, if any, is returned.
|
// layer. The removed element, if any, is returned.
|
||||||
Element* TopLayerPop(FunctionRef<bool(Element*)> aPredicateFunc);
|
Element* TopLayerPop(FunctionRef<bool(Element*)> aPredicateFunc) override;
|
||||||
|
|
||||||
// Pops the fullscreen element from the top layer and clears its
|
// Pops the fullscreen element from the top layer and clears its
|
||||||
// fullscreen flag.
|
// fullscreen flag.
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,8 @@ class nsIGlobalObject;
|
||||||
class nsStyleSet;
|
class nsStyleSet;
|
||||||
struct nsCSSSelectorList;
|
struct nsCSSSelectorList;
|
||||||
|
|
||||||
|
using mozilla::FunctionRef;
|
||||||
|
|
||||||
namespace mozilla {
|
namespace mozilla {
|
||||||
class CSSStyleSheet;
|
class CSSStyleSheet;
|
||||||
class ErrorResult;
|
class ErrorResult;
|
||||||
|
|
@ -1339,6 +1341,13 @@ public:
|
||||||
* in this document.
|
* in this document.
|
||||||
*/
|
*/
|
||||||
virtual void SetFullscreenRoot(nsIDocument* aRoot) = 0;
|
virtual void SetFullscreenRoot(nsIDocument* aRoot) = 0;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Push elements to and pop elements from the top layer.
|
||||||
|
* Currently in use for fullscreen and modal version of <dialog>.
|
||||||
|
*/
|
||||||
|
virtual bool TopLayerPush(Element* aElement) = 0;
|
||||||
|
virtual Element* TopLayerPop(FunctionRef<bool(Element*)> aPredicateFunc) = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Synchronously cleans up the fullscreen state on the given document.
|
* Synchronously cleans up the fullscreen state on the given document.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue