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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/invalidation/link-pseudo.html

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 testRunner.keepWebHistory(); 5 testRunner.keepWebHistory();
6 </script> 6 </script>
7 <style> 7 <style>
8 :link, :visited { all: initial } 8 :link, :visited { all: initial }
9 #match { background-color: red } 9 #match { background-color: red }
10 :link #match { background-color: green } 10 :link #match { background-color: green }
(...skipping 20 matching lines...) Expand all
31 31
32 if (window.internals) 32 if (window.internals)
33 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor ", "red"); 33 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor ", "red");
34 34
35 link.offsetTop; // Force recalc. 35 link.offsetTop; // Force recalc.
36 link.href = "not-visited.html"; 36 link.href = "not-visited.html";
37 37
38 if (window.internals) { 38 if (window.internals) {
39 // Ideally, the affected element count should be 2, but there is a _insideLi nk that 39 // Ideally, the affected element count should be 2, but there is a _insideLi nk that
40 // causes inheritance to recalc all elements inside <a>. 40 // causes inheritance to recalc all elements inside <a>.
41 shouldBe("internals.updateStyleAndReturnAffectedElementCount()", "5"); 41 shouldBe("internals.updateStyleAndLayoutAndReturnAffectedElementCount()", "5 ");
42 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor ", "green"); 42 shouldBe("internals.computedStyleIncludingVisitedInfo(match).backgroundColor ", "green");
43 } 43 }
44 44
45 </script> 45 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698