Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(171)

Issue 774243003: Make getComputedStyle's pseudoElt argument nullable again (Closed)

Created:
6 years ago by philipj_slow
Modified:
6 years ago
CC:
arv+blink, blink-reviews, Inactive
Project:
blink
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186514

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M Source/core/frame/DOMWindow.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/frame/Window.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (2 generated)
philipj_slow
PTAL. If this fixes the performance regression I'll suggest the same change in the spec.
6 years ago (2014-12-04 10:03:37 UTC) #2
arv (Not doing code reviews)
LGTM
6 years ago (2014-12-04 13:55:58 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/774243003/1
6 years ago (2014-12-04 14:40:43 UTC) #5
commit-bot: I haz the power
6 years ago (2014-12-04 14:43:11 UTC) #6
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186514

Powered by Google App Engine
This is Rietveld 408576698