Changeset 271191 in webkit
- Timestamp:
- Jan 5, 2021, 7:55:01 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/compositing/iframes/content-visibility-with-clipping-expected.html (added)
-
LayoutTests/compositing/iframes/content-visibility-with-clipping.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r271181 r271191 1 2021-01-05 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION: animated iframe painted blank 4 https://bugs.webkit.org/show_bug.cgi?id=220231 5 6 Reviewed by Zalan Bujtas. 7 8 * compositing/iframes/content-visibility-with-clipping-expected.html: Added. 9 * compositing/iframes/content-visibility-with-clipping.html: Added. 10 1 11 2021-01-05 Peng Liu <peng.liu6@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r271188 r271191 1 2021-01-05 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION: animated iframe painted blank 4 https://bugs.webkit.org/show_bug.cgi?id=220231 5 <rdar://problem/72793724> 6 7 Reviewed by Zalan Bujtas. 8 9 When an <iframe> on a fractional pixel boundary, on a non-Retina display, with 10 composited contents had its visibility toggled from 'hidden' to 'visible' we could 11 fail to parent the iframe content compositing layers, resulting in missing iframe 12 content. 13 14 This happened when the iframe's GraphicsLayer had a m_contentsClippingLayer (which 15 acts as the parent for the content layers) due to the fractional pixel offset. 16 When GraphicsLayerCA::setContentsVisible(true) was called, it would fail to call 17 noteSublayersChanged() because the iframe host layer has no m_contentsLayer, 18 but we do need to rebuild sublayers in this case. 19 20 Test: compositing/iframes/content-visibility-with-clipping.html 21 22 * platform/graphics/ca/GraphicsLayerCA.cpp: 23 (WebCore::GraphicsLayerCA::setContentsVisible): 24 1 25 2021-01-05 Megan Gardner <megan_gardner@apple.com> 2 26 -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r270002 r271191 742 742 GraphicsLayer::setContentsVisible(contentsVisible); 743 743 noteLayerPropertyChanged(ContentsVisibilityChanged); 744 744 745 // Visibility affects whether the contentsLayer is parented. 745 if (m_contentsLayer )746 if (m_contentsLayer || m_contentsClippingLayer) 746 747 noteSublayersChanged(); 747 748 }
Note:
See TracChangeset
for help on using the changeset viewer.