aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/Element.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/webidls/Element.webidl')
-rw-r--r--components/script/dom/webidls/Element.webidl8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/webidls/Element.webidl b/components/script/dom/webidls/Element.webidl
index 48aeed7fbbb..d09f4846c98 100644
--- a/components/script/dom/webidls/Element.webidl
+++ b/components/script/dom/webidls/Element.webidl
@@ -84,14 +84,22 @@ partial interface Element {
DOMRectList getClientRects();
DOMRect getBoundingClientRect();
+ [Func="::script_can_initiate_scroll"]
void scroll(optional ScrollToOptions options);
+ [Func="::script_can_initiate_scroll"]
void scroll(unrestricted double x, unrestricted double y);
+ [Func="::script_can_initiate_scroll"]
void scrollTo(optional ScrollToOptions options);
+ [Func="::script_can_initiate_scroll"]
void scrollTo(unrestricted double x, unrestricted double y);
+ [Func="::script_can_initiate_scroll"]
void scrollBy(optional ScrollToOptions options);
+ [Func="::script_can_initiate_scroll"]
void scrollBy(unrestricted double x, unrestricted double y);
+ [Func="::script_can_initiate_scroll"]
attribute unrestricted double scrollTop;
+ [Func="::script_can_initiate_scroll"]
attribute unrestricted double scrollLeft;
readonly attribute long scrollWidth;
readonly attribute long scrollHeight;