summaryrefslogtreecommitdiffstats
path: root/dom/base/Element.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-01-08 17:35:24 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-01-08 17:42:01 +0100
commit814e0bca313611080bd5d26c850023e06af042ab (patch)
tree7a954cca04c3e52c1a5d96314b96fdc909f9507c /dom/base/Element.h
parent29b9d4496a52e8a98b7ade9c57001126daee5608 (diff)
downloadUXP-814e0bca313611080bd5d26c850023e06af042ab.tar
UXP-814e0bca313611080bd5d26c850023e06af042ab.tar.gz
UXP-814e0bca313611080bd5d26c850023e06af042ab.tar.lz
UXP-814e0bca313611080bd5d26c850023e06af042ab.tar.xz
UXP-814e0bca313611080bd5d26c850023e06af042ab.zip
Align Element.ScrollIntoView() with the spec. (uplift)PM28.3.0_Release
This also removes the (unused) shadow alias from nsIDOMHTMLElement which used the different calling convention. This resolves #927
Diffstat (limited to 'dom/base/Element.h')
-rw-r--r--dom/base/Element.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/base/Element.h b/dom/base/Element.h
index ef57a6466..ce84b74fb 100644
--- a/dom/base/Element.h
+++ b/dom/base/Element.h
@@ -818,9 +818,10 @@ public:
return slots ? slots->mShadowRoot.get() : nullptr;
}
- void ScrollIntoView();
- void ScrollIntoView(bool aTop);
+private:
void ScrollIntoView(const ScrollIntoViewOptions &aOptions);
+public:
+ void ScrollIntoView(const BooleanOrScrollIntoViewOptions& aObject);
void Scroll(double aXScroll, double aYScroll);
void Scroll(const ScrollToOptions& aOptions);
void ScrollTo(double aXScroll, double aYScroll);