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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/lazy-reattach-object.html

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Commit the renames Created 4 years 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <style> 3 <style>
4 object + div { color: green; } 4 object + div { color: green; }
5 </style> 5 </style>
6 <object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object> 6 <object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object>
7 <div> 7 <div>
8 <div></div> 8 <div></div>
9 <div></div> 9 <div></div>
10 <div></div> 10 <div></div>
11 <div></div> 11 <div></div>
12 </div> 12 </div>
13 <script> 13 <script>
14 description("Reattaching object should not trigger sibling forest invalidation." ); 14 description("Reattaching object should not trigger sibling forest invalidation." );
15 15
16 shouldBeDefined(window.internals); 16 shouldBeDefined(window.internals);
17 17
18 // Force recalc 18 // Force recalc
19 obj.offsetTop; 19 obj.offsetTop;
20 20
21 // Trigger reattach of fallback content. 21 // Trigger reattach of fallback content.
22 obj.setAttribute("data", "data:text/html,PASS"); 22 obj.setAttribute("data", "data:text/html,PASS");
23 23
24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1"); 24 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "0");
25 25
26 </script> 26 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698