WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188343
Make DOMWindow::scrollBy rely on DOMWindow::scrollTo
https://bugs.webkit.org/show_bug.cgi?id=188343
Summary
Make DOMWindow::scrollBy rely on DOMWindow::scrollTo
Frédéric Wang (:fredw)
Reported
2018-08-06 02:05:09 PDT
Follow-up of
bug 188300
.
Attachments
Patch
(2.20 KB, patch)
2018-08-06 02:58 PDT
,
Frédéric Wang (:fredw)
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Frédéric Wang (:fredw)
Comment 1
2018-08-06 02:58:09 PDT
Created
attachment 346620
[details]
Patch
Darin Adler
Comment 2
2018-08-06 09:22:32 PDT
Comment on
attachment 346620
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=346620&action=review
> Source/WebCore/page/DOMWindow.cpp:1595 > + scrollToOptions.left.value() += view->mapFromLayoutToCSSUnits(view->contentsScrollPosition().x()); > + scrollToOptions.top.value() += view->mapFromLayoutToCSSUnits(view->contentsScrollPosition().y());
I hope there are no rounding differences caused by converting from layout to CSS and back.
Frédéric Wang (:fredw)
Comment 3
2018-08-06 11:02:56 PDT
Comment on
attachment 346620
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=346620&action=review
>> Source/WebCore/page/DOMWindow.cpp:1595 >> + scrollToOptions.top.value() += view->mapFromLayoutToCSSUnits(view->contentsScrollPosition().y()); > > I hope there are no rounding differences caused by converting from layout to CSS and back.
Probably there are, but that does not appear on the current set of tests. Not sure how we can avoid that... What do you suggest?
WebKit Commit Bot
Comment 4
2018-08-07 01:30:46 PDT
Comment on
attachment 346620
[details]
Patch Clearing flags on attachment: 346620 Committed
r234642
: <
https://trac.webkit.org/changeset/234642
>
WebKit Commit Bot
Comment 5
2018-08-07 01:30:47 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 6
2018-08-07 01:31:25 PDT
<
rdar://problem/42998916
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug