[SCM] WebKit Debian packaging branch, debian/experimental, updated. debian/1.3.8-1-1049-g2e11a8e

commit-queue at webkit.org commit-queue at webkit.org
Fri Jan 21 15:05:21 UTC 2011


The following commit has been merged in the debian/experimental branch:
commit 7ddd2f0da3d1766f11ab0742707d72d43a9015a5
Author: commit-queue at webkit.org <commit-queue at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Jan 7 00:08:32 2011 +0000

    2011-01-06  Helder Correia  <helder at sencha.com>
    
            Reviewed by Kenneth Rohde Christiansen.
    
            [Qt] GraphicsContext::drawConvexPolygon() has unnecessary code for shadow
            https://bugs.webkit.org/show_bug.cgi?id=52014
    
            The function is only used by RenderObject to draw box sides.
            The shadow branch is never used and thus can be removed.
    
            No new tests are necessary.
    
            * platform/graphics/qt/GraphicsContextQt.cpp:
            (WebCore::GraphicsContext::drawConvexPolygon):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@75207 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index a35f27f..337fb9e 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,18 @@
+2011-01-06  Helder Correia  <helder at sencha.com>
+
+        Reviewed by Kenneth Rohde Christiansen.
+
+        [Qt] GraphicsContext::drawConvexPolygon() has unnecessary code for shadow
+        https://bugs.webkit.org/show_bug.cgi?id=52014
+
+        The function is only used by RenderObject to draw box sides.
+        The shadow branch is never used and thus can be removed.
+
+        No new tests are necessary.
+
+        * platform/graphics/qt/GraphicsContextQt.cpp:
+        (WebCore::GraphicsContext::drawConvexPolygon):
+
 2011-01-06  Laszlo Gombos  <laszlo.1.gombos at nokia.com>
 
         Reviewed by Kenneth Rohde Christiansen.
diff --git a/WebCore/platform/graphics/qt/GraphicsContextQt.cpp b/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
index fb28baa..e237fc0 100644
--- a/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
+++ b/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
@@ -450,19 +450,6 @@ void GraphicsContext::drawConvexPolygon(size_t npoints, const FloatPoint* points
     const bool antiAlias = p->testRenderHint(QPainter::Antialiasing);
     p->setRenderHint(QPainter::Antialiasing, shouldAntialias);
 
-    if (hasShadow()) {
-        p->save();
-        p->translate(m_data->shadow.offset());
-        if (p->brush().style() != Qt::NoBrush)
-            p->setBrush(QBrush(m_data->shadow.m_color));
-        QPen pen(p->pen());
-        if (pen.style() != Qt::NoPen) {
-            pen.setColor(m_data->shadow.m_color);
-            p->setPen(pen);
-        }
-        p->drawConvexPolygon(polygon);
-        p->restore();
-    }
     p->drawConvexPolygon(polygon);
 
     p->setRenderHint(QPainter::Antialiasing, antiAlias);

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list