Skip to content

Commit

Permalink
Revert "Remove some unnecessary/dead code from TabChild."
Browse files Browse the repository at this point in the history
The commit was not actually suitable for v38. It seems the
HasValidInnerSize function was moved from TabChildBase to TabChild
somewhere between v32 and v38.

This reverts commit a4eddcd.
  • Loading branch information
tworaz committed Jun 23, 2015
1 parent cc56c16 commit 57d9b88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions embedding/embedlite/utils/TabChildHelper.cpp
Expand Up @@ -51,6 +51,7 @@ static bool sPostAZPCAsJsonViewport(false);

TabChildHelper::TabChildHelper(EmbedLiteViewChildIface* aView)
: mView(aView)
, mHasValidInnerSize(false)
{
LOGT();

Expand Down Expand Up @@ -200,6 +201,12 @@ TabChildHelper::InitTabChildGlobal()
return true;
}

bool
TabChildHelper::HasValidInnerSize()
{
return mHasValidInnerSize;
}

NS_IMETHODIMP
TabChildHelper::Observe(nsISupports* aSubject,
const char* aTopic,
Expand Down
2 changes: 2 additions & 0 deletions embedding/embedlite/utils/TabChildHelper.h
Expand Up @@ -70,6 +70,7 @@ class TabChildHelper : public mozilla::dom::TabChildBase,
bool ConvertMutiTouchInputToEvent(const mozilla::MultiTouchInput& aData,
WidgetTouchEvent& aEvent);
void CancelTapTracking();
bool HasValidInnerSize();

private:
bool InitTabChildGlobal();
Expand All @@ -81,6 +82,7 @@ class TabChildHelper : public mozilla::dom::TabChildBase,
friend class EmbedLiteViewChildIface;
friend class EmbedLiteViewBaseChild;
EmbedLiteViewChildIface* mView;
bool mHasValidInnerSize;
};

}
Expand Down

0 comments on commit 57d9b88

Please sign in to comment.