Changeset 53802 in webkit
- Timestamp:
- Jan 25, 2010 6:42:28 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r53801 r53802 1 2010-01-25 Simon Hausmann <hausmann@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view 6 https://bugs.webkit.org/show_bug.cgi?id=34053 7 8 * platform/qt/QWebPageClient.h: Add function to return the style. 9 * platform/qt/RenderThemeQt.cpp: 10 (WebCore::RenderThemeQt::qStyle): Determine the style from the page client instead of the page's view. 11 1 12 2010-01-25 Simon Hausmann <hausmann@webkit.org> 2 13 -
trunk/WebCore/platform/qt/QWebPageClient.h
r53618 r53802 32 32 33 33 #include <QRect> 34 35 QT_BEGIN_NAMESPACE 34 36 class QGraphicsItem; 37 class QStyle; 38 QT_END_NAMESPACE 35 39 36 40 class QWebPageClient { … … 80 84 virtual QObject* pluginParent() const = 0; 81 85 86 virtual QStyle* style() const = 0; 87 82 88 protected: 83 89 #ifndef QT_NO_CURSOR -
trunk/WebCore/platform/qt/RenderThemeQt.cpp
r53801 r53802 161 161 { 162 162 if (m_page) { 163 ChromeClientQt* client = static_cast<ChromeClientQt*>(m_page->chrome()->client()); 164 165 if (!client->m_webPage) 166 return QApplication::style(); 167 168 if (QWidget* view = client->m_webPage->view()) 169 return view->style(); 163 QWebPageClient* pageClient = m_page->chrome()->client()->platformPageClient(); 164 165 if (pageClient) 166 return pageClient->style(); 170 167 } 171 168 -
trunk/WebKit/qt/Api/qgraphicswebview.cpp
r53618 r53802 109 109 virtual QObject* pluginParent() const; 110 110 111 virtual QStyle* style() const; 112 111 113 #if USE(ACCELERATED_COMPOSITING) 112 114 virtual void setRootGraphicsLayer(QGraphicsItem* layer); … … 290 292 { 291 293 return q; 294 } 295 296 QStyle* QGraphicsWebViewPrivate::style() const 297 { 298 return q->style(); 292 299 } 293 300 -
trunk/WebKit/qt/Api/qwebpage.cpp
r53218 r53802 173 173 virtual QObject* pluginParent() const; 174 174 175 virtual QStyle* style() const; 176 175 177 QWidget* view; 176 178 }; … … 240 242 { 241 243 return view; 244 } 245 246 QStyle* QWebPageWidgetClient::style() const 247 { 248 return view->style(); 242 249 } 243 250 -
trunk/WebKit/qt/ChangeLog
r53799 r53802 1 2010-01-25 Simon Hausmann <hausmann@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view 6 https://bugs.webkit.org/show_bug.cgi?id=34053 7 8 * Api/qgraphicswebview.cpp: 9 (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics 10 widget's style. 11 * Api/qwebpage.cpp: 12 (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style. 13 1 14 2010-01-25 Janne Koskinen <janne.p.koskinen@digia.com> 2 15
Note: See TracChangeset
for help on using the changeset viewer.