Bug 1089581 - Convert nsLineBox::SlideBy to use logical coordinates. r=smontagu

This commit is contained in:
Jonathan Kew 2014-11-13 08:58:03 +00:00
parent 30e4cc2ac6
commit 222964d6a8

View File

@ -473,8 +473,10 @@ public:
mContainerWidth = aContainerWidth;
mBounds.BStart(mWritingMode) += aDBCoord;
if (mData) {
nsPoint physicalDelta = mozilla::LogicalPoint(mWritingMode, 0, aDBCoord).
GetPhysicalPoint(mWritingMode, 0);
NS_FOR_FRAME_OVERFLOW_TYPES(otype) {
mData->mOverflowAreas.Overflow(otype).y += aDBCoord;
mData->mOverflowAreas.Overflow(otype) += physicalDelta;
}
}
}