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

Side by Side Diff: LayoutTests/inspector/timeline/focus-recalc-002.html

Issue 135183002: Avoid unnecessary style recalc for subtree of focused element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed contenteditable shadow dom regression. Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>recalcStyle for children when childrenAffectedByFocus</title>
5 <style>:focus * { border: 1px solid lime; }</style>
6 <script src="../../http/tests/inspector/inspector-test.js"></script>
7 <script src="../../http/tests/inspector/timeline-test.js"></script>
8 <script>
9 function focusBody() {
10 document.body.focus();
11 document.body.offsetWidth;
12 }
13 function test() {
14 InspectorTest.startTimeline(function() {
15 InspectorTest.evaluateInPage("focusBody()");
16 });
17
18 InspectorTest.waitForRecordType("RecalculateStyles", finish);
19 function finish() {
20 InspectorTest.printTimelineRecords("RecalculateStyles");
21 InspectorTest.completeTest();
22 }
23 }
24 </script>
25 </head>
26 <body onload="runTest()" tabIndex="1">
27 <div></div>
28 <div></div>
29 <div></div>
30 <div></div>
31 <div></div>
32 <div></div>
33 <div></div>
34 <div></div>
35 <div></div>
36 <div></div>
37 <div></div>
38 <div></div>
39 <div></div>
40 <div></div>
41 </body>
42 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698