WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
72605
[Qt] QComboBox and CSS conflicts
https://bugs.webkit.org/show_bug.cgi?id=72605
Summary
[Qt] QComboBox and CSS conflicts
andy.shaw
Reported
2011-11-17 06:17:22 PST
If a Qt application is setting the QComboBox font size to 10 pt and if the application is also loading external webpages which have the <select> objects that have a style attributed to them the the popup gets wrong font. For instance: <style type="text/css"> select { font-size:7pt; } </style> In this case the WebKit select combobox gets the 7 pt font (as it should), but the popup gets the 10 pt font. What happens is that it first gets set with the css font and then when it gets shown the widget gets polished which means it gets the font form the stylesheet. Please, find an application that reproduces this issue attached. This patch attached corrects the error: --- a/src/3rdparty/webkit/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp +++ b/src/3rdparty/webkit/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp @@ -137,7 +137,8 @@ void QtFallbackWebPopup::show() rect.width(), m_combo->sizeHint().height())); } - + m_combo->ensurePolished(); + m_combo->setFont(font()); QMouseEvent event(QEvent::MouseButtonPress, QCursor::pos(), Qt::LeftButton, Qt::LeftButton, Qt::NoModifier); QCoreApplication::sendEvent(m_combo, &event);
Attachments
Example to reproduce the problem
(5.06 KB, application/zip)
2011-11-17 06:18 PST
,
andy.shaw
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
andy.shaw
Comment 1
2011-11-17 06:18:54 PST
Created
attachment 115576
[details]
Example to reproduce the problem
Jocelyn Turcotte
Comment 2
2014-02-03 03:19:17 PST
=== Bulk closing of Qt bugs === If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it and remove [Qt] from the summary. If you believe that this is still an important QtWebKit bug, please fill a new report at
https://bugreports.qt-project.org
and add a link to this issue. See
http://qt-project.org/wiki/ReportingBugsInQt
for additional guidelines.
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