Index: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
index 634bd57f0045030d7d02dcd5f5ca9065a1297527..512572f3d7139c395f53b29fcb4ef397259330da 100644 |
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp |
@@ -274,7 +274,7 @@ class ChromePrintContext : public PrintContext { |
WTF_MAKE_NONCOPYABLE(ChromePrintContext); |
public: |
- ChromePrintContext(LocalFrame* frame) |
+ explicit ChromePrintContext(LocalFrame* frame) |
: PrintContext(frame), printed_page_width_(0) {} |
~ChromePrintContext() override {} |
@@ -555,6 +555,9 @@ void WebLocalFrameImpl::Close() { |
dev_tools_agent_.Clear(); |
self_keep_alive_.Clear(); |
+ |
+ if (print_context_) |
+ PrintEnd(); |
} |
WebString WebLocalFrameImpl::AssignedName() const { |