DescriptionMerge 97745 - REGRESSION(r97248): :visited as descendant selector broken
https://bugs.webkit.org/show_bug.cgi?id=70122
Source/WebCore:
Reviewed by Nikolas Zimmerman.
Make ":visited foo" and similar selectors work correctly again. They can affect
the visited style of an element inside a visited link.
Test: fast/selectors/visited-descendant.html
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyDeclarations):
Apply visited style to children of visited links too.
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkSelector):
Don't disable visited matching until we run into first ancestor link or use combinator other than child/descendant.
(WebCore::SelectorChecker::determineLinkMatchType):
Look into child/descendant component selectors too to determine the link match type.
LayoutTests:
Reviewed by Nikolas Zimmerman.
* fast/selectors/visited-descendant.html: Added.
* platform/mac/fast/selectors/visited-descendant-expected.txt: Added.
TBR=tkent@chromium.org
BUG=crbug.com/101023
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=98067
Patch Set 1 #
Messages
Total messages: 1 (0 generated)
|