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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/css/stroke-opacity-change-no-layout.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.dumpAsText(); 5 testRunner.dumpAsText();
6 6
7 onload = function() { 7 onload = function() {
8 document.body.offsetTop; 8 document.body.offsetTop;
9 if (window.internals) 9 if (window.internals)
10 shouldBe("window.internals.needsLayoutCount()", "0", true); 10 shouldBe("window.internals.needsLayoutCount()", "0", true);
11 11
12 document.getElementById('rect').style.strokeOpacity = '0.5'; 12 document.getElementById('rect').style.strokeOpacity = '0.5';
13 if (window.internals) { 13 if (window.internals) {
14 shouldBe("window.internals.updateStyleAndReturnAffectedElementCount()", "1", true); 14 shouldBe("window.internals.updateStyleAndLayoutAndReturnAffectedElementCount ()", "1", true);
15 shouldBe("window.internals.needsLayoutCount()", "0"); 15 shouldBe("window.internals.needsLayoutCount()", "0");
16 } 16 }
17 }; 17 };
18 </script> 18 </script>
19 Change of stroke-opacity should cause style recalc only, no layout. 19 Change of stroke-opacity should cause style recalc only, no layout.
20 <svg> 20 <svg>
21 <rect id="rect" x="10" y="10" width="100" height="100" stroke="green" stroke-w idth="10"/> 21 <rect id="rect" x="10" y="10" width="100" height="100" stroke="green" stroke-w idth="10"/>
22 </svg> 22 </svg>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698