Convert to calls of GetOffsetTo from retained layers to GetOffsetToCrossDoc. r=roc on irc

This commit is contained in:
Timothy Nikkel 2010-07-18 21:23:48 -05:00
parent 25663b3497
commit 8d58defa7a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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));
}
}