Valentin Shergin cb48fa4d49 Fabric: LayoutContext::affectedShadowNodes was removed
Summary:
Apparently, we don't need this functionality in Fabric because we compute mutation instactions during diffing anyways.
But we still need (will need) `LayoutContext` for sure.

Reviewed By: mdvacca

Differential Revision: D7857045

fbshipit-source-id: 4be2744d9abea473ead847f35f698104f94af33d
2018-05-08 23:03:35 -07:00

31 lines
639 B
C++

/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
#include <unordered_set>
#include <fabric/core/LayoutableShadowNode.h>
#include <fabric/graphics/Geometry.h>
namespace facebook {
namespace react {
/*
* LayoutContext: Additional contextual information useful for particular
* layout approaches.
*/
struct LayoutContext {
/*
* Compound absolute position of the node relative to the root node.
*/
Point absolutePosition {0, 0};
};
} // namespace react
} // namespace facebook