Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Bug 1216288 - Disable warning when we don't build an active layer for…
Browse files Browse the repository at this point in the history
… RenderFrameParent within an opacity:0 subtree. r=roc
  • Loading branch information
mattwoodrow committed Nov 3, 2015
1 parent b26f3be commit f4ba3fd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions layout/base/FrameLayerBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ struct ContainerLayerParameters {
, mInActiveTransformedSubtree(false)
, mDisableSubpixelAntialiasingInDescendants(false)
, mInLowPrecisionDisplayPort(false)
, mForEventsOnly(false)
{}
ContainerLayerParameters(float aXScale, float aYScale)
: mXScale(aXScale)
Expand All @@ -71,6 +72,7 @@ struct ContainerLayerParameters {
, mInActiveTransformedSubtree(false)
, mDisableSubpixelAntialiasingInDescendants(false)
, mInLowPrecisionDisplayPort(false)
, mForEventsOnly(false)
{}
ContainerLayerParameters(float aXScale, float aYScale,
const nsIntPoint& aOffset,
Expand All @@ -84,6 +86,7 @@ struct ContainerLayerParameters {
, mInActiveTransformedSubtree(aParent.mInActiveTransformedSubtree)
, mDisableSubpixelAntialiasingInDescendants(aParent.mDisableSubpixelAntialiasingInDescendants)
, mInLowPrecisionDisplayPort(aParent.mInLowPrecisionDisplayPort)
, mForEventsOnly(aParent.mForEventsOnly)
{}

float mXScale, mYScale;
Expand Down Expand Up @@ -112,6 +115,7 @@ struct ContainerLayerParameters {
bool mInActiveTransformedSubtree;
bool mDisableSubpixelAntialiasingInDescendants;
bool mInLowPrecisionDisplayPort;
bool mForEventsOnly;
/**
* When this is false, PaintedLayer coordinates are drawn to with an integer
* translation and the scale in mXScale/mYScale.
Expand Down
4 changes: 3 additions & 1 deletion layout/base/nsDisplayList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3937,9 +3937,11 @@ already_AddRefed<Layer>
nsDisplayOpacity::BuildLayer(nsDisplayListBuilder* aBuilder,
LayerManager* aManager,
const ContainerLayerParameters& aContainerParameters) {
ContainerLayerParameters params = aContainerParameters;
params.mForEventsOnly = mForEventsOnly;
RefPtr<Layer> container = aManager->GetLayerBuilder()->
BuildContainerLayerFor(aBuilder, aManager, mFrame, this, &mList,
aContainerParameters, nullptr,
params, nullptr,
FrameLayerBuilder::CONTAINER_ALLOW_PULL_BACKGROUND_COLOR);
if (!container)
return nullptr;
Expand Down
4 changes: 3 additions & 1 deletion layout/ipc/RenderFrameParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,9 @@ RenderFrameParent::BuildLayer(nsDisplayListBuilder* aBuilder,
// draw a manager's subtree. The latter is bad bad bad, but the the
// MOZ_ASSERT() above will flag it. Returning nullptr here will just
// cause the shadow subtree not to be rendered.
NS_WARNING("Remote iframe not rendered");
if (!aContainerParameters.mForEventsOnly) {
NS_WARNING("Remote iframe not rendered");
}
return nullptr;
}

Expand Down

0 comments on commit f4ba3fd

Please sign in to comment.