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

Unified Diff: sky/engine/core/rendering/RenderCustomLayout.cpp

Issue 1055263002: Make custom layout actually work. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/rendering/RenderCustomLayout.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/rendering/RenderCustomLayout.cpp
diff --git a/sky/engine/core/rendering/RenderCustomLayout.cpp b/sky/engine/core/rendering/RenderCustomLayout.cpp
index bc6ba6e33841fe42c7d11b0b0b8e5b5055ba025e..5f55b5f51eee844ce168134df93075577ca96942 100644
--- a/sky/engine/core/rendering/RenderCustomLayout.cpp
+++ b/sky/engine/core/rendering/RenderCustomLayout.cpp
@@ -21,13 +21,6 @@ RenderCustomLayout::~RenderCustomLayout()
void RenderCustomLayout::layout()
{
- // TODO(ojan): This should really be done by the author code, but
- // if the author code doesn't call layout, then we won't clear the
- // needsLayout bit and we'll assert.
- for (RenderBox* child = firstChildBox(); child; child = child->nextSiblingBox()) {
- child->layoutIfNeeded();
- }
-
ASSERT(node()->isElementNode());
toElement(node())->layoutManager()->handleEvent();
clearNeedsLayout();
« no previous file with comments | « sky/engine/core/rendering/RenderCustomLayout.h ('k') | sky/engine/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698