Bug 1505374. Remove dead hasClip code from FrameLayerBuilder::AddPaintedDisplayItem. r=mattwoodrow

Differential Revision: https://phabricator.services.mozilla.com/D11168

--HG--
extra : rebase_source : c2637d8eea66e5e454c1de976083e3410e6c3569
This commit is contained in:
Jonathan Watt 2018-11-05 13:00:33 +00:00
Родитель 469a9f409b
Коммит f31705c291
1 изменённых файлов: 0 добавлений и 5 удалений

Просмотреть файл

@ -5741,7 +5741,6 @@ FrameLayerBuilder::AddPaintedDisplayItem(PaintedLayerData* aLayerData,
layer->GetUserData(&gPaintedDisplayItemLayerUserData));
RefPtr<BasicLayerManager> tempManager;
nsIntRect intClip;
bool hasClip = false;
if (aItem.mLayerState != LAYER_NONE) {
if (aItem.mDisplayItemData) {
tempManager = aItem.mDisplayItemData->mInactiveManager;
@ -5903,10 +5902,6 @@ FrameLayerBuilder::AddPaintedDisplayItem(PaintedLayerData* aLayerData,
invalid.ScaleRoundOut(paintedData->mXScale, paintedData->mYScale);
if (hasClip) {
invalid.And(invalid, intClip);
}
InvalidatePostTransformRegion(
layer, invalid, GetTranslationForPaintedLayer(layer));
}