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

Side by Side Diff: LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style.html

Issue 85693009: Get rid of Reset and ResetStyleResolverAndFontSelector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <div><!-- Extra divs so it's clear when we're doing a full document recalc --> 5 <div><!-- Extra divs so it's clear when we're doing a full document recalc -->
6 <div></div> 6 <div></div>
7 <div></div> 7 <div></div>
8 <div></div> 8 <div></div>
9 <div></div> 9 <div></div>
10 <div></div> 10 <div></div>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "0"); 50 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "0");
51 51
52 // Add sheet that matches one node. 52 // Add sheet that matches one node.
53 document.documentElement.offsetTop; 53 document.documentElement.offsetTop;
54 var barSheet = addSheet('.bar'); 54 var barSheet = addSheet('.bar');
55 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3"); 55 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3");
56 56
57 // Remove sheet that matches one node. 57 // Remove sheet that matches one node.
58 document.documentElement.offsetTop; 58 document.documentElement.offsetTop;
59 barSheet.remove(); 59 barSheet.remove();
60 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "3"); 60 // Recalc 3 elements + documentElement.
ojan 2013/11/26 01:54:51 Don't really understand why this causes the docume
61 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "4");
61 62
62 // Add two sheets that each match one node. 63 // Add two sheets that each match one node.
63 document.documentElement.offsetTop; 64 document.documentElement.offsetTop;
64 var barSheet = addSheet('.bar'); 65 var barSheet = addSheet('.bar');
65 var bazSheet = addSheet('.baz'); 66 var bazSheet = addSheet('.baz');
66 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6"); 67 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6");
67 68
68 // Remove two sheets that each match one node. 69 // Remove two sheets that each match one node.
69 document.documentElement.offsetTop; 70 document.documentElement.offsetTop;
70 barSheet.remove(); 71 barSheet.remove();
(...skipping 21 matching lines...) Expand all
92 var fooSheet = addSheet('.foo'); 93 var fooSheet = addSheet('.foo');
93 var barSheet = addSheet('.bar'); 94 var barSheet = addSheet('.bar');
94 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6"); 95 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "6");
95 document.documentElement.offsetTop; 96 document.documentElement.offsetTop;
96 var bazSheet = addSheet('.baz'); 97 var bazSheet = addSheet('.baz');
97 barSheet.remove(); 98 barSheet.remove();
98 // Recalc 6 elements + documentElement. 99 // Recalc 6 elements + documentElement.
99 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "7"); 100 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "7");
100 } 101 }
101 </script> 102 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/add-remove-stylesheets-minimal-recalc-style-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698