Repository navigation
Conversation
https://bugs.webkit.org/show_bug.cgi?id=237273 rdar://89902824 Reviewed by NOBODY (OOPS!). It's currently specced at whatwg/html#8392 as a rendering step after requestAnimationFrame callbacks. * LayoutTests/imported/w3c/web-platform-tests/inert/dynamic-inert-on-focused-element-expected.txt: * Source/WebCore/page/Page.cpp: (WebCore::Page::updateRendering): (WebCore::operator<<): * Source/WebCore/page/Page.h:
|
EWS run on current version of this PR (hash f67e8bf) Details |
| }); | ||
|
|
||
| runProcessingStep(RenderingUpdateStep::FocusFixupRule, [] (Document& document) { | ||
| if (auto* activeElement = document.activeElement()) { |
|
|
||
| runProcessingStep(RenderingUpdateStep::FocusFixupRule, [] (Document& document) { | ||
| if (auto* activeElement = document.activeElement()) { | ||
| if (auto* root = activeElement->shadowRoot(); root && root->activeElement()) |
There was a problem hiding this comment.
This doesn't seem right. This root's activeElement may in turn be inside another shadow root.
We clearly need more tests. One where there are multiple nested shadow trees.
There was a problem hiding this comment.
Also, we should probably start from document.focusedElement() and walk the tree upwards instead. Instead of keep walking up the tree multiple times in TreeScope::focusedElementInScope()
There was a problem hiding this comment.
That may be the source of the test failures I'm seeing.
|
|
||
| runProcessingStep(RenderingUpdateStep::FocusFixupRule, [] (Document& document) { | ||
| if (auto* activeElement = document.activeElement()) { | ||
| if (auto* root = activeElement->shadowRoot(); root && root->activeElement()) |
There was a problem hiding this comment.
This doesn't seem right. This root's activeElement may in turn be inside another shadow root.
We clearly need more tests. One where there are multiple nested shadow trees.
|
Superseded by #9835 |
f67e8bf
f67e8bf