Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[AX] Do not trigger redundant layout on tables.
https://bugs.webkit.org/show_bug.cgi?id=177781 <rdar://problem/34777030> Reviewed by Antti Koivisto. Source/WebCore: RenderTable::forceSectionsRecalc() marks the RenderTable dirty and schedules a layout. Every time AccessibilityTable asks for the table element (including during construction), we end up triggering a layout. This call was added (r191357) to ensure RenderTable's m_firstBody is always up-to-date (in case of anonymous wrapper table renderer). Instead of relying on the m_firstBody, let's just use the first child to find the table element. The first child always points to a valid renderer (or nullptr), while m_firstBody is the result of section computation. Covered by existing tests. * accessibility/AccessibilityTable.cpp: (WebCore::AccessibilityTable::tableElement const): LayoutTests: * TestExpectations: see webkit.org/b/177799 Canonical link: https://commits.webkit.org/194071@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222790 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
39 additions
and 9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters