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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/dom-snapshot/dom-snapshot-getSnapshot-expected.txt

Issue 2882193002: [devtools] Add DOMSnapshot domain for dom+layout+style snapshots. (Closed)
Patch Set: back to DOMSnapshot domain, with custom node types + traversal. Created 3 years, 6 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 Some Text 1 Some Text
2 And More Text 2 And More Text
3 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sit amet e st sem. Aenean ut neque volutpat, posuere odio at, mollis nibh. Aenean sodales n ulla et ligula efficitur sollicitudin blandit sed lectus. Duis orci enim, sodale s ac lectus sed, hendrerit efficitur est. Quisque gravida facilisis viverra. 3 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sit amet e st sem. Aenean ut neque volutpat, posuere odio at, mollis nibh. Aenean sodales n ulla et ligula efficitur sollicitudin blandit sed lectus. Duis orci enim, sodale s ac lectus sed, hendrerit efficitur est. Quisque gravida facilisis viverra.
4 4
5 Lets have a span 5 Lets have a span
6 Rotated text! 6 Rotated text!
7 7
8
9 LayoutTreeNodes result:
10 { 8 {
9 "domNodes": [
10 {
11 "nodeType": 9,
12 "nodeName": "#document",
13 "nodeValue": "",
14 "childNodeIndexes": [
15 1
16 ],
17 "documentURL": "<string>",
18 "baseURL": "<string>",
19 "layoutNodeIndex": 0
20 },
21 {
22 "nodeType": 1,
23 "nodeName": "HTML",
24 "nodeValue": "",
25 "childNodeIndexes": [
26 2,
27 13,
28 14
29 ],
30 "attributes": [],
31 "frameId": "<string>",
32 "layoutNodeIndex": 1
33 },
34 {
35 "nodeType": 1,
36 "nodeName": "HEAD",
37 "nodeValue": "",
38 "childNodeIndexes": [
39 3,
40 4,
41 6,
42 7,
43 8,
44 9,
45 11,
46 12
47 ],
48 "attributes": []
49 },
50 {
51 "nodeType": 3,
52 "nodeName": "#text",
53 "nodeValue": "\n"
54 },
55 {
56 "nodeType": 1,
57 "nodeName": "STYLE",
58 "nodeValue": "",
59 "childNodeIndexes": [
60 5
61 ],
62 "attributes": []
63 },
64 {
65 "nodeType": 3,
66 "nodeName": "#text",
67 "nodeValue": "\n@font-face {\n font-family: 'ahem';\n src: url(../../res ources/Ahem.ttf);\n}\n"
68 },
69 {
70 "nodeType": 3,
71 "nodeName": "#text",
72 "nodeValue": "\n"
73 },
74 {
75 "nodeType": 1,
76 "nodeName": "SCRIPT",
77 "nodeValue": "",
78 "attributes": [
79 {
80 "name": "type",
81 "value": "text/javascript"
82 },
83 {
84 "name": "src",
85 "value": "../../http/tests/inspector-protocol/inspector-protocol-test. js"
86 }
87 ]
88 },
89 {
90 "nodeType": 3,
91 "nodeName": "#text",
92 "nodeValue": "\n"
93 },
94 {
95 "nodeType": 1,
96 "nodeName": "SCRIPT",
97 "nodeValue": "",
98 "childNodeIndexes": [
99 10
100 ],
101 "attributes": []
102 },
103 {
104 "nodeType": 3,
105 "nodeName": "#text",
106 "nodeValue": "\n\nfunction test()\n{\n InspectorTest.sendCommand(\"DOM. enable\", {});\n\n var whitelist = [\"transform\", \"transform-origin\", \"he ight\", \"width\", \"display\", \"outline-color\"];\n InspectorTest.sendComma ndOrDie(\"DOMSnapshot.getSnapshot\", {\"computedStyleWhitelist\": whitelist, \"d epth\": -1, \"pierce\": true}, onSnapshot);\n\n function onSnapshot(response) {\n function stabilize(key, value) {\n var unstableKeys = [\" documentURL\", \"baseURL\", \"frameId\"];\n if (unstableKeys.indexOf( key) !== -1)\n return \"<\" + typeof(value) + \">\";\n return value;\n }\n InspectorTest.log(JSON.stringify(response, st abilize, 2));\n InspectorTest.completeTest();\n }\n}\n\n"
107 },
108 {
109 "nodeType": 3,
110 "nodeName": "#text",
111 "nodeValue": "\n"
112 },
113 {
114 "nodeType": 3,
115 "nodeName": "#text",
116 "nodeValue": "\n"
117 },
118 {
119 "nodeType": 3,
120 "nodeName": "#text",
121 "nodeValue": "\n"
122 },
123 {
124 "nodeType": 1,
125 "nodeName": "BODY",
126 "nodeValue": "",
127 "childNodeIndexes": [
128 15,
129 16,
130 66
131 ],
132 "attributes": [
133 {
134 "name": "class",
135 "value": "body-class"
136 }
137 ],
138 "layoutNodeIndex": 2
139 },
140 {
141 "nodeType": 3,
142 "nodeName": "#text",
143 "nodeValue": "\n"
144 },
145 {
146 "nodeType": 1,
147 "nodeName": "DIV",
148 "nodeValue": "",
149 "childNodeIndexes": [
150 17,
151 18,
152 20,
153 21,
154 34,
155 35,
156 37,
157 38,
158 52,
159 53,
160 62,
161 63,
162 65
163 ],
164 "attributes": [
165 {
166 "name": "style",
167 "value": "font-family: ahem;"
168 }
169 ],
170 "layoutNodeIndex": 3
171 },
172 {
173 "nodeType": 3,
174 "nodeName": "#text",
175 "nodeValue": "\n "
176 },
177 {
178 "nodeType": 1,
179 "nodeName": "DIV",
180 "nodeValue": "",
181 "childNodeIndexes": [
182 19
183 ],
184 "attributes": [
185 {
186 "name": "class",
187 "value": "class1"
188 }
189 ],
190 "layoutNodeIndex": 4
191 },
192 {
193 "nodeType": 3,
194 "nodeName": "#text",
195 "nodeValue": "Some Text",
196 "layoutNodeIndex": 5
197 },
198 {
199 "nodeType": 3,
200 "nodeName": "#text",
201 "nodeValue": " And More Text\n ",
202 "layoutNodeIndex": 6
203 },
204 {
205 "nodeType": 1,
206 "nodeName": "DIV",
207 "nodeValue": "",
208 "childNodeIndexes": [
209 22,
210 23,
211 25,
212 26,
213 33
214 ],
215 "attributes": [
216 {
217 "name": "style",
218 "value": "display:inline-block; width: 200px"
219 }
220 ],
221 "layoutNodeIndex": 7
222 },
223 {
224 "nodeType": 3,
225 "nodeName": "#text",
226 "nodeValue": "\n "
227 },
228 {
229 "nodeType": 1,
230 "nodeName": "P",
231 "nodeValue": "",
232 "childNodeIndexes": [
233 24
234 ],
235 "attributes": [],
236 "layoutNodeIndex": 8
237 },
238 {
239 "nodeType": 3,
240 "nodeName": "#text",
241 "nodeValue": "\n Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque sit amet est sem.\n Aenean ut neque volutpat, posuere odio at, mollis nibh. Aenean sodales nulla et\n ligula efficitur sollici tudin blandit sed lectus. Duis orci enim, sodales ac lectus sed,\n hendre rit efficitur est. Quisque gravida facilisis viverra.\n ",
242 "layoutNodeIndex": 9
243 },
244 {
245 "nodeType": 3,
246 "nodeName": "#text",
247 "nodeValue": "\n "
248 },
249 {
250 "nodeType": 1,
251 "nodeName": "UL",
252 "nodeValue": "",
253 "childNodeIndexes": [
254 27,
255 28,
256 29,
257 30,
258 32
259 ],
260 "attributes": [
261 {
262 "name": "class",
263 "value": "class3"
264 }
265 ],
266 "layoutNodeIndex": 10
267 },
268 {
269 "nodeType": 3,
270 "nodeName": "#text",
271 "nodeValue": "\n "
272 },
273 {
274 "nodeType": 1,
275 "nodeName": "LI",
276 "nodeValue": "",
277 "attributes": [
278 {
279 "name": "class",
280 "value": "class4"
281 }
282 ],
283 "layoutNodeIndex": 11
284 },
285 {
286 "nodeType": 3,
287 "nodeName": "#text",
288 "nodeValue": "\n "
289 },
290 {
291 "nodeType": 1,
292 "nodeName": "SPAN",
293 "nodeValue": "",
294 "childNodeIndexes": [
295 31
296 ],
297 "attributes": [],
298 "layoutNodeIndex": 12
299 },
300 {
301 "nodeType": 3,
302 "nodeName": "#text",
303 "nodeValue": "Lets have a span",
304 "layoutNodeIndex": 13
305 },
306 {
307 "nodeType": 3,
308 "nodeName": "#text",
309 "nodeValue": "\n ",
310 "layoutNodeIndex": 14
311 },
312 {
313 "nodeType": 3,
314 "nodeName": "#text",
315 "nodeValue": "\n "
316 },
317 {
318 "nodeType": 3,
319 "nodeName": "#text",
320 "nodeValue": "\n ",
321 "layoutNodeIndex": 15
322 },
323 {
324 "nodeType": 1,
325 "nodeName": "DIV",
326 "nodeValue": "",
327 "childNodeIndexes": [
328 36
329 ],
330 "attributes": [
331 {
332 "name": "style",
333 "value": "transform: rotateZ(90deg); width: 200px"
334 }
335 ],
336 "layoutNodeIndex": 16
337 },
338 {
339 "nodeType": 3,
340 "nodeName": "#text",
341 "nodeValue": "Rotated text!",
342 "layoutNodeIndex": 17
343 },
344 {
345 "nodeType": 3,
346 "nodeName": "#text",
347 "nodeValue": "\n "
348 },
349 {
350 "nodeType": 1,
351 "nodeName": "IFRAME",
352 "nodeValue": "",
353 "attributes": [
354 {
355 "name": "src",
356 "value": "../dom/resources/simple-iframe.html"
357 },
358 {
359 "name": "width",
360 "value": "400"
361 },
362 {
363 "name": "height",
364 "value": "200"
365 }
366 ],
367 "frameId": "<string>",
368 "contentDocumentIndex": 39,
369 "layoutNodeIndex": 18
370 },
371 {
372 "nodeType": 9,
373 "nodeName": "#document",
374 "nodeValue": "",
375 "childNodeIndexes": [
376 40
377 ],
378 "documentURL": "<string>",
379 "baseURL": "<string>",
380 "layoutNodeIndex": 19
381 },
382 {
383 "nodeType": 1,
384 "nodeName": "HTML",
385 "nodeValue": "",
386 "childNodeIndexes": [
387 41,
388 46,
389 47
390 ],
391 "attributes": [],
392 "frameId": "<string>",
393 "layoutNodeIndex": 20
394 },
395 {
396 "nodeType": 1,
397 "nodeName": "HEAD",
398 "nodeValue": "",
399 "childNodeIndexes": [
400 42,
401 43,
402 45
403 ],
404 "attributes": []
405 },
406 {
407 "nodeType": 3,
408 "nodeName": "#text",
409 "nodeValue": "\n"
410 },
411 {
412 "nodeType": 1,
413 "nodeName": "STYLE",
414 "nodeValue": "",
415 "childNodeIndexes": [
416 44
417 ],
418 "attributes": []
419 },
420 {
421 "nodeType": 3,
422 "nodeName": "#text",
423 "nodeValue": "\n@font-face {\n font-family: 'ahem';\n src: url(../../../ resources/Ahem.ttf);\n}\n"
424 },
425 {
426 "nodeType": 3,
427 "nodeName": "#text",
428 "nodeValue": "\n"
429 },
430 {
431 "nodeType": 3,
432 "nodeName": "#text",
433 "nodeValue": "\n"
434 },
435 {
436 "nodeType": 1,
437 "nodeName": "BODY",
438 "nodeValue": "",
439 "childNodeIndexes": [
440 48,
441 49,
442 51
443 ],
444 "attributes": [],
445 "layoutNodeIndex": 21
446 },
447 {
448 "nodeType": 3,
449 "nodeName": "#text",
450 "nodeValue": "\n"
451 },
452 {
453 "nodeType": 1,
454 "nodeName": "DIV",
455 "nodeValue": "",
456 "childNodeIndexes": [
457 50
458 ],
459 "attributes": [
460 {
461 "name": "style",
462 "value": "font-family: ahem;"
463 }
464 ],
465 "layoutNodeIndex": 22
466 },
467 {
468 "nodeType": 3,
469 "nodeName": "#text",
470 "nodeValue": "\nHello from the iframe.\n",
471 "layoutNodeIndex": 23
472 },
473 {
474 "nodeType": 3,
475 "nodeName": "#text",
476 "nodeValue": "\n\n\n"
477 },
478 {
479 "nodeType": 3,
480 "nodeName": "#text",
481 "nodeValue": "\n ",
482 "layoutNodeIndex": 24
483 },
484 {
485 "nodeType": 1,
486 "nodeName": "DIV",
487 "nodeValue": "",
488 "childNodeIndexes": [
489 54,
490 55,
491 57,
492 58,
493 61
494 ],
495 "attributes": [
496 {
497 "name": "id",
498 "value": "shadow-host"
499 }
500 ],
501 "layoutNodeIndex": 25
502 },
503 {
504 "nodeType": 3,
505 "nodeName": "#text",
506 "nodeValue": "\n"
507 },
508 {
509 "nodeType": 1,
510 "nodeName": "STYLE",
511 "nodeValue": "",
512 "childNodeIndexes": [
513 56
514 ],
515 "attributes": []
516 },
517 {
518 "nodeType": 3,
519 "nodeName": "#text",
520 "nodeValue": "\n:host {\n color: red;\n}\n"
521 },
522 {
523 "nodeType": 3,
524 "nodeName": "#text",
525 "nodeValue": "\n"
526 },
527 {
528 "nodeType": 1,
529 "nodeName": "DIV",
530 "nodeValue": "",
531 "childNodeIndexes": [
532 59
533 ],
534 "attributes": [
535 {
536 "name": "style",
537 "value": "font-family: ahem;"
538 }
539 ],
540 "layoutNodeIndex": 26
541 },
542 {
543 "nodeType": 1,
544 "nodeName": "H1",
545 "nodeValue": "",
546 "childNodeIndexes": [
547 60
548 ],
549 "attributes": [],
550 "layoutNodeIndex": 27
551 },
552 {
553 "nodeType": 3,
554 "nodeName": "#text",
555 "nodeValue": "Hi!",
556 "layoutNodeIndex": 28
557 },
558 {
559 "nodeType": 3,
560 "nodeName": "#text",
561 "nodeValue": "\n"
562 },
563 {
564 "nodeType": 3,
565 "nodeName": "#text",
566 "nodeValue": "\n "
567 },
568 {
569 "nodeType": 1,
570 "nodeName": "SCRIPT",
571 "nodeValue": "",
572 "childNodeIndexes": [
573 64
574 ],
575 "attributes": [
576 {
577 "name": "type",
578 "value": "text/javascript"
579 }
580 ]
581 },
582 {
583 "nodeType": 3,
584 "nodeName": "#text",
585 "nodeValue": "\n var host = document.querySelector(\"#shadow-host\" ).createShadowRoot();\n var template = document.querySelector(\"#shadow-t emplate\");\n host.appendChild(template.content);\n template.remov e();\n window.onload = runTest;\n "
586 },
587 {
588 "nodeType": 3,
589 "nodeName": "#text",
590 "nodeValue": "\n"
591 },
592 {
593 "nodeType": 3,
594 "nodeName": "#text",
595 "nodeValue": "\n\n\n"
596 }
597 ],
11 "layoutTreeNodes": [ 598 "layoutTreeNodes": [
12 { 599 {
13 "nodeId": 1, 600 "domNodeIndex": 0,
14 "boundingBox": { 601 "boundingBox": {
15 "x": 0, 602 "x": 0,
16 "y": 0, 603 "y": 0,
17 "width": 785, 604 "width": 785,
18 "height": 600 605 "height": 600
19 } 606 }
20 }, 607 },
21 { 608 {
22 "nodeId": 2, 609 "domNodeIndex": 1,
23 "boundingBox": { 610 "boundingBox": {
24 "x": 0, 611 "x": 0,
25 "y": 0, 612 "y": 0,
26 "width": 785, 613 "width": 785,
27 "height": 911 614 "height": 911
28 }, 615 },
29 "styleIndex": 0 616 "styleIndex": 0
30 }, 617 },
31 { 618 {
32 "nodeId": 9, 619 "domNodeIndex": 14,
33 "boundingBox": { 620 "boundingBox": {
34 "x": 8, 621 "x": 8,
35 "y": 8, 622 "y": 8,
36 "width": 769, 623 "width": 769,
37 "height": 882 624 "height": 882
38 }, 625 },
39 "styleIndex": 1 626 "styleIndex": 1
40 }, 627 },
41 { 628 {
42 "nodeId": 10, 629 "domNodeIndex": 16,
43 "boundingBox": { 630 "boundingBox": {
44 "x": 8, 631 "x": 8,
45 "y": 8, 632 "y": 8,
46 "width": 769, 633 "width": 769,
47 "height": 882 634 "height": 882
48 }, 635 },
49 "styleIndex": 1 636 "styleIndex": 1
50 }, 637 },
51 { 638 {
52 "nodeId": 11, 639 "domNodeIndex": 18,
53 "boundingBox": { 640 "boundingBox": {
54 "x": 8, 641 "x": 8,
55 "y": 8, 642 "y": 8,
56 "width": 769, 643 "width": 769,
57 "height": 16 644 "height": 16
58 }, 645 },
59 "styleIndex": 2 646 "styleIndex": 2
60 }, 647 },
61 { 648 {
62 "nodeId": 12, 649 "domNodeIndex": 19,
63 "boundingBox": { 650 "boundingBox": {
64 "x": 8, 651 "x": 8,
65 "y": 8, 652 "y": 8,
66 "width": 144, 653 "width": 144,
67 "height": 16 654 "height": 16
68 }, 655 },
69 "layoutText": "Some Text", 656 "layoutText": "Some Text",
70 "inlineTextNodes": [ 657 "inlineTextNodes": [
71 { 658 {
72 "boundingBox": { 659 "boundingBox": {
73 "x": 8, 660 "x": 8,
74 "y": 8, 661 "y": 8,
75 "width": 144, 662 "width": 144,
76 "height": 16 663 "height": 16
77 }, 664 },
78 "startCharacterIndex": 0, 665 "startCharacterIndex": 0,
79 "numCharacters": 9 666 "numCharacters": 9
80 } 667 }
81 ], 668 ],
82 "styleIndex": 3 669 "styleIndex": 3
83 }, 670 },
84 { 671 {
85 "nodeId": 13, 672 "domNodeIndex": 20,
86 "boundingBox": { 673 "boundingBox": {
87 "x": 8, 674 "x": 8,
88 "y": 568, 675 "y": 568,
89 "width": 224, 676 "width": 224,
90 "height": 16 677 "height": 16
91 }, 678 },
92 "layoutText": " And More Text\n ", 679 "layoutText": " And More Text\n ",
93 "inlineTextNodes": [ 680 "inlineTextNodes": [
94 { 681 {
95 "boundingBox": { 682 "boundingBox": {
96 "x": 8, 683 "x": 8,
97 "y": 568, 684 "y": 568,
98 "width": 224, 685 "width": 224,
99 "height": 16 686 "height": 16
100 }, 687 },
101 "startCharacterIndex": 1, 688 "startCharacterIndex": 1,
102 "numCharacters": 14 689 "numCharacters": 14
103 } 690 }
104 ], 691 ],
105 "styleIndex": 3 692 "styleIndex": 3
106 }, 693 },
107 { 694 {
108 "nodeId": 14, 695 "domNodeIndex": 21,
109 "boundingBox": { 696 "boundingBox": {
110 "x": 232, 697 "x": 232,
111 "y": 24, 698 "y": 24,
112 "width": 200, 699 "width": 200,
113 "height": 576 700 "height": 576
114 }, 701 },
115 "styleIndex": 4 702 "styleIndex": 4
116 }, 703 },
117 { 704 {
118 "nodeId": 15, 705 "domNodeIndex": 23,
119 "boundingBox": { 706 "boundingBox": {
120 "x": 232, 707 "x": 232,
121 "y": 40, 708 "y": 40,
122 "width": 200, 709 "width": 200,
123 "height": 480 710 "height": 480
124 }, 711 },
125 "styleIndex": 5 712 "styleIndex": 5
126 }, 713 },
127 { 714 {
128 "nodeId": 16, 715 "domNodeIndex": 24,
129 "boundingBox": { 716 "boundingBox": {
130 "x": 232, 717 "x": 232,
131 "y": 40, 718 "y": 40,
132 "width": 192, 719 "width": 192,
133 "height": 480 720 "height": 480
134 }, 721 },
135 "layoutText": "\n Lorem ipsum dolor sit amet, consectetur adipiscin g elit. Pellentesque sit amet est sem.\n Aenean ut neque volutpat, posuer e odio at, mollis nibh. Aenean sodales nulla et\n ligula efficitur sollic itudin blandit sed lectus. Duis orci enim, sodales ac lectus sed,\n hendr erit efficitur est. Quisque gravida facilisis viverra.\n ", 722 "layoutText": "\n Lorem ipsum dolor sit amet, consectetur adipiscin g elit. Pellentesque sit amet est sem.\n Aenean ut neque volutpat, posuer e odio at, mollis nibh. Aenean sodales nulla et\n ligula efficitur sollic itudin blandit sed lectus. Duis orci enim, sodales ac lectus sed,\n hendr erit efficitur est. Quisque gravida facilisis viverra.\n ",
136 "inlineTextNodes": [ 723 "inlineTextNodes": [
137 { 724 {
138 "boundingBox": { 725 "boundingBox": {
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 "width": 128, 1028 "width": 128,
442 "height": 16 1029 "height": 16
443 }, 1030 },
444 "startCharacterIndex": 341, 1031 "startCharacterIndex": 341,
445 "numCharacters": 8 1032 "numCharacters": 8
446 } 1033 }
447 ], 1034 ],
448 "styleIndex": 3 1035 "styleIndex": 3
449 }, 1036 },
450 { 1037 {
451 "nodeId": 17, 1038 "domNodeIndex": 26,
452 "boundingBox": { 1039 "boundingBox": {
453 "x": 232, 1040 "x": 232,
454 "y": 536, 1041 "y": 536,
455 "width": 200, 1042 "width": 200,
456 "height": 48 1043 "height": 48
457 }, 1044 },
458 "styleIndex": 6 1045 "styleIndex": 6
459 }, 1046 },
460 { 1047 {
461 "nodeId": 18, 1048 "domNodeIndex": 28,
462 "boundingBox": { 1049 "boundingBox": {
463 "x": 272, 1050 "x": 272,
464 "y": 536, 1051 "y": 536,
465 "width": 160, 1052 "width": 160,
466 "height": 16 1053 "height": 16
467 }, 1054 },
468 "styleIndex": 7 1055 "styleIndex": 7
469 }, 1056 },
470 { 1057 {
471 "nodeId": 19, 1058 "domNodeIndex": 30,
472 "boundingBox": { 1059 "boundingBox": {
473 "x": 272, 1060 "x": 272,
474 "y": 552, 1061 "y": 552,
475 "width": 144, 1062 "width": 144,
476 "height": 32 1063 "height": 32
477 }, 1064 },
478 "styleIndex": 8 1065 "styleIndex": 8
479 }, 1066 },
480 { 1067 {
481 "nodeId": 20, 1068 "domNodeIndex": 31,
482 "boundingBox": { 1069 "boundingBox": {
483 "x": 272, 1070 "x": 272,
484 "y": 552, 1071 "y": 552,
485 "width": 144, 1072 "width": 144,
486 "height": 32 1073 "height": 32
487 }, 1074 },
488 "layoutText": "Lets have a span", 1075 "layoutText": "Lets have a span",
489 "inlineTextNodes": [ 1076 "inlineTextNodes": [
490 { 1077 {
491 "boundingBox": { 1078 "boundingBox": {
(...skipping 12 matching lines...) Expand all
504 "width": 96, 1091 "width": 96,
505 "height": 16 1092 "height": 16
506 }, 1093 },
507 "startCharacterIndex": 10, 1094 "startCharacterIndex": 10,
508 "numCharacters": 6 1095 "numCharacters": 6
509 } 1096 }
510 ], 1097 ],
511 "styleIndex": 8 1098 "styleIndex": 8
512 }, 1099 },
513 { 1100 {
514 "nodeId": 21, 1101 "domNodeIndex": 32,
1102 "boundingBox": {
1103 "x": 0,
1104 "y": 0,
1105 "width": 0,
1106 "height": 0
1107 },
1108 "layoutText": "\n ",
1109 "styleIndex": 3
1110 },
1111 {
1112 "domNodeIndex": 34,
1113 "boundingBox": {
1114 "x": 0,
1115 "y": 0,
1116 "width": 0,
1117 "height": 0
1118 },
1119 "layoutText": "\n ",
1120 "styleIndex": 3
1121 },
1122 {
1123 "domNodeIndex": 35,
515 "boundingBox": { 1124 "boundingBox": {
516 "x": 92, 1125 "x": 92,
517 "y": 516, 1126 "y": 516,
518 "width": 32, 1127 "width": 32,
519 "height": 200 1128 "height": 200
520 }, 1129 },
521 "styleIndex": 9 1130 "styleIndex": 9
522 }, 1131 },
523 { 1132 {
524 "nodeId": 22, 1133 "domNodeIndex": 36,
525 "boundingBox": { 1134 "boundingBox": {
526 "x": 92, 1135 "x": 92,
527 "y": 516, 1136 "y": 516,
528 "width": 32, 1137 "width": 32,
529 "height": 112 1138 "height": 112
530 }, 1139 },
531 "layoutText": "Rotated text!", 1140 "layoutText": "Rotated text!",
532 "inlineTextNodes": [ 1141 "inlineTextNodes": [
533 { 1142 {
534 "boundingBox": { 1143 "boundingBox": {
(...skipping 12 matching lines...) Expand all
547 "width": 16, 1156 "width": 16,
548 "height": 80 1157 "height": 80
549 }, 1158 },
550 "startCharacterIndex": 8, 1159 "startCharacterIndex": 8,
551 "numCharacters": 5 1160 "numCharacters": 5
552 } 1161 }
553 ], 1162 ],
554 "styleIndex": 10 1163 "styleIndex": 10
555 }, 1164 },
556 { 1165 {
557 "nodeId": 23, 1166 "domNodeIndex": 38,
558 "boundingBox": { 1167 "boundingBox": {
559 "x": 8, 1168 "x": 8,
560 "y": 632, 1169 "y": 632,
561 "width": 404, 1170 "width": 404,
562 "height": 204 1171 "height": 204
563 }, 1172 },
564 "styleIndex": 11 1173 "styleIndex": 11
565 }, 1174 },
566 { 1175 {
567 "nodeId": 25, 1176 "domNodeIndex": 39,
1177 "boundingBox": {
1178 "x": 0,
1179 "y": 0,
1180 "width": 400,
1181 "height": 200
1182 }
1183 },
1184 {
1185 "domNodeIndex": 40,
1186 "boundingBox": {
1187 "x": 10,
1188 "y": 634,
1189 "width": 400,
1190 "height": 200
1191 },
1192 "styleIndex": 12
1193 },
1194 {
1195 "domNodeIndex": 47,
1196 "boundingBox": {
1197 "x": 18,
1198 "y": 642,
1199 "width": 384,
1200 "height": 184
1201 },
1202 "styleIndex": 13
1203 },
1204 {
1205 "domNodeIndex": 49,
1206 "boundingBox": {
1207 "x": 18,
1208 "y": 642,
1209 "width": 384,
1210 "height": 16
1211 },
1212 "styleIndex": 14
1213 },
1214 {
1215 "domNodeIndex": 50,
1216 "boundingBox": {
1217 "x": 8,
1218 "y": 8,
1219 "width": 352,
1220 "height": 16
1221 },
1222 "layoutText": "\nHello from the iframe.\n",
1223 "inlineTextNodes": [
1224 {
1225 "boundingBox": {
1226 "x": 8,
1227 "y": 8,
1228 "width": 352,
1229 "height": 16
1230 },
1231 "startCharacterIndex": 1,
1232 "numCharacters": 22
1233 }
1234 ],
1235 "styleIndex": 3
1236 },
1237 {
1238 "domNodeIndex": 52,
1239 "boundingBox": {
1240 "x": 0,
1241 "y": 0,
1242 "width": 0,
1243 "height": 0
1244 },
1245 "layoutText": "\n ",
1246 "styleIndex": 3
1247 },
1248 {
1249 "domNodeIndex": 53,
568 "boundingBox": { 1250 "boundingBox": {
569 "x": 8, 1251 "x": 8,
570 "y": 857, 1252 "y": 857,
571 "width": 769, 1253 "width": 769,
572 "height": 33 1254 "height": 33
573 }, 1255 },
574 "styleIndex": 12 1256 "styleIndex": 15
1257 },
1258 {
1259 "domNodeIndex": 58,
1260 "boundingBox": {
1261 "x": 8,
1262 "y": 857,
1263 "width": 769,
1264 "height": 33
1265 },
1266 "styleIndex": 15
1267 },
1268 {
1269 "domNodeIndex": 59,
1270 "boundingBox": {
1271 "x": 8,
1272 "y": 857,
1273 "width": 769,
1274 "height": 33
1275 },
1276 "styleIndex": 15
1277 },
1278 {
1279 "domNodeIndex": 60,
1280 "boundingBox": {
1281 "x": 8,
1282 "y": 857,
1283 "width": 96,
1284 "height": 33
1285 },
1286 "layoutText": "Hi!",
1287 "inlineTextNodes": [
1288 {
1289 "boundingBox": {
1290 "x": 8,
1291 "y": 857.4375,
1292 "width": 96,
1293 "height": 32
1294 },
1295 "startCharacterIndex": 0,
1296 "numCharacters": 3
1297 }
1298 ],
1299 "styleIndex": 16
575 } 1300 }
576 ], 1301 ],
577 "computedStyles": [ 1302 "computedStyles": [
578 { 1303 {
579 "properties": [ 1304 "properties": [
580 { 1305 {
581 "name": "transform", 1306 "name": "transform",
582 "value": "none" 1307 "value": "none"
583 }, 1308 },
584 { 1309 {
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
907 }, 1632 },
908 { 1633 {
909 "name": "outline-color", 1634 "name": "outline-color",
910 "value": "rgb(0, 0, 0)" 1635 "value": "rgb(0, 0, 0)"
911 } 1636 }
912 ] 1637 ]
913 }, 1638 },
914 { 1639 {
915 "properties": [ 1640 "properties": [
916 { 1641 {
1642 "name": "transform",
1643 "value": "none"
1644 },
1645 {
1646 "name": "transform-origin",
1647 "value": "200px 100px"
1648 },
1649 {
1650 "name": "height",
1651 "value": "200px"
1652 },
1653 {
1654 "name": "width",
1655 "value": "400px"
1656 },
1657 {
1658 "name": "display",
1659 "value": "block"
1660 },
1661 {
1662 "name": "outline-color",
1663 "value": "rgb(0, 0, 0)"
1664 }
1665 ]
1666 },
1667 {
1668 "properties": [
1669 {
1670 "name": "transform",
1671 "value": "none"
1672 },
1673 {
1674 "name": "transform-origin",
1675 "value": "192px 92px"
1676 },
1677 {
1678 "name": "height",
1679 "value": "184px"
1680 },
1681 {
1682 "name": "width",
1683 "value": "384px"
1684 },
1685 {
1686 "name": "display",
1687 "value": "block"
1688 },
1689 {
1690 "name": "outline-color",
1691 "value": "rgb(0, 0, 0)"
1692 }
1693 ]
1694 },
1695 {
1696 "properties": [
1697 {
1698 "name": "transform",
1699 "value": "none"
1700 },
1701 {
1702 "name": "transform-origin",
1703 "value": "192px 8px"
1704 },
1705 {
1706 "name": "height",
1707 "value": "16px"
1708 },
1709 {
1710 "name": "width",
1711 "value": "384px"
1712 },
1713 {
1714 "name": "display",
1715 "value": "block"
1716 },
1717 {
1718 "name": "outline-color",
1719 "value": "rgb(0, 0, 0)"
1720 }
1721 ]
1722 },
1723 {
1724 "properties": [
1725 {
917 "name": "transform", 1726 "name": "transform",
918 "value": "none" 1727 "value": "none"
919 }, 1728 },
920 { 1729 {
921 "name": "transform-origin", 1730 "name": "transform-origin",
922 "value": "384.5px 16px" 1731 "value": "384.5px 16px"
923 }, 1732 },
924 { 1733 {
925 "name": "height", 1734 "name": "height",
926 "value": "32px" 1735 "value": "32px"
927 }, 1736 },
928 { 1737 {
929 "name": "width", 1738 "name": "width",
930 "value": "769px" 1739 "value": "769px"
931 }, 1740 },
932 { 1741 {
933 "name": "display", 1742 "name": "display",
934 "value": "block" 1743 "value": "block"
935 }, 1744 },
936 { 1745 {
937 "name": "outline-color", 1746 "name": "outline-color",
938 "value": "rgb(255, 0, 0)" 1747 "value": "rgb(255, 0, 0)"
939 } 1748 }
940 ] 1749 ]
1750 },
1751 {
1752 "properties": [
1753 {
1754 "name": "transform",
1755 "value": "none"
1756 },
1757 {
1758 "name": "transform-origin",
1759 "value": "0px 0px"
1760 },
1761 {
1762 "name": "height",
1763 "value": "auto"
1764 },
1765 {
1766 "name": "width",
1767 "value": "auto"
1768 },
1769 {
1770 "name": "display",
1771 "value": "block"
1772 },
1773 {
1774 "name": "outline-color",
1775 "value": "rgb(255, 0, 0)"
1776 }
1777 ]
941 } 1778 }
942 ] 1779 ]
943 } 1780 }
944 1781
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698