[Webkit-unassigned] [Bug 26045] New: The Qt Style Sheets are not applied on webkit scrollbars

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 27 13:44:31 PDT 2009


           Summary: The Qt Style Sheets are not applied on webkit scrollbars
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: PC
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Enhancement
          Priority: P5
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: vincent.ordy at gmail.com

The Qt Style Sheets set with setStyleSheet() on the QWebView are not applied on
webkit scroll bars.

It seems to happen because of the QStyleSheetStyleSelector::attribute() and
QStyleSheetStyleSelector::nodeNames() functions used by
StyleSelector::styleRulesForNode(). They both use the widget metadata to get
the widget type name and properties in order to find out which rules to apply.

A quick fix is to have ScrollbarThemeQt inherit from QScrollbar and use "this"
as widget for drawComplexControl().
-    p.drawComplexControl(QStyle::CC_ScrollBar, *opt);
+    p.style->drawComplexControl(QStyle::CC_ScrollBar, opt, p.painter, this);

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

More information about the webkit-unassigned mailing list