• dglazkov@chromium.org's avatar
    Remove unbaked support for :scope pseudo-class. · 2f0a4c13
    dglazkov@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=97467
    
    Reviewed by Antti Koivisto.
    
    It turns out, the Selectors 4 require ":scope" to match contextual reference element set, which would be the root node in querySelector:
    http://dev.w3.org/csswg/selectors4/#the-scope-pseudo
    
    Right now, we simply make ":scope" equivalent to ":root", which is not correct. Let's remove the partial implementation until we have
    time/energy to fully implement it.
    
    Source/WebCore:
    
    No new tests, removing half-baked feature.
    
    * css/CSSSelector.cpp:
    (WebCore::CSSSelector::pseudoId): Removed all mentions of PseudoScope
    (WebCore::nameToPseudoTypeMap): Ditto.
    (WebCore::CSSSelector::extractPseudoType): Ditto.
    * css/CSSSelector.h: Ditto.
    * css/SelectorChecker.cpp:
    (WebCore::SelectorChecker::checkOneSelector): Ditto.
    
    LayoutTests:
    
    * fast/css/style-scoped/scope-pseudo-expected.txt: Removed.
    * fast/css/style-scoped/scope-pseudo.html: Removed.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2f0a4c13
ChangeLog 4.18 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.