| Index: third_party/WebKit/Source/core/page/PrintContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/PrintContext.cpp b/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| index 930a7689bc31509985441e763a6c8a16cd82cfbe..6531da5b8f02542feeefbc76735d40caffdb0900 100644
|
| --- a/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| +++ b/third_party/WebKit/Source/core/page/PrintContext.cpp
|
| @@ -176,6 +176,8 @@ void PrintContext::begin(float width, float height) {
|
| originalPageSize, FloatSize(width * printingMinimumShrinkFactor,
|
| height * printingMinimumShrinkFactor));
|
|
|
| + m_frame->view()->setDisableScrollAnchoringForPrinting(true);
|
| +
|
| // This changes layout, so callers need to make sure that they don't paint to
|
| // screen while in printing mode.
|
| m_frame->setPrinting(
|
| @@ -187,6 +189,7 @@ void PrintContext::end() {
|
| ASSERT(m_isPrinting);
|
| m_isPrinting = false;
|
| m_frame->setPrinting(false, FloatSize(), FloatSize(), 0);
|
| + m_frame->view()->setDisableScrollAnchoringForPrinting(false);
|
| m_linkedDestinations.clear();
|
| m_linkedDestinationsValid = false;
|
| }
|
|
|