diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2021-05-21 18:29:48 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2021-05-21 21:59:56 +0200 |
commit | 817c89fa456917fd9993ae226e8e932fe90ee1d8 (patch) | |
tree | faf51e2daa832bcca864f4ea92b84e15ded28a61 /android | |
parent | 1cfc6c545cd979eff04e38b2998c40e25106faf2 (diff) |
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@posteo.de>
Diffstat (limited to 'android')
-rw-r--r-- | android/source/src/java/org/mozilla/gecko/gfx/LayerView.java | 6 |
1 files changed, 1 insertions, 5 deletions
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)); } } |