The only StyleBase subclass that ever goes into XSLStyleSheet::m_children is XSLImportRule, so let's be specific about that.
Created attachment 111438 [details] Proposed patch
Comment on attachment 111438 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=111438&action=review glorious, r=me > Source/WebCore/xml/XSLStyleSheetLibxslt.cpp:297 > + return child->document(); > } > + } else { > + xmlDocPtr result = import->styleSheet()->locateStylesheetSubResource(parentDoc, uri); > + if (result) > + return result; > } I would use continue at the end of if() and remove the else.
Comment on attachment 111438 [details] Proposed patch Attachment 111438 [details] did not pass qt-ews (qt): Output: http://queues.webkit.org/results/10120264
Committed r97751: <http://trac.webkit.org/changeset/97751>