Changeset 106199 in webkit
- Timestamp:
- Jan 29, 2012 3:23:17 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r106198 r106199 1 2012-01-29 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r106109. 4 http://trac.webkit.org/changeset/106109 5 https://bugs.webkit.org/show_bug.cgi?id=77302 6 7 It made tests crash (Requested by Ossy_weekend on #webkit). 8 9 * platform/qt-wk2/Skipped: 10 1 11 2012-01-28 Gavin Barraclough <barraclough@apple.com> 2 12 -
trunk/LayoutTests/platform/qt-wk2/Skipped
r106109 r106199 440 440 tables/mozilla_expected_failures/marvin/backgr_position-table-column.html 441 441 442 # [Qt][WK2] REGRESSION(r105517): It made 49 tests timeout 443 # https://bugs.webkit.org/show_bug.cgi?id=76708 444 animations/3d/change-transform-in-end-event.html 445 animations/3d/replace-filling-transform.html 446 animations/3d/state-at-end-event-transform.html 447 animations/3d/transform-perspective.html 448 animations/additive-transform-animations.html 449 animations/animation-direction-normal.html 450 animations/animation-end-event-destroy-renderer.html 451 animations/animation-hit-test-transform.html 452 animations/animation-iteration-event-destroy-renderer.html 453 animations/animation-matrix-negative-scale-unmatrix.html 454 animations/animation-start-event-destroy-renderer.html 455 animations/big-rotation.html 456 animations/combo-transform-rotate+scale.html 457 animations/combo-transform-translate+scale.html 458 animations/dynamic-stylesheet-loading.html 459 animations/fill-mode-transform.html 460 animations/keyframe-timing-functions-transform.html 461 animations/matrix-anim.html 462 animations/missing-from-to-transforms.html 463 animations/missing-keyframe-properties-repeating.html 464 animations/missing-keyframe-properties-timing-function.html 465 animations/missing-keyframe-properties.html 466 animations/missing-values-first-keyframe.html 467 animations/missing-values-last-keyframe.html 468 animations/negative-delay.html 469 animations/opacity-transform-animation.html 470 animations/pause-crash.html 471 animations/play-state-paused.html 472 animations/play-state-suspend.html 473 animations/simultaneous-start-transform.html 474 animations/stop-animation-on-suspend.html 475 animations/suspend-resume-animation.html 476 animations/suspend-transform-animation.html 477 animations/transition-and-animation-1.html 478 animations/transition-and-animation-2.html 479 fast/css/getComputedStyle/getComputedStyle-with-pseudo-element.html 480 tables/mozilla/marvin/backgr_simple-table-cell.html 481 transitions/3d/interrupted-transition.html 482 transitions/cancel-transition.html 483 transitions/extra-transition.html 484 transitions/interrupt-transform-transition.html 485 transitions/interrupted-accelerated-transition.html 486 transitions/move-after-transition.html 487 transitions/start-transform-transition.html 488 transitions/transition-end-event-destroy-iframe.html 489 transitions/transition-end-event-destroy-renderer.html 490 transitions/transition-end-event-multiple-04.html 491 transitions/transition-end-event-rendering.html 492 transitions/transition-end-event-transform.html 493 442 494 # [Qt][WK2] http/tests/history/replacestate-post-to-get-2.html fails with timeout 443 495 # https://bugs.webkit.org/show_bug.cgi?id=76784 -
trunk/Source/WebCore/ChangeLog
r106192 r106199 1 2012-01-29 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r106109. 4 http://trac.webkit.org/changeset/106109 5 https://bugs.webkit.org/show_bug.cgi?id=77302 6 7 It made tests crash (Requested by Ossy_weekend on #webkit). 8 9 * platform/graphics/qt/TextureMapperQt.cpp: 10 (WebCore::TextureMapperQt::setGraphicsContext): 11 * platform/graphics/qt/TextureMapperQt.h: 12 (WebCore::TextureMapperQt::initialize): 13 1 14 2012-01-28 Alexander Færøy <ahf@0x90.dk> 2 15 -
trunk/Source/WebCore/platform/graphics/qt/TextureMapperQt.cpp
r106109 r106199 142 142 { 143 143 m_context = context; 144 m_painter = context ? context->platformContext() : 0;144 m_painter = context->platformContext(); 145 145 initialize(m_painter); 146 146 } -
trunk/Source/WebCore/platform/graphics/qt/TextureMapperQt.h
r106109 r106199 71 71 static void initialize(QPainter* painter) 72 72 { 73 if (painter) 74 painter->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform, false); 73 painter->setRenderHints(QPainter::Antialiasing | QPainter::SmoothPixmapTransform, false); 75 74 } 76 75 -
trunk/Source/WebKit2/ChangeLog
r106146 r106199 1 2012-01-29 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r106109. 4 http://trac.webkit.org/changeset/106109 5 https://bugs.webkit.org/show_bug.cgi?id=77302 6 7 It made tests crash (Requested by Ossy_weekend on #webkit). 8 9 * UIProcess/API/qt/qquickwebpage.cpp: 10 * UIProcess/API/qt/qquickwebpage_p_p.h: 11 (QQuickWebPagePrivate): 12 * UIProcess/API/qt/qquickwebview.cpp: 13 (QQuickWebViewPrivate::QQuickWebViewPrivate): 14 * UIProcess/API/qt/qquickwebview_p.h: 15 * UIProcess/API/qt/qquickwebview_p_p.h: 16 (QQuickWebViewPrivate): 17 * UIProcess/DrawingAreaProxy.h: 18 * UIProcess/DrawingAreaProxyImpl.cpp: 19 * UIProcess/DrawingAreaProxyImpl.h: 20 (DrawingAreaProxyImpl): 21 * UIProcess/LayerTreeHostProxy.h: 22 (LayerTreeHostProxy): 23 * UIProcess/qt/LayerTreeHostProxyQt.cpp: 24 (WebKit::LayerTreeHostProxy::paintToCurrentGLContext): 25 * UIProcess/qt/QtPageClient.cpp: 26 (QtPageClient::setViewNeedsDisplay): 27 1 28 2012-01-27 Fady Samuel <fsamuel@chromium.org> 2 29 -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp
r106109 r106199 101 101 } 102 102 103 void QQuickWebPagePrivate::paint(QPainter* painter)104 {105 if (webPageProxy->drawingArea())106 webPageProxy->drawingArea()->paintLayerTree(painter);107 }108 109 103 void QQuickWebPagePrivate::paintToCurrentGLContext() 110 104 { -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage_p_p.h
r106109 r106199 44 44 45 45 void paintToCurrentGLContext(); 46 void paint(QPainter*);47 46 void resetPaintNode(); 48 47 -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp
r106109 r106199 68 68 , pageIsSuspended(false) 69 69 , m_navigatorQtObjectEnabled(false) 70 , m_renderToOffscreenBuffer(false)71 70 { 72 71 viewport->setFlags(QQuickItem::ItemClipsChildrenToShape); … … 156 155 } 157 156 158 void QQuickWebViewPrivate::setNeedsDisplay()159 {160 Q_Q(QQuickWebView);161 if (renderToOffscreenBuffer()) {162 // TODO: we can maintain a real image here and use it for pixel tests. Right now this is used only for running the rendering code-path while running tests.163 QImage dummyImage(1, 1, QImage::Format_ARGB32);164 QPainter painter(&dummyImage);165 q->page()->d->paint(&painter);166 return;167 }168 169 q->page()->update();170 }171 172 157 void QQuickWebViewPrivate::loadDidCommit() 173 158 { … … 673 658 674 659 d->setUseTraditionalDesktopBehaviour(enable); 675 }676 677 void QQuickWebViewExperimental::setRenderToOffscreenBuffer(bool enable)678 {679 Q_D(QQuickWebView);680 d->setRenderToOffscreenBuffer(enable);681 }682 683 bool QQuickWebViewExperimental::renderToOffscreenBuffer() const684 {685 Q_D(const QQuickWebView);686 return d->renderToOffscreenBuffer();687 660 } 688 661 -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview_p.h
r106109 r106199 238 238 QDeclarativeComponent* itemSelector() const; 239 239 void setItemSelector(QDeclarativeComponent*); 240 241 QWebViewportInfo* viewportInfo(); 242 243 QWebPreferences* preferences() const; 240 244 bool useTraditionalDesktopBehaviour() const; 241 void setUseTraditionalDesktopBehaviour(bool enable);242 243 QWebViewportInfo* viewportInfo();244 245 QWebPreferences* preferences() const;246 245 QWebNavigationHistory* navigationHistory() const; 247 246 QQuickWebPage* page(); … … 255 254 void sendApplicationSchemeReply(QQuickNetworkReply*); 256 255 257 // C++ only258 bool renderToOffscreenBuffer() const;259 void setRenderToOffscreenBuffer(bool enable);260 261 256 public Q_SLOTS: 257 void setUseTraditionalDesktopBehaviour(bool enable); 262 258 void goBackTo(int index); 263 259 void goForwardTo(int index); -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview_p_p.h
r106109 r106199 78 78 void didChangeBackForwardList(); 79 79 80 void setNeedsDisplay();81 82 80 void updateDesktopViewportSize(); 83 81 void updateTouchViewportSize(); … … 104 102 105 103 void setUseTraditionalDesktopBehaviour(bool enable); 106 void setRenderToOffscreenBuffer(bool enable) { m_renderToOffscreenBuffer = enable; }107 104 void setViewInAttachedProperties(QObject*); 108 105 void setIcon(const QUrl&); 109 106 110 107 bool navigatorQtObjectEnabled() const; 111 bool renderToOffscreenBuffer() const { return m_renderToOffscreenBuffer; }112 108 void setNavigatorQtObjectEnabled(bool); 113 109 … … 171 167 bool pageIsSuspended; 172 168 bool m_navigatorQtObjectEnabled; 173 bool m_renderToOffscreenBuffer;174 169 QUrl m_iconURL; 175 170 }; -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxy.h
r106109 r106199 28 28 #define DrawingAreaProxy_h 29 29 30 #include "BackingStore.h"31 30 #include "DrawingAreaInfo.h" 32 31 #include <WebCore/IntRect.h> … … 90 89 virtual bool isBackingStoreReady() const { return true; } 91 90 virtual void paintToCurrentGLContext(const WebCore::TransformationMatrix&, float opacity) { } 92 virtual void paintLayerTree(BackingStore::PlatformGraphicsContext) { }93 91 LayerTreeHostProxy* layerTreeHostProxy() const { return m_layerTreeHostProxy.get(); } 94 92 -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.cpp
r106109 r106199 361 361 } 362 362 363 void DrawingAreaProxyImpl::paintLayerTree(BackingStore::PlatformGraphicsContext context)364 {365 if (m_layerTreeHostProxy)366 m_layerTreeHostProxy->paintToGraphicsContext(context);367 }368 369 363 void DrawingAreaProxyImpl::paintToCurrentGLContext(const TransformationMatrix& matrix, float opacity) 370 364 { -
trunk/Source/WebKit2/UIProcess/DrawingAreaProxyImpl.h
r106109 r106199 82 82 virtual void setVisibleContentRectTrajectoryVector(const WebCore::FloatPoint&); 83 83 virtual void paintToCurrentGLContext(const WebCore::TransformationMatrix&, float opacity); 84 virtual void paintLayerTree(BackingStore::PlatformGraphicsContext);85 84 void didReceiveLayerTreeHostProxyMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*); 86 85 #endif -
trunk/Source/WebKit2/UIProcess/LayerTreeHostProxy.h
r106109 r106199 54 54 void didReceiveMessage(CoreIPC::Connection*, CoreIPC::MessageID, CoreIPC::ArgumentDecoder*); 55 55 void paintToCurrentGLContext(const WebCore::TransformationMatrix&, float); 56 void paintToGraphicsContext(BackingStore::PlatformGraphicsContext);57 56 void purgeGLResources(); 58 57 void setVisibleContentsRectAndScale(const WebCore::IntRect&, float); -
trunk/Source/WebKit2/UIProcess/qt/LayerTreeHostProxyQt.cpp
r106109 r106199 28 28 #include "ShareableBitmap.h" 29 29 #include "TextureMapperGL.h" 30 #include "TextureMapperQt.h"31 30 #include "UpdateInfo.h" 32 31 #include "WebCoreArgumentCoders.h" … … 173 172 if (!m_textureMapper) 174 173 m_textureMapper = TextureMapperGL::create(); 175 ASSERT(dynamic_cast<TextureMapperGL*>(m_textureMapper.get()));176 174 177 175 syncRemoteContent(); … … 206 204 } 207 205 } 208 209 void LayerTreeHostProxy::paintToGraphicsContext(QPainter* painter)210 {211 if (!m_textureMapper)212 m_textureMapper = TextureMapperQt::create();213 ASSERT(dynamic_cast<TextureMapperQt*>(m_textureMapper.get()));214 215 syncRemoteContent();216 TextureMapperNode* node = toTextureMapperNode(rootLayer());217 218 if (!node)219 return;220 221 GraphicsContext graphicsContext(painter);222 m_textureMapper->setGraphicsContext(&graphicsContext);223 m_textureMapper->beginPainting();224 m_textureMapper->bindSurface(0);225 node->paint();226 m_textureMapper->endPainting();227 m_textureMapper->setGraphicsContext(0);228 }229 230 206 231 207 void LayerTreeHostProxy::didFireViewportUpdateTimer(Timer<LayerTreeHostProxy>*) -
trunk/Source/WebKit2/UIProcess/qt/QtPageClient.cpp
r106109 r106199 63 63 void QtPageClient::setViewNeedsDisplay(const WebCore::IntRect& rect) 64 64 { 65 QQuickWebViewPrivate::get(m_webView)->setNeedsDisplay();65 m_webView->page()->update(); 66 66 } 67 67 -
trunk/Tools/ChangeLog
r106195 r106199 1 2012-01-29 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r106109. 4 http://trac.webkit.org/changeset/106109 5 https://bugs.webkit.org/show_bug.cgi?id=77302 6 7 It made tests crash (Requested by Ossy_weekend on #webkit). 8 9 * WebKitTestRunner/qt/PlatformWebViewQt.cpp: 10 (WTR::WrapperWindow::WrapperWindow): 11 (WTR::PlatformWebView::PlatformWebView): 12 1 13 2012-01-28 Nico Weber <thakis@chromium.org> 2 14 -
trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp
r106109 r106199 46 46 , m_view(view) 47 47 { 48 QQuickWebViewExperimental(view).setUseTraditionalDesktopBehaviour(true); 48 49 connect(this, SIGNAL(statusChanged(QQuickView::Status)), SLOT(handleStatusChanged(QQuickView::Status))); 49 50 } … … 75 76 , m_modalEventLoop(0) 76 77 { 77 QQuickWebViewExperimental experimental(m_view);78 experimental.setUseTraditionalDesktopBehaviour(true);79 experimental.setRenderToOffscreenBuffer(true);80 78 } 81 79
Note: See TracChangeset
for help on using the changeset viewer.