зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 2feca7f78d58 (bug 1871751) for causing failures at DisplayPortUtils.cpp. CLOSED TREE
This commit is contained in:
Родитель
4a9339c873
Коммит
41b6ca07bc
|
@ -790,8 +790,8 @@ bool DisplayPortUtils::MaybeCreateDisplayPort(
|
|||
// async-scrollable frame (i.e. one that WantsAsyncScroll()) has a
|
||||
// displayport. If that's not the case yet, and we are async-scrollable, we
|
||||
// will get a displayport.
|
||||
MOZ_ASSERT(nsLayoutUtils::AsyncPanZoomEnabled(aScrollFrame));
|
||||
if (!aBuilder->HaveScrollableDisplayPort() &&
|
||||
nsLayoutUtils::AsyncPanZoomEnabled(aScrollFrame) &&
|
||||
aScrollFrameAsScrollable->WantAsyncScroll()) {
|
||||
bool haveDisplayPort = HasNonMinimalNonZeroDisplayPort(content);
|
||||
// If we don't already have a displayport, calculate and set one.
|
||||
|
|
|
@ -3168,8 +3168,7 @@ void nsLayoutUtils::PaintFrame(gfxContext* aRenderingContext, nsIFrame* aFrame,
|
|||
}
|
||||
|
||||
builder->ClearHaveScrollableDisplayPort();
|
||||
if (builder->IsPaintingToWindow() &&
|
||||
nsLayoutUtils::AsyncPanZoomEnabled(aFrame)) {
|
||||
if (builder->IsPaintingToWindow()) {
|
||||
DisplayPortUtils::MaybeCreateDisplayPortInFirstScrollFrameEncountered(
|
||||
aFrame, builder);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче