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

Issue 18978010: Setting up OrderIterator shouldn't require an extra Vector (Closed)

Created:
7 years, 5 months ago by Julien - ping for review
Modified:
7 years, 5 months ago
Reviewers:
cbiesinger, ojan
CC:
blink-reviews, dglazkov+blink, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering
Visibility:
Public.

Description

Setting up OrderIterator shouldn't require an extra Vector This change reuses the OrderIterator's Vector for fun and profit. The idea is to have an helper class OrderIteratorPopulator, used for manipulating the Vector directly. The helper class has the nice upside of consolidating the code into a single implementation across flexbox and grid. Also tweaked the Vector to have an inline capacity for a single entry that will cover the common case. BUG=256804 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=153971

Patch Set 1 #

Total comments: 4

Patch Set 2 : Updated after cbiesinger's review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -70 lines) Patch
M Source/core/rendering/OrderIterator.h View 2 chunks +28 lines, -2 lines 0 comments Download
M Source/core/rendering/OrderIterator.cpp View 1 3 chunks +43 lines, -31 lines 0 comments Download
M Source/core/rendering/RenderFlexibleBox.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderFlexibleBox.cpp View 1 3 chunks +6 lines, -18 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 2 chunks +2 lines, -18 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Julien - ping for review
Pretty different approach than https://codereview.chromium.org/18133003 but same result. Let me know what you think!
7 years, 5 months ago (2013-07-10 19:10:47 UTC) #1
cbiesinger
lgtm with the mentioned changes, lgtm. thanks!
7 years, 5 months ago (2013-07-10 19:35:26 UTC) #2
cbiesinger
https://codereview.chromium.org/18978010/diff/1/Source/core/rendering/OrderIterator.cpp File Source/core/rendering/OrderIterator.cpp (right): https://codereview.chromium.org/18978010/diff/1/Source/core/rendering/OrderIterator.cpp#newcode85 Source/core/rendering/OrderIterator.cpp:85: m_iterator.reset(); It feels weird to have this reset() call ...
7 years, 5 months ago (2013-07-10 19:35:32 UTC) #3
ojan
lgtm as well
7 years, 5 months ago (2013-07-10 20:48:38 UTC) #4
Julien - ping for review
Thanks for the reviews! https://codereview.chromium.org/18978010/diff/1/Source/core/rendering/OrderIterator.cpp File Source/core/rendering/OrderIterator.cpp (right): https://codereview.chromium.org/18978010/diff/1/Source/core/rendering/OrderIterator.cpp#newcode85 Source/core/rendering/OrderIterator.cpp:85: m_iterator.reset(); On 2013/07/10 19:35:32, cbiesinger ...
7 years, 5 months ago (2013-07-10 21:15:48 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jchaffraix@chromium.org/18978010/9001
7 years, 5 months ago (2013-07-10 21:16:07 UTC) #6
commit-bot: I haz the power
7 years, 5 months ago (2013-07-11 03:32:37 UTC) #7
Message was sent while issue was closed.
Change committed as 153971

Powered by Google App Engine
This is Rietveld 408576698