зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset a8e8ba250d62 (bug 1321412)
This commit is contained in:
Родитель
0e60a200d1
Коммит
20fac7d50c
|
@ -6261,13 +6261,6 @@ nsDisplayTransform::ShouldPrerenderTransformedContent(nsDisplayListBuilder* aBui
|
|||
return NoPrerender;
|
||||
}
|
||||
|
||||
// If the incoming dirty rect already contains the entire overflow area,
|
||||
// we are already rendering the entire content.
|
||||
nsRect overflow = aFrame->GetVisualOverflowRectRelativeToSelf();
|
||||
if (aDirtyRect->Contains(overflow)) {
|
||||
return FullPrerender;
|
||||
}
|
||||
|
||||
float viewportRatioX = gfxPrefs::AnimationPrerenderViewportRatioLimitX();
|
||||
float viewportRatioY = gfxPrefs::AnimationPrerenderViewportRatioLimitY();
|
||||
uint32_t absoluteLimitX = gfxPrefs::AnimationPrerenderAbsoluteLimitX();
|
||||
|
@ -6282,6 +6275,7 @@ nsDisplayTransform::ShouldPrerenderTransformedContent(nsDisplayListBuilder* aBui
|
|||
aFrame->PresContext()->DevPixelsToAppUnits(absoluteLimitY));
|
||||
nsSize maxSize = Min(relativeLimit, absoluteLimit);
|
||||
gfxSize scale = nsLayoutUtils::GetTransformToAncestorScale(aFrame);
|
||||
nsRect overflow = aFrame->GetVisualOverflowRectRelativeToSelf();
|
||||
nsSize frameSize = nsSize(overflow.Size().width * scale.width,
|
||||
overflow.Size().height * scale.height);
|
||||
if (frameSize <= maxSize) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче