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

Issue 67473002: Have ElementTraversal / NodeTraversal's next() methods take a reference (Closed)

Created:
7 years, 1 month ago by Inactive
Modified:
7 years, 1 month ago
Reviewers:
adamk
CC:
blink-reviews, Steve Block, shans, webcomponents-bugzilla_chromium.org, eae+blinkwatch, Mike Lawther (Google), apavlov+blink_chromium.org, adamk+blink_chromium.org, pdr, rjwright, aandrey+blink_chromium.org, dino_apple.com, rwlbuis, Nils Barth (inactive), krit, caseq+blink_chromium.org, Nate Chapin, arv+blink, aboxhall, bemjb+rendering_chromium.org, yurys+blink_chromium.org, Timothy Loh, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, jchaffraix+rendering, devtools-reviews_chromium.org, Inactive, nessy, loislo+blink_chromium.org, zoltan1, philipj_slow, lushnikov+blink_chromium.org, feature-media-reviews_chromium.org, dmazzoni, darktears, haraken, dstockwell, alancutter (OOO until 2018), kojih, vcarbune.chromium, jsbell+bindings_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, leviw+renderwatch, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, f(malita), groby+blinkspell_chromium.org, chromiumbugtracker_adobe.com, Stephen Chennney, Eric Willigers
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Have ElementTraversal / NodeTraversal's next() methods take a reference Have ElementTraversal / NodeTraversal's next() methods take a reference instead of a pointer and the argument is expected to be non-null. This makes the code look safer. R=adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161835

Patch Set 1 #

Patch Set 2 : Rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -215 lines) Patch
M Source/bindings/v8/RetainedDOMInfo.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/v8/V8GCController.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/accessibility/AXNodeObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/accessibility/AXObject.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/accessibility/AXRenderObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/StyleInvalidationAnalysis.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/SharedStyleFinder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ContainerNode.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/Document.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/DocumentMarkerController.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/DocumentOrderedMap.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/ElementTraversal.h View 2 chunks +10 lines, -10 lines 0 comments Download
M Source/core/dom/LiveNodeList.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Node.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/NodeIterator.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/dom/NodeTraversal.h View 2 chunks +20 lines, -20 lines 0 comments Download
M Source/core/dom/Range.cpp View 5 chunks +6 lines, -6 lines 0 comments Download
M Source/core/dom/SelectorQuery.cpp View 10 chunks +11 lines, -11 lines 0 comments Download
M Source/core/dom/TreeScope.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/dom/TreeScopeAdopter.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/VisitedLinkState.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/shadow/ElementShadow.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/dom/shadow/ShadowRoot.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 8 chunks +16 lines, -13 lines 0 comments Download
M Source/core/editing/BreakBlockquoteCommand.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/editing/CompositeEditCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/DeleteSelectionCommand.cpp View 5 chunks +8 lines, -6 lines 0 comments Download
M Source/core/editing/EditingStyle.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/Editor.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/editing/FrameSelection.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M Source/core/editing/InsertParagraphSeparatorCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ReplaceSelectionCommand.cpp View 7 chunks +9 lines, -8 lines 0 comments Download
M Source/core/editing/SimplifyMarkupCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/SpellChecker.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/editing/TextIterator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/VisibleUnits.cpp View 1 2 chunks +7 lines, -6 lines 0 comments Download
M Source/core/editing/htmlediting.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/markup.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/FormAssociatedElement.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/FormAssociatedElement.cpp View 2 chunks +14 lines, -3 lines 0 comments Download
M Source/core/html/HTMLCollection.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLCollection.cpp View 7 chunks +26 lines, -22 lines 0 comments Download
M Source/core/html/HTMLDialogElement.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLElement.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFieldSetElement.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFormControlElement.h View 1 chunk +6 lines, -0 lines 0 comments Download
M Source/core/html/HTMLFormElement.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 1 3 chunks +9 lines, -9 lines 0 comments Download
M Source/core/html/HTMLLabelElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLegendElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMapElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLNameCollection.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLObjectElement.h View 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/html/HTMLOptionElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLTextFormControlElement.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/html/MediaDocument.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/forms/RadioInputType.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/track/TextTrackCue.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/inspector/InspectorDOMAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/FocusController.cpp View 4 chunks +5 lines, -5 lines 0 comments Download
M Source/core/page/TouchDisambiguation.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderNamedFlowThread.cpp View 2 chunks +4 lines, -5 lines 0 comments Download
M Source/core/svg/SVGSVGElement.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/svg/SVGUseElement.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/core/svg/animation/SMILTimeContainer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XPathNodeSet.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/xml/XPathStep.cpp View 4 chunks +4 lines, -4 lines 0 comments Download
M Source/core/xml/XPathUtil.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
Inactive
I am planning to update other ElementTraversal / NodeTraversal methods in follow-up patches for consistency. ...
7 years, 1 month ago (2013-11-08 23:04:30 UTC) #1
adamk
lgtm rs=me (didn't look at every single line of code but this change looks pretty ...
7 years, 1 month ago (2013-11-08 23:10:58 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/67473002/1
7 years, 1 month ago (2013-11-11 14:00:14 UTC) #3
commit-bot: I haz the power
Failed to apply patch for Source/core/editing/VisibleUnits.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 1 month ago (2013-11-11 14:00:54 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/67473002/80001
7 years, 1 month ago (2013-11-11 14:18:15 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/67473002/80001
7 years, 1 month ago (2013-11-12 16:57:05 UTC) #6
commit-bot: I haz the power
7 years, 1 month ago (2013-11-12 18:06:48 UTC) #7
Message was sent while issue was closed.
Change committed as 161835

Powered by Google App Engine
This is Rietveld 408576698