Title: [255908] trunk/Source/WebCore
- Revision
- 255908
- Author
- [email protected]
- Date
- 2020-02-05 23:00:37 -0800 (Wed, 05 Feb 2020)
Log Message
Crash when printing at WebCore: WebCore::FrameView::paintContents
<https://webkit.org/b/207313>
<rdar://problem/56675778>
Reviewed by Brent Fulgham.
* page/PrintContext.cpp:
(WebCore::PrintContext::spoolPage):
(WebCore::PrintContext::spoolRect):
- Add nullptr check for frame.view(). This matches similar
checks in other methods.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (255907 => 255908)
--- trunk/Source/WebCore/ChangeLog 2020-02-06 06:44:38 UTC (rev 255907)
+++ trunk/Source/WebCore/ChangeLog 2020-02-06 07:00:37 UTC (rev 255908)
@@ -1,3 +1,17 @@
+2020-02-05 David Kilzer <[email protected]>
+
+ Crash when printing at WebCore: WebCore::FrameView::paintContents
+ <https://webkit.org/b/207313>
+ <rdar://problem/56675778>
+
+ Reviewed by Brent Fulgham.
+
+ * page/PrintContext.cpp:
+ (WebCore::PrintContext::spoolPage):
+ (WebCore::PrintContext::spoolRect):
+ - Add nullptr check for frame.view(). This matches similar
+ checks in other methods.
+
2020-02-05 Don Olmstead <[email protected]>
[PlayStation] Miscellaneous build fixes February 2020 edition
Modified: trunk/Source/WebCore/page/PrintContext.cpp (255907 => 255908)
--- trunk/Source/WebCore/page/PrintContext.cpp 2020-02-06 06:44:38 UTC (rev 255907)
+++ trunk/Source/WebCore/page/PrintContext.cpp 2020-02-06 07:00:37 UTC (rev 255908)
@@ -230,6 +230,9 @@
return;
auto& frame = *this->frame();
+ if (!frame.view())
+ return;
+
// FIXME: Not correct for vertical text.
IntRect pageRect = m_pageRects[pageNumber];
float scale = width / pageRect.width();
@@ -249,6 +252,9 @@
return;
auto& frame = *this->frame();
+ if (!frame.view())
+ return;
+
// FIXME: Not correct for vertical text.
ctx.save();
ctx.translate(-rect.x(), -rect.y());
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes