mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Convert to calls of GetOffsetTo from retained layers to GetOffsetToCrossDoc. r=roc on irc
This commit is contained in:
parent
25663b3497
commit
8d58defa7a
@ -909,7 +909,7 @@ ContainerState::ProcessDisplayItems(const nsDisplayList& aList,
|
||||
nsIFrame* activeScrolledRoot =
|
||||
nsLayoutUtils::GetActiveScrolledRootFor(f, mBuilder->ReferenceFrame(),
|
||||
&offsetToActiveScrolledRoot);
|
||||
NS_ASSERTION(offsetToActiveScrolledRoot == f->GetOffsetTo(activeScrolledRoot),
|
||||
NS_ASSERTION(offsetToActiveScrolledRoot == f->GetOffsetToCrossDoc(activeScrolledRoot),
|
||||
"Wrong offset");
|
||||
if (item->IsFixedAndCoveringViewport(mBuilder)) {
|
||||
// Make its active scrolled root be the active scrolled root of
|
||||
|
@ -1651,7 +1651,7 @@ void nsGfxScrollFrameInner::ScrollVisual(nsIntPoint aPixDelta)
|
||||
if (flags & nsIFrame::INVALIDATE_NO_THEBES_LAYERS) {
|
||||
// XXX fix this to transform rectangle properly
|
||||
InvalidateFixedBackgroundFrames(displayRoot, mScrolledFrame,
|
||||
GetScrollPortRect() + mOuter->GetOffsetTo(displayRoot));
|
||||
GetScrollPortRect() + mOuter->GetOffsetToCrossDoc(displayRoot));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user