If an element has display:none we don't normally retain or even compute its style (as it is not rendered). If getComputedStyle is invoked for such element we resolve the style (along with any ancestors) and cache it separately to rare data. This path needs to work with slotted elements in shadow trees.
Created attachment 263296 [details] patch
Comment on attachment 263296 [details] patch Attachment 263296 [details] did not pass mac-ews (mac): Output: http://webkit-queues.webkit.org/results/296425 New failing tests: editing/style/apply-style-atomic.html
Created attachment 263302 [details] Archive of layout-test-results from ews103 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews103 Port: mac-mavericks Platform: Mac OS X 10.9.5
Comment on attachment 263296 [details] patch Attachment 263296 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.webkit.org/results/296412 New failing tests: editing/style/apply-style-atomic.html
Created attachment 263303 [details] Archive of layout-test-results from ews106 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews106 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Created attachment 263304 [details] patch
Comment on attachment 263304 [details] patch r=me
Comment on attachment 263304 [details] patch Clearing flags on attachment: 263304 Committed r191204: <http://trac.webkit.org/changeset/191204>
All reviewed patches have been landed. Closing bug.
This appears to have caused fast/forms/select-live-pseudo-selectors.html to crash on mac debug builds. http://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Fforms%2Fselect-live-pseudo-selectors.html
platform/mac/fast/objc/dom-html-select-live-pseudo-selectors.html is crashing as well on wk1 debug https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=platform%2Fmac%2Ffast%2Fobjc%2Fdom-html-select-live-pseudo-selectors.html
Created attachment 263428 [details] patch
https://trac.webkit.org/r191262