зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
cb01fc326c
Коммит
7fdd199fd3
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче