Skip to content

Commit

Permalink
[sailfishos][gecko] Remove PuppetWidget from TabChild interface
Browse files Browse the repository at this point in the history
Format patch from this
  • Loading branch information
rainemak committed May 27, 2020
1 parent 2bc7a02 commit f26d0a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dom/ipc/TabChild.cpp
Expand Up @@ -440,6 +440,7 @@ TabChild::TabChild(nsIContentChild* aManager,
const TabContext& aContext,
uint32_t aChromeFlags)
: TabContext(aContext)
, mPuppetWidget(nullptr)
, mRemoteFrame(nullptr)
, mManager(aManager)
, mChromeFlags(aChromeFlags)
Expand Down Expand Up @@ -2425,7 +2426,7 @@ TabChild::RecvSetDocShellIsActive(const bool& aIsActive,
// to paints as quickly as possible.
APZCCallbackHelper::SuppressDisplayport(true, presShell);
if (nsContentUtils::IsSafeToRunScript()) {
WebWidget()->PaintNowIfNeeded();
static_cast<PuppetWidget*>(WebWidget())->PaintNowIfNeeded();
} else {
RefPtr<nsViewManager> vm = presShell->GetViewManager();
if (nsView* view = vm->GetRootView()) {
Expand Down
4 changes: 2 additions & 2 deletions dom/ipc/TabChild.h
Expand Up @@ -206,7 +206,7 @@ class TabChildBase : public nsISupports,
NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(TabChildBase)

virtual nsIWebNavigation* WebNavigation() const = 0;
virtual PuppetWidget* WebWidget() = 0;
virtual nsIWidget* WebWidget() = 0;
nsIPrincipal* GetPrincipal() { return mPrincipal; }
virtual bool DoUpdateZoomConstraints(const uint32_t& aPresShellId,
const mozilla::layers::FrameMetrics::ViewID& aViewId,
Expand Down Expand Up @@ -472,7 +472,7 @@ class TabChild final : public TabChildBase,
return mWebNav;
}

virtual PuppetWidget* WebWidget() override { return mPuppetWidget; }
virtual nsIWidget* WebWidget() override { return mPuppetWidget; }

/** Return the DPI of the widget this TabChild draws to. */
void GetDPI(float* aDPI);
Expand Down

0 comments on commit f26d0a5

Please sign in to comment.