Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 4b927e49756cc0415a795b42b81fc9ab95c5813d
https://github.com/WebKit/WebKit/commit/4b927e49756cc0415a795b42b81fc9ab95c5813d
Author: Anne van Kesteren <[email protected]>
Date: 2026-04-05 (Sun, 05 Apr 2026)
Changed paths:
M Source/WebCore/dom/Element.cpp
M Source/WebCore/dom/Element.h
M Source/WebCore/html/HTMLOptionElement.cpp
M Source/WebCore/html/HTMLOptionElement.h
Log Message:
-----------
Remove HTMLOptionElement::willResetComputedStyle()
https://bugs.webkit.org/show_bug.cgi?id=311524
Reviewed by Chris Dumez.
Back in 2011, we had bug 49790 about the background property not
working for <option>s when set through script. This was fixed in
67043@main through a repaint() hack. And a regression test was added
that's still functional and passing:
fast/repaint/select-option-background-color.html
In 2012 bug 100397 performed some refactoring and added a FIXME.
In 2014 bug 135938 there was more refactoring creating the current
setup.
With the way we handle style invalidation today this workaround appears
no longer to be needed.
Canonical link: https://commits.webkit.org/310623@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications