mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
change add part to add child (#10787)
This commit is contained in:
parent
708fc625d7
commit
58f4f27a4e
@ -64,7 +64,7 @@ void SceneUpdateContext::CreateFrame(scenic::EntityNode entity_node,
|
||||
Layer* layer) {
|
||||
// Frames always clip their children.
|
||||
SetEntityNodeClipPlanes(entity_node, rrect.getBounds());
|
||||
// TODO(SCN-1274): AddPart() and SetClip() will be deleted.
|
||||
// TODO(SCN-1274): SetClip() will be deleted.
|
||||
entity_node.SetClip(0u, true /* clip to self */);
|
||||
|
||||
// We don't need a shape if the frame is zero size.
|
||||
@ -286,7 +286,7 @@ SceneUpdateContext::Transform::~Transform() {
|
||||
|
||||
SceneUpdateContext::Shape::Shape(SceneUpdateContext& context)
|
||||
: Entity(context), shape_node_(context.session()) {
|
||||
entity_node().AddPart(shape_node_);
|
||||
entity_node().AddChild(shape_node_);
|
||||
}
|
||||
|
||||
SceneUpdateContext::Frame::Frame(SceneUpdateContext& context,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user