summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--third_party/WebKit/Source/core/frame/FrameView.h1
-rw-r--r--third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h5
-rw-r--r--third_party/WebKit/Source/platform/scroll/ScrollableArea.h3
3 files changed, 9 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/core/frame/FrameView.h b/third_party/WebKit/Source/core/frame/FrameView.h
index cec3011..6521e00 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.h
+++ b/third_party/WebKit/Source/core/frame/FrameView.h
@@ -922,6 +922,7 @@ inline void FrameView::incrementVisuallyNonEmptyPixelCount(const IntSize& size)
}
DEFINE_TYPE_CASTS(FrameView, Widget, widget, widget->isFrameView(), widget.isFrameView());
+DEFINE_TYPE_CASTS(FrameView, ScrollableArea, scrollableArea, scrollableArea->isFrameView(), scrollableArea.isFrameView());
} // namespace blink
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index 055db43..d7e88f6 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -332,6 +332,7 @@ public:
IntRect rectForVerticalScrollbar(const IntRect& borderBoxRect) const;
Widget* widget() override;
+ bool isPaintLayerScrollableArea() const override { return true; }
DECLARE_VIRTUAL_TRACE();
@@ -412,6 +413,10 @@ private:
#endif
};
+DEFINE_TYPE_CASTS(PaintLayerScrollableArea, ScrollableArea, scrollableArea,
+ scrollableArea->isPaintLayerScrollableArea(),
+ scrollableArea.isPaintLayerScrollableArea());
+
} // namespace blink
#endif // LayerScrollableArea_h
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
index 49b5b39..a6904b6 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
+++ b/third_party/WebKit/Source/platform/scroll/ScrollableArea.h
@@ -280,6 +280,9 @@ public:
// Returns the widget associated with this ScrollableArea.
virtual Widget* widget() { return nullptr; }
+ virtual bool isFrameView() const { return false; }
+ virtual bool isPaintLayerScrollableArea() const { return false; }
+
// Need to promptly let go of owned animator objects.
EAGERLY_FINALIZE();
DECLARE_VIRTUAL_TRACE();