Diff
Modified: branches/safari-614.1.6-branch/LayoutTests/ChangeLog (291414 => 291415)
--- branches/safari-614.1.6-branch/LayoutTests/ChangeLog 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/LayoutTests/ChangeLog 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,3 +1,7 @@
+2022-03-17 Russell Epstein <[email protected]>
+
+ Revert r290628. rdar://problem/90310316
+
2022-03-12 Jean-Yves Avenard <[email protected]>
Safari produces scrambled output for some webm videos with vp8 codec.
Deleted: branches/safari-614.1.6-branch/LayoutTests/compositing/repaint/composite-and-scale-change-expected.txt (291414 => 291415)
--- branches/safari-614.1.6-branch/LayoutTests/compositing/repaint/composite-and-scale-change-expected.txt 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/LayoutTests/compositing/repaint/composite-and-scale-change-expected.txt 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,24 +0,0 @@
-(repaint rects
- (rect 30 20 440 440)
-)
-(GraphicsLayer
- (anchor 0.00 0.00)
- (bounds 800.00 600.00)
- (children 1
- (GraphicsLayer
- (bounds 800.00 600.00)
- (contentsOpaque 1)
- (children 1
- (GraphicsLayer
- (position 30.00 20.00)
- (anchor 0.00 0.00)
- (bounds 440.00 440.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (transform [0.50 0.00 0.00 0.00] [0.00 0.50 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00])
- )
- )
- )
- )
-)
-
Deleted: branches/safari-614.1.6-branch/LayoutTests/compositing/repaint/composite-and-scale-change.html (291414 => 291415)
--- branches/safari-614.1.6-branch/LayoutTests/compositing/repaint/composite-and-scale-change.html 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/LayoutTests/compositing/repaint/composite-and-scale-change.html 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,48 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
- <style>
- .box {
- position: absolute;
- z-index: 1;
- top: 20px;
- left: 30px;
- height: 400px;
- width: 400px;
- border: 20px solid green;
- transform: translate(0);
- transform-origin: top left;
- background-color: blue;
- }
-
- body.changed .box {
- transform: translate3d(0, 0, 0) scale(0.5, 0.5);
- }
- </style>
- <script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- window.addEventListener('load', () => {
- setTimeout(() => {
- if (window.internals)
- window.internals.startTrackingRepaints();
-
- document.body.classList.add('changed');
-
- if (window.internals)
- document.getElementById('layers').textContent = window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_REPAINT_RECTS);
-
- if (window.testRunner)
- testRunner.notifyDone();
- }, 0);
- }, false);
- </script>
-</head>
-<body>
- <div class="box"></div>
-<pre id="layers"></pre>
-</body>
-</html>
Deleted: branches/safari-614.1.6-branch/LayoutTests/compositing/shared-backing/repaint-into-shared-backing-become-composited-expected.html (291414 => 291415)
--- branches/safari-614.1.6-branch/LayoutTests/compositing/shared-backing/repaint-into-shared-backing-become-composited-expected.html 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/LayoutTests/compositing/shared-backing/repaint-into-shared-backing-become-composited-expected.html 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,53 +0,0 @@
-<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
-<html>
-<head>
- <style>
- .container {
- padding: 10px;
- margin: 10px;
- border: 2px solid black;
- height: 400px;
- width: 500px;
- overflow-y: hidden;
- }
-
- .wrapper {
- position: relative;
- width: 2000px;
- z-index: 1;
- }
-
- .positioned {
- position: absolute;
- left: 0;
- top: 0;
- background-color: silver;
- z-index: 2;
- padding: 20px;
- width: 100%;
- height: 250px;
- overflow: hidden;
- }
-
- .inner {
- position: relative;
- width: 300px;
- height: 200px;
- background-color: green;
- transform: translateZ(0);
- }
- </style>
-</head>
-<body>
-<div class="container">
- <div class="wrapper">
- <div class="positioned">
-
- <div class="inner">
-
- </div>
- </div>
- </div>
-</div>
-</body>
-</html>
\ No newline at end of file
Deleted: branches/safari-614.1.6-branch/LayoutTests/compositing/shared-backing/repaint-into-shared-backing-become-composited.html (291414 => 291415)
--- branches/safari-614.1.6-branch/LayoutTests/compositing/shared-backing/repaint-into-shared-backing-become-composited.html 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/LayoutTests/compositing/shared-backing/repaint-into-shared-backing-become-composited.html 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,71 +0,0 @@
-<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
-<html>
-<head>
- <style>
- .container {
- padding: 10px;
- margin: 10px;
- border: 2px solid black;
- height: 400px;
- width: 500px;
- overflow-y: hidden;
- }
-
- .wrapper {
- position: relative;
- width: 2000px;
- z-index: 1;
- }
-
- .positioned {
- position: absolute;
- left: 0;
- top: 0;
- background-color: silver;
- z-index: 2;
- padding: 20px;
- width: 100%;
- height: 250px;
- overflow: hidden;
- }
-
- .inner {
- position: relative;
- width: 300px;
- height: 200px;
- background-color: green;
- transform: translate(0px, 0px);
- }
-
- body.changed .inner {
- transform: translateZ(0);
- }
- </style>
- <script>
- if (window.testRunner)
- testRunner.waitUntilDone();
-
- window.addEventListener('load', () => {
- requestAnimationFrame(() => {
- requestAnimationFrame(() => {
- document.body.classList.add('changed');
- if (window.testRunner)
- testRunner.notifyDone();
- });
- });
- }, false);
- </script>
-</head>
-<body>
-<div class="container">
- <div class="wrapper">
- <div class="positioned">
-
- <div class="inner">
-
- </div>
- </div>
- </div>
-</div>
-</body>
-</html>
\ No newline at end of file
Deleted: branches/safari-614.1.6-branch/LayoutTests/platform/gtk/compositing/repaint/composite-and-scale-change-actual.txt (291414 => 291415)
--- branches/safari-614.1.6-branch/LayoutTests/platform/gtk/compositing/repaint/composite-and-scale-change-actual.txt 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/LayoutTests/platform/gtk/compositing/repaint/composite-and-scale-change-actual.txt 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,29 +0,0 @@
-(repaint rects
- (rect 30 20 440 440)
- (rect 0 0 800 600)
- (rect 0 0 800 13)
-)
-(GraphicsLayer
- (anchor 0.00 0.00)
- (bounds 800.00 600.00)
- (children 1
- (GraphicsLayer
- (bounds 800.00 600.00)
- (contentsOpaque 1)
- (children 1
- (GraphicsLayer
- (position 30.00 20.00)
- (anchor 0.00 0.00)
- (bounds 440.00 440.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (transform [0.50 0.00 0.00 0.00] [0.00 0.50 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00])
- (repaint rects
- (rect 0.00 0.00 440.00 440.00)
- )
- )
- )
- )
- )
-)
-
Deleted: branches/safari-614.1.6-branch/LayoutTests/platform/mac-wk1/compositing/repaint/composite-and-scale-change-expected.txt (291414 => 291415)
--- branches/safari-614.1.6-branch/LayoutTests/platform/mac-wk1/compositing/repaint/composite-and-scale-change-expected.txt 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/LayoutTests/platform/mac-wk1/compositing/repaint/composite-and-scale-change-expected.txt 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,26 +0,0 @@
-(repaint rects
- (rect 30 20 440 440)
- (rect 0 0 800 600)
- (rect 0 0 800 13)
-)
-(GraphicsLayer
- (anchor 0.00 0.00)
- (bounds 800.00 600.00)
- (children 1
- (GraphicsLayer
- (bounds 800.00 600.00)
- (contentsOpaque 1)
- (children 1
- (GraphicsLayer
- (position 30.00 20.00)
- (anchor 0.00 0.00)
- (bounds 440.00 440.00)
- (contentsOpaque 1)
- (drawsContent 1)
- (transform [0.50 0.00 0.00 0.00] [0.00 0.50 0.00 0.00] [0.00 0.00 1.00 0.00] [0.00 0.00 0.00 1.00])
- )
- )
- )
- )
-)
-
Modified: branches/safari-614.1.6-branch/Source/WebCore/ChangeLog (291414 => 291415)
--- branches/safari-614.1.6-branch/Source/WebCore/ChangeLog 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/Source/WebCore/ChangeLog 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1,3 +1,7 @@
+2022-03-17 Russell Epstein <[email protected]>
+
+ Revert r290628. rdar://problem/90310316
+
2022-03-12 Jean-Yves Avenard <[email protected]>
Safari produces scrambled output for some webm videos with vp8 codec.
Modified: branches/safari-614.1.6-branch/Source/WebCore/rendering/RenderLayer.cpp (291414 => 291415)
--- branches/safari-614.1.6-branch/Source/WebCore/rendering/RenderLayer.cpp 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/Source/WebCore/rendering/RenderLayer.cpp 2022-03-17 16:52:37 UTC (rev 291415)
@@ -1958,10 +1958,8 @@
if (backingProvider == m_backingProviderLayer)
return;
- if (!renderer().renderTreeBeingDestroyed()) {
+ if (!renderer().renderTreeBeingDestroyed())
clearClipRectsIncludingDescendants();
- clearRepaintRects();
- }
m_backingProviderLayer = backingProvider;
}
@@ -5309,8 +5307,7 @@
// Since we're only painting non-composited layers, we know that they all share the same repaintContainer.
void RenderLayer::repaintIncludingNonCompositingDescendants(RenderLayerModelObject* repaintContainer)
{
- auto clippedOverflowRect = m_repaintRectsValid ? m_repaintRects.clippedOverflowRect : renderer().clippedOverflowRectForRepaint(repaintContainer);
- renderer().repaintUsingContainer(repaintContainer, clippedOverflowRect);
+ renderer().repaintUsingContainer(repaintContainer, renderer().clippedOverflowRectForRepaint(repaintContainer));
for (RenderLayer* curr = firstChild(); curr; curr = curr->nextSibling()) {
if (!curr->isComposited())
Modified: branches/safari-614.1.6-branch/Source/WebCore/rendering/RenderLayerCompositor.cpp (291414 => 291415)
--- branches/safari-614.1.6-branch/Source/WebCore/rendering/RenderLayerCompositor.cpp 2022-03-17 16:52:04 UTC (rev 291414)
+++ branches/safari-614.1.6-branch/Source/WebCore/rendering/RenderLayerCompositor.cpp 2022-03-17 16:52:37 UTC (rev 291415)
@@ -371,7 +371,6 @@
{
for (auto& layer : m_layersPendingRepaint) {
LOG_WITH_STREAM(Compositing, stream << "Issuing postponed repaint of layer " << &layer);
- layer.computeRepaintRectsIncludingDescendants();
layer.compositor().repaintOnCompositingChange(layer);
}
@@ -1792,12 +1791,8 @@
requiresCompositingForPosition(rendererForCompositingTests(layer), layer, queryData);
}
- auto repaintTargetsSharedBacking = [&](RenderLayer& layer) {
- return backingSharingState && layerRepaintTargetsBackingSharingLayer(layer, *backingSharingState);
- };
-
auto repaintLayer = [&](RenderLayer& layer) {
- if (repaintTargetsSharedBacking(layer)) {
+ if (backingSharingState && layerRepaintTargetsBackingSharingLayer(layer, *backingSharingState)) {
LOG_WITH_STREAM(Compositing, stream << "Layer " << &layer << " needs to repaint into potential backing-sharing layer, postponing repaint");
backingSharingState->addLayerNeedingRepaint(layer);
} else
@@ -1858,12 +1853,10 @@
layerChanged = true;
// This layer and all of its descendants have cached repaints rects that are relative to
- // the repaint container, so change when compositing changes; we need to update them here,
- // as long as shared backing isn't going to change our repaint container.
- if (!repaintTargetsSharedBacking(layer))
- layer.computeRepaintRectsIncludingDescendants();
+ // the repaint container, so change when compositing changes; we need to update them here.
+ layer.computeRepaintRectsIncludingDescendants();
- // If we need to repaint, do so now that we've removed the backing.
+ // If we need to repaint, do so now that we've removed the backing
repaintLayer(layer);
}
}