Changeset 39234 in webkit
- Timestamp:
- Dec 12, 2008, 3:35:30 AM (16 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r39232 r39234 1 2008-12-12 Ariya Hidayat <ariya.hidayat@trolltech.com> 2 3 Reviewed by Simon Hausmann. 4 5 Create the plugin widget even though the web page has no associated 6 view. This prevents the plugin to be uselessly constructed more than once. 7 8 * WebCoreSupport/FrameLoaderClientQt.cpp: 9 (WebCore::FrameLoaderClientQt::createPlugin): 10 * tests/qwebpage/tst_qwebpage.cpp: 11 (tst_QWebPage::createViewlessPlugin): 12 1 13 2008-12-11 Enrico Ros <enrico.ros@m31.com> 2 14 -
trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp
r39231 r39234 1087 1087 if (object) { 1088 1088 QWidget* widget = qobject_cast<QWidget*>(object); 1089 QWidget* view = m_webFrame->page()->view(); 1090 if (widget && view) { 1091 widget->setParent(view); 1089 if (widget) { 1090 QWidget* view = m_webFrame->page()->view(); 1091 if (view) 1092 widget->setParent(view); 1092 1093 QtPluginWidget* w = new QtPluginWidget(); 1093 1094 w->setPlatformWidget(widget); -
trunk/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp
r39231 r39234 100 100 void createPlugin(); 101 101 void destroyPlugin(); 102 void createViewlessPlugin(); 102 103 103 104 private: … … 585 586 } 586 587 588 void tst_QWebPage::createViewlessPlugin() 589 { 590 PluginTrackedPage* page = new PluginTrackedPage; 591 QString content("<html><body><object type=\"application/x-qt-plugin\" classid=\"QProgressBar\"></object></body></html>"); 592 page->mainFrame()->setHtml(content); 593 QCOMPARE(page->count, 1); 594 QVERIFY(page->widget != 0); 595 delete page; 596 } 597 587 598 QTEST_MAIN(tst_QWebPage) 588 599 #include "tst_qwebpage.moc"
Note:
See TracChangeset
for help on using the changeset viewer.