Index: Source/platform/Widget.h |
diff --git a/Source/platform/Widget.h b/Source/platform/Widget.h |
index ffe2ac6e1dc1327645a8548d5c46e4b6553e23c6..1a8a170e792cea895be6f1f5386a25d5d22a1aae 100644 |
--- a/Source/platform/Widget.h |
+++ b/Source/platform/Widget.h |
@@ -40,13 +40,10 @@ class Event; |
class GraphicsContext; |
class HostWindow; |
-// The Widget class serves as a base class for three kinds of objects: |
-// (1) Scrollable areas (ScrollView) |
-// (2) Scrollbars (Scrollbar) |
-// (3) Plugins (PluginView) |
+// The Widget class serves as a base class for FrameView, Scrollbar, and PluginView. |
// |
// Widgets are connected in a hierarchy, with the restriction that plugins and |
-// scrollbars are always leaves of the tree. Only ScrollViews can have children |
+// scrollbars are always leaves of the tree. Only FrameView can have children |
// (and therefore the Widget class has no concept of children). |
class PLATFORM_EXPORT Widget : public RefCounted<Widget> { |
public: |
@@ -89,7 +86,6 @@ public: |
virtual bool isPluginContainer() const { return false; } |
virtual bool pluginShouldPersist() const { return false; } |
virtual bool isScrollbar() const { return false; } |
- virtual bool isScrollView() const { return false; } |
virtual HostWindow* hostWindow() const { ASSERT_NOT_REACHED(); return 0; } |
virtual void setParent(Widget*); |
@@ -114,7 +110,7 @@ public: |
// Notifies this widget that other widgets on the page have been repositioned. |
virtual void widgetPositionsUpdated() { } |
- // Virtual methods to convert points to/from the containing ScrollView |
+ // Virtual methods to convert points to/from the containing Widget |
virtual IntRect convertToContainingView(const IntRect&) const; |
virtual IntRect convertFromContainingView(const IntRect&) const; |
virtual IntPoint convertToContainingView(const IntPoint&) const; |