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

Side by Side Diff: LayoutTests/fast/dom/HTMLObjectElement/data-attr-reattach-recalc.html

Issue 521603002: Do not use SubtreeStyleChange for reattachment of plugin renderers. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 <script src="../../../resources/js-test.js"></script>
3 <style>
4 object + div { color: green; }
esprehn 2014/09/19 04:15:07 Have we seen this in the wild?
5 </style>
6 <object id="obj" data="data:text/html,FAIL"><div>Fallback</div></object>
7 <div>
8 <div></div>
9 <div></div>
10 <div></div>
11 <div></div>
12 </div>
13 <script>
14 description("Changing data attribute on <object> should not cause sibling subtre e recalc.");
15
16 if (window.testRunner)
17 testRunner.waitUntilDone();
18
19 onload = function() {
20
21 obj.offsetTop; // Force recalc
22
23 obj.setAttribute("data", "data:text/html,PASS");
24
25 if (window.internals)
26 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "1");
27
28 if (window.testRunner)
29 testRunner.notifyDone();
30 };
31 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698