зеркало из https://github.com/mozilla/pjs.git
#53072 IME candidate window position problem
r=sfraser a=ftang Offset within view is missing in one of the code path. Add it there.
This commit is contained in:
Родитель
00e5bd9c37
Коммит
d7ffe6cea2
|
@ -604,7 +604,8 @@ void nsCaret::GetViewForRendering(nsIFrame *caretFrame, EViewCoordinates coordTy
|
|||
{
|
||||
// window-relative coordinates (walk right to the top of the view hierarchy)
|
||||
// we don't do anything with clipping here
|
||||
|
||||
viewOffset = withinViewOffset;
|
||||
|
||||
do {
|
||||
theView->GetPosition(&x, &y);
|
||||
|
||||
|
|
|
@ -604,7 +604,8 @@ void nsCaret::GetViewForRendering(nsIFrame *caretFrame, EViewCoordinates coordTy
|
|||
{
|
||||
// window-relative coordinates (walk right to the top of the view hierarchy)
|
||||
// we don't do anything with clipping here
|
||||
|
||||
viewOffset = withinViewOffset;
|
||||
|
||||
do {
|
||||
theView->GetPosition(&x, &y);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче