Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r222790 - [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
- Loading branch information
1 parent
92ac7a7
commit f6a3019
Showing
3 changed files
with
37 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