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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/tracing/timeline-layout.html

Issue 1638563002: DevTools: migrate ScriptFunctionCall off ScriptValue (to be inlined into the InjectedScript.cpp). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready for review Created 4 years, 11 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/timeline-test.js"></script> 4 <script src="../../http/tests/inspector/timeline-test.js"></script>
5 <style> 5 <style>
6 .relayout-boundary { 6 .relayout-boundary {
7 overflow: hidden; 7 overflow: hidden;
8 width: 100px; 8 width: 100px;
9 height: 100px; 9 height: 100px;
10 } 10 }
11 </style> 11 </style>
12 <script> 12 <script>
13 13
14 function invalidateAndForceLayout(element) 14 function invalidateAndForceLayout(element)
15 { 15 {
16 element.style.marginTop = "10px"; 16 element.style.marginTop = "10px";
17 var unused = element.offsetHeight; 17 var unused = element.offsetHeight;
18 } 18 }
19 19
20 function performActions() 20 function performActions()
21 { 21 {
22 var script = document.createElement("script");
23 script.textContent = "innerPerformActions();";
24 document.head.appendChild(script);
25 }
26
27 function innerPerformActions()
dgozman 2016/01/26 02:45:14 This needs explanation.
pfeldman 2016/01/27 01:24:09 Done.
28 {
22 invalidateAndForceLayout(document.getElementById("invalidate1")); 29 invalidateAndForceLayout(document.getElementById("invalidate1"));
23 invalidateAndForceLayout(document.getElementById("invalidate2")); 30 invalidateAndForceLayout(document.getElementById("invalidate2"));
24 } 31 }
25 32
26 function test() 33 function test()
27 { 34 {
28 InspectorTest.performActionsAndPrint("performActions()", "Layout"); 35 InspectorTest.performActionsAndPrint("performActions()", "Layout");
29 } 36 }
30 37
31 </script> 38 </script>
(...skipping 14 matching lines...) Expand all
46 <div></div> 53 <div></div>
47 <div>text</div> 54 <div>text</div>
48 <div id="invalidate2"><div>text</div></div> 55 <div id="invalidate2"><div>text</div></div>
49 <div></div> 56 <div></div>
50 <div></div> 57 <div></div>
51 <div>text</div> 58 <div>text</div>
52 </div> 59 </div>
53 60
54 </body> 61 </body>
55 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698