mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-25 22:29:07 +00:00
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:
parent
2f51a9688a
commit
f30dfdb4a2
@ -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.
|
||||
*/
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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;
|
||||
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user