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

Issue 239703007: Rename Node::lastDescendant() / Node::highestAncestor() for clarity (Closed)

Created:
6 years, 8 months ago by Inactive
Modified:
6 years, 8 months ago
Reviewers:
adamk, eseidel
CC:
blink-reviews, sof, eae+blinkwatch, dglazkov+blink, adamk+blink_chromium.org, Inactive, rwlbuis
Visibility:
Public.

Description

Rename Node::lastDescendant() / Node::highestAncestor() for clarity Rename Node::lastDescendant() / Node::highestAncestor() to Node::lastDescendantOrSelf() / Node::highestAncestorOrSelf() for clarity. Previously, it was not obvious that these methods was returning the current Node if it has no descendant / ancestor. Callers interested in the last descendant per say should be using NodeTraversal::lastWithin(). Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171793

Patch Set 1 #

Patch Set 2 : Rename highestAncestor() as well #

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

Messages

Total messages: 6 (0 generated)
Inactive
Tiny rename to make the API less error-prone.
6 years, 8 months ago (2014-04-16 17:24:22 UTC) #1
Inactive
6 years, 8 months ago (2014-04-16 17:35:47 UTC) #2
adamk
Seems fine, lgtm
6 years, 8 months ago (2014-04-16 18:23:30 UTC) #3
Inactive
The CQ bit was checked by ch.dumez@samsung.com
6 years, 8 months ago (2014-04-16 18:24:32 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/239703007/20001
6 years, 8 months ago (2014-04-16 18:24:46 UTC) #5
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 18:44:14 UTC) #6
Message was sent while issue was closed.
Change committed as 171793

Powered by Google App Engine
This is Rietveld 408576698