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

Issue 54273007: Use more references in ContainerNode code (Closed)

Created:
7 years, 1 month ago by Inactive
Modified:
7 years, 1 month ago
Reviewers:
adamk
CC:
blink-reviews, nessy, philipj_slow, eae+blinkwatch, feature-media-reviews_chromium.org, dglazkov+blink, adamk+blink_chromium.org, vcarbune.chromium
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use more references in ContainerNode code Use more references in ContainerNode code instead of pointers when they cannot be null. This makes the code look safer and gets rid of unnecessary null checks. R=adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=161202

Patch Set 1 #

Patch Set 2 : Fix crashes #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -94 lines) Patch
M Source/core/dom/ContainerNode.h View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/dom/ContainerNode.cpp View 14 chunks +54 lines, -53 lines 0 comments Download
M Source/core/dom/Document.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/Document.cpp View 1 3 chunks +5 lines, -9 lines 0 comments Download
M Source/core/dom/Node.h View 1 2 chunks +5 lines, -5 lines 6 comments Download
M Source/core/dom/Node.cpp View 1 1 chunk +8 lines, -7 lines 0 comments Download
M Source/core/editing/ApplyStyleCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/editing/ReplaceNodeWithSpanCommand.cpp View 3 chunks +8 lines, -8 lines 0 comments Download
M Source/core/editing/markup.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLMediaElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/parser/HTMLConstructionSite.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/xml/XMLErrors.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
Inactive
https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h#newcode927 Source/core/dom/Node.h:927: inline bool operator!=(const Node& a, const PassRefPtr<Node>& b) { ...
7 years, 1 month ago (2013-11-01 18:43:17 UTC) #1
adamk
https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h#newcode927 Source/core/dom/Node.h:927: inline bool operator!=(const Node& a, const PassRefPtr<Node>& b) { ...
7 years, 1 month ago (2013-11-01 18:56:50 UTC) #2
Inactive
https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h#newcode927 Source/core/dom/Node.h:927: inline bool operator!=(const Node& a, const PassRefPtr<Node>& b) { ...
7 years, 1 month ago (2013-11-01 19:03:57 UTC) #3
adamk
https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h#newcode927 Source/core/dom/Node.h:927: inline bool operator!=(const Node& a, const PassRefPtr<Node>& b) { ...
7 years, 1 month ago (2013-11-01 19:07:09 UTC) #4
Inactive
https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h#newcode927 Source/core/dom/Node.h:927: inline bool operator!=(const Node& a, const PassRefPtr<Node>& b) { ...
7 years, 1 month ago (2013-11-01 19:39:01 UTC) #5
adamk
lgtm https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h File Source/core/dom/Node.h (right): https://codereview.chromium.org/54273007/diff/50001/Source/core/dom/Node.h#newcode927 Source/core/dom/Node.h:927: inline bool operator!=(const Node& a, const PassRefPtr<Node>& b) ...
7 years, 1 month ago (2013-11-01 20:10:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/54273007/50001
7 years, 1 month ago (2013-11-01 20:21:32 UTC) #7
commit-bot: I haz the power
7 years, 1 month ago (2013-11-01 21:25:40 UTC) #8
Message was sent while issue was closed.
Change committed as 161202

Powered by Google App Engine
This is Rietveld 408576698