Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css-grid-layout/setting-node-properties-to-null-during-layout-should-not-crash.html

Issue 2411333007: [css-grid] Avoid storing pointers to orthogonal grid items (Closed)
Patch Set: Patch for landing. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <link href="resources/grid.css" rel="stylesheet">
3 <link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel ="stylesheet">
4 <script>
5 if (window.testRunner) {
6 testRunner.dumpAsText();
7 }
8 </script>
9 <script>
10 function nullifyNodeProperties(node) {
11 for (var key in node) {
12 try {
13 var a = node[key];
14 node[key] = null;
15 } catch (e) {
16 }
17 }
18 }
19
20 function runTest() {
21 document.body.offsetLeft;
22
23 var element = document.getElementById("node");
24 nullifyNodeProperties(element);
25 }
26 </script>
27 <body onload="runTest();">
28 <p>This test passes if it does not crash.</p>
29 <div class="grid verticalRL fit-content">
30 <div id="node" class="horizontalTB"></div>
31 </div>
32 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698