Don't recurse into non-rendered subtrees when computing style
https://bugs.webkit.org/show_bug.cgi?id=135844

Reviewed by Andreas Kling.

* style/StyleResolveTree.cpp:
(WebCore::Style::resetStyleForNonRenderedDescendants):
        
Do a simple reset of the style dirty bits and any computed style in non-renderer subtrees.

(WebCore::Style::attachRenderTree):
(WebCore::Style::resolveTree):
        
Don't recurse into descendants if the element does not create a renderer.
We didn't compute style anyway in such subtrees.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@172517 268f45cc-cd09-0410-ab3c-d52691b4dbfc