Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Recompute maximum outline size only when outline changes.
https://bugs.webkit.org/show_bug.cgi?id=148576 Reviewed by Andreas Kling. We should only recompute the cached maximum outline size when either the outline size (offset/width) or the style (from or to auto) changes. Setting 'outline-style: auto' can change the final outline width as 'auto' triggers the focus ring mode. In this mode, we ignore outline-width and use the platform default value instead. Covered by existing test cases. * rendering/RenderElement.cpp: (WebCore::RenderElement::computeMaxOutlineSize): (WebCore::RenderElement::styleWillChange): (WebCore::RenderElement::initializeStyle): Deleted. (WebCore::RenderElement::setStyle): Deleted. * rendering/RenderElement.h: Canonical link: https://commits.webkit.org/166820@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189242 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
3 changed files
with
33 additions
and
10 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