[Libreoffice-commits] core.git: android/source
Michael Weghorn (via logerrit)
logerrit at kemper.freedesktop.org
Fri May 21 20:00:44 UTC 2021
android/source/src/java/org/mozilla/gecko/gfx/LayerView.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit 817c89fa456917fd9993ae226e8e932fe90ee1d8
Author: Michael Weghorn <m.weghorn at posteo.de>
AuthorDate: Fri May 21 18:29:48 2021 +0200
Commit: Michael Weghorn <m.weghorn at posteo.de>
CommitDate: Fri May 21 21:59:56 2021 +0200
android: Inline 'LayerView#setViewportSize' to only call site
It doesn't override any parent class methods and was
only called from here.
Change-Id: Iccfacb42e8d5514994eafac841c0ec55be65b062
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115972
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>
diff --git a/android/source/src/java/org/mozilla/gecko/gfx/LayerView.java b/android/source/src/java/org/mozilla/gecko/gfx/LayerView.java
index 05f2118114c8..549b2a963bf5 100644
--- a/android/source/src/java/org/mozilla/gecko/gfx/LayerView.java
+++ b/android/source/src/java/org/mozilla/gecko/gfx/LayerView.java
@@ -183,10 +183,6 @@ public class LayerView extends FrameLayout {
public GeckoLayerClient getLayerClient() { return mLayerClient; }
public PanZoomController getPanZoomController() { return mPanZoomController; }
- public void setViewportSize(IntSize size) {
- mLayerClient.setViewportSize(new FloatSize(size));
- }
-
public ImmutableViewportMetrics getViewportMetrics() {
return mLayerClient.getViewportMetrics();
}
@@ -371,7 +367,7 @@ public class LayerView extends FrameLayout {
protected void onLayout(boolean changed, int left, int top, int right, int bottom) {
super.onLayout(changed, left, top, right, bottom);
if (changed) {
- setViewportSize(new IntSize(right - left, bottom - top));
+ mLayerClient.setViewportSize(new FloatSize(right - left, bottom - top));
}
}
More information about the Libreoffice-commits
mailing list