Changeset 177232 in webkit
- Timestamp:
- Dec 12, 2014, 1:05:07 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r177229 r177232 1 2014-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 1 15 2014-12-12 Antti Koivisto <antti@apple.com> 2 16 -
trunk/Source/WebCore/css/CSSParserValues.cpp
r175621 r177232 282 282 } 283 283 284 bool CSSParserSelector::isSimple() const285 {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 304 284 static bool selectorListMatchesPseudoElement(const CSSSelectorList* selectorList) 305 285 { -
trunk/Source/WebCore/css/CSSParserValues.h
r175446 r177232 219 219 } 220 220 221 bool isSimple() const;222 221 bool hasShadowDescendant() const; 223 222 bool matchesPseudoElement() const;
Note:
See TracChangeset
for help on using the changeset viewer.