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

Issue 148473003: Begin getting rid of the recursion in the various RenderObject methods (Closed)

Created:
6 years, 11 months ago by atreat
Modified:
6 years, 11 months ago
CC:
blink-reviews, bemjb+rendering_chromium.org, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, lgombos
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Begin getting rid of the recursion in the various RenderObject methods Begin getting rid of the recursion in the various RenderObject methods dealing with layout. Recursion is a common pattern found throughout the render tree and used indiscriminately when a non-recursive pattern would work just as well and the code is just as clean. BUG=331879 R=esprehn, eseidel Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165892

Patch Set 1 #

Total comments: 2

Patch Set 2 : Don't ascend to the root object! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -7 lines) Patch
M Source/core/rendering/RenderObject.cpp View 1 1 chunk +5 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
atreat
Please have a look. There are many more recursive utility methods throughout the render tree ...
6 years, 11 months ago (2014-01-27 20:13:07 UTC) #1
dsinclair
https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp#newcode289 Source/core/rendering/RenderObject.cpp:289: for (RenderObject *object = this; object; object = object->nextInPreOrder()) ...
6 years, 11 months ago (2014-01-27 20:21:55 UTC) #2
esprehn
https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp#newcode289 Source/core/rendering/RenderObject.cpp:289: for (RenderObject *object = this; object; object = object->nextInPreOrder()) ...
6 years, 11 months ago (2014-01-27 20:44:37 UTC) #3
atreat
On 2014/01/27 20:44:37, esprehn wrote: > https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp > File Source/core/rendering/RenderObject.cpp (right): > > https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp#newcode289 > ...
6 years, 11 months ago (2014-01-27 20:48:00 UTC) #4
atreat
On 2014/01/27 20:21:55, dsinclair wrote:I'm not > sure I'd have realized (assuming I hadn't seen ...
6 years, 11 months ago (2014-01-27 20:49:16 UTC) #5
dsinclair
On 2014/01/27 20:49:16, atreat wrote: > On 2014/01/27 20:21:55, dsinclair wrote:I'm not > > sure ...
6 years, 11 months ago (2014-01-27 20:55:06 UTC) #6
atreat
On 2014/01/27 20:44:37, esprehn wrote: > https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp > File Source/core/rendering/RenderObject.cpp (right): > > https://codereview.chromium.org/148473003/diff/1/Source/core/rendering/RenderObject.cpp#newcode289 > ...
6 years, 11 months ago (2014-01-27 20:57:43 UTC) #7
esprehn
lgtm
6 years, 11 months ago (2014-01-27 21:06:32 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/148473003/2
6 years, 11 months ago (2014-01-27 21:08:42 UTC) #9
atreat
On 2014/01/27 20:55:06, dsinclair wrote: > On 2014/01/27 20:49:16, atreat wrote: > > On 2014/01/27 ...
6 years, 11 months ago (2014-01-27 21:12:15 UTC) #10
dsinclair
On 2014/01/27 21:12:15, atreat wrote: > On 2014/01/27 20:55:06, dsinclair wrote: > > On 2014/01/27 ...
6 years, 11 months ago (2014-01-27 21:19:50 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/adam.treat@samsung.com/148473003/2
6 years, 11 months ago (2014-01-28 00:02:06 UTC) #12
commit-bot: I haz the power
6 years, 11 months ago (2014-01-28 00:12:16 UTC) #13
Message was sent while issue was closed.
Change committed as 165892

Powered by Google App Engine
This is Rietveld 408576698