4 /* Must be positioned absolute or static, must have margins to push it out view. */
10 /* Any kind of quote will do, can be either :before or :after */
17 <p>Bug
109616 - ASSERT(!layoutObject()-
>needsLayout()) when calling Element::focus() with generated content
</p>
20 This is testing a case where LayoutQuote (anonymous)::updateDepth would mark the LayoutQuote (anonymous)
21 and its ancestors as needing layout in the middle of a layout of its ancestor.
22 When its ancestor finishes the layout it will mark itself and the ancestors
23 farther up as no longer needing layout. The end result is some subtree
24 needing layout, but the LayoutView and possibly other ancestors of the subtree
29 LayoutView <- !needsLayout
31 LayoutBlockFlow (.focusable) <- needsLayout
33 LayoutBlockFlow (generated content) <- needsLayout
35 LayoutQuote (anonymous) <- needsLayout
38 <div class=
"positioned"></div>
39 <div class=
"focusable" tabindex=
"1"></div>
42 if (window
.testRunner
)
43 testRunner
.dumpAsText();
44 // .focusable still needs layout at this point, but LayoutView doesn't
45 // think any descendants need layout.
46 document
.querySelector('.focusable').focus();