Support invalidation for :in-range/:out-of-range master
authorantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 May 2022 15:15:06 +0000 (15:15 +0000)
committerantti@apple.com <antti@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 May 2022 15:15:06 +0000 (15:15 +0000)
commitc88a7cbbd18ed88fc7ff6b70b2643e4ebdd5b250
treef8eea51f90f06b0e3e59ae11a8848eadcef685ce
parent225e3dda6f57a05d3d9dc5b3f3bb786f778a2ab9
Support invalidation for :in-range/:out-of-range
https://bugs.webkit.org/show_bug.cgi?id=238902
<rdar://91718746>

Reviewed by Alan Bujtas.

* LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/input-pseudo-classes-in-has-expected.txt:

* Source/WebCore/html/InputType.cpp:
(WebCore::InputType::setValue):

No need to invalidate style unconditionally on value change anymore.
Use Style::PseudoClassChangeInvalidation for :in-range invalidation.

* Source/WebCore/html/SearchInputType.cpp:
(WebCore::SearchInputType::setValue):

Search cancel button style depends on emptiness of the value so invalidate that specifically.

* Source/WebCore/html/SearchInputType.h:

link: https://commits.webkit.org/250839@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/input-pseudo-classes-in-has-expected.txt
Source/WebCore/html/InputType.cpp
Source/WebCore/html/SearchInputType.cpp
Source/WebCore/html/SearchInputType.h