зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 24da67c3c956 (bug 1685009) for causing crashtest timeouts.
This commit is contained in:
Родитель
44a5874820
Коммит
14cf518abd
|
@ -152,24 +152,6 @@ CSSPoint FrameMetrics::ApplyPureRelativeScrollUpdateFrom(
|
|||
return GetVisualScrollOffset() - origin;
|
||||
}
|
||||
|
||||
void FrameMetrics::UpdatePendingScrollInfo(const ScrollPositionUpdate& aInfo) {
|
||||
// We only get this "pending scroll info" for paint-skip transactions,
|
||||
// but PureRelative position updates always trigger a full paint, so
|
||||
// we should never enter this code with a PureRelative update type. For
|
||||
// the other types, the destination field on the ScrollPositionUpdate will
|
||||
// tell us the final layout scroll position on the main thread.
|
||||
MOZ_ASSERT(aInfo.GetType() != ScrollUpdateType::PureRelative);
|
||||
|
||||
// In applying a main-thread scroll update, try to preserve the relative
|
||||
// offset between the visual and layout viewports.
|
||||
CSSPoint relativeOffset = GetVisualScrollOffset() - GetLayoutScrollOffset();
|
||||
MOZ_ASSERT(IsRootContent() || relativeOffset == CSSPoint());
|
||||
|
||||
SetLayoutScrollOffset(aInfo.GetDestination());
|
||||
ClampAndSetVisualScrollOffset(aInfo.GetDestination() + relativeOffset);
|
||||
mScrollGeneration = aInfo.GetGeneration();
|
||||
}
|
||||
|
||||
ScrollSnapInfo::ScrollSnapInfo()
|
||||
: mScrollSnapStrictnessX(StyleScrollSnapStrictness::None),
|
||||
mScrollSnapStrictnessY(StyleScrollSnapStrictness::None) {}
|
||||
|
|
|
@ -266,7 +266,16 @@ struct FrameMetrics {
|
|||
CSSPoint ApplyPureRelativeScrollUpdateFrom(
|
||||
const ScrollPositionUpdate& aUpdate);
|
||||
|
||||
void UpdatePendingScrollInfo(const ScrollPositionUpdate& aInfo);
|
||||
void UpdatePendingScrollInfo(const ScrollPositionUpdate& aInfo) {
|
||||
// We only get this "pending scroll info" for paint-skip transactions,
|
||||
// but PureRelative position updates always trigger a full paint, so
|
||||
// we should never enter this code with a PureRelative update type. For
|
||||
// the other types, the destination field on the ScrollPositionUpdate will
|
||||
// tell us the final layout scroll position on the main thread.
|
||||
MOZ_ASSERT(aInfo.GetType() != ScrollUpdateType::PureRelative);
|
||||
SetLayoutScrollOffset(aInfo.GetDestination());
|
||||
mScrollGeneration = aInfo.GetGeneration();
|
||||
}
|
||||
|
||||
public:
|
||||
void SetPresShellResolution(float aPresShellResolution) {
|
||||
|
|
|
@ -1,12 +0,0 @@
|
|||
<script>
|
||||
window.requestIdleCallback(() => {
|
||||
window.close();
|
||||
})
|
||||
window.onload = () => {
|
||||
a.value = "J."
|
||||
b.submit()
|
||||
window.requestAnimationFrame(() => { a.setRangeText("foo") })
|
||||
}
|
||||
</script>
|
||||
<textarea id="a" style="max-width: 0"></textarea>
|
||||
<form id="b" target="a">
|
|
@ -200,4 +200,4 @@ skip-if(!webrender||AddressSanitizer) load 1652750-deep-scene-stack.html
|
|||
load 1651882.html
|
||||
skip-if(!webrender) load 1678938-1.html
|
||||
load 1679477-1.html
|
||||
pref(dom.disable_open_during_load,false) load 1685009-1.html
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче