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

Side by Side Diff: LayoutTests/fast/dynamic/position-absolute-to-fixed-crash.html

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 <head> 1 <head>
2 <script> 2 <script>
3 if (testRunner) 3 if (testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 5
6 function test() 6 function test()
7 { 7 {
8 document.body.offsetTop; 8 document.body.offsetTop;
9 var s = document.getElementById("target").style; 9 var s = document.getElementById("target").style;
10 s.setProperty("position", "fixed"); 10 s.setProperty("position", "fixed");
11 document.body.offsetTop; 11 document.body.offsetTop;
12 s.setProperty("overflow", "hidden"); 12 s.setProperty("overflow", "hidden");
13 s.setProperty("height", "0"); 13 s.setProperty("height", "0");
14 s.setProperty("width", "0"); 14 s.setProperty("width", "0");
15 document.body.offsetTop; 15 document.body.offsetTop;
16 s.setProperty("display", "none"); 16 s.setProperty("display", "none");
17 } 17 }
18 </script> 18 </script>
19 </head> 19 </head>
20 <body onload="test()"> 20 <body onload="test()">
21 <p> 21 <p>
22 Test for <i><a href="rdar://problem/7094146">rdar://problem/7094146</a> 22 Test for <i><a href="rdar://problem/7094146">rdar://problem/7094146</a>
23 Reproducible crash at RenderObject::localToAbsolute()</i>. 23 Reproducible crash at LayoutObject::localToAbsolute()</i>.
24 </p> 24 </p>
25 <p> 25 <p>
26 This crash occurred after an object&rsquo;s position changed directly 26 This crash occurred after an object&rsquo;s position changed directly
27 from absolute to fixed, and it was not added to the RenderView&rsquo;s 27 from absolute to fixed, and it was not added to the RenderView&rsquo;s
28 positioned objects list nor removed from its old container&rsquo;s list. 28 positioned objects list nor removed from its old container&rsquo;s list.
29 </p> 29 </p>
30 <div style="position: relative;"> 30 <div style="position: relative;">
31 <div id="target" style="top: 50px; position: absolute;"> 31 <div id="target" style="top: 50px; position: absolute;">
32 <div style="height: 50px; width: 50px; background-color: red;"></div > 32 <div style="height: 50px; width: 50px; background-color: red;"></div >
33 </div> 33 </div>
34 </div> 34 </div>
35 </body> 35 </body>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/first-letter-detach.html ('k') | LayoutTests/fast/dynamic/position-absolute-to-fixed-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698