Changeset 65017 in webkit


Ignore:
Timestamp:
Aug 9, 2010 5:00:01 PM (14 years ago)
Author:
ariya@webkit.org
Message:

2010-08-09 Ariya Hidayat <ariya@sencha.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Need to implement GraphicsContextQt::clipConvexPolygon()
https://bugs.webkit.org/show_bug.cgi?id=41310

Based on the prototype code by Simon Hausmann.

  • platform/graphics/qt/GraphicsContextQt.cpp: (WebCore::GraphicsContext::clipConvexPolygon):
  • rendering/RenderObject.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r65016 r65017  
     12010-08-09  Ariya Hidayat  <ariya@sencha.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] Need to implement GraphicsContextQt::clipConvexPolygon()
     6        https://bugs.webkit.org/show_bug.cgi?id=41310
     7
     8        Based on the prototype code by Simon Hausmann.
     9
     10        * platform/graphics/qt/GraphicsContextQt.cpp:
     11        (WebCore::GraphicsContext::clipConvexPolygon):
     12        * rendering/RenderObject.h:
     13
    1142010-08-09  Chris Fleizach  <cfleizach@apple.com>
    215
  • trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp

    r64971 r65017  
    537537    if (numPoints <= 1)
    538538        return;
    539    
    540     // FIXME: IMPLEMENT!!
     539
     540    QPainterPath path(points[0]);
     541    for (size_t i = 1; i < numPoints; ++i)
     542        path.lineTo(points[i]);
     543    path.setFillRule(Qt::WindingFill);
     544    m_data->p()->setClipPath(path, Qt::IntersectClip);
    541545}
    542546
  • trunk/WebCore/rendering/RenderObject.h

    r64338 r65017  
    3939#include <wtf/UnusedParam.h>
    4040
    41 #if PLATFORM(CG) || PLATFORM(CAIRO)
     41#if PLATFORM(CG) || PLATFORM(CAIRO) || PLATFORM(QT)
    4242#define HAVE_PATH_BASED_BORDER_RADIUS_DRAWING 1
    4343#endif
Note: See TracChangeset for help on using the changeset viewer.