| Index: components/printing/renderer/print_web_view_helper.cc
|
| diff --git a/components/printing/renderer/print_web_view_helper.cc b/components/printing/renderer/print_web_view_helper.cc
|
| index fa79d1a2714353a0a665ff0e7f4c77d78738f0ea..a8ec39d8500e048a0c312034dc4c1e8b97d7c2af 100644
|
| --- a/components/printing/renderer/print_web_view_helper.cc
|
| +++ b/components/printing/renderer/print_web_view_helper.cc
|
| @@ -955,8 +955,7 @@ bool PrintWebViewHelper::GetPrintFrame(blink::WebLocalFrame** frame) {
|
|
|
| // If the user has selected text in the currently focused frame we print
|
| // only that frame (this makes print selection work for multiple frames).
|
| - blink::WebLocalFrame* focusedFrame =
|
| - webView->focusedFrame()->toWebLocalFrame();
|
| + blink::WebLocalFrame* focusedFrame = webView->focusedFrame();
|
| *frame = focusedFrame->hasSelection()
|
| ? focusedFrame
|
| : webView->mainFrame()->toWebLocalFrame();
|
|
|