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

Issue 182053002: Have Node::highestAncestor() return a reference (Closed)

Created:
6 years, 9 months ago by Inactive
Modified:
6 years, 9 months ago
Reviewers:
adamk
CC:
blink-reviews, devtools-reviews_chromium.org, caseq+blink_chromium.org, alph+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, sof, eae+blinkwatch, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, adamk+blink_chromium.org, Inactive, aandrey+blink_chromium.org, rwlbuis
Visibility:
Public.

Description

Have Node::highestAncestor() return a reference Have Node::highestAncestor() return a reference instead of a pointer as it can never return null. This makes the calling code look safer. R=adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167964

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove ASSERT #

Patch Set 3 : Reupload #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -27 lines) Patch
M Source/core/dom/ContainerNode.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/dom/Node.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M Source/core/html/FormAssociatedElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/FormAssociatedElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFormElement.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 5 chunks +10 lines, -9 lines 0 comments Download
M Source/core/html/HTMLImageElement.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLImageElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/inspector/PageConsoleAgent.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/xml/XPathPath.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (0 generated)
Inactive
6 years, 9 months ago (2014-02-26 20:15:08 UTC) #1
adamk
lgtm, but I'd remove the referenced ASSERT, which imho adds unnecessary clutter. https://codereview.chromium.org/182053002/diff/1/Source/core/dom/ContainerNode.h File Source/core/dom/ContainerNode.h ...
6 years, 9 months ago (2014-02-26 20:37:23 UTC) #2
Inactive
https://codereview.chromium.org/182053002/diff/1/Source/core/dom/ContainerNode.h File Source/core/dom/ContainerNode.h (right): https://codereview.chromium.org/182053002/diff/1/Source/core/dom/ContainerNode.h#newcode252 Source/core/dom/ContainerNode.h:252: ASSERT(highest); On 2014/02/26 20:37:23, adamk wrote: > This ASSERT ...
6 years, 9 months ago (2014-02-26 21:00:01 UTC) #3
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 9 months ago (2014-02-26 21:00:05 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/182053002/40001
6 years, 9 months ago (2014-02-26 21:00:28 UTC) #5
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 03:21:46 UTC) #6
Message was sent while issue was closed.
Change committed as 167964

Powered by Google App Engine
This is Rietveld 408576698