aboutsummaryrefslogtreecommitdiff
path: root/src/ui/render/RenderObject.cpp
diff options
context:
space:
mode:
authorYuqian Yang <crupest@crupest.life>2025-08-18 18:38:10 +0800
committerYuqian Yang <crupest@crupest.life>2025-08-18 18:38:10 +0800
commitb53780b2106b0f233c48e27653336b8a629ca486 (patch)
treee5e2659eb23852012804e9ba8a290a8e19d8230f /src/ui/render/RenderObject.cpp
parentd3568fb844c7b9ea59783b04899dbd94ad972b91 (diff)
downloadcru-b53780b2106b0f233c48e27653336b8a629ca486.tar.gz
cru-b53780b2106b0f233c48e27653336b8a629ca486.tar.bz2
cru-b53780b2106b0f233c48e27653336b8a629ca486.zip
Rename CRU_LOG_* to CRU_LOG_TAG_*.
Diffstat (limited to 'src/ui/render/RenderObject.cpp')
-rw-r--r--src/ui/render/RenderObject.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/render/RenderObject.cpp b/src/ui/render/RenderObject.cpp
index 64411036..b3a28d6d 100644
--- a/src/ui/render/RenderObject.cpp
+++ b/src/ui/render/RenderObject.cpp
@@ -119,7 +119,7 @@ void RenderObject::Measure(const MeasureRequirement& requirement,
preferred_size.OverrideBy(preferred_size_);
if constexpr (cru::ui::debug_flags::layout) {
- CRU_LOG_DEBUG(u"{} Measure begins :\nrequirement: {}\npreferred size: {}",
+ CRU_LOG_TAG_DEBUG(u"{} Measure begins :\nrequirement: {}\npreferred size: {}",
this->GetDebugPathInTree(), requirement.ToDebugString(),
preferred_size.ToDebugString());
}
@@ -127,7 +127,7 @@ void RenderObject::Measure(const MeasureRequirement& requirement,
desired_size_ = OnMeasureCore(merged_requirement, merged_preferred_size);
if constexpr (cru::ui::debug_flags::layout) {
- CRU_LOG_DEBUG(u"{} Measure ends :\nresult size: {}",
+ CRU_LOG_TAG_DEBUG(u"{} Measure ends :\nresult size: {}",
this->GetDebugPathInTree(), desired_size_);
}
@@ -144,7 +144,7 @@ Size RenderObject::Measure1(const BoxConstraint& constraint) {
void RenderObject::Layout(const Point& offset) {
if constexpr (cru::ui::debug_flags::layout) {
- CRU_LOG_DEBUG(u"{} Layout :\noffset: {} size: {}",
+ CRU_LOG_TAG_DEBUG(u"{} Layout :\noffset: {} size: {}",
this->GetDebugPathInTree(), offset, desired_size_);
}
offset_ = offset;
@@ -192,13 +192,13 @@ Size RenderObject::OnMeasureCore1(const BoxConstraint& constraint) {
if (space_size.width > merged_constraint.max.width) {
space_size.width = merged_constraint.max.width;
- CRU_LOG_WARN(u"{} space width is over constraint.max.width",
+ CRU_LOG_TAG_WARN(u"{} space width is over constraint.max.width",
this->GetDebugPathInTree());
}
if (space_size.height > merged_constraint.max.height) {
space_size.height = merged_constraint.max.height;
- CRU_LOG_WARN(u"{} space height is over constraint.max.height",
+ CRU_LOG_TAG_WARN(u"{} space height is over constraint.max.height",
this->GetDebugPathInTree());
}