Make ScrollView's updateContents method cross-platform.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/platform/ScrollView.cpp b/WebCore/platform/ScrollView.cpp
index 441db0f..f2e8312 100644
--- a/WebCore/platform/ScrollView.cpp
+++ b/WebCore/platform/ScrollView.cpp
@@ -26,6 +26,7 @@
#include "config.h"
#include "ScrollView.h"
+#include "HostWindow.h"
#include "PlatformMouseEvent.h"
#include "PlatformWheelEvent.h"
#include "Scrollbar.h"
@@ -340,6 +341,21 @@
(*current)->frameRectsChanged();
}
+void ScrollView::repaintContentRectangle(const IntRect& rect, bool now)
+{
+ if (rect.isEmpty())
+ return;
+
+ ASSERT(!parent());
+
+ if (platformWidget()) {
+ platformRepaintContentRectangle(rect, now);
+ return;
+ }
+
+ hostWindow()->repaint(contentsToWindow(rect), true, now);
+}
+
#if !PLATFORM(MAC)
void ScrollView::platformSetCanBlitOnScroll()
{
@@ -381,6 +397,10 @@
{
return true;
}
+
+void ScrollView::platformRepaintContentRectangle(const IntRect&, bool now)
+{
+}
#endif
}