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

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

Issue 1051713007: Revert "First iteration on custom layout." (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') | no next file » | 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
deleted file mode 100644
index bc6ba6e33841fe42c7d11b0b0b8e5b5055ba025e..0000000000000000000000000000000000000000
--- a/sky/engine/core/rendering/RenderCustomLayout.cpp
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sky/engine/config.h"
-#include "sky/engine/core/rendering/RenderCustomLayout.h"
-
-#include "sky/engine/core/rendering/RenderLayer.h"
-#include "sky/engine/core/layout/LayoutCallback.h"
-
-namespace blink {
-
-RenderCustomLayout::RenderCustomLayout(ContainerNode* node)
- : RenderBlock(node)
-{
-}
-
-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();
-}
-
-const char* RenderCustomLayout::renderName() const
-{
- return "RenderCustomLayout";
-}
-
-} // namespace blink
-
« no previous file with comments | « sky/engine/core/rendering/RenderCustomLayout.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698