Changeset 108915 in webkit
- Timestamp:
- Feb 25, 2012 4:28:26 PM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r108900 r108915 1 2012-02-25 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r108900. 4 http://trac.webkit.org/changeset/108900 5 https://bugs.webkit.org/show_bug.cgi?id=79587 6 7 broke some API tests, will investigate and re-commit 8 (Requested by noamr on #webkit). 9 10 * UIProcess/API/qt/qquickwebpage.cpp: 11 (computeEffectiveOpacity): 12 (QQuickWebPagePrivate::paintToCurrentGLContext): 13 (PageProxyNode::changedStates): 14 (PageProxyNode::render): 15 * UIProcess/API/qt/qquickwebpage_p_p.h: 16 (QQuickWebPagePrivate): 17 1 18 2012-02-25 No'am Rosenthal <noam.rosenthal@nokia.com> 2 19 -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage.cpp
r108900 r108915 64 64 } 65 65 66 static float computeEffectiveOpacity(const QQuickItem* item) 67 { 68 if (!item) 69 return 1; 70 71 float opacity = item->opacity(); 72 if (opacity < 0.01) 73 return 0; 74 75 return opacity * computeEffectiveOpacity(item->parentItem()); 76 } 77 66 78 void QQuickWebPagePrivate::setDrawingAreaSize(const QSize& size) 67 79 { … … 78 90 } 79 91 80 void QQuickWebPagePrivate::paintToCurrentGLContext( const QTransform& transform, float opacity)92 void QQuickWebPagePrivate::paintToCurrentGLContext() 81 93 { 82 94 if (!q->isVisible()) 83 95 return; 84 96 97 QTransform transform = q->itemTransform(0, 0); 98 transform.scale(contentsScale, contentsScale); 99 100 float opacity = computeEffectiveOpacity(q); 85 101 QRectF clipRect = viewportItem->mapRectToScene(viewportItem->boundingRect()); 86 102 … … 92 108 return; 93 109 94 drawingArea->paintToCurrentGLContext( QTransform(transform).scale(contentsScale, contentsScale), opacity, clipRect);110 drawingArea->paintToCurrentGLContext(transform, opacity, clipRect); 95 111 } 96 112 … … 103 119 virtual StateFlags changedStates() 104 120 { 105 return StateFlags(StencilState) | ColorState | BlendState; 106 } 107 108 virtual void render(const RenderState&) 121 return StateFlags(DepthState) | StencilState | ScissorState | ColorState | BlendState 122 | CullState | ViewportState; 123 } 124 125 virtual void render(const RenderState &) 109 126 { 110 127 if (m_pagePrivate) 111 m_pagePrivate->paintToCurrentGLContext( matrix()->toTransform(), inheritedOpacity());128 m_pagePrivate->paintToCurrentGLContext(); 112 129 } 113 130 -
trunk/Source/WebKit2/UIProcess/API/qt/qquickwebpage_p_p.h
r108900 r108915 42 42 void updateSize(); 43 43 44 void paintToCurrentGLContext( const QTransform&, float opacity);44 void paintToCurrentGLContext(); 45 45 void paint(QPainter*); 46 46 void resetPaintNode();
Note: See TracChangeset
for help on using the changeset viewer.