From b3db10520f8920deadf1321a90b9ada01c724f92 Mon Sep 17 00:00:00 2001 From: andycall Date: Wed, 27 Nov 2024 05:32:51 +0800 Subject: [PATCH] fix: fix text layout error. --- webf/lib/src/rendering/text.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webf/lib/src/rendering/text.dart b/webf/lib/src/rendering/text.dart index 45789138ee..13210d2690 100644 --- a/webf/lib/src/rendering/text.dart +++ b/webf/lib/src/rendering/text.dart @@ -80,7 +80,7 @@ class RenderTextBox extends RenderBox with RenderObjectWithChildMixin // Refs: // https://github.com/WebKit/WebKit/blob/6a970b217d59f36e64606ed03f5238d572c23c48/Source/WebCore/layout/inlineformatting/InlineLineBuilder.cpp#L295 RenderObject? previousSibling; - if (parent is RenderBoxModel) { + if (parent is RenderLayoutBox) { previousSibling = (parentData as RenderLayoutParentData).previousSibling; } @@ -99,7 +99,7 @@ class RenderTextBox extends RenderBox with RenderObjectWithChildMixin } RenderObject? nextSibling; - if (parent is RenderBoxModel) { + if (parent is RenderLayoutBox) { nextSibling = (parentData as RenderLayoutParentData).nextSibling; }