Chromium Code Reviews| Index: third_party/WebKit/Source/core/frame/FrameView.h |
| diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h |
| index d8f183533b304cbc72c827789d3e7ae11255013c..2d8fb9c4259920ba0e16984f38f7091da9042be7 100644 |
| --- a/third_party/WebKit/Source/core/frame/FrameView.h |
| +++ b/third_party/WebKit/Source/core/frame/FrameView.h |
| @@ -727,6 +727,13 @@ class CORE_EXPORT FrameView final |
| // PaintInvalidator. |
| void invalidatePaintIfNeeded(const PaintInvalidationState&); |
| + bool disableScrollAnchoringForPrinting() { |
| + return m_disableScrollAnchoringForPrinting; |
| + } |
| + void setDisableScrollAnchoringForPrinting(bool value) { |
| + m_disableScrollAnchoringForPrinting = value; |
| + } |
| + |
| // Only for SPv2. |
| std::unique_ptr<JSONObject> compositedLayersAsJSON(LayerTreeFlags); |
| @@ -1058,6 +1065,10 @@ class CORE_EXPORT FrameView final |
| DocumentLifecycle::LifecycleState m_currentUpdateLifecyclePhasesTargetState; |
| ScrollAnchor m_scrollAnchor; |
| + // This is set when we're in printing mode. We can't reuse the m_printing bit |
| + // from blink::Document because it's reset before the set of layouts caused |
|
skobes
2016/10/12 22:40:31
This seems wrong. Isn't Document::m_printing clea
ymalik
2016/10/13 13:48:04
Not quite. Document::m_printing is cleared from Lo
skobes
2016/10/13 16:24:00
Ah, I suspect LocalFrame::setPrinting does a layou
ymalik
2016/10/14 16:30:56
Yes an enum is cleaner in this case. It also allow
|
| + // by printing. |
| + bool m_disableScrollAnchoringForPrinting; |
| bool m_needsScrollbarsUpdate; |
| bool m_suppressAdjustViewSize; |