mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This allows setting x/y/width/height directly on an element during a synchronous layout callback. At the moment, you can do dangerous things (e.g. change tree structure). In a followup patch we'll make that impossible via an IDL guard. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1023753007
25 lines
664 B
C++
25 lines
664 B
C++
// 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.
|
|
|
|
#ifndef SKY_ENGINE_CORE_RENDERING_RENDERCUSTOMLAYOUT_H_
|
|
#define SKY_ENGINE_CORE_RENDERING_RENDERCUSTOMLAYOUT_H_
|
|
|
|
#include "sky/engine/core/rendering/RenderBlock.h"
|
|
|
|
namespace blink {
|
|
|
|
class RenderCustomLayout : public RenderBlock {
|
|
public:
|
|
explicit RenderCustomLayout(ContainerNode* node);
|
|
virtual void layout() override;
|
|
const char* renderName() const;
|
|
|
|
protected:
|
|
virtual ~RenderCustomLayout();
|
|
};
|
|
|
|
} // namespace blink
|
|
|
|
#endif // SKY_ENGINE_CORE_RENDERING_RENDERCUSTOMLAYOUT_H_
|