WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
74727
[Qt] Mobile theme refinements
https://bugs.webkit.org/show_bug.cgi?id=74727
Summary
[Qt] Mobile theme refinements
Pierre Rossi
Reported
2011-12-16 10:12:53 PST
[Qt] Mobile theme refinements
Attachments
Patch
(22.07 KB, patch)
2011-12-16 10:18 PST
,
Pierre Rossi
no flags
Details
Formatted Diff
Diff
Patch
(21.91 KB, patch)
2011-12-20 06:48 PST
,
Pierre Rossi
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Pierre Rossi
Comment 1
2011-12-16 10:18:42 PST
Created
attachment 119629
[details]
Patch As Kenneth rightfully pointed out, we should probably try to use the squircle shape for most of the controls in the mobile theme.
Alexis Menard (darktears)
Comment 2
2011-12-16 10:32:59 PST
Comment on
attachment 119629
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=119629&action=review
> Source/WebCore/platform/qt/RenderThemeQtMobile.cpp:326 > + + (focused ? QLatin1String("-focused") : QString());
Usually string manipulation in the painting routine is a bad idea. It was one of the bottleneck in QGraphicsView back then. I recommend to try using the Key API of QPixmapCache (that is way faster).
http://developer.qt.nokia.com/doc/qt-4.8/qpixmapcache.html
This benchmark shows the improvements and implement a complicated use case such as pixmaps caching for our styles (and it is way faster). I'm sure we can use it here in a way.
http://qt.gitorious.org/qt/qt/blobs/4.7/tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp
Kenneth Rohde Christiansen
Comment 3
2011-12-16 11:53:37 PST
(In reply to
comment #2
)
> (From update of
attachment 119629
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=119629&action=review
> > > Source/WebCore/platform/qt/RenderThemeQtMobile.cpp:326 > > + + (focused ? QLatin1String("-focused") : QString()); > > Usually string manipulation in the painting routine is a bad idea. It was one of the bottleneck in QGraphicsView back then. > > I recommend to try using the Key API of QPixmapCache (that is way faster).
http://developer.qt.nokia.com/doc/qt-4.8/qpixmapcache.html
> > This benchmark shows the improvements and implement a complicated use case such as pixmaps caching for our styles (and it is way faster). I'm sure we can use it here in a way. > >
http://qt.gitorious.org/qt/qt/blobs/4.7/tests/benchmarks/gui/image/qpixmapcache/tst_qpixmapcache.cpp
I agree, but that is a separate patch - this is the way it was done by Luiz way back.
Kenneth Rohde Christiansen
Comment 4
2011-12-16 12:00:39 PST
Comment on
attachment 119629
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=119629&action=review
> Source/WebCore/platform/qt/RenderThemeQtMobile.cpp:99 > + // Translating the painter has a tendency to mess with gradients.
The comment is not clear. So you do thing differently here because of that, or something that should be fixed later? I think the comment could make that more clear
> Source/WebCore/platform/qt/RenderThemeQtMobile.cpp:129 > + return 0;
Can't a 0 mess things up? or is that considered invalid?
> Source/WebCore/platform/qt/RenderThemeQtMobile.cpp:271 > + QPolygon upArrow, downArrow; > + upArrow << QPoint(0, arrowHeight) << QPoint(arrowHeight, 0) << QPoint(right, arrowHeight); > + downArrow << QPoint(0, bottomBaseline) << QPoint(arrowHeight, bottomBaseline + arrowHeight) > + << QPoint(right, bottomBaseline);
Is this more effective? I think you can mention such changes in the changelog
> Source/WebCore/platform/qt/RenderThemeQtMobile.cpp:680 > + } > + > + } else
unneeded newline
> Source/WebCore/platform/qt/RenderThemeQtMobile.h:113 > + QPixmap findLineEdit(const QSize&, bool focused) const;
Maybe we should keep the names closer to the html form counterparts?
Pierre Rossi
Comment 5
2011-12-20 06:48:19 PST
Created
attachment 120024
[details]
Patch
WebKit Review Bot
Comment 6
2011-12-21 05:48:52 PST
Comment on
attachment 120024
[details]
Patch Clearing flags on attachment: 120024 Committed
r103404
: <
http://trac.webkit.org/changeset/103404
>
WebKit Review Bot
Comment 7
2011-12-21 05:48:57 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug