mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bustage fix for non-IPC and for shared builds following bug 605618. a=bustage fix
This commit is contained in:
parent
0fc8a61c77
commit
c089e851d9
@ -1313,9 +1313,11 @@ void
|
||||
nsFrameLoader::SetOwnerContent(nsIContent* aContent)
|
||||
{
|
||||
mOwnerContent = aContent;
|
||||
#ifdef MOZ_IPC
|
||||
if (RenderFrameParent* rfp = GetCurrentRemoteFrame()) {
|
||||
rfp->OwnerContentChanged(aContent);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef MOZ_IPC
|
||||
@ -2007,6 +2009,7 @@ nsFrameLoader::GetContentViewsIn(float aXPx, float aYPx,
|
||||
PRUint32* aLength,
|
||||
nsIContentView*** aResult)
|
||||
{
|
||||
#ifdef MOZ_IPC
|
||||
nscoord x = nsPresContext::CSSPixelsToAppUnits(aXPx - aLeftSize);
|
||||
nscoord y = nsPresContext::CSSPixelsToAppUnits(aYPx - aTopSize);
|
||||
nscoord w = nsPresContext::CSSPixelsToAppUnits(aLeftSize + aRightSize) + 1;
|
||||
@ -2034,6 +2037,10 @@ nsFrameLoader::GetContentViewsIn(float aXPx, float aYPx,
|
||||
|
||||
*aResult = result;
|
||||
*aLength = ids.Length();
|
||||
#else
|
||||
*aResult = nsnull;
|
||||
*aLength = 0;
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
@ -2041,6 +2048,7 @@ nsFrameLoader::GetContentViewsIn(float aXPx, float aYPx,
|
||||
NS_IMETHODIMP
|
||||
nsFrameLoader::GetRootContentView(nsIContentView** aContentView)
|
||||
{
|
||||
#ifdef MOZ_IPC
|
||||
RenderFrameParent* rfp = GetCurrentRemoteFrame();
|
||||
if (!rfp) {
|
||||
*aContentView = nsnull;
|
||||
@ -2052,6 +2060,10 @@ nsFrameLoader::GetRootContentView(nsIContentView** aContentView)
|
||||
nsRefPtr<nsIContentView>(view).forget(aContentView);
|
||||
|
||||
return NS_OK;
|
||||
#else
|
||||
return NS_ERROR_NOT_IMPLEMENTED;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
@ -86,7 +86,7 @@ class SpecificLayerAttributes;
|
||||
* useful for shadow layers, because the metrics values are updated
|
||||
* atomically with new pixels.
|
||||
*/
|
||||
struct FrameMetrics {
|
||||
struct THEBES_API FrameMetrics {
|
||||
public:
|
||||
// We use IDs to identify frames across processes.
|
||||
typedef PRUint64 ViewID;
|
||||
|
@ -1612,6 +1612,8 @@ nsDisplayOwnLayer::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
return layer.forget();
|
||||
}
|
||||
|
||||
#ifdef MOZ_IPC
|
||||
|
||||
nsDisplayScrollLayer::nsDisplayScrollLayer(nsDisplayListBuilder* aBuilder,
|
||||
nsDisplayList* aList,
|
||||
nsIFrame* aForFrame,
|
||||
@ -1681,6 +1683,8 @@ nsDisplayScrollLayer::~nsDisplayScrollLayer()
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
nsDisplayClip::nsDisplayClip(nsDisplayListBuilder* aBuilder,
|
||||
nsIFrame* aFrame, nsDisplayItem* aItem,
|
||||
const nsRect& aRect)
|
||||
|
Loading…
Reference in New Issue
Block a user