-
commit-queue@webkit.org authored
CSS rules not being applied when a hidden field is inserted between an input[type=checkbox] and a label https://bugs.webkit.org/show_bug.cgi?id=66887 Patch by Kulanthaivel Palanichamy <kulanthaivel@codeaurora.org> on 2011-09-09 Reviewed by David Hyatt. Source/WebCore: Test: fast/css/adjacent-sibling-selector.html This patch addresses the problem of elements not getting their style recomputed when they are affected by direct adjacent sibling rules and one of their sibling in their corresponding rules is modified dynamically. * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::canShareStyleWithElement): (WebCore::parentStylePreventsSharing): * css/SelectorChecker.cpp: (WebCore::SelectorChecker::checkSelector): * dom/Element.cpp: (WebCore::Element::recalcStyle): (WebCore::checkForSiblingStyleChanges): * rendering/style/RenderStyle.cpp: (WebCore::RenderStyle::RenderStyle): * rendering/style/RenderStyle.h: (WebCore::InheritedFlags::affectedByDirectAdjacentRules): (WebCore::InheritedFlags::setAffectedByDirectAdjacentRules): LayoutTests: * fast/css/adjacent-sibling-selector-expected.txt: Added. * fast/css/adjacent-sibling-selector.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@94887 268f45cc-cd09-0410-ab3c-d52691b4dbfc
01754773