author | Mark Banner <bugzilla@standard8.plus.com> |
Thu, 13 Jan 2011 20:01:45 +0000 | |
changeset 60456 | bfb895f3cc9c21b2ff6b4bafb1124d9bf42883aa |
parent 60455 | fe1ce4c8c5cf43e0528fa5b2fb174a98a3b30464 |
child 60457 | 3045fcaf544ac0e692fd48f1fe0b218479dc0e72 |
push id | 17999 |
push user | bugzilla@standard8.plus.com |
push date | Thu, 13 Jan 2011 20:04:00 +0000 |
treeherder | mozilla-central@bfb895f3cc9c [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | bustage |
bugs | 605618 |
milestone | 2.0b10pre |
first release with | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
last release without | nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
|
--- a/content/base/src/nsFrameLoader.cpp +++ b/content/base/src/nsFrameLoader.cpp @@ -1308,19 +1308,21 @@ nsFrameLoader::GetDepthTooGreat(PRBool* *aDepthTooGreat = mDepthTooGreat; return NS_OK; } void nsFrameLoader::SetOwnerContent(nsIContent* aContent) { mOwnerContent = aContent; +#ifdef MOZ_IPC if (RenderFrameParent* rfp = GetCurrentRemoteFrame()) { rfp->OwnerContentChanged(aContent); } +#endif } #ifdef MOZ_IPC bool nsFrameLoader::ShouldUseRemoteProcess() { // Check for *disabled* multi-process first: environment, prefs, attribute // Then check for *enabled* multi-process pref: attribute, prefs @@ -2002,16 +2004,17 @@ nsFrameLoader::GetMessageManager(nsIChro NS_IMETHODIMP nsFrameLoader::GetContentViewsIn(float aXPx, float aYPx, float aTopSize, float aRightSize, float aBottomSize, float aLeftSize, 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; nscoord h = nsPresContext::CSSPixelsToAppUnits(aTopSize + aBottomSize) + 1; nsRect target(x, y, w, h); nsIFrame* frame = GetPrimaryFrameOfOwningContent(); @@ -2029,34 +2032,43 @@ nsFrameLoader::GetContentViewsIn(float a for (PRUint32 i = 0; i < ids.Length(); i++) { nsIContentView* view = GetCurrentRemoteFrame()->GetContentView(ids[i]); NS_ABORT_IF_FALSE(view, "Retrieved ID from RenderFrameParent, it should be valid!"); nsRefPtr<nsIContentView>(view).forget(&result[i]); } *aResult = result; *aLength = ids.Length(); +#else + *aResult = nsnull; + *aLength = 0; +#endif return NS_OK; } NS_IMETHODIMP nsFrameLoader::GetRootContentView(nsIContentView** aContentView) { +#ifdef MOZ_IPC RenderFrameParent* rfp = GetCurrentRemoteFrame(); if (!rfp) { *aContentView = nsnull; return NS_OK; } nsContentView* view = rfp->GetContentView(); NS_ABORT_IF_FALSE(view, "Should always be able to create root scrollable!"); nsRefPtr<nsIContentView>(view).forget(aContentView); return NS_OK; +#else + return NS_ERROR_NOT_IMPLEMENTED; +#endif + } nsresult nsFrameLoader::EnsureMessageManager() { NS_ENSURE_STATE(mOwnerContent); nsresult rv = MaybeCreateDocShell();
--- a/gfx/layers/Layers.h +++ b/gfx/layers/Layers.h @@ -81,17 +81,17 @@ class ShadowLayer; class SpecificLayerAttributes; /** * The viewport and displayport metrics for the painted frame at the * time of a layer-tree transaction. These metrics are especially * 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; static const ViewID NULL_SCROLL_ID; // This container layer does not scroll. static const ViewID ROOT_SCROLL_ID; // This is the root scroll frame. static const ViewID START_SCROLL_ID; // This is the ID that scrolling subframes // will begin at.
--- a/layout/base/nsDisplayList.cpp +++ b/layout/base/nsDisplayList.cpp @@ -1607,16 +1607,18 @@ nsDisplayOwnLayer::~nsDisplayOwnLayer() already_AddRefed<Layer> nsDisplayOwnLayer::BuildLayer(nsDisplayListBuilder* aBuilder, LayerManager* aManager) { nsRefPtr<Layer> layer = aBuilder->LayerBuilder()-> BuildContainerLayerFor(aBuilder, aManager, mFrame, this, mList); return layer.forget(); } +#ifdef MOZ_IPC + nsDisplayScrollLayer::nsDisplayScrollLayer(nsDisplayListBuilder* aBuilder, nsDisplayList* aList, nsIFrame* aForFrame, nsIFrame* aViewportFrame) : nsDisplayOwnLayer(aBuilder, aForFrame, aList) , mViewportFrame(aViewportFrame) { #ifdef NS_BUILD_REFCNT_LOGGING @@ -1676,16 +1678,18 @@ nsDisplayScrollLayer::ComputeVisibility( #ifdef NS_BUILD_REFCNT_LOGGING nsDisplayScrollLayer::~nsDisplayScrollLayer() { MOZ_COUNT_DTOR(nsDisplayScrollLayer); } #endif +#endif + nsDisplayClip::nsDisplayClip(nsDisplayListBuilder* aBuilder, nsIFrame* aFrame, nsDisplayItem* aItem, const nsRect& aRect) : nsDisplayWrapList(aBuilder, aFrame, aItem) { MOZ_COUNT_CTOR(nsDisplayClip); mClip = SnapBounds(aBuilder->IsSnappingEnabled() && !aBuilder->IsInTransform(), aBuilder->CurrentPresContext(), aRect); }