зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1321412 - Feed the return value of ShouldPrerenderTransformedContent() directly into nsDisplayTransform::mAllowAsyncAnimation. r=mattwoodrow
MozReview-Commit-ID: L00D3h5PhTF --HG-- extra : rebase_source : 9d834c4cd75ce120e743c49732a538decc05c1cf
This commit is contained in:
Родитель
04f1eab3e6
Коммит
8686329e65
|
@ -2205,11 +2205,13 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
|
|||
aBuilder->SetContainsBlendMode(false);
|
||||
|
||||
nsRect dirtyRectOutsideTransform = dirtyRect;
|
||||
bool allowAsyncAnimation = false;
|
||||
if (isTransformed) {
|
||||
const nsRect overflow = GetVisualOverflowRectRelativeToSelf();
|
||||
if (nsDisplayTransform::ShouldPrerenderTransformedContent(aBuilder,
|
||||
this)) {
|
||||
dirtyRect = overflow;
|
||||
allowAsyncAnimation = true;
|
||||
} else {
|
||||
if (overflow.IsEmpty() && !extend3DContext) {
|
||||
return;
|
||||
|
@ -2571,12 +2573,10 @@ nsIFrame::BuildDisplayListForStackingContext(nsDisplayListBuilder* aBuilder,
|
|||
|
||||
if (!aBuilder->IsForGenerateGlyphMask() &&
|
||||
!aBuilder->IsForPaintingSelectionBG()) {
|
||||
bool isFullyVisible =
|
||||
dirtyRectOutsideSVGEffects.Contains(GetVisualOverflowRectRelativeToSelf());
|
||||
nsDisplayTransform *transformItem =
|
||||
new (aBuilder) nsDisplayTransform(aBuilder, this,
|
||||
&resultList, dirtyRect, 0,
|
||||
isFullyVisible);
|
||||
allowAsyncAnimation);
|
||||
resultList.AppendNewToTop(transformItem);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче