CSS general sibling selectors does not work without CSS JIT
authorbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Sep 2015 23:40:55 +0000 (23:40 +0000)
committerbenjamin@webkit.org <benjamin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Sep 2015 23:40:55 +0000 (23:40 +0000)
commitd718b7dee7e154de8e79c301264db76d60b08e8c
treef5ed23e6c02a9dd0ae99d395333634d79336108e
parent6680691815098b53d6305169862152f52af41956
CSS general sibling selectors does not work without CSS JIT
https://bugs.webkit.org/show_bug.cgi?id=148987
rdar://problem/22559860

Patch by Benjamin Poulain <bpoulain@apple.com> on 2015-09-09
Reviewed by Andreas Kling.

Source/WebCore:

When traversing with the indirect adjacent combinator, SelectorChecker
was not setting the style invalidation flag on the right element.

Tests: fast/css/indirect-adjacent-style-invalidation-1.html
       fast/css/indirect-adjacent-style-invalidation-2.html
       fast/css/indirect-adjacent-style-invalidation-3.html

* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::matchRecursively):

LayoutTests:

There are multiple variations of the same tests to test
cases where we JIT and cases without JIT.

* fast/css/indirect-adjacent-style-invalidation-1-expected.txt: Added.
* fast/css/indirect-adjacent-style-invalidation-1.html: Added.
* fast/css/indirect-adjacent-style-invalidation-2-expected.txt: Added.
* fast/css/indirect-adjacent-style-invalidation-2.html: Added.
* fast/css/indirect-adjacent-style-invalidation-3-expected.txt: Added.
* fast/css/indirect-adjacent-style-invalidation-3.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/css/indirect-adjacent-style-invalidation-1-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/indirect-adjacent-style-invalidation-1.html [new file with mode: 0644]
LayoutTests/fast/css/indirect-adjacent-style-invalidation-2-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/indirect-adjacent-style-invalidation-2.html [new file with mode: 0644]
LayoutTests/fast/css/indirect-adjacent-style-invalidation-3-expected.txt [new file with mode: 0644]
LayoutTests/fast/css/indirect-adjacent-style-invalidation-3.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/css/SelectorChecker.cpp