Bug 1042772. offsetToReferenceFrame is always zero when we use it. Remove it. r=mattwoodrow

This commit is contained in:
Timothy Nikkel 2014-08-07 11:33:16 -05:00
Родитель 6d1a7bd986
Коммит 2c8ee8bbfc
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -1922,8 +1922,6 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
AutoSaveRestoreBlendMode autoRestoreBlendMode(*aBuilder);
aBuilder->SetContainsBlendModes(BlendModeSet());
nsPoint offsetToReferenceFrame = aBuilder->ToReferenceFrame(this);
if (isTransformed) {
const nsRect overflow = GetVisualOverflowRectRelativeToSelf();
if (aBuilder->IsForPainting() &&
@ -1934,10 +1932,9 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
return;
}
dirtyRect += offsetToReferenceFrame;
nsRect untransformedDirtyRect;
if (nsDisplayTransform::UntransformRect(dirtyRect, overflow, this,
offsetToReferenceFrame, &untransformedDirtyRect)) {
nsPoint(0,0), &untransformedDirtyRect)) {
dirtyRect = untransformedDirtyRect;
} else {
NS_WARNING("Unable to untransform dirty rect!");