Bug 728369 - Fix non-OpenGL plugin positioning on Android r=blassey

This commit is contained in:
James Willcox 2012-03-14 15:43:49 -04:00
Родитель 6bc5b3e339
Коммит 85e3bf557d
1 изменённых файлов: 4 добавлений и 4 удалений

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

@ -2709,8 +2709,8 @@ class PluginLayoutParams extends AbsoluteLayout.LayoutParams
public void reset(int aX, int aY, int aWidth, int aHeight, ImmutableViewportMetrics aViewport) {
PointF origin = aViewport.getOrigin();
x = mOriginalX = aX + (int)origin.x;
y = mOriginalY = aY + (int)origin.y;
this.x = mOriginalX = aX;
this.y = mOriginalY = aY;
width = mOriginalWidth = aWidth;
height = mOriginalHeight = aHeight;
mOriginalViewport = aViewport;
@ -2720,8 +2720,8 @@ class PluginLayoutParams extends AbsoluteLayout.LayoutParams
}
private void reposition(Point aOffset, float aResolution) {
x = mOriginalX + aOffset.x;
y = mOriginalY + aOffset.y;
this.x = mOriginalX + aOffset.x;
this.y = mOriginalY + aOffset.y;
if (!FloatUtils.fuzzyEquals(mLastResolution, aResolution)) {
width = Math.round(aResolution * mOriginalWidth);