commit | a433f2a6c2f608e49bcfc435b548c8ef1175715d | [log] [tgz] |
---|---|---|
author | philipj@opera.com <philipj@opera.com> | Thu Dec 04 14:43:09 2014 |
committer | philipj@opera.com <philipj@opera.com> | Thu Dec 04 14:43:09 2014 |
tree | b9dbfeee37250c71496888c4038eb4d80bad7655 | |
parent | b394a4d304a4d5e08b569e7493078eedba9dda40 [diff] |
Make getComputedStyle's pseudoElt argument nullable again The getComputedStyle IDL was synced with the spec in r186258: https://codereview.chromium.org/765123002 This caused a performance regression in a Dromaeo test: http://dromaeo.com/?jslib-style-jquery The likely cause is that jQuery passes null for the pseudoElt argument: https://github.com/jquery/jquery/search?q=getComputedStyle With a non-nullable pseudoElt, null is converted to "null", which makes a measurable difference. Make it nullable again to avoid the problem. There's no observable difference, because only a pseudoElt beginning with a : actually does anything. BUG=438109 Review URL: https://codereview.chromium.org/774243003 git-svn-id: svn://svn.chromium.org/blink/trunk@186514 bbb929c8-8fbe-4397-9dbb-9b2b20218538