Changeset 85867 in webkit
- Timestamp:
- May 5, 2011 12:05:02 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r85852 r85867 1 2011-05-05 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt][WK2] Support PageGroup in QGraphicsWKView/QWKPage constructors 6 https://bugs.webkit.org/show_bug.cgi?id=59638 7 8 Unskip passed tests. 9 10 * platform/qt-wk2/Skipped: 11 1 12 2011-05-05 Andrey Kosyakov <caseq@chromium.org> 2 13 -
trunk/LayoutTests/platform/qt-wk2/Skipped
r85686 r85867 3444 3444 fast/dom/shadow/gc-shadow.html 3445 3445 3446 # [Qt][WK2] Support PageGroup in QGraphicsWKView/QWKPage constructors3447 # https://bugs.webkit.org/show_bug.cgi?id=596383448 fast/dom/Document/early-document-access.html3449 fast/dom/Window/closure-access-after-navigation-window.html3450 fast/dom/Window/dom-access-from-closure-window.html3451 fast/dom/Window/window-early-properties.html3452 fast/frames/iframe-reparenting-new-page.html3453 fast/frames/sandboxed-iframe-close-top-noclose.html3454 fast/frames/sandboxed-iframe-close-top.html3455 fast/history/history-subframe-with-name.html3456 fast/loader/ping-error.html3457 fast/loader/stateobjects/replacestate-in-iframe.html3458 storage/domstorage/localstorage/window-open.html3459 storage/domstorage/sessionstorage/window-open.html3460 3461 3446 # [Qt][WK2] Incorrect line number dumping 3462 3447 # https://bugs.webkit.org/show_bug.cgi?id=60074 -
trunk/Source/WebKit2/ChangeLog
r85863 r85867 1 2011-05-05 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt][WK2] Support PageGroup in QGraphicsWKView/QWKPage constructors 6 https://bugs.webkit.org/show_bug.cgi?id=59638 7 8 Added private constructors for class QGraphicsWKView and QWKPage to support 9 WKPageGroupRef. 10 11 * UIProcess/API/qt/qgraphicswkview.cpp: 12 (QGraphicsWKView::QGraphicsWKView): 13 (QGraphicsWKView::~QGraphicsWKView): 14 (QGraphicsWKView::init): 15 * UIProcess/API/qt/qgraphicswkview.h: 16 * UIProcess/API/qt/qwkpage.cpp: 17 (QWKPagePrivate::QWKPagePrivate): 18 (QWKPage::QWKPage): 19 (QWKPage::~QWKPage): 20 (QWKPage::init): 21 * UIProcess/API/qt/qwkpage.h: 22 * UIProcess/API/qt/qwkpage_p.h: 23 1 24 2011-05-05 Brent Fulgham <bfulgham@webkit.org> 2 25 -
trunk/Source/WebKit2/UIProcess/API/qt/qgraphicswkview.cpp
r84201 r85867 66 66 , d(new QGraphicsWKViewPrivate(this)) 67 67 { 68 d->page = new QWKPage(context); 69 init(backingStoreType); 70 } 71 72 QGraphicsWKView::QGraphicsWKView(QWKContext* context, WKPageGroupRef pageGroupRef, BackingStoreType backingStoreType, QGraphicsItem* parent) 73 : QGraphicsWidget(parent) 74 , d(new QGraphicsWKViewPrivate(this)) 75 { 76 d->page = new QWKPage(context, pageGroupRef); 77 init(backingStoreType); 78 } 79 80 void QGraphicsWKView::init(BackingStoreType backingStoreType) 81 { 68 82 setFocusPolicy(Qt::StrongFocus); 69 83 setAcceptHoverEvents(true); 70 84 71 72 85 #if ENABLE(TILED_BACKING_STORE) 73 86 if (backingStoreType == Tiled) … … 75 88 #endif 76 89 77 d->page = new QWKPage(context);78 90 d->page->d->init(this, backingStoreType); 79 91 connect(d->page, SIGNAL(titleChanged(QString)), this, SIGNAL(titleChanged(QString))); -
trunk/Source/WebKit2/UIProcess/API/qt/qgraphicswkview.h
r84613 r85867 14 14 class QWKContext; 15 15 class QGraphicsWKViewPrivate; 16 namespace WTR { 17 class WebView; 18 }; 16 19 17 20 WKStringRef WKStringCreateWithQString(const QString& qString); … … 91 94 92 95 private: 96 QGraphicsWKView(QWKContext*, WKPageGroupRef, BackingStoreType = Simple, QGraphicsItem* parent = 0); 97 void init(BackingStoreType); 98 93 99 Q_PRIVATE_SLOT(d, void onScaleChanged()) 94 100 Q_PRIVATE_SLOT(d, void onToolTipChanged(const QString&)) … … 97 103 friend class QGraphicsWKViewPrivate; 98 104 friend class TiledDrawingAreaProxy; 105 friend class WTR::WebView; 99 106 }; 100 107 -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage.cpp
r85860 r85867 90 90 } 91 91 92 QWKPagePrivate::QWKPagePrivate(QWKPage* qq, QWKContext* c )92 QWKPagePrivate::QWKPagePrivate(QWKPage* qq, QWKContext* c, WKPageGroupRef pageGroupRef) 93 93 : q(qq) 94 94 , view(0) … … 100 100 { 101 101 memset(actions, 0, sizeof(actions)); 102 page = context->d->context->createWebPage(this, 0);102 page = context->d->context->createWebPage(this, toImpl(pageGroupRef)); 103 103 history = QWKHistoryPrivate::createHistory(page->backForwardList()); 104 104 } … … 428 428 } 429 429 430 QWKPage::QWKPage(QWKContext* context, WKPageGroupRef pageGroupRef) 431 : d(new QWKPagePrivate(this, context, pageGroupRef)) 432 { 433 init(); 434 } 435 430 436 QWKPage::QWKPage(QWKContext* context) 431 437 : d(new QWKPagePrivate(this, context)) 438 { 439 init(); 440 } 441 442 void QWKPage::init() 432 443 { 433 444 WKPageLoaderClient loadClient = { -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage.h
r84201 r85867 144 144 145 145 private: 146 QWKPage(QWKContext*, WKPageGroupRef); 147 void init(); 146 148 #ifndef QT_NO_ACTION 147 149 Q_PRIVATE_SLOT(d, void _q_webActionTriggered(bool checked)); -
trunk/Source/WebKit2/UIProcess/API/qt/qwkpage_p.h
r84082 r85867 41 41 class QWKPagePrivate : WebKit::PageClient { 42 42 public: 43 QWKPagePrivate(QWKPage*, QWKContext* );43 QWKPagePrivate(QWKPage*, QWKContext*, WKPageGroupRef = 0); 44 44 ~QWKPagePrivate(); 45 45 -
trunk/Tools/ChangeLog
r85861 r85867 1 2011-05-05 Chang Shu <cshu@webkit.org> 2 3 Reviewed by Andreas Kling. 4 5 [Qt][WK2] Support PageGroup in QGraphicsWKView/QWKPage constructors 6 https://bugs.webkit.org/show_bug.cgi?id=59638 7 8 1. Call QGraphicsWKView constructor with pageGroupRef. 9 2. Disable setFontFamily calls as it breaks Qt test fonts. 10 11 * WebKitTestRunner/TestController.cpp: 12 (WTR::TestController::resetStateToConsistentValues): 13 * WebKitTestRunner/qt/PlatformWebViewQt.cpp: 14 (WTR::WebView::WebView): 15 (WTR::PlatformWebView::PlatformWebView): 16 1 17 2011-05-05 Joseph Pecoraro <joepeck@webkit.org> 2 18 -
trunk/Tools/WebKitTestRunner/TestController.cpp
r85860 r85867 386 386 #endif 387 387 388 #if !PLATFORM(QT) 388 389 static WKStringRef standardFontFamily = WKStringCreateWithUTF8CString("Times"); 389 390 static WKStringRef cursiveFontFamily = WKStringCreateWithUTF8CString("Apple Chancery"); … … 399 400 WKPreferencesSetSansSerifFontFamily(preferences, sansSerifFontFamily); 400 401 WKPreferencesSetSerifFontFamily(preferences, serifFontFamily); 402 #endif 401 403 402 404 m_mainWebView->focus(); -
trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp
r81135 r85867 36 36 class WebView : public QGraphicsView { 37 37 public: 38 WebView(WKContextRef );38 WebView(WKContextRef, WKPageGroupRef); 39 39 40 40 QGraphicsWKView* wkView() const { return m_item; } … … 46 46 }; 47 47 48 WebView::WebView(WKContextRef contextRef )48 WebView::WebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef) 49 49 : QGraphicsView() 50 , m_item(new QGraphicsWKView(new QWKContext(contextRef, this) ))50 , m_item(new QGraphicsWKView(new QWKContext(contextRef, this), pageGroupRef)) 51 51 { 52 52 setScene(new QGraphicsScene(this)); … … 54 54 } 55 55 56 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef )57 : m_view(new WebView(contextRef ))56 PlatformWebView::PlatformWebView(WKContextRef contextRef, WKPageGroupRef pageGroupRef) 57 : m_view(new WebView(contextRef, pageGroupRef)) 58 58 , m_window(new QMainWindow()) 59 59 {
Note: See TracChangeset
for help on using the changeset viewer.