зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1772291: extend documentation of `XULPopupElement::openPopup*` to reflect behavior when the popup is already opened. r=NeilDeakin,edgar DONTBUILD
This allows callers to rely on this property. I didn't extend the documentation for `XULPopupElement::ShowPopupAtScreen` because it seems to not have this property for native context menus. If that inconsistency is considered a bug, it should be fixed in a separate ticket. Differential Revision: https://phabricator.services.mozilla.com/D148114
This commit is contained in:
Родитель
34a225ac72
Коммит
c27a361233
|
@ -42,6 +42,8 @@ interface XULPopupElement : XULElement
|
|||
/**
|
||||
* Open the popup relative to a specified node at a specific location.
|
||||
*
|
||||
* If the popup is already open, calling this method has no effect.
|
||||
*
|
||||
* The popup may be either anchored to another node or opened freely.
|
||||
* To anchor a popup to a node, supply an anchor node and set the position
|
||||
* to a string indicating the manner in which the popup should be anchored.
|
||||
|
@ -104,6 +106,8 @@ interface XULPopupElement : XULElement
|
|||
* similar to openPopup except that that rectangle of the anchor is supplied
|
||||
* rather than an element. The anchor rectangle arguments are screen
|
||||
* coordinates.
|
||||
*
|
||||
* If the popup is already open, calling this method has no effect.
|
||||
*/
|
||||
void openPopupAtScreenRect(optional DOMString position = "",
|
||||
optional long x = 0,
|
||||
|
|
Загрузка…
Ссылка в новой задаче