aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/Element.webidl
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2016-06-08 18:46:02 -0700
committerPatrick Walton <pcwalton@mimiga.net>2016-06-10 18:43:04 -0700
commit041cfe6d0a07882819ae35380c286e7fe09c1013 (patch)
tree464033c42b2417f4f993e70840ea8a2bae03b3c9 /components/script/dom/webidls/Element.webidl
parentce88b8ed30feff9c7d3f067041fe5d781e012351 (diff)
downloadservo-041cfe6d0a07882819ae35380c286e7fe09c1013.tar.gz
servo-041cfe6d0a07882819ae35380c286e7fe09c1013.zip
script: When using WebRender, keep the DOM-side scroll positions for
elements with `overflow: scroll` up to date, and take them into account when doing hit testing. Closes #11648.
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;