зеркало из https://github.com/mozilla/gecko-dev.git
Bug 919144. Part 9: Move FrameLayerBuilder::ContainerParameters to mozilla::ContainerLayerParameters. r=mattwoodrow
This is to avoid having to #include FrameLayerBuilder.h in nsLayoutUtils.h in the next patch. --HG-- extra : rebase_source : 5f3c3ae2785267949766ae094414781133d4ce44
This commit is contained in:
Родитель
94d3e5ce37
Коммит
f994dec6df
|
@ -233,7 +233,7 @@ public:
|
|||
nsIFrame* aContainerFrame,
|
||||
nsDisplayItem* aContainerItem,
|
||||
ContainerLayer* aContainerLayer,
|
||||
const FrameLayerBuilder::ContainerParameters& aParameters) :
|
||||
const ContainerLayerParameters& aParameters) :
|
||||
mBuilder(aBuilder), mManager(aManager),
|
||||
mLayerBuilder(aLayerBuilder),
|
||||
mContainerFrame(aContainerFrame),
|
||||
|
@ -637,7 +637,7 @@ protected:
|
|||
nsIFrame* mContainerFrame;
|
||||
const nsIFrame* mContainerReferenceFrame;
|
||||
ContainerLayer* mContainerLayer;
|
||||
FrameLayerBuilder::ContainerParameters mParameters;
|
||||
ContainerLayerParameters mParameters;
|
||||
/**
|
||||
* The region of ThebesLayers that should be invalidated every time
|
||||
* we recycle one.
|
||||
|
@ -749,7 +749,7 @@ struct MaskLayerUserData : public LayerUserData
|
|||
nsTArray<DisplayItemClip::RoundedRect> mRoundedClipRects;
|
||||
// scale from the masked layer which is applied to the mask
|
||||
float mScaleX, mScaleY;
|
||||
// The ContainerParameters offset which is applied to the mask's transform.
|
||||
// The ContainerLayerParameters offset which is applied to the mask's transform.
|
||||
nsIntPoint mOffset;
|
||||
int32_t mAppUnitsPerDevPixel;
|
||||
};
|
||||
|
@ -2546,7 +2546,7 @@ FrameLayerBuilder::AddThebesDisplayItem(ThebesLayer* aLayer,
|
|||
|
||||
nsAutoPtr<LayerProperties> props(LayerProperties::CloneFrom(tempManager->GetRoot()));
|
||||
nsRefPtr<Layer> layer =
|
||||
aItem->BuildLayer(mDisplayListBuilder, tempManager, FrameLayerBuilder::ContainerParameters());
|
||||
aItem->BuildLayer(mDisplayListBuilder, tempManager, ContainerLayerParameters());
|
||||
// We have no easy way of detecting if this transaction will ever actually get finished.
|
||||
// For now, I've just silenced the warning with nested transactions in BasicLayers.cpp
|
||||
if (!layer) {
|
||||
|
@ -2792,10 +2792,10 @@ ChooseScaleAndSetTransform(FrameLayerBuilder* aLayerBuilder,
|
|||
nsDisplayListBuilder* aDisplayListBuilder,
|
||||
nsIFrame* aContainerFrame,
|
||||
const gfx3DMatrix* aTransform,
|
||||
const FrameLayerBuilder::ContainerParameters& aIncomingScale,
|
||||
const ContainerLayerParameters& aIncomingScale,
|
||||
ContainerLayer* aLayer,
|
||||
LayerState aState,
|
||||
FrameLayerBuilder::ContainerParameters& aOutgoingScale)
|
||||
ContainerLayerParameters& aOutgoingScale)
|
||||
{
|
||||
nsIntPoint offset;
|
||||
|
||||
|
@ -2893,8 +2893,8 @@ ChooseScaleAndSetTransform(FrameLayerBuilder* aLayerBuilder,
|
|||
aLayer->SetInheritedScale(aIncomingScale.mXScale,
|
||||
aIncomingScale.mYScale);
|
||||
|
||||
aOutgoingScale =
|
||||
FrameLayerBuilder::ContainerParameters(scale.width, scale.height, -offset, aIncomingScale);
|
||||
aOutgoingScale =
|
||||
ContainerLayerParameters(scale.width, scale.height, -offset, aIncomingScale);
|
||||
if (aTransform) {
|
||||
aOutgoingScale.mInTransformedSubtree = true;
|
||||
if (ActiveLayerTracker::IsStyleAnimated(aContainerFrame, eCSSProperty_transform)) {
|
||||
|
@ -2948,7 +2948,7 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
|
|||
nsIFrame* aContainerFrame,
|
||||
nsDisplayItem* aContainerItem,
|
||||
const nsDisplayList& aChildren,
|
||||
const ContainerParameters& aParameters,
|
||||
const ContainerLayerParameters& aParameters,
|
||||
const gfx3DMatrix* aTransform,
|
||||
uint32_t aFlags)
|
||||
{
|
||||
|
@ -3015,7 +3015,7 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
|
|||
return containerLayer.forget();
|
||||
}
|
||||
|
||||
ContainerParameters scaleParameters;
|
||||
ContainerLayerParameters scaleParameters;
|
||||
if (!ChooseScaleAndSetTransform(this, aBuilder, aContainerFrame, aTransform, aParameters,
|
||||
containerLayer, state, scaleParameters)) {
|
||||
return nullptr;
|
||||
|
|
|
@ -51,6 +51,53 @@ public:
|
|||
bool mIsInfinite;
|
||||
};
|
||||
|
||||
struct ContainerLayerParameters {
|
||||
ContainerLayerParameters() :
|
||||
mXScale(1), mYScale(1), mAncestorClipRect(nullptr),
|
||||
mInTransformedSubtree(false), mInActiveTransformedSubtree(false),
|
||||
mDisableSubpixelAntialiasingInDescendants(false)
|
||||
{}
|
||||
ContainerLayerParameters(float aXScale, float aYScale) :
|
||||
mXScale(aXScale), mYScale(aYScale), mAncestorClipRect(nullptr),
|
||||
mInTransformedSubtree(false), mInActiveTransformedSubtree(false),
|
||||
mDisableSubpixelAntialiasingInDescendants(false)
|
||||
{}
|
||||
ContainerLayerParameters(float aXScale, float aYScale,
|
||||
const nsIntPoint& aOffset,
|
||||
const ContainerLayerParameters& aParent) :
|
||||
mXScale(aXScale), mYScale(aYScale), mAncestorClipRect(nullptr),
|
||||
mOffset(aOffset),
|
||||
mInTransformedSubtree(aParent.mInTransformedSubtree),
|
||||
mInActiveTransformedSubtree(aParent.mInActiveTransformedSubtree),
|
||||
mDisableSubpixelAntialiasingInDescendants(aParent.mDisableSubpixelAntialiasingInDescendants)
|
||||
{}
|
||||
float mXScale, mYScale;
|
||||
/**
|
||||
* An ancestor clip rect that can be applied to restrict the visibility
|
||||
* of this container. Null if none available.
|
||||
*/
|
||||
const nsIntRect* mAncestorClipRect;
|
||||
/**
|
||||
* An offset to append to the transform set on all child layers created.
|
||||
*/
|
||||
nsIntPoint mOffset;
|
||||
|
||||
bool mInTransformedSubtree;
|
||||
bool mInActiveTransformedSubtree;
|
||||
bool mDisableSubpixelAntialiasingInDescendants;
|
||||
/**
|
||||
* When this is false, ThebesLayer coordinates are drawn to with an integer
|
||||
* translation and the scale in mXScale/mYScale.
|
||||
*/
|
||||
bool AllowResidualTranslation()
|
||||
{
|
||||
// If we're in a transformed subtree, but no ancestor transform is actively
|
||||
// changing, we'll use the residual translation when drawing into the
|
||||
// ThebesLayer to ensure that snapping exactly matches the ideal transform.
|
||||
return mInTransformedSubtree && !mInActiveTransformedSubtree;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* The FrameLayerBuilder is responsible for converting display lists
|
||||
* into layer trees. Every LayerManager needs a unique FrameLayerBuilder
|
||||
|
@ -132,52 +179,6 @@ public:
|
|||
*/
|
||||
void DidEndTransaction();
|
||||
|
||||
struct ContainerParameters {
|
||||
ContainerParameters() :
|
||||
mXScale(1), mYScale(1), mAncestorClipRect(nullptr),
|
||||
mInTransformedSubtree(false), mInActiveTransformedSubtree(false),
|
||||
mDisableSubpixelAntialiasingInDescendants(false)
|
||||
{}
|
||||
ContainerParameters(float aXScale, float aYScale) :
|
||||
mXScale(aXScale), mYScale(aYScale), mAncestorClipRect(nullptr),
|
||||
mInTransformedSubtree(false), mInActiveTransformedSubtree(false),
|
||||
mDisableSubpixelAntialiasingInDescendants(false)
|
||||
{}
|
||||
ContainerParameters(float aXScale, float aYScale,
|
||||
const nsIntPoint& aOffset,
|
||||
const ContainerParameters& aParent) :
|
||||
mXScale(aXScale), mYScale(aYScale), mAncestorClipRect(nullptr),
|
||||
mOffset(aOffset),
|
||||
mInTransformedSubtree(aParent.mInTransformedSubtree),
|
||||
mInActiveTransformedSubtree(aParent.mInActiveTransformedSubtree),
|
||||
mDisableSubpixelAntialiasingInDescendants(aParent.mDisableSubpixelAntialiasingInDescendants)
|
||||
{}
|
||||
float mXScale, mYScale;
|
||||
/**
|
||||
* An ancestor clip rect that can be applied to restrict the visibility
|
||||
* of this container. Null if none available.
|
||||
*/
|
||||
const nsIntRect* mAncestorClipRect;
|
||||
/**
|
||||
* An offset to append to the transform set on all child layers created.
|
||||
*/
|
||||
nsIntPoint mOffset;
|
||||
|
||||
bool mInTransformedSubtree;
|
||||
bool mInActiveTransformedSubtree;
|
||||
bool mDisableSubpixelAntialiasingInDescendants;
|
||||
/**
|
||||
* When this is false, ThebesLayer coordinates are drawn to with an integer
|
||||
* translation and the scale in mXScale/mYScale.
|
||||
*/
|
||||
bool AllowResidualTranslation()
|
||||
{
|
||||
// If we're in a transformed subtree, but no ancestor transform is actively
|
||||
// changing, we'll use the residual translation when drawing into the
|
||||
// ThebesLayer to ensure that snapping exactly matches the ideal transform.
|
||||
return mInTransformedSubtree && !mInActiveTransformedSubtree;
|
||||
}
|
||||
};
|
||||
enum {
|
||||
CONTAINER_NOT_CLIPPED_BY_ANCESTORS = 0x01
|
||||
};
|
||||
|
@ -204,7 +205,7 @@ public:
|
|||
nsIFrame* aContainerFrame,
|
||||
nsDisplayItem* aContainerItem,
|
||||
const nsDisplayList& aChildren,
|
||||
const ContainerParameters& aContainerParameters,
|
||||
const ContainerLayerParameters& aContainerParameters,
|
||||
const gfx3DMatrix* aTransform,
|
||||
uint32_t aFlags = 0);
|
||||
|
||||
|
|
|
@ -593,7 +593,7 @@ static void RecordFrameMetrics(nsIFrame* aForFrame,
|
|||
nsRect* aDisplayPort,
|
||||
nsRect* aCriticalDisplayPort,
|
||||
ViewID aScrollId,
|
||||
const nsDisplayItem::ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
nsPresContext* presContext = aForFrame->PresContext();
|
||||
int32_t auPerDevPixel = presContext->AppUnitsPerDevPixel();
|
||||
LayoutDeviceToLayerScale resolution(aContainerParameters.mXScale, aContainerParameters.mYScale);
|
||||
|
@ -1123,7 +1123,7 @@ void nsDisplayList::PaintForFrame(nsDisplayListBuilder* aBuilder,
|
|||
LayerProperties::CloneFrom(layerManager->GetRoot()) :
|
||||
nullptr);
|
||||
|
||||
nsDisplayItem::ContainerParameters containerParameters
|
||||
ContainerLayerParameters containerParameters
|
||||
(presShell->GetXResolution(), presShell->GetYResolution());
|
||||
nsRefPtr<ContainerLayer> root = layerBuilder->
|
||||
BuildContainerLayerFor(aBuilder, layerManager, aForFrame, nullptr, *this,
|
||||
|
@ -1839,7 +1839,7 @@ nsDisplayBackgroundImage::GetContainer(LayerManager* aManager,
|
|||
LayerState
|
||||
nsDisplayBackgroundImage::GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const FrameLayerBuilder::ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
bool animated = false;
|
||||
if (mBackgroundStyle) {
|
||||
|
@ -1897,7 +1897,7 @@ nsDisplayBackgroundImage::GetLayerState(nsDisplayListBuilder* aBuilder,
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayBackgroundImage::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
nsRefPtr<ImageLayer> layer = static_cast<ImageLayer*>
|
||||
(aManager->GetLayerBuilder()->GetLeafLayerFor(aBuilder, this));
|
||||
|
@ -2841,7 +2841,7 @@ void nsDisplayWrapList::Paint(nsDisplayListBuilder* aBuilder,
|
|||
static LayerState
|
||||
RequiredLayerStateForChildrenInternal(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const FrameLayerBuilder::ContainerParameters& aParameters,
|
||||
const ContainerLayerParameters& aParameters,
|
||||
const nsDisplayList& aList,
|
||||
nsIFrame* aAnimatedGeometryRoot)
|
||||
{
|
||||
|
@ -2876,7 +2876,7 @@ RequiredLayerStateForChildrenInternal(nsDisplayListBuilder* aBuilder,
|
|||
LayerState
|
||||
nsDisplayWrapList::RequiredLayerStateForChildren(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters,
|
||||
const ContainerLayerParameters& aParameters,
|
||||
const nsDisplayList& aList,
|
||||
nsIFrame* aItemFrame)
|
||||
{
|
||||
|
@ -2989,7 +2989,7 @@ nsRegion nsDisplayOpacity::GetOpaqueRegion(nsDisplayListBuilder* aBuilder,
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayOpacity::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
if (mFrame->StyleDisplay()->mOpacity == 0 && mFrame->GetContent() &&
|
||||
!nsLayoutUtils::HasAnimations(mFrame->GetContent(), eCSSProperty_opacity)) {
|
||||
return nullptr;
|
||||
|
@ -3024,7 +3024,7 @@ IsItemTooSmallForActiveLayer(nsDisplayItem* aItem)
|
|||
nsDisplayItem::LayerState
|
||||
nsDisplayOpacity::GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) {
|
||||
const ContainerLayerParameters& aParameters) {
|
||||
if (ActiveLayerTracker::IsStyleAnimated(mFrame, eCSSProperty_opacity) &&
|
||||
!IsItemTooSmallForActiveLayer(this))
|
||||
return LAYER_ACTIVE;
|
||||
|
@ -3093,8 +3093,8 @@ nsRegion nsDisplayMixBlendMode::GetOpaqueRegion(nsDisplayListBuilder* aBuilder,
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayMixBlendMode::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
ContainerParameters newContainerParameters = aContainerParameters;
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
ContainerLayerParameters newContainerParameters = aContainerParameters;
|
||||
newContainerParameters.mDisableSubpixelAntialiasingInDescendants = true;
|
||||
|
||||
nsRefPtr<Layer> container = aManager->GetLayerBuilder()->
|
||||
|
@ -3157,10 +3157,10 @@ nsDisplayBlendContainer::~nsDisplayBlendContainer() {
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayBlendContainer::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
// turn off anti-aliasing in the parent stacking context because it changes
|
||||
// how the group is initialized.
|
||||
ContainerParameters newContainerParameters = aContainerParameters;
|
||||
ContainerLayerParameters newContainerParameters = aContainerParameters;
|
||||
newContainerParameters.mDisableSubpixelAntialiasingInDescendants = true;
|
||||
|
||||
nsRefPtr<Layer> container = aManager->GetLayerBuilder()->
|
||||
|
@ -3206,7 +3206,7 @@ nsDisplayOwnLayer::~nsDisplayOwnLayer() {
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayOwnLayer::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
nsRefPtr<ContainerLayer> layer = aManager->GetLayerBuilder()->
|
||||
BuildContainerLayerFor(aBuilder, aManager, mFrame, this, mList,
|
||||
aContainerParameters, nullptr);
|
||||
|
@ -3233,9 +3233,9 @@ nsDisplayResolution::~nsDisplayResolution() {
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayResolution::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
nsIPresShell* presShell = mFrame->PresContext()->PresShell();
|
||||
nsDisplayItem::ContainerParameters containerParameters(
|
||||
ContainerLayerParameters containerParameters(
|
||||
presShell->GetXResolution(), presShell->GetYResolution(), nsIntPoint(),
|
||||
aContainerParameters);
|
||||
|
||||
|
@ -3268,7 +3268,7 @@ nsDisplayFixedPosition::SetFixedPositionLayerData(Layer* aLayer,
|
|||
const nsIFrame* aFixedPosFrame,
|
||||
const nsIFrame* aReferenceFrame,
|
||||
nsPresContext* aPresContext,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
// Find out the rect of the viewport frame relative to the reference frame.
|
||||
// This, in conjunction with the container scale, will correspond to the
|
||||
// coordinate-space of the built layer.
|
||||
|
@ -3338,7 +3338,7 @@ nsDisplayFixedPosition::SetFixedPositionLayerData(Layer* aLayer,
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayFixedPosition::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
nsRefPtr<Layer> layer =
|
||||
nsDisplayOwnLayer::BuildLayer(aBuilder, aManager, aContainerParameters);
|
||||
|
||||
|
@ -3390,7 +3390,7 @@ nsDisplayStickyPosition::~nsDisplayStickyPosition() {
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayStickyPosition::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
nsRefPtr<Layer> layer =
|
||||
nsDisplayOwnLayer::BuildLayer(aBuilder, aManager, aContainerParameters);
|
||||
|
||||
|
@ -3505,7 +3505,7 @@ nsDisplayScrollLayer::~nsDisplayScrollLayer()
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayScrollLayer::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) {
|
||||
const ContainerLayerParameters& aContainerParameters) {
|
||||
nsRefPtr<ContainerLayer> layer = aManager->GetLayerBuilder()->
|
||||
BuildContainerLayerFor(aBuilder, aManager, mFrame, this, mList,
|
||||
aContainerParameters, nullptr);
|
||||
|
@ -3569,7 +3569,7 @@ nsDisplayScrollLayer::ComputeVisibility(nsDisplayListBuilder* aBuilder,
|
|||
LayerState
|
||||
nsDisplayScrollLayer::GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
// Force this as a layer so we can scroll asynchronously.
|
||||
// This causes incorrect rendering for rounded clips!
|
||||
|
@ -3656,7 +3656,7 @@ nsDisplayScrollInfoLayer::~nsDisplayScrollInfoLayer()
|
|||
LayerState
|
||||
nsDisplayScrollInfoLayer::GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
return LAYER_ACTIVE_EMPTY;
|
||||
}
|
||||
|
@ -4260,7 +4260,7 @@ nsDisplayTransform::ShouldBuildLayerEvenIfInvisible(nsDisplayListBuilder* aBuild
|
|||
|
||||
already_AddRefed<Layer> nsDisplayTransform::BuildLayer(nsDisplayListBuilder *aBuilder,
|
||||
LayerManager *aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
const gfx3DMatrix& newTransformMatrix =
|
||||
GetTransform(mFrame->PresContext()->AppUnitsPerDevPixel());
|
||||
|
@ -4303,7 +4303,7 @@ already_AddRefed<Layer> nsDisplayTransform::BuildLayer(nsDisplayListBuilder *aBu
|
|||
nsDisplayItem::LayerState
|
||||
nsDisplayTransform::GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) {
|
||||
const ContainerLayerParameters& aParameters) {
|
||||
// If the transform is 3d, or the layer takes part in preserve-3d sorting
|
||||
// then we *always* want this to be an active layer.
|
||||
if (!GetTransform(mFrame->PresContext()->AppUnitsPerDevPixel()).Is2D() ||
|
||||
|
@ -4692,7 +4692,7 @@ nsDisplaySVGEffects::PaintAsLayer(nsDisplayListBuilder* aBuilder,
|
|||
LayerState
|
||||
nsDisplaySVGEffects::GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
return LAYER_SVG_EFFECTS;
|
||||
}
|
||||
|
@ -4700,7 +4700,7 @@ nsDisplaySVGEffects::GetLayerState(nsDisplayListBuilder* aBuilder,
|
|||
already_AddRefed<Layer>
|
||||
nsDisplaySVGEffects::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
const nsIContent* content = mFrame->GetContent();
|
||||
bool hasSVGLayout = (mFrame->GetStateBits() & NS_FRAME_SVG_LAYOUT);
|
||||
|
|
|
@ -695,7 +695,7 @@ protected:
|
|||
*/
|
||||
class nsDisplayItem : public nsDisplayItemLink {
|
||||
public:
|
||||
typedef mozilla::FrameLayerBuilder::ContainerParameters ContainerParameters;
|
||||
typedef mozilla::ContainerLayerParameters ContainerLayerParameters;
|
||||
typedef mozilla::DisplayItemClip DisplayItemClip;
|
||||
typedef mozilla::layers::FrameMetrics::ViewID ViewID;
|
||||
typedef mozilla::layers::Layer Layer;
|
||||
|
@ -1009,7 +1009,7 @@ public:
|
|||
*/
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{ return mozilla::LAYER_NONE; }
|
||||
/**
|
||||
* Return true to indicate the layer should be constructed even if it's
|
||||
|
@ -1052,7 +1052,7 @@ public:
|
|||
*/
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{ return nullptr; }
|
||||
|
||||
/**
|
||||
|
@ -1971,11 +1971,11 @@ public:
|
|||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE;
|
||||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
|
||||
virtual void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
||||
HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames) MOZ_OVERRIDE;
|
||||
|
@ -2388,7 +2388,7 @@ public:
|
|||
*/
|
||||
static LayerState RequiredLayerStateForChildren(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters,
|
||||
const ContainerLayerParameters& aParameters,
|
||||
const nsDisplayList& aList,
|
||||
nsIFrame* aItemFrame);
|
||||
|
||||
|
@ -2456,10 +2456,10 @@ public:
|
|||
bool* aSnap) MOZ_OVERRIDE;
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE;
|
||||
virtual bool ComputeVisibility(nsDisplayListBuilder* aBuilder,
|
||||
nsRegion* aVisibleRegion,
|
||||
const nsRect& aAllowVisibleRegionExpansion) MOZ_OVERRIDE;
|
||||
|
@ -2492,7 +2492,7 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
virtual void ComputeInvalidationRegion(nsDisplayListBuilder* aBuilder,
|
||||
const nsDisplayItemGeometry* aGeometry,
|
||||
nsRegion* aInvalidRegion) MOZ_OVERRIDE
|
||||
|
@ -2501,7 +2501,7 @@ public:
|
|||
}
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
||||
{
|
||||
return mozilla::LAYER_INACTIVE;
|
||||
}
|
||||
|
@ -2522,10 +2522,10 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
||||
{
|
||||
return mozilla::LAYER_INACTIVE;
|
||||
}
|
||||
|
@ -2560,10 +2560,10 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
||||
{
|
||||
return mozilla::LAYER_ACTIVE_FORCE;
|
||||
}
|
||||
|
@ -2592,7 +2592,7 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
NS_DISPLAY_DECL_NAME("Resolution", TYPE_RESOLUTION)
|
||||
};
|
||||
|
||||
|
@ -2611,10 +2611,10 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
||||
{
|
||||
return mozilla::LAYER_ACTIVE;
|
||||
}
|
||||
|
@ -2627,7 +2627,7 @@ public:
|
|||
const nsIFrame* aFixedPosFrame,
|
||||
const nsIFrame* aReferenceFrame,
|
||||
nsPresContext* aPresContext,
|
||||
const ContainerParameters& aContainerParameters);
|
||||
const ContainerLayerParameters& aContainerParameters);
|
||||
protected:
|
||||
nsIFrame* mFixedPosFrame;
|
||||
};
|
||||
|
@ -2647,7 +2647,7 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -2698,7 +2698,7 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool ComputeVisibility(nsDisplayListBuilder* aBuilder,
|
||||
nsRegion* aVisibleRegion,
|
||||
|
@ -2706,7 +2706,7 @@ public:
|
|||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE;
|
||||
|
||||
virtual bool TryMerge(nsDisplayListBuilder* aBuilder,
|
||||
nsDisplayItem* aItem) MOZ_OVERRIDE;
|
||||
|
@ -2747,7 +2747,7 @@ public:
|
|||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE;
|
||||
virtual bool ShouldBuildLayerEvenIfInvisible(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE
|
||||
{ return true; }
|
||||
virtual bool TryMerge(nsDisplayListBuilder* aBuilder,
|
||||
|
@ -2789,7 +2789,7 @@ public:
|
|||
const nsRect& aAllowVisibleRegionExpansion) MOZ_OVERRIDE;
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
||||
{
|
||||
return mozilla::LAYER_ACTIVE;
|
||||
}
|
||||
|
@ -2832,11 +2832,11 @@ public:
|
|||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters);
|
||||
const ContainerLayerParameters& aParameters);
|
||||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
|
||||
virtual void ComputeInvalidationRegion(nsDisplayListBuilder* aBuilder,
|
||||
const nsDisplayItemGeometry* aGeometry,
|
||||
|
@ -2918,10 +2918,10 @@ public:
|
|||
virtual bool IsUniform(nsDisplayListBuilder *aBuilder, nscolor* aColor) MOZ_OVERRIDE;
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE;
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
virtual bool ShouldBuildLayerEvenIfInvisible(nsDisplayListBuilder* aBuilder) MOZ_OVERRIDE;
|
||||
virtual bool ComputeVisibility(nsDisplayListBuilder *aBuilder,
|
||||
nsRegion *aVisibleRegion,
|
||||
|
|
|
@ -56,14 +56,14 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
return static_cast<nsHTMLCanvasFrame*>(mFrame)->
|
||||
BuildLayer(aBuilder, aManager, this, aContainerParameters);
|
||||
}
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const FrameLayerBuilder::ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
if (HTMLCanvasElement::FromContent(mFrame->GetContent())->ShouldForceInactiveLayer(aManager))
|
||||
return LAYER_INACTIVE;
|
||||
|
@ -242,7 +242,7 @@ already_AddRefed<Layer>
|
|||
nsHTMLCanvasFrame::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
nsRect area = GetContentRect() - GetPosition() + aItem->ToReferenceFrame();
|
||||
HTMLCanvasElement* element = static_cast<HTMLCanvasElement*>(GetContent());
|
||||
|
|
|
@ -30,7 +30,7 @@ class nsHTMLCanvasFrame : public nsContainerFrame
|
|||
public:
|
||||
typedef mozilla::layers::Layer Layer;
|
||||
typedef mozilla::layers::LayerManager LayerManager;
|
||||
typedef mozilla::FrameLayerBuilder::ContainerParameters ContainerParameters;
|
||||
typedef mozilla::ContainerLayerParameters ContainerLayerParameters;
|
||||
|
||||
NS_DECL_QUERYFRAME_TARGET(nsHTMLCanvasFrame)
|
||||
NS_DECL_QUERYFRAME
|
||||
|
@ -49,7 +49,7 @@ public:
|
|||
already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters);
|
||||
const ContainerLayerParameters& aContainerParameters);
|
||||
|
||||
/* get the size of the canvas's image */
|
||||
nsIntSize GetCanvasSize();
|
||||
|
|
|
@ -1275,7 +1275,7 @@ nsDisplayImage::GetDestRect()
|
|||
LayerState
|
||||
nsDisplayImage::GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const FrameLayerBuilder::ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
bool animated = false;
|
||||
if (!nsLayoutUtils::AnimatedImageLayersEnabled() ||
|
||||
|
@ -1328,7 +1328,7 @@ nsDisplayImage::GetLayerState(nsDisplayListBuilder* aBuilder,
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayImage::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
nsRefPtr<ImageContainer> container;
|
||||
nsresult rv = mImage->GetImageContainer(aManager, getter_AddRefs(container));
|
||||
|
|
|
@ -385,7 +385,7 @@ public:
|
|||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE;
|
||||
virtual nsRect GetBounds(nsDisplayListBuilder* aBuilder, bool* aSnap) MOZ_OVERRIDE
|
||||
{
|
||||
*aSnap = true;
|
||||
|
@ -394,7 +394,7 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
|
||||
/**
|
||||
* Configure an ImageLayer for this display item.
|
||||
|
|
|
@ -869,14 +869,14 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
return static_cast<nsObjectFrame*>(mFrame)->BuildLayer(aBuilder, aManager, this, aContainerParameters);
|
||||
}
|
||||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
return LAYER_ACTIVE;
|
||||
}
|
||||
|
@ -939,14 +939,14 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
return static_cast<nsObjectFrame*>(mFrame)->BuildLayer(aBuilder, aManager, this, aContainerParameters);
|
||||
}
|
||||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
return LAYER_ACTIVE;
|
||||
}
|
||||
|
@ -1508,7 +1508,7 @@ already_AddRefed<Layer>
|
|||
nsObjectFrame::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
if (!mInstanceOwner)
|
||||
return nullptr;
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
typedef mozilla::layers::Layer Layer;
|
||||
typedef mozilla::layers::LayerManager LayerManager;
|
||||
typedef mozilla::layers::ImageContainer ImageContainer;
|
||||
typedef mozilla::FrameLayerBuilder::ContainerParameters ContainerParameters;
|
||||
typedef mozilla::ContainerLayerParameters ContainerLayerParameters;
|
||||
|
||||
NS_DECL_FRAMEARENA_HELPERS
|
||||
|
||||
|
@ -163,7 +163,7 @@ public:
|
|||
already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters);
|
||||
const ContainerLayerParameters& aContainerParameters);
|
||||
|
||||
LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager);
|
||||
|
@ -318,7 +318,7 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE
|
||||
{
|
||||
return static_cast<nsObjectFrame*>(mFrame)->BuildLayer(aBuilder,
|
||||
aManager,
|
||||
|
@ -328,7 +328,7 @@ public:
|
|||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
||||
{
|
||||
return static_cast<nsObjectFrame*>(mFrame)->GetLayerState(aBuilder,
|
||||
aManager);
|
||||
|
|
|
@ -172,7 +172,7 @@ already_AddRefed<Layer>
|
|||
nsVideoFrame::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
nsRect area = GetContentRect() - GetPosition() + aItem->ToReferenceFrame();
|
||||
HTMLVideoElement* element = static_cast<HTMLVideoElement*>(GetContent());
|
||||
|
@ -398,14 +398,14 @@ public:
|
|||
|
||||
virtual already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
return static_cast<nsVideoFrame*>(mFrame)->BuildLayer(aBuilder, aManager, this, aContainerParameters);
|
||||
}
|
||||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const FrameLayerBuilder::ContainerParameters& aParameters)
|
||||
const ContainerLayerParameters& aParameters)
|
||||
{
|
||||
if (aManager->IsCompositingCheap()) {
|
||||
// Since ImageLayers don't require additional memory of the
|
||||
|
|
|
@ -33,7 +33,7 @@ class nsVideoFrame : public nsContainerFrame, public nsIAnonymousContentCreator
|
|||
public:
|
||||
typedef mozilla::layers::Layer Layer;
|
||||
typedef mozilla::layers::LayerManager LayerManager;
|
||||
typedef mozilla::FrameLayerBuilder::ContainerParameters ContainerParameters;
|
||||
typedef mozilla::ContainerLayerParameters ContainerLayerParameters;
|
||||
|
||||
nsVideoFrame(nsStyleContext* aContext);
|
||||
|
||||
|
@ -96,7 +96,7 @@ public:
|
|||
already_AddRefed<Layer> BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters);
|
||||
const ContainerLayerParameters& aContainerParameters);
|
||||
|
||||
protected:
|
||||
|
||||
|
|
|
@ -722,7 +722,7 @@ RenderFrameParent::BuildLayer(nsDisplayListBuilder* aBuilder,
|
|||
LayerManager* aManager,
|
||||
const nsIntRect& aVisibleRect,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
NS_ABORT_IF_FALSE(aFrame,
|
||||
"makes no sense to have a shadow tree without a frame");
|
||||
|
@ -1057,7 +1057,7 @@ RenderFrameParent::HitTest(const nsRect& aRect)
|
|||
already_AddRefed<Layer>
|
||||
nsDisplayRemote::BuildLayer(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters)
|
||||
const ContainerLayerParameters& aContainerParameters)
|
||||
{
|
||||
int32_t appUnitsPerDevPixel = mFrame->PresContext()->AppUnitsPerDevPixel();
|
||||
nsIntRect visibleRect = GetVisibleRect().ToNearestPixels(appUnitsPerDevPixel);
|
||||
|
|
|
@ -46,7 +46,7 @@ class RenderFrameParent : public PRenderFrameParent,
|
|||
typedef mozilla::layers::LayerManager LayerManager;
|
||||
typedef mozilla::layers::TargetConfig TargetConfig;
|
||||
typedef mozilla::layers::LayerTransactionParent LayerTransactionParent;
|
||||
typedef mozilla::FrameLayerBuilder::ContainerParameters ContainerParameters;
|
||||
typedef mozilla::ContainerLayerParameters ContainerLayerParameters;
|
||||
typedef mozilla::layers::TextureFactoryIdentifier TextureFactoryIdentifier;
|
||||
typedef mozilla::layers::ScrollableLayerGuid ScrollableLayerGuid;
|
||||
typedef FrameMetrics::ViewID ViewID;
|
||||
|
@ -89,7 +89,7 @@ public:
|
|||
LayerManager* aManager,
|
||||
const nsIntRect& aVisibleRect,
|
||||
nsDisplayItem* aItem,
|
||||
const ContainerParameters& aContainerParameters);
|
||||
const ContainerLayerParameters& aContainerParameters);
|
||||
|
||||
void OwnerContentChanged(nsIContent* aContent);
|
||||
|
||||
|
@ -207,12 +207,12 @@ public:
|
|||
|
||||
virtual LayerState GetLayerState(nsDisplayListBuilder* aBuilder,
|
||||
LayerManager* aManager,
|
||||
const ContainerParameters& aParameters) MOZ_OVERRIDE
|
||||
const ContainerLayerParameters& aParameters) MOZ_OVERRIDE
|
||||
{ return mozilla::LAYER_ACTIVE_FORCE; }
|
||||
|
||||
virtual already_AddRefed<Layer>
|
||||
BuildLayer(nsDisplayListBuilder* aBuilder, LayerManager* aManager,
|
||||
const ContainerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
const ContainerLayerParameters& aContainerParameters) MOZ_OVERRIDE;
|
||||
|
||||
void HitTest(nsDisplayListBuilder* aBuilder, const nsRect& aRect,
|
||||
HitTestState* aState, nsTArray<nsIFrame*> *aOutFrames) MOZ_OVERRIDE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче