зеркало из https://github.com/mozilla/gecko-dev.git
7de4ce1232
There are cases where we want to scroll across documents (like scrollIntoView), and bailing out for those is incorrect. This usually can't happen because in HTML documents we always have a root scroll frame, but for fixed positioned elements it can happen, as those are not parented to it. This came up in https://github.com/w3c/csswg-drafts/issues/5492, and fixes the only case where Firefox and Safari differ (C). ScrollFrameRectIntoView knows how to deal with non-scroll-frames, and takes care of jumping across documents if necessary, so passing the root frame is fine. We only needed to walk out the parent chain to be able to accumulate all our continuation bounds relative to the same frame. In practice the bail out code should now be unreachable. Add an assertion to that effect. Tests for this are already upstream in WPT, and pass with this patch, see: * https://github.com/web-platform-tests/wpt/pull/33572 * https://github.com/web-platform-tests/wpt/pull/33633 Differential Revision: https://phabricator.services.mozilla.com/D143250 |
||
---|---|---|
.. | ||
base | ||
build | ||
docs | ||
forms | ||
generic | ||
inspector | ||
ipc | ||
mathml | ||
media | ||
painting | ||
printing | ||
reftests | ||
style | ||
svg | ||
tables | ||
tools | ||
xul | ||
moz.build |