Bug 1335895 - part 30: Update GeckoApp and Tabs to remove code calling deleted function LayerView.setPaintState() r=jchen,kats draft
authorRandall Barker <rbarker@mozilla.com>
Mon, 27 Mar 2017 16:53:21 -0700
changeset 563864 a6e857db8247b8e5eea4a41dbd85bb54d1eb25af
parent 563863 612fd8eb6261a4b578902ea9d67c66015a91f3bc
child 563865 bb2c9bb1fa2bedc4a36a99208f17f506163d916c
push id54439
push userbmo:rbarker@mozilla.com
push dateMon, 17 Apr 2017 22:56:51 +0000
reviewersjchen, kats
bugs1335895
milestone55.0a1
Bug 1335895 - part 30: Update GeckoApp and Tabs to remove code calling deleted function LayerView.setPaintState() r=jchen,kats MozReview-Commit-ID: B9tkr8SzWnG
mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
mobile/android/base/java/org/mozilla/gecko/Tabs.java
--- a/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
+++ b/mobile/android/base/java/org/mozilla/gecko/GeckoApp.java
@@ -1767,19 +1767,16 @@ public abstract class GeckoApp
         if (mIsRestoringActivity) {
             Tab selectedTab = Tabs.getInstance().getSelectedTab();
             if (selectedTab != null) {
                 Tabs.getInstance().notifyListeners(selectedTab, Tabs.TabEvents.SELECTED);
             }
 
             if (GeckoThread.isRunning()) {
                 geckoConnected();
-                if (mLayerView != null) {
-                    mLayerView.setPaintState(LayerView.PAINT_BEFORE_FIRST);
-                }
             }
         }
     }
 
     @TargetApi(Build.VERSION_CODES.JELLY_BEAN)
     @Override
     public void onGlobalLayout() {
         if (Versions.preJB) {
--- a/mobile/android/base/java/org/mozilla/gecko/Tabs.java
+++ b/mobile/android/base/java/org/mozilla/gecko/Tabs.java
@@ -798,17 +798,16 @@ public class Tabs implements BundleEvent
 
             // When one tab is deselected, another one is always selected, so only
             // queue a single persist operation. When tabs are added/closed, they
             // are also selected/unselected, so it would be redundant to also listen
             // for ADDED/CLOSED events.
             case SELECTED:
                 if (mLayerView != null) {
                     mLayerView.setSurfaceBackgroundColor(getTabColor(tab));
-                    mLayerView.setPaintState(LayerView.PAINT_START);
                 }
                 queuePersistAllTabs();
             case UNSELECTED:
                 tab.onChange();
                 break;
             default:
                 break;
         }