import from UXP: No issue - Fix some fatal printing assertions. (01b4ef07)

This commit is contained in:
2026-03-11 23:24:08 +08:00
parent 75b143d87b
commit 37f2db0eb6
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ PrintTarget::MakeDrawTarget(const IntSize& aSize,
// This should not be called outside of BeginPage()/EndPage() calls since
// some backends can only provide a valid DrawTarget at that time.
MOZ_ASSERT(mHasActivePage, "We can't guarantee a valid DrawTarget");
NS_WARNING_ASSERTION(mHasActivePage, "We can't guarantee a valid DrawTarget without an active page. Content may be missing.");
if (cairo_surface_status(mCairoSurface)) {
return nullptr;
-3
View File
@@ -74,9 +74,6 @@ class nsDisplayTableBackgroundSet {
nsDisplayTableBackgroundSet(nsDisplayListBuilder* aBuilder, nsIFrame* aTable)
: mBuilder(aBuilder) {
mPrevTableBackgroundSet = mBuilder->SetTableBackgroundSet(this);
mozilla::DebugOnly<const nsIFrame*> reference =
mBuilder->FindReferenceFrameFor(aTable, &mToReferenceFrame);
MOZ_ASSERT(nsLayoutUtils::IsAncestorFrameCrossDoc(reference, aTable));
mDirtyRect = mBuilder->GetDirtyRect();
}