diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-08 17:35:24 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-01-08 17:35:24 +0100 |
commit | c0a05ada187f09736b5b607f7ba3da903153ae38 (patch) | |
tree | e4ecc0772c762a81123012a241d9f5a7081bc13e /dom/base/Element.h | |
parent | e8cebef9d2a524067863741333a6784db4ea258d (diff) | |
download | UXP-c0a05ada187f09736b5b607f7ba3da903153ae38.tar UXP-c0a05ada187f09736b5b607f7ba3da903153ae38.tar.gz UXP-c0a05ada187f09736b5b607f7ba3da903153ae38.tar.lz UXP-c0a05ada187f09736b5b607f7ba3da903153ae38.tar.xz UXP-c0a05ada187f09736b5b607f7ba3da903153ae38.zip |
Align Element.ScrollIntoView() with the spec.
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.h | 5 |
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); |