[Webkit-unassigned] [Bug 30366] if the QWebPage is rendered by a QGraphicsWidget child of another widget with ItemClipsChildrenToShape the scrollbar is not clipped

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Dec 14 06:20:16 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=30366


Marco Martin <notmart at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #44478|                            |review+
               Flag|                            |




--- Comment #5 from Marco Martin <notmart at gmail.com>  2009-12-14 06:20:16 PST ---
(From update of attachment 44478)
> Index: WebCore/ChangeLog
> ===================================================================
> --- WebCore/ChangeLog	(revision 51868)
> +++ WebCore/ChangeLog	(working copy)
> @@ -1,3 +1,19 @@
> +2009-12-08  Marco Martin  <notmart at gmail.com>
> +
> +        Review pending.
> +
> +        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):
> +
>  2009-12-08  John Gregg  <johnnyg at google.com>
>  
>          Reviewed by Adam Barth.
> Index: WebCore/platform/qt/ScrollbarThemeQt.cpp
> ===================================================================
> --- WebCore/platform/qt/ScrollbarThemeQt.cpp	(revision 51865)
> +++ WebCore/platform/qt/ScrollbarThemeQt.cpp	(working copy)
> @@ -147,7 +147,7 @@
>      p.painter->save();
>      QStyleOptionSlider* opt = styleOptionSlider(scrollbar, p.widget);
>  
> -    p.painter->setClipRect(opt->rect.intersected(damageRect));
> +    p.painter->setClipRect(opt->rect.intersected(damageRect), Qt::IntersectClip);
>  
>  #ifdef Q_WS_MAC
>      p.drawComplexControl(QStyle::CC_ScrollBar, *opt);

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list