Changeset 52122 in webkit


Ignore:
Timestamp:
Dec 14, 2009 2:30:57 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-14 Marco Martin <notmart@gmail.com>

Reviewed by Kenneth Rohde Christiansen.

In the Scrollbar painting of the Qt theme integration,
intersects any previous clip rects with the one needed to paint the scrollbar.
This fixes the painting in QGraphicsview, when the parent of the widget that
paints the QWebPage has the QGraphicsItem::ItemClipsChildrenToShape set and
a piece of the scrollbar should be cipped away
https://bugs.webkit.org/show_bug.cgi?id=30366

No new tests.

  • platform/qt/ScrollbarThemeQt.cpp: (WebCore::ScrollbarThemeQt::paint):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r52120 r52122  
     12009-12-14  Marco Martin  <notmart@gmail.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        In the Scrollbar painting of the Qt theme integration,
     6        intersects any previous clip rects with the one needed to paint the scrollbar.
     7        This fixes the painting in QGraphicsview, when the parent of the widget that
     8        paints the QWebPage has the QGraphicsItem::ItemClipsChildrenToShape set and
     9        a piece of the scrollbar should be cipped away
     10        https://bugs.webkit.org/show_bug.cgi?id=30366
     11
     12        No new tests.
     13
     14        * platform/qt/ScrollbarThemeQt.cpp:
     15        (WebCore::ScrollbarThemeQt::paint):
     16
    1172009-12-14  Dimitri Glazkov  <dglazkov@chromium.org>
    218
  • trunk/WebCore/platform/qt/ScrollbarThemeQt.cpp

    r46170 r52122  
    148148    QStyleOptionSlider* opt = styleOptionSlider(scrollbar, p.widget);
    149149
    150     p.painter->setClipRect(opt->rect.intersected(damageRect));
     150    p.painter->setClipRect(opt->rect.intersected(damageRect), Qt::IntersectClip);
    151151
    152152#ifdef Q_WS_MAC
Note: See TracChangeset for help on using the changeset viewer.