Implement the matching for :nth-last-child(An+B of selector-list)
Created attachment 241411 [details] Patch
Comment on attachment 241411 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241411&action=review r=me > Source/WebCore/dom/Node.cpp:678 > + if (is<Element>(ancestor) && downcast<Element>(ancestor)->childrenAffectedByPropertyBasedBackwardPositionalRules()) { is<Element>(ancestor) will do an unnecessary null check here; you probably want is<Element>(*ancestor)
Committed r176084: <http://trac.webkit.org/changeset/176084>
Comment on attachment 241411 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=241411&action=review >> Source/WebCore/dom/Node.cpp:678 >> + if (is<Element>(ancestor) && downcast<Element>(ancestor)->childrenAffectedByPropertyBasedBackwardPositionalRules()) { > > is<Element>(ancestor) will do an unnecessary null check here; you probably want is<Element>(*ancestor) yes, and we usually do downcast<Element>(*ancestor).xxx() as well.