Bug 622542. Remove unused FrameLayerBuilder::InvalidateAllThebesLayerContents API. r=tnikkel a2.0=blocking
This commit is contained in:
@@ -64,7 +64,6 @@ namespace {
|
||||
class LayerManagerData : public LayerUserData {
|
||||
public:
|
||||
LayerManagerData(LayerManager *aManager) :
|
||||
mInvalidateAllThebesContent(PR_FALSE),
|
||||
mInvalidateAllLayers(PR_FALSE),
|
||||
mLayerManager(aManager)
|
||||
{
|
||||
@@ -83,7 +82,6 @@ public:
|
||||
* Tracks which frames have layers associated with them.
|
||||
*/
|
||||
nsTHashtable<nsPtrHashKey<nsIFrame> > mFramesWithLayers;
|
||||
PRPackedBool mInvalidateAllThebesContent;
|
||||
PRPackedBool mInvalidateAllLayers;
|
||||
/** Layer manager we belong to, we hold a reference to this object. */
|
||||
nsRefPtr<LayerManager> mLayerManager;
|
||||
@@ -468,7 +466,6 @@ FrameLayerBuilder::DidBeginRetainedLayerTransaction(LayerManager* aManager)
|
||||
LayerManagerData* data = static_cast<LayerManagerData*>
|
||||
(aManager->GetUserData(&gLayerManagerUserData));
|
||||
if (data) {
|
||||
mInvalidateAllThebesContent = data->mInvalidateAllThebesContent;
|
||||
mInvalidateAllLayers = data->mInvalidateAllLayers;
|
||||
}
|
||||
}
|
||||
@@ -527,7 +524,6 @@ FrameLayerBuilder::WillEndTransaction(LayerManager* aManager)
|
||||
// display items before, and record those retained display items.
|
||||
// This also empties mNewDisplayItemData.
|
||||
mNewDisplayItemData.EnumerateEntries(StoreNewDisplayItemData, data);
|
||||
data->mInvalidateAllThebesContent = PR_FALSE;
|
||||
data->mInvalidateAllLayers = PR_FALSE;
|
||||
|
||||
NS_ASSERTION(data->mFramesWithLayers.Count() > 0,
|
||||
@@ -763,8 +759,7 @@ ContainerState::CreateOrRecycleThebesLayer(nsIFrame* aActiveScrolledRoot)
|
||||
InvalidatePostTransformRegion(layer, mInvalidThebesContent);
|
||||
}
|
||||
// We do not need to Invalidate these areas in the widget because we
|
||||
// assume the caller of InvalidateThebesLayerContents or
|
||||
// InvalidateAllThebesLayerContents has ensured
|
||||
// assume the caller of InvalidateThebesLayerContents has ensured
|
||||
// the area is invalidated in the widget.
|
||||
} else {
|
||||
// Create a new thebes layer
|
||||
@@ -1557,10 +1552,6 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
|
||||
DisplayItemData(containerLayer, containerDisplayItemKey));
|
||||
}
|
||||
|
||||
if (mInvalidateAllThebesContent) {
|
||||
state.SetInvalidateAllThebesContent();
|
||||
}
|
||||
|
||||
nsRegion* invalidThebesContent(static_cast<nsRegion*>
|
||||
(props.Get(ThebesLayerInvalidRegionProperty())));
|
||||
if (invalidThebesContent) {
|
||||
@@ -1684,16 +1675,6 @@ FrameLayerBuilder::InvalidateThebesLayersInSubtree(nsIFrame* aFrame)
|
||||
InternalInvalidateThebesLayersInSubtree(aFrame);
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
FrameLayerBuilder::InvalidateAllThebesLayerContents(LayerManager* aManager)
|
||||
{
|
||||
LayerManagerData* data = static_cast<LayerManagerData*>
|
||||
(aManager->GetUserData(&gLayerManagerUserData));
|
||||
if (data) {
|
||||
data->mInvalidateAllThebesContent = PR_TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
/* static */ void
|
||||
FrameLayerBuilder::InvalidateAllLayers(LayerManager* aManager)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user