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

Side by Side Diff: LayoutTests/fast/scrolling/scroll-to-origin-no-layout.html

Issue 1071983002: Don't force layout for scrollTo(0,0). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added comments Created 5 years, 8 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
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/scroll-to-origin-no-layout-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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/js-test.js"></script>
3 <div id="spanner"></div>
4 <script>
5 spanner.style.height = "3000px";
6 scrollTo(0, 1000);
7
8 if (window.internals) {
9 var styleCount = internals.updateStyleAndReturnAffectedElementCount();
10 var layoutCount = internals.needsLayoutCount();
11 // scrollTo should have synchronously updated style and layout
12 shouldBe("styleCount", "0");
13 shouldBe("layoutCount", "0");
14 }
15 shouldBe("window.scrollY", "1000");
16
17 spanner.style.height = "2000px";
18 scrollTo(0, 0);
19
20 if (window.internals) {
21 var styleCount = internals.updateStyleAndReturnAffectedElementCount();
22 var layoutCount = internals.needsLayoutCount();
23 // scrollTo should not need to synchronously updated style and layout
24 shouldNotBe("styleCount", "0");
25 shouldNotBe("layoutCount", "0");
26 }
27 shouldBe("window.scrollY", "0");
28 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/scrolling/scroll-to-origin-no-layout-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698