Changeset 51410 in webkit
- Timestamp:
- Nov 26, 2009 2:34:50 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r51401 r51410 1 2009-11-21 Holger Hans Peter Freyther <zecke@selfish.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Add automatic test for Qt Plugins. 6 https://bugs.webkit.org/show_bug.cgi?id=31203 7 8 Add a test case for Qt plugins. In this case one 9 RenderPart should be visible on screen and the other 10 should be invisible. The internal QWidget should 11 have the same state as the WebCore::Widget. 12 13 Add Qt specific netscape-dom-access-expected.txt because 14 that was using a native widget inside a RenderPart as well. 15 16 * platform/gtk/Skipped: 17 * platform/mac/Skipped: 18 * platform/qt/plugins/netscape-dom-access-expected.txt: Added 19 * platform/qt/plugins/qt-qwidget-plugin-expected.txt: Added 20 * platform/win/Skipped: 21 * plugins/qt-qwidget-plugin.html: Added. 22 1 23 2009-11-25 Csaba Osztrogonác <ossy@webkit.org> 2 24 -
trunk/LayoutTests/platform/gtk/Skipped
r51390 r51410 3625 3625 plugins/throw-on-dealloc.html 3626 3626 plugins/undefined-property-crash.html 3627 # These test require Qt Widgets 3628 plugins/qt-qwidget-plugin.html 3627 3629 # Tests failing 3628 3630 plugins/embed-attributes-setting.html -
trunk/LayoutTests/platform/mac/Skipped
r51258 r51410 107 107 plugins/reloadplugins-no-pages.html 108 108 109 # These test require Qt Widgets 110 plugins/qt-qwidget-plugin.html -
trunk/LayoutTests/platform/qt/plugins/netscape-dom-access-expected.txt
r50878 r51410 10 10 text run at (0,20) width 107: "3px red border." 11 11 RenderBlock (anonymous) at (0,56) size 784x206 12 RenderPartObject {EMBED} at (0,0) size 206x206 [border: (3px solid #FF0000)] 12 RenderPartObject {EMBED} at (0,0) size 206x206 [border: (3px solid #FF0000)] [QT: geometry: {at (8,64) size 200x200} isHidden: 0 isSelfVisible: 1 isParentVisible: 1 mask: {at (0,0) size 200x200} ] 13 13 RenderText {#text} at (0,0) size 0x0 14 14 RenderText {#text} at (0,0) size 0x0 -
trunk/LayoutTests/platform/win/Skipped
r51393 r51410 713 713 plugins/reloadplugins-and-pages.html 714 714 plugins/reloadplugins-no-pages.html 715 716 # These tests require Qt Widgets 717 plugins/qt-qwidget-plugin.html 718 -
trunk/WebCore/ChangeLog
r51409 r51410 1 2009-11-21 Holger Hans Peter Freyther <zecke@selfish.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Add Qt specific information of RenderPart 6 https://bugs.webkit.org/show_bug.cgi?id=31203 7 8 The WebCore::Widget of the RenderPart (RenderWidget) might be 9 backed with a platform widget. Print both the WebCore::Widget 10 and platform widget state. In the above bug we had a problem 11 that the WebCore::Widget was invisible but the QWidget was 12 visible. 13 14 * rendering/RenderTreeAsText.cpp: 15 (WebCore::operator<<): Add special case for RenderPart 16 1 17 2009-11-17 Holger Hans Peter Freyther <zecke@selfish.org> 2 18 -
trunk/WebCore/rendering/RenderTreeAsText.cpp
r50976 r51410 40 40 #include "RenderInline.h" 41 41 #include "RenderListMarker.h" 42 #include "RenderPart.h" 42 43 #include "RenderTableCell.h" 43 44 #include "RenderView.h" … … 55 56 #include "RenderSVGText.h" 56 57 #include "SVGRenderTreeAsText.h" 58 #endif 59 60 #if PLATFORM(QT) 61 #include <QWidget> 57 62 #endif 58 63 … … 341 346 } 342 347 348 #if PLATFORM(QT) 349 // Print attributes of embedded QWidgets. E.g. when the WebCore::Widget 350 // is invisible the QWidget should be invisible too. 351 if (o.isRenderPart()) { 352 const RenderPart* part = toRenderPart(const_cast<RenderObject*>(&o)); 353 if (part->widget() && part->widget()->platformWidget()) { 354 QWidget* wid = part->widget()->platformWidget(); 355 356 ts << " [QT: "; 357 ts << "geometry: {" << wid->geometry() << "} "; 358 ts << "isHidden: " << wid->isHidden() << " "; 359 ts << "isSelfVisible: " << part->widget()->isSelfVisible() << " "; 360 ts << "isParentVisible: " << part->widget()->isParentVisible() << " "; 361 ts << "mask: {" << wid->mask().boundingRect() << "} ] "; 362 } 363 } 364 #endif 365 343 366 return ts; 344 367 } -
trunk/WebKitTools/ChangeLog
r51406 r51410 1 2009-11-21 Holger Hans Peter Freyther <zecke@selfish.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Link DumpRenderTree to the Qt Ui Tools 6 https://bugs.webkit.org/show_bug.cgi?id=31203 7 8 Implement QWebPage::createPlugin using the Qt Ui Tools 9 to be able to create classes like QProgressBar from within 10 the <object></object> tags This is required for the 11 new automatic test of Qt Plugins. 12 13 * DumpRenderTree/qt/DumpRenderTree.cpp: 14 (WebCore::WebPage::createPlugin): 15 * DumpRenderTree/qt/DumpRenderTree.h: 16 * DumpRenderTree/qt/DumpRenderTree.pro: 17 1 18 2009-11-25 Yuzo Fujishima <yuzo@google.com> 2 19 -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.cpp
r51316 r51410 61 61 #include <qwebsecurityorigin.h> 62 62 63 #ifndef QT_NO_UITOOLS 64 #include <QtUiTools/QUiLoader> 65 #endif 66 63 67 #ifdef Q_WS_X11 64 68 #include <fontconfig/fontconfig.h> … … 271 275 } 272 276 277 QObject* WebPage::createPlugin(const QString& classId, const QUrl& url, const QStringList& paramNames, const QStringList& paramValues) 278 { 279 Q_UNUSED(url); 280 Q_UNUSED(paramNames); 281 Q_UNUSED(paramValues); 282 #ifndef QT_NO_UITOOLS 283 QUiLoader loader; 284 return loader.createWidget(classId, view()); 285 #else 286 Q_UNUSED(classId); 287 return 0; 288 #endif 289 } 290 273 291 DumpRenderTree::DumpRenderTree() 274 292 : m_dumpPixels(false) -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.h
r51298 r51410 155 155 virtual bool extension(Extension extension, const ExtensionOption *option, ExtensionReturn *output); 156 156 157 QObject* createPlugin(const QString&, const QUrl&, const QStringList&, const QStringList&); 158 157 159 public slots: 158 160 bool shouldInterruptJavaScript() { return false; } -
trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTree.pro
r51174 r51410 1 1 TARGET = DumpRenderTree 2 2 CONFIG -= app_bundle 3 CONFIG += uitools 3 4 4 5 mac:!static:contains(QT_CONFIG, qt_framework):!CONFIG(webkit_no_framework) {
Note: See TracChangeset
for help on using the changeset viewer.