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

Issue 269513002: readability review for luken (Closed)

Created:
6 years, 7 months ago by luken
Modified:
6 years, 6 months ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 239

Patch Set 2 : [WIP] - response to first round of comments #

Patch Set 3 : upload for wfh #

Patch Set 4 : [WIP] mostly there #

Patch Set 5 : first round of feedback done. #

Patch Set 6 : unit tests now hoist #

Patch Set 7 : work on Node/Record split. #

Patch Set 8 : checkpoint before templatizing #

Patch Set 9 : #

Patch Set 10 : uploading for read-through #

Patch Set 11 : ready for next round of feedbac #

Total comments: 167

Patch Set 12 : rebased #

Patch Set 13 : [WIP] checkpoint #

Patch Set 14 : #

Total comments: 111

Patch Set 15 : ready for next round of feedback, thanks #

Patch Set 16 : change Records typedef to vector #

Patch Set 17 : Remove*() returns a scoped ptr #

Total comments: 3

Patch Set 18 : switch to no owners #

Total comments: 54

Patch Set 19 : responding to latest round of feedback, thanks #

Total comments: 2

Patch Set 20 : some clang fixes #

Patch Set 21 : clang repairs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1767 lines, -1525 lines) Patch
M ui/gfx/geometry/r_tree.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +141 lines, -257 lines 0 comments Download
D ui/gfx/geometry/r_tree.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -750 lines 0 comments Download
A ui/gfx/geometry/r_tree_base.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +309 lines, -0 lines 0 comments Download
A ui/gfx/geometry/r_tree_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +658 lines, -0 lines 0 comments Download
M ui/gfx/geometry/r_tree_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 14 chunks +643 lines, -506 lines 0 comments Download
M ui/gfx/gfx.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +6 lines, -4 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 6 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
luken
6 years, 7 months ago (2014-04-30 21:36:01 UTC) #1
luken
6 years, 7 months ago (2014-04-30 23:00:35 UTC) #2
Peter Kasting
FYI, the original change here is pretty long (1910 lines including tests in the .h ...
6 years, 7 months ago (2014-04-30 23:09:21 UTC) #3
luken
Thanks for taking a look at this. Would it make sense to limit the scope ...
6 years, 7 months ago (2014-04-30 23:20:18 UTC) #4
Peter Kasting
On 2014/04/30 23:20:18, luken wrote: > Would it make sense to limit the scope to ...
6 years, 7 months ago (2014-04-30 23:21:14 UTC) #5
Peter Kasting
Thanks for participating in the readability process, especially as a Chrome contributor, where the Google ...
6 years, 7 months ago (2014-05-02 18:04:57 UTC) #6
luken
PTAL, thanks for taking so much time and giving this such careful attention and feedback! ...
6 years, 7 months ago (2014-05-08 00:00:07 UTC) #7
Peter Kasting
(Replies to particular responses you had) https://codereview.chromium.org/269513002/diff/1/ui/gfx/geometry/r_tree.cc File ui/gfx/geometry/r_tree.cc (right): https://codereview.chromium.org/269513002/diff/1/ui/gfx/geometry/r_tree.cc#newcode185 ui/gfx/geometry/r_tree.cc:185: int least_area_enlargement = ...
6 years, 7 months ago (2014-05-08 18:08:21 UTC) #8
luken
PTAL https://codereview.chromium.org/269513002/diff/1/ui/gfx/geometry/r_tree.cc File ui/gfx/geometry/r_tree.cc (right): https://codereview.chromium.org/269513002/diff/1/ui/gfx/geometry/r_tree.cc#newcode185 ui/gfx/geometry/r_tree.cc:185: int least_area_enlargement = std::numeric_limits<int>::max(); On 2014/05/08 18:08:21, Peter ...
6 years, 7 months ago (2014-05-14 00:12:04 UTC) #9
Peter Kasting
Again, I have not reviewed the unittests. This seems saner than the old code. https://codereview.chromium.org/269513002/diff/200001/ui/gfx/geometry/r_tree.h ...
6 years, 7 months ago (2014-05-16 01:41:04 UTC) #10
luken
PTAL, thanks! https://codereview.chromium.org/269513002/diff/200001/ui/gfx/geometry/r_tree.h File ui/gfx/geometry/r_tree.h (right): https://codereview.chromium.org/269513002/diff/200001/ui/gfx/geometry/r_tree.h#newcode26 ui/gfx/geometry/r_tree.h:26: : RTreeBase(min_children, max_children) {} On 2014/05/16 01:41:05, ...
6 years, 7 months ago (2014-05-21 20:19:36 UTC) #11
Peter Kasting
(Have not re-reviewed, just replying to a few of your comments) https://codereview.chromium.org/269513002/diff/200001/ui/gfx/geometry/r_tree_base.h File ui/gfx/geometry/r_tree_base.h (right): ...
6 years, 7 months ago (2014-05-21 20:26:44 UTC) #12
luken
On 2014/05/21 20:26:44, Peter Kasting wrote: > (Have not re-reviewed, just replying to a few ...
6 years, 7 months ago (2014-05-21 22:50:33 UTC) #13
Peter Kasting
On 2014/05/21 22:50:33, luken wrote: > On 2014/05/21 20:26:44, Peter Kasting wrote: > > Yeah, ...
6 years, 7 months ago (2014-05-21 23:01:13 UTC) #14
Peter Kasting
This is getting pretty close. Most of the remaining comments are minor. I've now reviewed ...
6 years, 6 months ago (2014-05-29 00:32:25 UTC) #15
luken
PTAL, thanks https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree.h File ui/gfx/geometry/r_tree.h (right): https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree.h#newcode26 ui/gfx/geometry/r_tree.h:26: RTree(size_t min_children, size_t max_children); On 2014/05/29 00:32:26, ...
6 years, 6 months ago (2014-05-30 16:51:03 UTC) #16
Peter Kasting
https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_base.cc File ui/gfx/geometry/r_tree_base.cc (right): https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_base.cc#newcode624 ui/gfx/geometry/r_tree_base.cc:624: if (parent) { On 2014/05/30 16:51:04, luken wrote: > ...
6 years, 6 months ago (2014-05-30 18:51:17 UTC) #17
luken
https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_base.cc File ui/gfx/geometry/r_tree_base.cc (right): https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_base.cc#newcode624 ui/gfx/geometry/r_tree_base.cc:624: if (parent) { On 2014/05/30 18:51:18, Peter Kasting wrote: ...
6 years, 6 months ago (2014-05-30 19:23:38 UTC) #18
luken
https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_unittest.cc File ui/gfx/geometry/r_tree_unittest.cc (right): https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_unittest.cc#newcode625 ui/gfx/geometry/r_tree_unittest.cc:625: // This prevents a crash due to double-delete on ...
6 years, 6 months ago (2014-05-30 19:39:33 UTC) #19
Peter Kasting
https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_unittest.cc File ui/gfx/geometry/r_tree_unittest.cc (right): https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_unittest.cc#newcode625 ui/gfx/geometry/r_tree_unittest.cc:625: // This prevents a crash due to double-delete on ...
6 years, 6 months ago (2014-05-30 19:49:30 UTC) #20
luken
PTAL, thanks. https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_unittest.cc File ui/gfx/geometry/r_tree_unittest.cc (right): https://codereview.chromium.org/269513002/diff/250001/ui/gfx/geometry/r_tree_unittest.cc#newcode625 ui/gfx/geometry/r_tree_unittest.cc:625: // This prevents a crash due to ...
6 years, 6 months ago (2014-06-03 21:04:58 UTC) #21
Peter Kasting
(Re-review is still TBD) https://codereview.chromium.org/269513002/diff/310001/ui/gfx/geometry/r_tree_base.cc File ui/gfx/geometry/r_tree_base.cc (right): https://codereview.chromium.org/269513002/diff/310001/ui/gfx/geometry/r_tree_base.cc#newcode592 ui/gfx/geometry/r_tree_base.cc:592: InsertNode(reinsert_node.Pass(), highest_reinsert_level); On 2014/06/03 21:04:59, ...
6 years, 6 months ago (2014-06-03 21:20:57 UTC) #22
luken
https://codereview.chromium.org/269513002/diff/310001/ui/gfx/geometry/r_tree_base.cc File ui/gfx/geometry/r_tree_base.cc (right): https://codereview.chromium.org/269513002/diff/310001/ui/gfx/geometry/r_tree_base.cc#newcode592 ui/gfx/geometry/r_tree_base.cc:592: InsertNode(reinsert_node.Pass(), highest_reinsert_level); On 2014/06/03 21:20:57, Peter Kasting wrote: > ...
6 years, 6 months ago (2014-06-03 21:25:00 UTC) #23
Peter Kasting
I think this is pretty much done. No huge issues remain. Many of the things ...
6 years, 6 months ago (2014-06-03 23:52:19 UTC) #24
luken
PTAL, thanks https://codereview.chromium.org/269513002/diff/330001/ui/gfx/geometry/r_tree.h File ui/gfx/geometry/r_tree.h (right): https://codereview.chromium.org/269513002/diff/330001/ui/gfx/geometry/r_tree.h#newcode39 ui/gfx/geometry/r_tree.h:39: // that. On 2014/06/03 23:52:18, Peter Kasting ...
6 years, 6 months ago (2014-06-04 18:12:02 UTC) #25
Peter Kasting
(Re-review TBD) https://codereview.chromium.org/269513002/diff/330001/ui/gfx/geometry/r_tree_base.h File ui/gfx/geometry/r_tree_base.h (right): https://codereview.chromium.org/269513002/diff/330001/ui/gfx/geometry/r_tree_base.h#newcode68 ui/gfx/geometry/r_tree_base.h:68: const NodeBase* const_parent() const { return parent_; ...
6 years, 6 months ago (2014-06-04 18:21:39 UTC) #26
luken
ping, PTAL, thanks!
6 years, 6 months ago (2014-06-11 18:19:06 UTC) #27
Peter Kasting
On 2014/06/11 18:19:06, luken wrote: > ping, PTAL, thanks! Oops, this fell off my stack. ...
6 years, 6 months ago (2014-06-11 18:21:30 UTC) #28
Peter Kasting
LGTM. Congrats! Hopefully you feel like the end result here is a more readable, maintainable ...
6 years, 6 months ago (2014-06-11 18:58:56 UTC) #29
luken
Thanks for all your hard work on this review! I learned a lot. https://codereview.chromium.org/269513002/diff/350001/ui/gfx/geometry/r_tree_unittest.cc File ...
6 years, 6 months ago (2014-06-11 21:06:31 UTC) #30
luken
6 years, 6 months ago (2014-06-11 22:02:21 UTC) #31
sky
Rubber stamp LGTM
6 years, 6 months ago (2014-06-12 15:33:36 UTC) #32
luken
The CQ bit was checked by luken@chromium.org
6 years, 6 months ago (2014-06-12 16:12:18 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/luken@chromium.org/269513002/360001
6 years, 6 months ago (2014-06-12 16:18:14 UTC) #34
luken
The CQ bit was unchecked by luken@chromium.org
6 years, 6 months ago (2014-06-12 17:21:31 UTC) #35
luken
The CQ bit was checked by luken@chromium.org
6 years, 6 months ago (2014-06-12 18:05:12 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/luken@chromium.org/269513002/380001
6 years, 6 months ago (2014-06-12 18:10:10 UTC) #37
commit-bot: I haz the power
6 years, 6 months ago (2014-06-12 22:20:30 UTC) #38
Message was sent while issue was closed.
Change committed as 276827

Powered by Google App Engine
This is Rietveld 408576698