Bug 1158111 - "Add caching and control updating tab offset values in the child from the parent side". a=klotz

--HG--
extra : rebase_source : 905ab38197d648ba88fc6ea941f575208df9ff4d
This commit is contained in:
Jim Mathies [:jimm] 2015-09-28 12:35:00 +02:00
parent 2f51a9688a
commit f30dfdb4a2
4 changed files with 1 additions and 19 deletions

View File

@ -330,14 +330,6 @@ parent:
sync IsParentWindowMainWidgetVisible() returns (bool visible);
/**
* Returns the offset of this tab from the top level window
* origin in device pixels.
*
* aPoint offset values in device pixels.
*/
prio(high) sync GetTabOffset() returns (LayoutDeviceIntPoint aPoint);
/**
* Gets the DPI of the screen corresponding to this browser.
*/

View File

@ -2266,13 +2266,6 @@ TabParent::RecvEnableDisableCommands(const nsString& aAction,
return true;
}
bool
TabParent::RecvGetTabOffset(LayoutDeviceIntPoint* aPoint)
{
*aPoint = GetChildProcessOffset();
return true;
}
NS_IMETHODIMP
TabParent::GetChildProcessOffset(int32_t* aOutCssX, int32_t* aOutCssY)
{

View File

@ -219,7 +219,6 @@ public:
virtual bool RecvIsParentWindowMainWidgetVisible(bool* aIsVisible) override;
virtual bool RecvShowTooltip(const uint32_t& aX, const uint32_t& aY, const nsString& aTooltip) override;
virtual bool RecvHideTooltip() override;
virtual bool RecvGetTabOffset(LayoutDeviceIntPoint* aPoint) override;
virtual bool RecvGetDPI(float* aValue) override;
virtual bool RecvGetDefaultScale(double* aValue) override;
virtual bool RecvGetMaxTouchPoints(uint32_t* aTouchPoints) override;

View File

@ -776,9 +776,7 @@ nsPluginFrame::GetRemoteTabChromeOffset()
if (topWindow) {
dom::TabChild* tc = dom::TabChild::GetFrom(topWindow);
if (tc) {
LayoutDeviceIntPoint chromeOffset;
tc->SendGetTabOffset(&chromeOffset);
offset -= chromeOffset;
offset += tc->GetChromeDisplacement();
}
}
}