aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/TextRenderObject.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-11-22 16:55:53 +0800
committerYuqian Yang <crupest@crupest.life>2025-11-22 16:55:53 +0800
commit7ce185d5a3fcfad8c8f746f95f3d50a8829faac4 (patch)
treec1f00529a1286748836332b62ae79404b3a83f36 /src/ui/render/TextRenderObject.cpp
parentd97c14a922b60e89a9892e519b95b7e793aff543 (diff)
downloadcru-7ce185d5a3fcfad8c8f746f95f3d50a8829faac4.tar.gz
cru-7ce185d5a3fcfad8c8f746f95f3d50a8829faac4.tar.bz2
cru-7ce185d5a3fcfad8c8f746f95f3d50a8829faac4.zip
Clean codes. Remove Measure1.
Diffstat (limited to 'src/ui/render/TextRenderObject.cpp')
-rw-r--r--src/ui/render/TextRenderObject.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/ui/render/TextRenderObject.cpp b/src/ui/render/TextRenderObject.cpp
index 3af08e49..b9ab8dd9 100644
--- a/src/ui/render/TextRenderObject.cpp
+++ b/src/ui/render/TextRenderObject.cpp
@@ -226,17 +226,6 @@ Size TextRenderObject::OnMeasureContent(const MeasureRequirement& requirement,
return result;
}
-Size TextRenderObject::OnMeasureContent1(const BoxConstraint& constraint) {
- text_layout_->SetMaxWidth(constraint.max.width);
- text_layout_->SetMaxHeight(std::numeric_limits<float>::max());
-
- const Size text_size(
- text_layout_->GetTextBounds(is_measure_including_trailing_space_)
- .GetRightBottom());
-
- return constraint.Coerce(text_size);
-}
-
void TextRenderObject::OnLayoutContent(const Rect& content_rect) {
CRU_UNUSED(content_rect)
}