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

Side by Side Diff: LayoutTests/compositing/squashing/squashing-inside-preserve-3d-element.html

Issue 785333002: Delete the Layer Squashing runtime feature. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <div style="-webkit-transform-style: preserve-3d"> 2 <div style="-webkit-transform-style: preserve-3d">
3 <div style="width: 100px; height: 100px; background:lightgray; transform:trans lateZ(0)"></div> 3 <div style="width: 100px; height: 100px; background:lightgray; transform:trans lateZ(0)"></div>
4 <div id="target" style="position: absolute; top: 20px; left: 20px; height: 100 px; width: 100px; background:lightblue"></div> 4 <div id="target" style="position: absolute; top: 20px; left: 20px; height: 100 px; width: 100px; background:lightblue"></div>
5 </div> 5 </div>
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script>
7 <script> 7 <script>
8 if (window.internals)
9 internals.settings.setLayerSquashingEnabled(true);
10
11 // Test that squashing works properly when inside of a transform-style: preserve -3d element. In the bug that this layout test 8 // Test that squashing works properly when inside of a transform-style: preserve -3d element. In the bug that this layout test
12 // was added to fix, the coordinates of the squashing layer paint invalidation r ects were not recorded correctly, because some of 9 // was added to fix, the coordinates of the squashing layer paint invalidation r ects were not recorded correctly, because some of
13 // the code computed transformed ancestors incorrectly (it should *not* include the preserve-3d element). 10 // the code computed transformed ancestors incorrectly (it should *not* include the preserve-3d element).
14 11
15 function repaintTest() { 12 function repaintTest() {
16 var target = document.getElementById('target'); 13 var target = document.getElementById('target');
17 target.style.background = 'red'; 14 target.style.background = 'red';
18 } 15 }
19 16
20 runRepaintTest(); 17 runRepaintTest();
21 </script> 18 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698