| 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 453269216ecf182eac70cabf9544b0ad4fb1fd99..da482e65002897c8bfa55c74c253df0ab4f73d37 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.h
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.h
|
| @@ -37,6 +37,7 @@
|
| #include "platform/geometry/IntRect.h"
|
| #include "platform/geometry/LayoutRect.h"
|
| #include "platform/graphics/Color.h"
|
| +#include "platform/graphics/paint/TransformPaintPropertyNode.h"
|
| #include "platform/scroll/ScrollTypes.h"
|
| #include "platform/scroll/ScrollableArea.h"
|
| #include "platform/scroll/Scrollbar.h"
|
| @@ -568,6 +569,13 @@ public:
|
| bool canThrottleRendering() const;
|
| bool isHiddenForThrottling() const { return m_hiddenForThrottling; }
|
|
|
| + // Paint properties for SPv2 Only.
|
| + void setPreTranslation(PassRefPtr<TransformPaintPropertyNode> preTranslation) { m_preTranslation = preTranslation; }
|
| + const TransformPaintPropertyNode* preTranslation() const { return m_preTranslation.get(); }
|
| +
|
| + void setScrollTranslation(PassRefPtr<TransformPaintPropertyNode> scrollTranslation) { m_scrollTranslation = scrollTranslation; }
|
| + const TransformPaintPropertyNode* scrollTranslation() const { return m_scrollTranslation.get(); }
|
| +
|
| protected:
|
| // Scroll the content via the compositor.
|
| bool scrollContentsFastPath(const IntSize& scrollDelta);
|
| @@ -865,6 +873,13 @@ private:
|
| // notifications, i.e., not in the middle of the lifecycle.
|
| bool m_hiddenForThrottling;
|
| bool m_crossOriginForThrottling;
|
| +
|
| + // Paint properties for SPv2 Only.
|
| + // The hierarchy of transform subtree created by a FrameView.
|
| + // [ preTranslation ] The offset from Widget::frameRect. Establishes viewport.
|
| + // +---[ scrollTranslation ] Frame scrolling. This is going away in favor of Settings::rootLayerScrolls.
|
| + RefPtr<TransformPaintPropertyNode> m_preTranslation;
|
| + RefPtr<TransformPaintPropertyNode> m_scrollTranslation;
|
| };
|
|
|
| inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count)
|
|
|