Bug 1113526: make GetLogicalNormalPosition return the correct logical origin of the frame, not just convert the physical origin to logical coordinates, r=jfkthame

This commit is contained in:
Simon Montagu 2014-12-24 04:39:46 -08:00
Родитель cb01fc326c
Коммит 7fdd199fd3
1 изменённых файлов: 5 добавлений и 1 удалений

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

@ -762,8 +762,12 @@ public:
GetLogicalNormalPosition(mozilla::WritingMode aWritingMode,
nscoord aContainerWidth) const
{
// Subtract the width of this frame from the container width to get
// the correct position in rtl frames where the origin is on the
// right instead of the left
return mozilla::LogicalPoint(aWritingMode,
GetNormalPosition(), aContainerWidth);
GetNormalPosition(),
aContainerWidth - mRect.width);
}
virtual nsPoint GetPositionOfChildIgnoringScrolling(nsIFrame* aChild)