Source/WebCore/ChangeLog

 12020-10-07 Andres Gonzalez <andresg_22@apple.com>
 2
 3 Presidential Executive Order pages not accessible with Safari.
 4 https://bugs.webkit.org/show_bug.cgi?id=217415
 5 <rdar://problem/69922416>
 6
 7 Reviewed by NOBODY (OOPS!).
 8
 9 Test: accessibility/aria-modal.html.
 10
 11 Follow up to the previous change for this bug per Simon Fraser's comment.
 12 Check not only the visibility and opacity of the object in question but
 13 also of its ancestors.
 14
 15 * accessibility/AXObjectCache.cpp:
 16 (WebCore::AXObjectCache::isNodeVisible const):
 17
1182020-10-07 Wenson Hsieh <wenson_hsieh@apple.com>
219
320 [GPU Process] Support CanvasRenderingContext2D.drawImage() with HTMLVideoElement

Source/WebCore/accessibility/AXObjectCache.cpp

@@bool AXObjectCache::isNodeVisible(Node* node) const
300300 if (!renderer)
301301 return false;
302302
303  const RenderStyle& style = renderer->style();
304  if (style.display() == DisplayType::None
305  || style.visibility() != Visibility::Visible
306  || !style.opacity())
 303 if (renderer->style().display() == DisplayType::None)
307304 return false;
308305
 306 // Check whether this object or any of its ancestors is not visible or has no opacity.
 307 for (auto* renderObject = renderer; renderObject; renderObject = renderObject->parent()) {
 308 const auto& style = renderObject->style();
 309 if (style.visibility() != Visibility::Visible || !style.opacity())
 310 return false;
 311 }
 312
309313 // We also need to consider aria hidden status.
310314 if (!isNodeAriaVisible(node))
311315 return false;