Remove ChromeClient::paintCustomOverhangArea
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 20:44:41 +0000 (20:44 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 13 Nov 2013 20:44:41 +0000 (20:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=124304

Reviewed by Beth Dakin.

This function always returns false now; get rid of it.

* page/Chrome.cpp:
* page/ChromeClient.h:
* page/FrameView.cpp:
(WebCore::FrameView::paintOverhangAreas):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@159224 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/page/Chrome.cpp
Source/WebCore/page/ChromeClient.h
Source/WebCore/page/FrameView.cpp

index 4e0bc1b..a040a05 100644 (file)
@@ -1,3 +1,17 @@
+2013-11-13  Anders Carlsson  <andersca@apple.com>
+
+        Remove ChromeClient::paintCustomOverhangArea
+        https://bugs.webkit.org/show_bug.cgi?id=124304
+
+        Reviewed by Beth Dakin.
+
+        This function always returns false now; get rid of it.
+
+        * page/Chrome.cpp:
+        * page/ChromeClient.h:
+        * page/FrameView.cpp:
+        (WebCore::FrameView::paintOverhangAreas):
+
 2013-11-09  Martin Robinson  <mrobinson@igalia.com>
 
         [MathML] The double bar vertical delimiter does not stretch properly
index 9b4b0ba..6fc9adf 100644 (file)
@@ -570,11 +570,6 @@ String ChromeClient::generateReplacementFile(const String&)
     return String();
 }
 
-bool ChromeClient::paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect&, const IntRect&)
-{
-    return false;
-}
-
 bool Chrome::selectItemWritingDirectionIsNatural()
 {
     return m_client.selectItemWritingDirectionIsNatural();
index d92f8af..ee94476 100644 (file)
@@ -212,8 +212,6 @@ public:
     virtual bool shouldReplaceWithGeneratedFileForUpload(const String& path, String& generatedFilename);
     virtual String generateReplacementFile(const String& path);
 
-    virtual bool paintCustomOverhangArea(GraphicsContext*, const IntRect&, const IntRect&, const IntRect&);
-
 #if ENABLE(INPUT_TYPE_COLOR)
     virtual PassOwnPtr<ColorChooser> createColorChooser(ColorChooserClient*, const Color&) = 0;
 #endif
index ad32a80..6c987d2 100644 (file)
@@ -3602,9 +3602,6 @@ void FrameView::paintOverhangAreas(GraphicsContext* context, const IntRect& hori
     if (frame().document()->printing())
         return;
 
-    if (frame().isMainFrame() && frame().page()->chrome().client().paintCustomOverhangArea(context, horizontalOverhangArea, verticalOverhangArea, dirtyRect))
-        return;
-
     ScrollView::paintOverhangAreas(context, horizontalOverhangArea, verticalOverhangArea, dirtyRect);
 }