Title: [154385] trunk/Source/WebCore
Revision
154385
Author
[email protected]
Date
2013-08-21 07:23:02 -0700 (Wed, 21 Aug 2013)

Log Message

[Qt] Remove unused code path in PluginView
https://bugs.webkit.org/show_bug.cgi?id=113173

Patch by Jae Hyun Park <[email protected]> on 2013-08-21
Reviewed by Anders Carlsson.

m_platformLayer in PluginView has been removed in r121710, but there are
still some leftover code path related to m_platformLayer. This patch
removes unused code path.

No new tests, removing unused code paths.

* plugins/PluginView.h:
(PluginView):
* plugins/qt/PluginViewQt.cpp:
(WebCore::PluginView::updatePluginWidget):
(WebCore::PluginView::paint):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (154384 => 154385)


--- trunk/Source/WebCore/ChangeLog	2013-08-21 13:43:00 UTC (rev 154384)
+++ trunk/Source/WebCore/ChangeLog	2013-08-21 14:23:02 UTC (rev 154385)
@@ -1,3 +1,22 @@
+2013-08-21  Jae Hyun Park  <[email protected]>
+
+        [Qt] Remove unused code path in PluginView
+        https://bugs.webkit.org/show_bug.cgi?id=113173
+
+        Reviewed by Anders Carlsson.
+
+        m_platformLayer in PluginView has been removed in r121710, but there are
+        still some leftover code path related to m_platformLayer. This patch
+        removes unused code path.
+
+        No new tests, removing unused code paths.
+
+        * plugins/PluginView.h:
+        (PluginView):
+        * plugins/qt/PluginViewQt.cpp:
+        (WebCore::PluginView::updatePluginWidget):
+        (WebCore::PluginView::paint):
+
 2013-08-21  Allan Sandfeld Jensen  <[email protected]>
 
         Font’s fast code path doesn’t handle partial runs correctly when kerning or ligatures are enabled 

Modified: trunk/Source/WebCore/plugins/PluginView.h (154384 => 154385)


--- trunk/Source/WebCore/plugins/PluginView.h	2013-08-21 13:43:00 UTC (rev 154384)
+++ trunk/Source/WebCore/plugins/PluginView.h	2013-08-21 14:23:02 UTC (rev 154385)
@@ -63,11 +63,6 @@
 class QPainter;
 QT_END_NAMESPACE
 #endif
-#if PLATFORM(QT) && USE(ACCELERATED_COMPOSITING) && ENABLE(NETSCAPE_PLUGIN_API) && defined(XP_UNIX)
-#ifndef WTF_USE_ACCELERATED_COMPOSITING_PLUGIN_LAYER
-#define WTF_USE_ACCELERATED_COMPOSITING_PLUGIN_LAYER 1
-#endif
-#endif
 #if PLATFORM(GTK)
 typedef struct _GtkSocket GtkSocket;
 #endif
@@ -249,15 +244,6 @@
 #endif
         void keepAlive();
 
-#if USE(ACCELERATED_COMPOSITING)
-#if USE(ACCELERATED_COMPOSITING_PLUGIN_LAYER)
-        virtual PlatformLayer* platformLayer() const;
-        bool shouldUseAcceleratedCompositing() const;
-#else
-        virtual PlatformLayer* platformLayer() const { return 0; }
-#endif
-#endif
-
 #if PLATFORM(QT) && ENABLE(NETSCAPE_PLUGIN_API) && defined(XP_UNIX)
         // PluginViewQt (X11) needs a few workarounds when running under DRT
         static void setIsRunningUnderDRT(bool flag) { s_isRunningUnderDRT = flag; }
@@ -424,10 +410,6 @@
         void paintUsingXPixmap(QPainter* painter, const QRect &exposedRect);
         QWebPageClient* platformPageClient() const;
 #endif
-#if USE(ACCELERATED_COMPOSITING_PLUGIN_LAYER)
-        OwnPtr<PlatformLayer> m_platformLayer;
-        friend class PluginGraphicsLayerQt;
-#endif // USE(ACCELERATED_COMPOSITING_PLUGIN_LAYER)
 #endif // PLATFORM(QT)
 
 #if PLATFORM(GTK)

Modified: trunk/Source/WebCore/plugins/qt/PluginViewQt.cpp (154384 => 154385)


--- trunk/Source/WebCore/plugins/qt/PluginViewQt.cpp	2013-08-21 13:43:00 UTC (rev 154384)
+++ trunk/Source/WebCore/plugins/qt/PluginViewQt.cpp	2013-08-21 14:23:02 UTC (rev 154385)
@@ -169,14 +169,7 @@
         || (s_isRunningUnderDRT && platformPluginWidget() && (m_windowRect != oldWindowRect || m_clipRect != oldClipRect)))
         setNPWindowIfNeeded();
 
-    if (!m_platformLayer) {
-        // Make sure we get repainted afterwards. This is necessary for downward
-        // scrolling to move the plugin widget properly.
-        // Note that we don't invalidate the frameRect() here. This is because QWebFrame::renderRelativeCoords()
-        // imitates ScrollView and adds the scroll offset back on to the rect we damage here (making the co-ordinates absolute
-        // to the frame again) before passing it to FrameView.
-        invalidate();
-    }
+    invalidate();
 }
 
 void PluginView::setFocus(bool focused)
@@ -241,11 +234,6 @@
     if (m_isWindowed)
         return;
 
-#if USE(ACCELERATED_COMPOSITING)
-    if (m_platformLayer)
-        return;
-#endif
-
     if (!m_drawable)
         return;
 
@@ -808,11 +796,4 @@
         XFreeColormap(x11Display(), m_colormap);
 }
 
-#if USE(ACCELERATED_COMPOSITING)
-PlatformLayer* PluginView::platformLayer() const
-{
-    return m_platformLayer.get();
-}
-#endif
-
 } // namespace WebCore
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to