Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c0a9fe94832e4075b7b9eafb62616650f04ff56c
https://github.com/WebKit/WebKit/commit/c0a9fe94832e4075b7b9eafb62616650f04ff56c
Author: Simon Fraser <[email protected]>
Date: 2025-05-03 (Sat, 03 May 2025)
Changed paths:
M Source/WebCore/rendering/style/BorderData.cpp
M Source/WebCore/rendering/style/BorderData.h
M Source/WebCore/rendering/style/SVGRenderStyle.cpp
M Source/WebCore/rendering/style/StyleBackgroundData.cpp
M Source/WebCore/rendering/style/StyleBackgroundData.h
Log Message:
-----------
Optimize RenderStyle::changeRequiresRepaint() cases where currentColor differs
https://bugs.webkit.org/show_bug.cgi?id=292466
rdar://150557529
Reviewed by Matthieu Dubet.
If style contains currentColor, we need to do more extensive testing in
`RenderStyle::changeRequiresRepaint()`,
because the objects can be the same, but contain currentColor. However, we can
optimize for this case by
only testing whether any colors contain `currentColor`, rather than running the
entire diff.
* Source/WebCore/rendering/style/BorderData.cpp:
(WebCore::BorderData::containsCurrentColor const):
(WebCore::BorderData::isEquivalentForPainting const):
* Source/WebCore/rendering/style/BorderData.h:
* Source/WebCore/rendering/style/SVGRenderStyle.cpp:
(WebCore::SVGRenderStyle::changeRequiresRepaint const):
* Source/WebCore/rendering/style/StyleBackgroundData.cpp:
(WebCore::StyleBackgroundData::isEquivalentForPainting const):
(WebCore::StyleBackgroundData::containsCurrentColor const):
* Source/WebCore/rendering/style/StyleBackgroundData.h:
Canonical link: https://commits.webkit.org/294476@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes