зеркало из https://github.com/mozilla/gecko-dev.git
(Part 1) Get rid of LayerController.getLayerClient()
This commit is contained in:
Родитель
357cb8e480
Коммит
79bfcbfa4e
|
@ -574,13 +574,14 @@ abstract public class GeckoApp
|
|||
}
|
||||
|
||||
public void run() {
|
||||
if (mLayerClient == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
synchronized (mLayerClient) {
|
||||
if (!Tabs.getInstance().isSelectedTab(mThumbnailTab))
|
||||
return;
|
||||
|
||||
if (getLayerController().getLayerClient() != mLayerClient)
|
||||
return;
|
||||
|
||||
HistoryEntry lastHistoryEntry = mThumbnailTab.getLastHistoryEntry();
|
||||
if (lastHistoryEntry == null)
|
||||
return;
|
||||
|
|
|
@ -135,7 +135,6 @@ public class LayerController {
|
|||
mForceRedraw = true;
|
||||
}
|
||||
|
||||
public LayerClient getLayerClient() { return mLayerClient; }
|
||||
public Layer getRoot() { return mRootLayer; }
|
||||
public LayerView getView() { return mView; }
|
||||
public Context getContext() { return mContext; }
|
||||
|
|
Загрузка…
Ссылка в новой задаче