зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1764224 - Don't assert primary frame on printing docs. r=dholbert
ReplicateFixedFrames can create extra frames, but we don't particularly care about this. Differential Revision: https://phabricator.services.mozilla.com/D143471
This commit is contained in:
Родитель
1e4efe8e6b
Коммит
85598ec315
|
@ -319,7 +319,10 @@ void nsVideoFrame::Reflow(nsPresContext* aPresContext, ReflowOutput& aMetrics,
|
|||
ReflowChildFlags::Default);
|
||||
|
||||
if (child->GetSize() != oldChildSize) {
|
||||
MOZ_ASSERT(child->IsPrimaryFrame(),
|
||||
// We might find non-primary frames in printing due to
|
||||
// ReplicateFixedFrames, but we don't care about that.
|
||||
MOZ_ASSERT(child->IsPrimaryFrame() ||
|
||||
PresContext()->IsPrintingOrPrintPreview(),
|
||||
"We only look at the primary frame in ReflowFinished");
|
||||
if (!mReflowCallbackPosted) {
|
||||
mReflowCallbackPosted = true;
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<!doctype html>
|
||||
<link rel=help href="https://bugzilla.mozilla.org/show_bug.cgi?id=1764224">
|
||||
<!-- Really a crashtest but since we can't really have print crashtests, we assert that we print something -->
|
||||
<link rel="mismatch" href="/css/reference/blank.html">
|
||||
<q style="page-break-after: left"></q>
|
||||
<pre>a</pre>
|
||||
<audio style="position: fixed" controls="controls">a</audio>
|
Загрузка…
Ссылка в новой задаче