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

Issue 337963002: Remove inefficiency from HTMLCollection::namedItems() (Closed)

Created:
6 years, 6 months ago by Inactive
Modified:
6 years, 6 months ago
Reviewers:
esprehn, adamk
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Project:
blink
Visibility:
Public.

Description

Remove inefficiency from HTMLCollection::namedItems() Remove inefficiency from HTMLCollection::namedItems(). The code was unnecessarily checking that the pointers were non-null for every iteration of the for loops. This CL updates the code so that the null check is done only once. R=esprehn@chromium.org, adamk@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176247

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M Source/core/html/HTMLCollection.cpp View 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Inactive
6 years, 6 months ago (2014-06-16 00:41:05 UTC) #1
adamk
lgtm
6 years, 6 months ago (2014-06-16 20:15:55 UTC) #2
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-16 20:17:48 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/337963002/1
6 years, 6 months ago (2014-06-16 20:18:36 UTC) #4
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 22:21:07 UTC) #5
Message was sent while issue was closed.
Change committed as 176247

Powered by Google App Engine
This is Rietveld 408576698