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

Side by Side Diff: LayoutTests/fast/layout/display-none-no-relayout.html

Issue 188543002: Avoid reattachWhitespaceSiblings when renderer does not change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <style>
4 .a span {}
5 </style>
6 <div id="parent">
7 <span style="display:none"></span>
8 <div style="float:left;"></div>
9 <span></span>
10 </div>
11 <script>
12 // Force style recalc and layout.
13 document.body.offsetTop;
14
15 if (window.internals)
16 shouldBe("window.internals.needsLayoutCount()", "0", true);
17
18 var parent = document.getElementById("parent");
19
20 // Changing the class attribute here will cause a style recalc with a resulting
21 // reattach, but it should not cause a relayout.
22 parent.className = "a";
23
24 if (window.internals) {
25 shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", "4", true);
26 shouldBe("window.internals.needsLayoutCount()", "0", true);
27 }
28 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/layout/display-none-no-relayout-expected.txt » ('j') | Source/core/dom/Element.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698