author | Carsten "Tomcat" Book <cbook@mozilla.com> |
Tue, 15 Jul 2014 10:29:59 +0200 | |
changeset 215967 | e5807a2b482ec163f3f019306b4e8149355fb8c9 |
parent 215966 | 9547fa2b179ed4ca75e0514172177370e6444414 |
child 215968 | c4de29a139bfd8d59ab03c6bdd1adbb1354f1361 |
push id | 515 |
push user | raliiev@mozilla.com |
push date | Mon, 06 Oct 2014 12:51:51 +0000 |
treeherder | mozilla-release@267c7a481bef [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
bugs | 1022612 |
milestone | 33.0a1 |
backs out | 6e190d419511e96b222fd7461fdb74b0e3a0dd88 |
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/layout/base/FrameLayerBuilder.cpp +++ b/layout/base/FrameLayerBuilder.cpp @@ -4224,27 +4224,23 @@ FrameLayerBuilder::DrawThebesLayer(Thebe DrawForcedBackgroundColor(aContext, aLayer, userData->mForcedBackgroundColor); } // make the origin of the context coincide with the origin of the // ThebesLayer gfxContextMatrixAutoSaveRestore saveMatrix(aContext); nsIntPoint offset = GetTranslationForThebesLayer(aLayer); + nsPresContext* presContext = entry->mContainerLayerFrame->PresContext(); - - if (!layerBuilder->GetContainingThebesLayerData()) { - // Recompute visibility of items in our ThebesLayer. Note that this - // recomputes visibility for all descendants of our display items too, - // so there's no need to do this for the items in inactive ThebesLayers. - int32_t appUnitsPerDevPixel = presContext->AppUnitsPerDevPixel(); - RecomputeVisibilityForItems(entry->mItems, builder, aRegionToDraw, - offset, appUnitsPerDevPixel, - userData->mXScale, userData->mYScale); - } + int32_t appUnitsPerDevPixel = presContext->AppUnitsPerDevPixel(); + + RecomputeVisibilityForItems(entry->mItems, builder, aRegionToDraw, + offset, appUnitsPerDevPixel, + userData->mXScale, userData->mYScale); nsRefPtr<nsRenderingContext> rc = new nsRenderingContext(); rc->Init(presContext->DeviceContext(), aContext); if (shouldDrawRectsSeparately) { nsIntRegionRectIterator it(aRegionToDraw); while (const nsIntRect* iterRect = it.Next()) { gfxContextAutoSaveRestore save(aContext);