Changeset 177232 in webkit


Ignore:
Timestamp:
Dec 12, 2014, 1:05:07 PM (11 years ago)
Author:
benjamin@webkit.org
Message:

Remove the concept of simple selector from the parser
https://bugs.webkit.org/show_bug.cgi?id=139575

Patch by Benjamin Poulain <bpoulain@apple.com> on 2014-12-12
Reviewed by Mark Lam.

We have complete support for nested selector list, we no longer
need the old concept of simple selector.

  • css/CSSParserValues.cpp:

(WebCore::CSSParserSelector::isSimple): Deleted.

  • css/CSSParserValues.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r177229 r177232  
     12014-12-12  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        Remove the concept of simple selector from the parser
     4        https://bugs.webkit.org/show_bug.cgi?id=139575
     5
     6        Reviewed by Mark Lam.
     7
     8        We have complete support for nested selector list, we no longer
     9        need the old concept of simple selector.
     10
     11        * css/CSSParserValues.cpp:
     12        (WebCore::CSSParserSelector::isSimple): Deleted.
     13        * css/CSSParserValues.h:
     14
    1152014-12-12  Antti Koivisto  <antti@apple.com>
    216
  • trunk/Source/WebCore/css/CSSParserValues.cpp

    r175621 r177232  
    282282}
    283283
    284 bool CSSParserSelector::isSimple() const
    285 {
    286     if (m_selector->selectorList() || m_selector->matchesPseudoElement())
    287         return false;
    288 
    289     if (!m_tagHistory)
    290         return true;
    291 
    292     if (m_selector->match() == CSSSelector::Tag) {
    293         // We can't check against anyQName() here because namespace may not be nullAtom.
    294         // Example:
    295         //     @namespace "http://www.w3.org/2000/svg";
    296         //     svg:not(:root) { ...
    297         if (m_selector->tagQName().localName() == starAtom)
    298             return m_tagHistory->isSimple();
    299     }
    300 
    301     return false;
    302 }
    303 
    304284static bool selectorListMatchesPseudoElement(const CSSSelectorList* selectorList)
    305285{
  • trunk/Source/WebCore/css/CSSParserValues.h

    r175446 r177232  
    219219    }
    220220
    221     bool isSimple() const;
    222221    bool hasShadowDescendant() const;
    223222    bool matchesPseudoElement() const;
Note: See TracChangeset for help on using the changeset viewer.