Title: [291807] trunk
Revision
291807
Author
[email protected]
Date
2022-03-24 11:16:20 -0700 (Thu, 24 Mar 2022)

Log Message

Unreviewed, reverting r291789.

This revision caused 65+ new API failures on iOS debug

Reverted changeset:

"Release assert in Document::updateLayout() via
HTMLTextAreaElement::childrenChanged"
https://bugs.webkit.org/show_bug.cgi?id=224471
https://commits.webkit.org/r291789

Modified Paths

Removed Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (291806 => 291807)


--- trunk/LayoutTests/ChangeLog	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/ChangeLog	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,3 +1,16 @@
+2022-03-24  Matteo Flores  <[email protected]>
+
+        Unreviewed, reverting r291789.
+
+        This revision caused 65+ new API failures on iOS debug
+
+        Reverted changeset:
+
+        "Release assert in Document::updateLayout() via
+        HTMLTextAreaElement::childrenChanged"
+        https://bugs.webkit.org/show_bug.cgi?id=224471
+        https://commits.webkit.org/r291789
+
 2022-03-24  Jon Lee  <[email protected]>
 
         Unreviewed gardening.

Modified: trunk/LayoutTests/accessibility/mac/selection-boundary-userinfo.html (291806 => 291807)


--- trunk/LayoutTests/accessibility/mac/selection-boundary-userinfo.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/accessibility/mac/selection-boundary-userinfo.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -162,31 +162,20 @@
         var addedNotification = webArea.addNotificationListener(notificationCallback);
         shouldBe("addedNotification", "true");
 
-        function waitForAnimationFrame() {
-            return new Promise(function(resolve, reject) {
-                requestAnimationFrame(resolve);
-            });
-        }
+        textbox = document.getElementById("textbox");
+        textbox.focus();
 
-        function focusElement(elementId) {
-            element = document.getElementById(elementId);
-            element.focus();
-            return waitForAnimationFrame();
-        }
+        move(true);
 
-        function moveAsync(isVertical) {
-            move(isVertical);
-            return waitForAnimationFrame();
-        }
+        textbox = document.getElementById("input");
+        textbox.focus();
 
-        (async function () {
-            await focusElement("textbox");
-            await moveAsync(true);
-            await focusElement("input");
-            await moveAsync(false);
-            await focusElement("textarea");
-            await moveAsync(true);
-        })();
+        move(false);
+
+        textbox = document.getElementById("textarea");
+        textbox.focus();
+
+        move(true);
     }
 
 </script>

Modified: trunk/LayoutTests/accessibility/mac/selection-change-userinfo.html (291806 => 291807)


--- trunk/LayoutTests/accessibility/mac/selection-change-userinfo.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/accessibility/mac/selection-change-userinfo.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -195,87 +195,19 @@
         shouldBe("addedNotification", "true");
 
         textbox = document.getElementById("textbox");
+        textbox.focus();
 
         // Trigger selection changes.
         var s = window.getSelection();
-
-        function focusTextBox() {
-            return new Promise(function(resolve, reject) {
-                setTimeout(() => {
-                    textbox.focus();
-                    resolve();
-                }, 0);
-            });
+        s.setPosition(textbox, 0);
+        for (var i in gran) {
+            s.modify("move", "forward", gran[i]);
+            s.modify("move", "backward", gran[i]);
         }
-
-        function moveSelection(direction, granularity) {
-            return new Promise(function(resolve, reject) {
-                setTimeout(function() {
-                    s.modify("move", direction, granularity);
-                    resolve();
-                }, 0);
-            });
+        for (var i in gran) {
+            s.setPosition(textbox, 0);
+            s.modify("extend", "forward", gran[i]);
         }
-
-        function extendSelection(granularity) {
-            return new Promise(function(resolve, reject) {
-                setTimeout(function() {
-                    s.modify("extend", "forward", granularity);
-                    resolve();
-                }, 0);
-            });
-        }
-
-        function resetPosition() {
-            return new Promise(function(resolve, reject) {
-                setTimeout(function() {
-                    s = window.getSelection();
-                    s.setPosition(textbox, 0);
-                    resolve();
-                }, 0);
-            });
-        }
-
-        (async function() {
-            await focusTextBox();
-            await resetPosition();
-            await moveSelection("forward", gran[0]);
-            await moveSelection("backward", gran[0]);
-            await moveSelection("forward", gran[1]);
-            await moveSelection("backward", gran[1]);
-            await moveSelection("forward", gran[2]);
-            await moveSelection("backward", gran[2]);
-            await moveSelection("forward", gran[3]);
-            await moveSelection("backward", gran[3]);
-            await moveSelection("forward", gran[4]);
-            await moveSelection("backward", gran[4]);
-            await moveSelection("forward", gran[5]);
-            await moveSelection("backward", gran[5]);
-            await moveSelection("forward", gran[6]);
-            await moveSelection("backward", gran[6]);
-            await moveSelection("forward", gran[7]);
-            await moveSelection("backward", gran[7]);
-            await moveSelection("forward", gran[8]);
-            await moveSelection("backward", gran[8]);
-            await resetPosition();
-            await extendSelection(gran[0]);
-            await resetPosition();
-            await extendSelection(gran[1]);
-            await resetPosition();
-            await extendSelection(gran[2]);
-            await resetPosition();
-            await extendSelection(gran[3]);
-            await resetPosition();
-            await extendSelection(gran[4]);
-            await resetPosition();
-            await extendSelection(gran[5]);
-            await resetPosition();
-            await extendSelection(gran[6]);
-            await resetPosition();
-            await extendSelection(gran[7]);
-            await resetPosition();
-            await extendSelection(gran[8]);
-          })();
     }
 
 </script>

Modified: trunk/LayoutTests/accessibility/mac/selection-value-changes-for-aria-textbox.html (291806 => 291807)


--- trunk/LayoutTests/accessibility/mac/selection-value-changes-for-aria-textbox.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/accessibility/mac/selection-value-changes-for-aria-textbox.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -43,17 +43,12 @@
         // Trigger selection changes.
         var s = window.getSelection();
         s.setPosition(textbox, 0);
-        requestAnimationFrame(() => {
+        for (var k = 0; k < 3; k++) {
             s.modify("move", "forward", "character");
-            requestAnimationFrame(() => {
-                s.modify("move", "forward", "character");
-                requestAnimationFrame(() => {
-                    s.modify("move", "forward", "character");
-                    // Trigger value change.
-                    document.execCommand("InsertText", false, "hello ");
-                });
-            });
-        });
+        }
+
+        // Trigger value change.
+        document.execCommand("InsertText", false, "hello ");
     }
 
 </script>

Modified: trunk/LayoutTests/editing/selection-with-absolute-positioned-empty-content.html (291806 => 291807)


--- trunk/LayoutTests/editing/selection-with-absolute-positioned-empty-content.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/editing/selection-with-absolute-positioned-empty-content.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -14,17 +14,13 @@
 <script>
 if (window.internals)
   internals.startTrackingRepaints();
-if (window.testRunner) {
+if (window.testRunner)
   testRunner.dumpAsText();
-  testRunner.waitUntilDone();
+
+window.getSelection().selectAllChildren(foobar);
+
+if (window.internals) {
+  result.innerText = internals.repaintRectsAsText();
+  internals.stopTrackingRepaints();
 }
-window.getSelection().selectAllChildren(foobar);
-setTimeout(() => {
-  if (window.internals) {
-    result.innerText = internals.repaintRectsAsText();
-    internals.stopTrackingRepaints();
-  }
-  if (window.testRunner)
-  testRunner.notifyDone();
-}, 0);
-</script>
+</script>
\ No newline at end of file

Modified: trunk/LayoutTests/fast/forms/textarea-scrolled-endline-caret.html (291806 => 291807)


--- trunk/LayoutTests/fast/forms/textarea-scrolled-endline-caret.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/forms/textarea-scrolled-endline-caret.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -15,17 +15,13 @@
     ta.focus();
     // click
     if (window.eventSender) {
-        testRunner.waitUntilDone();
-        requestAnimationFrame(() => {
-            eventSender.mouseMoveTo(90, 20);
-            eventSender.mouseDown();
-            eventSender.mouseUp();
-            if (ta.selectionEnd == 17)
-                res.innerHTML = "Test Succeeded";
-            else
-                res.innerHTML = "Test Failed: caret is at " + ta.selectionEnd;
-            testRunner.notifyDone();
-        });
+        eventSender.mouseMoveTo(90, 20);
+        eventSender.mouseDown();
+        eventSender.mouseUp();
+        if (ta.selectionEnd == 17)
+            res.innerHTML = "Test Succeeded";
+        else
+            res.innerHTML = "Test Failed: caret is at " + ta.selectionEnd;
     } else {
         res.innerHTML = "Test can't run without event sender (part of DumpRenderTree). "
             + "To test manually, click at the middle of the line marked 9 and check that the caret appears after the 9.";

Modified: trunk/LayoutTests/fast/repaint/selection-gap-absolute-child-expected.txt (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-absolute-child-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-absolute-child-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -2,4 +2,7 @@
 This tests that absolute elements are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.
 
 
-(repaint rects (rect 0 0 100 100) )
+(repaint rects
+  (rect 0 0 100 100)
+)
+

Modified: trunk/LayoutTests/fast/repaint/selection-gap-absolute-child.html (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-absolute-child.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-absolute-child.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,27 +1,11 @@
 <!doctype html>
 <head>
+    <script src=""
     <script>
-    if (window.testRunner) {
-        testRunner.dumpAsText(false);
-        testRunner.waitUntilDone();
-    }
-    function runRepaintTest()
+    function repaintTest()
     {
-        if (window.internals)
-            internals.startTrackingRepaints();
-
         var target = document.getElementById("target");
         getSelection().setBaseAndExtent(target, 0, target.nextSibling, 0);
-
-        setTimeout(function() {
-            if (window.internals) {
-                document.querySelector('#repaints').innerHTML = window.internals.repaintRectsAsText();
-                internals.stopTrackingRepaints();
-            }
-
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }, 0);
     }
     </script>
     <style>
@@ -37,5 +21,4 @@
     <div>
         <div id="target" style="background-color: red; width: 100px; height: 100px; position: absolute;"><br/></div><br/>
     </div>
-    <div id="repaints"></div>
 </body>

Modified: trunk/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child-expected.txt (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -2,4 +2,7 @@
 This tests that absolute elements that get flipped are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.
 
 
-(repaint rects (rect 0 0 100 100) )
+(repaint rects
+  (rect 0 0 100 100)
+)
+

Modified: trunk/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child.html (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-flipped-absolute-child.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,28 +1,11 @@
 <!doctype html>
 <head>
+    <script src=""
     <script>
-    if (window.testRunner) {
-        testRunner.dumpAsText(false);
-        testRunner.waitUntilDone();
-    }
-    function runRepaintTest()
+    function repaintTest()
     {
-        if (window.internals)
-            internals.startTrackingRepaints();
-
         var target = document.getElementById("target");
         getSelection().setBaseAndExtent(target, 0, target.nextSibling, 0);
-
-        // requestAnimationFrame produces flacky results.
-        setTimeout(function() {
-            if (window.internals) {
-                document.querySelector('#repaints').innerHTML = window.internals.repaintRectsAsText();
-                internals.stopTrackingRepaints();
-            }
-
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }, 0);
     }
     </script>
     <style>
@@ -38,5 +21,4 @@
     <div style="-webkit-writing-mode: vertical-rl">
         <div id="target" style="background-color: red; width: 100px; height: 100px; position: absolute;"><br/></div><br/>
     </div>
-    <div id="repaints"></div>
 </body>

Modified: trunk/LayoutTests/fast/repaint/selection-gap-transformed-absolute-child-expected.txt (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-transformed-absolute-child-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-transformed-absolute-child-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -2,4 +2,7 @@
 This tests that absolute elements that get transformed are invalidated correctly. The box will be completely green if the selected area was invalidated correctly.
 
 
-(repaint rects (rect 50 50 100 100) )
+(repaint rects
+  (rect 50 50 100 100)
+)
+

Modified: trunk/LayoutTests/fast/repaint/selection-gap-transformed-absolute-child.html (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-transformed-absolute-child.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-transformed-absolute-child.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,28 +1,11 @@
 <!doctype html>
 <head>
+    <script src=""
     <script>
-    if (window.testRunner) {
-        testRunner.dumpAsText(false);
-        testRunner.waitUntilDone();
-    }
-    function runRepaintTest()
+    function repaintTest()
     {
-        if (window.internals)
-            internals.startTrackingRepaints();
-
         var target = document.getElementById("target");
         getSelection().setBaseAndExtent(target, 0, target.nextSibling, 0);
-
-        // requestAnimationFrame produces flacky results.
-        setTimeout(function() {
-            if (window.internals) {
-                document.querySelector('#repaints').innerHTML = window.internals.repaintRectsAsText();
-                internals.stopTrackingRepaints();
-            }
-
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }, 0);
     }
     </script>
     <style>
@@ -38,5 +21,4 @@
     <div style="-webkit-transform: translate(50px, 50px);">
         <div id="target" style="background-color: red; width: 100px; height: 100px; position: absolute;"><br/></div><br/>
     </div>
-    <div id="repaints"></div>
 </body>

Modified: trunk/LayoutTests/fast/repaint/selection-gap-transformed-fixed-child-expected.txt (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-transformed-fixed-child-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-transformed-fixed-child-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -2,4 +2,7 @@
 This tests that fixed elements that get transformed are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.
 
 
-(repaint rects (rect 50 50 100 100) )
+(repaint rects
+  (rect 50 50 100 100)
+)
+

Modified: trunk/LayoutTests/fast/repaint/selection-gap-transformed-fixed-child.html (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-gap-transformed-fixed-child.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-gap-transformed-fixed-child.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,28 +1,11 @@
 <!doctype html>
 <head>
+    <script src=""
     <script>
-    if (window.testRunner) {
-        testRunner.dumpAsText(false);
-        testRunner.waitUntilDone();
-    }
-    function runRepaintTest()
+    function repaintTest()
     {
-        if (window.internals)
-            internals.startTrackingRepaints();
-
         var target = document.getElementById("target");
         getSelection().setBaseAndExtent(target, 0, target.nextSibling, 0);
-
-        // requestAnimationFrame produces flacky results.
-        setTimeout(function() {
-            if (window.internals) {
-                document.querySelector('#repaints').innerHTML = window.internals.repaintRectsAsText();
-                internals.stopTrackingRepaints();
-            }
-
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }, 0);
     }
     </script>
     <style>
@@ -38,5 +21,4 @@
     <div style="-webkit-transform: translate(50px, 50px);">
         <div id="target" style="background-color: red; width: 100px; height: 100px; position: fixed;"><br/></div><br/>
     </div>
-    <div id="repaints"></div>
 </body>

Modified: trunk/LayoutTests/fast/repaint/selection-paint-invalidation-expected.txt (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-paint-invalidation-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-paint-invalidation-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -2,5 +2,6 @@
 A
 (repaint rects
   (rect 8 68 20 100)
+  (rect 8 68 20 100)
 )
 

Modified: trunk/LayoutTests/fast/repaint/selection-ruby-rl-expected.txt (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-ruby-rl-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-ruby-rl-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -8,4 +8,7 @@
 Testing both hit testing and painting of selection.
 Testing both hit testing and painting of selection.
 Testing both hit testing and painting of selection.
-(repaint rects (rect 774 38 18 79) )
+(repaint rects
+  (rect 774 38 18 79)
+)
+

Modified: trunk/LayoutTests/fast/repaint/selection-ruby-rl.html (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/selection-ruby-rl.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/selection-ruby-rl.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -3,15 +3,7 @@
 <head>
 <script src=""
 <script>
-if (window.testRunner) {
-    testRunner.dumpAsText(false);
-    testRunner.waitUntilDone();
-}
-
-function runRepaintTest() {
-    if (window.internals)
-        internals.startTrackingRepaints();
-
+function repaintTest() {
     if (eventSender) {
         eventSender.mouseMoveTo(790, 40);
         eventSender.mouseDown();
@@ -19,17 +11,6 @@
         eventSender.mouseMoveTo(790, 120);
         eventSender.mouseUp();
     }
-
-    // requestAnimationFrame produces flacky results.
-    setTimeout(function() {
-        if (window.internals) {
-            document.querySelector('#repaints').innerHTML = window.internals.repaintRectsAsText();
-            internals.stopTrackingRepaints();
-        }
-
-        if (window.testRunner)
-            testRunner.notifyDone();
-    }, 0);
 }
 </script>
 
@@ -45,5 +26,4 @@
 Testing both hit testing and painting of selection.<br>
 Testing both hit testing and painting of selection.<br>
 Testing both hit testing and painting of selection.<br>
-<div id="repaints"></div>
 </body>

Modified: trunk/LayoutTests/fast/repaint/text-selection-overflow-hidden-expected.txt (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/text-selection-overflow-hidden-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/text-selection-overflow-hidden-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,3 +1,6 @@
 Should have green background
 
-(repaint rects (rect 8 16 199 18) )
+(repaint rects
+  (rect 8 16 199 18)
+)
+

Modified: trunk/LayoutTests/fast/repaint/text-selection-overflow-hidden.html (291806 => 291807)


--- trunk/LayoutTests/fast/repaint/text-selection-overflow-hidden.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/repaint/text-selection-overflow-hidden.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,4 +1,5 @@
 <!DOCTYPE html>
+<script src="" type="text/_javascript_"></script>
 <style>
 #test {
     background-color: red;
@@ -11,30 +12,11 @@
 }
 </style>
 <script>
-    if (window.testRunner) {
-        testRunner.dumpAsText(false);
-        testRunner.waitUntilDone();
-    }
-
-    function runRepaintTest() {
-        if (window.internals)
-            internals.startTrackingRepaints();
-
+    function repaintTest() {
         getSelection().setBaseAndExtent(test, 0, test, 1);
-
-        setTimeout(function() {
-            if (window.internals) {
-                document.querySelector('#repaints').innerHTML = window.internals.repaintRectsAsText();
-                internals.stopTrackingRepaints();
-            }
-
-            if (window.testRunner)
-                testRunner.notifyDone();
-        }, 0);
     };
 </script>
 
 <body _onload_="runRepaintTest()">
     <p id="test">Should have green background</p>
-    <div id="repaints"></div>
 </body>

Modified: trunk/LayoutTests/fast/text/incorrect-deselection-across-multiple-elements.html (291806 => 291807)


--- trunk/LayoutTests/fast/text/incorrect-deselection-across-multiple-elements.html	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/fast/text/incorrect-deselection-across-multiple-elements.html	2022-03-24 18:16:20 UTC (rev 291807)
@@ -20,13 +20,11 @@
   if (window.internals)
     internals.startTrackingRepaints();
   window.getSelection().selectAllChildren(second);
-  setTimeout(function() {
-    if (window.internals) {
-      result.innerText = internals.repaintRectsAsText().indexOf("784 70") == -1 ? "FAIL" : "PASS";
-      internals.stopTrackingRepaints();
-    }
-    if (window.testRunner)
-      testRunner.notifyDone();
-  }, 0);
+  if (window.internals) {
+    result.innerText = internals.repaintRectsAsText().indexOf("784 70") == -1 ? "FAIL" : "PASS";
+    internals.stopTrackingRepaints();
+  }
+  if (window.testRunner)
+    testRunner.notifyDone();
 }, 0);
 </script>
\ No newline at end of file

Modified: trunk/LayoutTests/platform/gtk/TestExpectations (291806 => 291807)


--- trunk/LayoutTests/platform/gtk/TestExpectations	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/gtk/TestExpectations	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1532,6 +1532,8 @@
 # Incomplete implementation of eventSender causes this test to fail
 webkit.org/b/42194 fast/scrolling/scroll-select-list.html [ ImageOnlyFailure ]
 
+webkit.org/b/139354 fast/repaint/selection-ruby-rl.html [ Failure ]
+
 # Missing glyph symbol is not rendered properly.
 webkit.org/b/140252 fast/css/line-height-determined-by-primary-font.html [ Failure ]
 webkit.org/b/140252 fast/text/decorations-with-text-combine.html [ Failure ]

Deleted: trunk/LayoutTests/platform/gtk/fast/repaint/selection-ruby-rl-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/gtk/fast/repaint/selection-ruby-rl-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/gtk/fast/repaint/selection-ruby-rl-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,11 +0,0 @@
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.Some ruby
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.
-Testing both hit testing and painting of selection.
-(repaint rects (rect 775 37 17 84) )

Modified: trunk/LayoutTests/platform/gtk/fast/repaint/text-selection-overflow-hidden-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/gtk/fast/repaint/text-selection-overflow-hidden-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/gtk/fast/repaint/text-selection-overflow-hidden-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,3 +1,6 @@
 Should have green background
 
-(repaint rects (rect 8 16 197 17) )
+(repaint rects
+  (rect 8 16 197 17)
+)
+

Modified: trunk/LayoutTests/platform/mac/TestExpectations (291806 => 291807)


--- trunk/LayoutTests/platform/mac/TestExpectations	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/mac/TestExpectations	2022-03-24 18:16:20 UTC (rev 291807)
@@ -2410,4 +2410,3 @@
 
 webkit.org/b/237166 [ BigSur+ ] webgl/pending/conformance/textures/misc/tex-image-video-repeated.html [ Pass Timeout ]
 
-webkit.org/b/231298 accessibility/mac/selection-sync.html [ Skip ] # Timeout

Modified: trunk/LayoutTests/platform/mac-wk1/TestExpectations (291806 => 291807)


--- trunk/LayoutTests/platform/mac-wk1/TestExpectations	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/mac-wk1/TestExpectations	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1804,7 +1804,4 @@
 imported/w3c/web-platform-tests/pointerevents/pointerevent_mouse_pointercapture_in_frame.html [ Pass Failure ]
 imported/w3c/web-platform-tests/pointerevents/pointerevent_pointercapture-in-custom-element.html [ Pass Failure ]
 
-webkit.org/b/236128 imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-right.html [ Skip ]
-
-webkit.org/b/231298 accessibility/mac/selection-boundary-userinfo.html [ Failure ]
-webkit.org/b/232630 fast/forms/autofocus-opera-003.html [ Failure ]
+webkit.org/b/236128 imported/w3c/web-platform-tests/html/user-activation/activation-trigger-mouse-right.html [ Skip ]
\ No newline at end of file

Deleted: trunk/LayoutTests/platform/mac-wk1/fast/repaint/4776765-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/mac-wk1/fast/repaint/4776765-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/mac-wk1/fast/repaint/4776765-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,14 +0,0 @@
-
-
-
-(repaint rects
-  (rect 1 19 15 32)
-  (rect 8 26 1 18)
-  (rect 1 19 15 32)
-  (rect 8 26 1 18)
-  (rect 1 37 798 32)
-  (rect 8 44 784 18)
-  (rect 1 51 798 18)
-  (rect 1 44 798 7)
-)
-

Modified: trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-margin-005-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-margin-005-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/mac-wk1/imported/w3c/web-platform-tests/css/css-scroll-snap/scroll-target-margin-005-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,4 +1,4 @@
 
 
-FAIL scroll-margin on input widget assert_between_exclusive: Should honor date input scroll-margin expected a number greater than 4750 and less than 4850 but got 9439
+FAIL scroll-margin on input widget assert_between_exclusive: Should honor date input scroll-margin expected a number greater than 4750 and less than 4850 but got 4720
 

Deleted: trunk/LayoutTests/platform/win/fast/repaint/4776765-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/win/fast/repaint/4776765-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/win/fast/repaint/4776765-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,10 +0,0 @@
-
-
-
-(repaint rects
-  (rect 1 37 798 32)
-  (rect 8 44 784 18)
-  (rect 1 51 798 18)
-  (rect 1 44 798 7)
-)
-

Modified: trunk/LayoutTests/platform/win/fast/repaint/selection-gap-fixed-child-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/win/fast/repaint/selection-gap-fixed-child-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/win/fast/repaint/selection-gap-fixed-child-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -2,4 +2,7 @@
 This tests that fixed elements are invalidated correctly. The box will be competely green if the selected area was invalidated correctly.
 
 
+(repaint rects
+  (rect 0 0 100 100)
+)
 

Modified: trunk/LayoutTests/platform/win/fast/repaint/selection-ruby-rl-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/win/fast/repaint/selection-ruby-rl-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/win/fast/repaint/selection-ruby-rl-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -8,4 +8,7 @@
 Testing both hit testing and painting of selection.
 Testing both hit testing and painting of selection.
 Testing both hit testing and painting of selection.
-(repaint rects (rect 774 39 18 83) )
+(repaint rects
+  (rect 774 39 18 83)
+)
+

Modified: trunk/LayoutTests/platform/win/fast/repaint/text-selection-overflow-hidden-expected.txt (291806 => 291807)


--- trunk/LayoutTests/platform/win/fast/repaint/text-selection-overflow-hidden-expected.txt	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/LayoutTests/platform/win/fast/repaint/text-selection-overflow-hidden-expected.txt	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,3 +1,6 @@
 Should have green background
 
-(repaint rects (rect 8 16 197 18) )
+(repaint rects
+  (rect 8 16 197 18)
+)
+

Modified: trunk/Source/WebCore/ChangeLog (291806 => 291807)


--- trunk/Source/WebCore/ChangeLog	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/ChangeLog	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1,3 +1,16 @@
+2022-03-24  Matteo Flores  <[email protected]>
+
+        Unreviewed, reverting r291789.
+
+        This revision caused 65+ new API failures on iOS debug
+
+        Reverted changeset:
+
+        "Release assert in Document::updateLayout() via
+        HTMLTextAreaElement::childrenChanged"
+        https://bugs.webkit.org/show_bug.cgi?id=224471
+        https://commits.webkit.org/r291789
+
 2022-03-24  Ben Nham  <[email protected]>
 
         PushAPI.firePushEventWithNoPagesTimeout fails in debug builds

Modified: trunk/Source/WebCore/Modules/highlight/AppHighlightStorage.cpp (291806 => 291807)


--- trunk/Source/WebCore/Modules/highlight/AppHighlightStorage.cpp	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/Modules/highlight/AppHighlightStorage.cpp	2022-03-24 18:16:20 UTC (rev 291807)
@@ -272,7 +272,7 @@
         if (textIndicator)
             m_document->page()->chrome().client().setTextIndicator(textIndicator->data());
 
-        TemporarySelectionChange selectionChange(*strongDocument, { *range }, { TemporarySelectionOption::DelegateMainFrameScroll, TemporarySelectionOption::SmoothScroll, TemporarySelectionOption::RevealSelectionBounds, TemporarySelectionOption::UserTriggered });
+        TemporarySelectionChange selectionChange(*strongDocument, { range.value() }, { TemporarySelectionOption::DelegateMainFrameScroll, TemporarySelectionOption::SmoothScroll, TemporarySelectionOption::RevealSelectionBounds });
     }
 
     return true;

Modified: trunk/Source/WebCore/editing/Editor.cpp (291806 => 291807)


--- trunk/Source/WebCore/editing/Editor.cpp	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/editing/Editor.cpp	2022-03-24 18:16:20 UTC (rev 291807)
@@ -252,7 +252,7 @@
 
 void TemporarySelectionChange::setSelection(const VisibleSelection& selection, IsTemporarySelection isTemporarySelection)
 {
-    auto options = FrameSelection::defaultSetSelectionOptions(m_options.contains(TemporarySelectionOption::UserTriggered) ? UserTriggered : NotUserTriggered);
+    auto options = FrameSelection::defaultSetSelectionOptions();
     if (m_options & TemporarySelectionOption::DoNotSetFocus)
         options.add(FrameSelection::DoNotSetFocus);
 

Modified: trunk/Source/WebCore/editing/Editor.h (291806 => 291807)


--- trunk/Source/WebCore/editing/Editor.h	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/editing/Editor.h	2022-03-24 18:16:20 UTC (rev 291807)
@@ -125,8 +125,6 @@
     DelegateMainFrameScroll = 1 << 5,
     
     RevealSelectionBounds = 1 << 6,
-
-    UserTriggered = 1 << 7,
 };
 
 class TemporarySelectionChange {

Modified: trunk/Source/WebCore/editing/FrameSelection.cpp (291806 => 291807)


--- trunk/Source/WebCore/editing/FrameSelection.cpp	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/editing/FrameSelection.cpp	2022-03-24 18:16:20 UTC (rev 291807)
@@ -454,11 +454,6 @@
     if (frameView && frameView->layoutContext().isLayoutPending())
         return;
 
-    if (!(options & IsUserTriggered)) {
-        scheduleAppearanceUpdateAfterStyleChange();
-        return;
-    }
-
     updateAndRevealSelection(intent, options.contains(SmoothScroll) ? ScrollBehavior::Smooth : ScrollBehavior::Instant, options.contains(RevealSelectionBounds) ? RevealExtentOption::DoNotRevealExtent : RevealExtentOption::RevealExtent);
 
     if (options & IsUserTriggered) {
@@ -467,16 +462,13 @@
     }
 }
 
-void FrameSelection::updateSelectionAppearanceNow()
+static void updateSelectionByUpdatingLayoutOrStyle(Document& document)
 {
-    Ref document = *m_document;
 #if ENABLE(TEXT_CARET)
-    document->updateLayoutIgnorePendingStylesheets();
+    document.updateLayoutIgnorePendingStylesheets();
 #else
-    document->updateStyleIfNeeded();
+    document.updateStyleIfNeeded();
 #endif
-    if (m_pendingSelectionUpdate)
-        updateAppearance();
 }
 
 void FrameSelection::setNeedsSelectionUpdate(RevealSelectionAfterUpdate revealMode)
@@ -1709,7 +1701,7 @@
 {
     if (!m_document)
         return IntRect();
-    updateSelectionAppearanceNow();
+    updateSelectionByUpdatingLayoutOrStyle(*m_document);
     recomputeCaretRect();
     if (insideFixed)
         *insideFixed = m_caretInsidePositionFixed;
@@ -2267,7 +2259,7 @@
 
     // FIXME: We shouldn't trigger a synchronous layout here.
     if (doAppearanceUpdate == ShouldUpdateAppearance::Yes && m_document)
-        updateSelectionAppearanceNow();
+        updateSelectionByUpdatingLayoutOrStyle(*m_document);
 
 #if ENABLE(TEXT_CARET)
     if (m_caretPaint) {
@@ -2375,7 +2367,7 @@
     if (!m_document)
         return LayoutRect();
 
-    const_cast<FrameSelection&>(*this).updateSelectionAppearanceNow();
+    updateSelectionByUpdatingLayoutOrStyle(*m_document);
     auto* renderView = m_document->renderView();
     if (!renderView)
         return LayoutRect();
@@ -2471,8 +2463,6 @@
     if (isNone())
         return;
 
-    updateSelectionAppearanceNow();
-
     LayoutRect rect;
     bool insideFixed = false;
     if (isCaret())
@@ -2544,13 +2534,6 @@
     updateAppearance();
 }
 
-void FrameSelection::updateAppearanceIfRevealingSelectionIsNeeded()
-{
-    if (!m_pendingSelectionUpdate || m_selectionRevealMode == SelectionRevealMode::DoNotReveal)
-        return;
-    updateSelectionAppearanceNow();
-}
-
 void FrameSelection::updateAppearanceAfterLayout()
 {
     m_appearanceUpdateTimer.stop();

Modified: trunk/Source/WebCore/editing/FrameSelection.h (291806 => 291807)


--- trunk/Source/WebCore/editing/FrameSelection.h	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/editing/FrameSelection.h	2022-03-24 18:16:20 UTC (rev 291807)
@@ -151,7 +151,6 @@
     WEBCORE_EXPORT void clear();
     void willBeRemovedFromFrame();
 
-    void updateAppearanceIfRevealingSelectionIsNeeded();
     void updateAppearanceAfterLayout();
     void scheduleAppearanceUpdateAfterStyleChange();
 
@@ -268,7 +267,6 @@
     void updateFromAssociatedLiveRange();
 
 private:
-    void updateSelectionAppearanceNow();
     void updateAndRevealSelection(const AXTextStateChangeIntent&, ScrollBehavior = ScrollBehavior::Instant, RevealExtentOption = RevealExtentOption::RevealExtent);
     void updateDataDetectorsForSelection();
 

Modified: trunk/Source/WebCore/page/EventHandler.cpp (291806 => 291807)


--- trunk/Source/WebCore/page/EventHandler.cpp	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/page/EventHandler.cpp	2022-03-24 18:16:20 UTC (rev 291807)
@@ -443,7 +443,7 @@
 static void setSelectionIfNeeded(FrameSelection& selection, const VisibleSelection& newSelection)
 {
     if (selection.selection() != newSelection && selection.shouldChangeSelection(newSelection))
-        selection.setSelection(newSelection, FrameSelection::defaultSetSelectionOptions(UserTriggered));
+        selection.setSelection(newSelection);
 }
 
 static inline bool dispatchSelectStart(Node* node)

Modified: trunk/Source/WebCore/page/Page.cpp (291806 => 291807)


--- trunk/Source/WebCore/page/Page.cpp	2022-03-24 18:15:40 UTC (rev 291806)
+++ trunk/Source/WebCore/page/Page.cpp	2022-03-24 18:16:20 UTC (rev 291807)
@@ -1712,10 +1712,6 @@
     });
 
     forEachDocument([] (Document& document) {
-        document.selection().updateAppearanceAfterLayout();
-    });
-
-    forEachDocument([] (Document& document) {
         document.updateHighlightPositions();
     });
 #if ENABLE(APP_HIGHLIGHTS)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to