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

Issue 752723004: Use references in RenderBlock and RenderBlockFlow methods (Closed)

Created:
6 years ago by Sunil Ratnu
Modified:
6 years ago
CC:
blink-reviews, blink-reviews-rendering, cbiesinger, eae+blinkwatch, jchaffraix+rendering, jfernandez, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, Manuel Rego, svillar, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Use references in RenderBlock and RenderBlockFlow methods RenderBlock and RenderBlockFlow has several methods that take pointers but those methods assumes that the objects will never be NULL. We should replace them by references. This makes the caller code safer. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186114

Patch Set 1 #

Total comments: 8

Patch Set 2 : cover RenderBlockFlow class as well #

Unified diffs Side-by-side diffs Delta from patch set Stats (+281 lines, -280 lines) Patch
M Source/core/rendering/RenderBlock.h View 3 chunks +16 lines, -16 lines 0 comments Download
M Source/core/rendering/RenderBlock.cpp View 1 7 chunks +24 lines, -24 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.h View 1 6 chunks +24 lines, -24 lines 0 comments Download
M Source/core/rendering/RenderBlockFlow.cpp View 1 51 chunks +153 lines, -153 lines 0 comments Download
M Source/core/rendering/RenderBlockLineLayout.cpp View 1 10 chunks +14 lines, -14 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/rendering/RenderFieldset.cpp View 1 3 chunks +12 lines, -11 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 8 chunks +9 lines, -9 lines 0 comments Download
M Source/core/rendering/RenderTable.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderTable.cpp View 1 3 chunks +11 lines, -11 lines 0 comments Download
M Source/core/rendering/line/BreakingContextInlineHeaders.h View 1 5 chunks +5 lines, -5 lines 0 comments Download
M Source/core/rendering/line/LineBreaker.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/shapes/ShapeOutsideInfo.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Sunil Ratnu
Please review this. Thanks! Sunil
6 years ago (2014-11-26 03:43:03 UTC) #2
rwlbuis
On 2014/11/26 03:43:03, Sunil Ratnu wrote: > Please review this. > > Thanks! > Sunil ...
6 years ago (2014-11-26 17:07:57 UTC) #3
Sunil Ratnu
On 2014/11/26 17:07:57, rwlbuis wrote: > On 2014/11/26 03:43:03, Sunil Ratnu wrote: > > Please ...
6 years ago (2014-11-26 17:24:55 UTC) #4
Julien - ping for review
The change lgtm but the line drawn seems arbitrary: a lot of the callers to ...
6 years ago (2014-11-26 18:52:36 UTC) #5
Sunil Ratnu
Thanks for the review Julien. I had thought of only making the changes in RenderBlock ...
6 years ago (2014-11-27 12:02:55 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/752723004/20001
6 years ago (2014-11-27 12:11:47 UTC) #8
commit-bot: I haz the power
6 years ago (2014-11-27 13:13:05 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186114

Powered by Google App Engine
This is Rietveld 408576698