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

Issue 331863003: Have NodeList::item() overrides return an Element* when appropriate (Closed)

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

Description

Have NodeList::item() overrides return an Element* when appropriate Have NodeList::item() overrides return an Element* when appropriate instead of a generic Node*. This makes it clear to callers that these are actually returning Elements and avoids unnecessary isElementNode() checks or casts that look unsafe. R=adamk@chromium.org, esprehn@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176239

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -14 lines) Patch
M Source/core/dom/LiveNodeList.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/NamedNodesCollection.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/NamedNodesCollection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/RadioNodeList.cpp View 3 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Inactive
6 years, 6 months ago (2014-06-14 03:53:03 UTC) #1
adamk
lgtm. Perhaps LiveNodeList and its subclasses should have "Element" in their name instead of "Node"? ...
6 years, 6 months ago (2014-06-16 20:29:18 UTC) #2
Inactive
On 2014/06/16 20:29:18, adamk wrote: > lgtm. Perhaps LiveNodeList and its subclasses should have "Element" ...
6 years, 6 months ago (2014-06-16 20:37:37 UTC) #3
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 6 months ago (2014-06-16 20:37:40 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/331863003/1
6 years, 6 months ago (2014-06-16 20:38:13 UTC) #5
commit-bot: I haz the power
6 years, 6 months ago (2014-06-16 20:41:36 UTC) #6
Message was sent while issue was closed.
Change committed as 176239

Powered by Google App Engine
This is Rietveld 408576698