mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
import from UXP: No issue - Fix some fatal printing assertions. (01b4ef07)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user