From a8ba16ddab3291e59a33b36405462094f8cdf5bc Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Sun, 8 Sep 2019 22:24:28 +0800 Subject: ... --- src/ui/render/render_object.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/ui/render/render_object.cpp') diff --git a/src/ui/render/render_object.cpp b/src/ui/render/render_object.cpp index 3cb7e4df..a083403b 100644 --- a/src/ui/render/render_object.cpp +++ b/src/ui/render/render_object.cpp @@ -1,6 +1,6 @@ #include "cru/ui/render/render_object.hpp" -#include "cru/platform/debug.hpp" +#include "cru/common/logger.hpp" #include #include @@ -54,13 +54,13 @@ void RenderObject::OnMeasureCore(const Size& available_size) { auto coerced_margin_padding_size = margin_padding_size; if (coerced_margin_padding_size.width > available_size.width) { - platform::DebugMessage( + log::Warn( L"Measure: horizontal length of padding and margin is bigger than " L"available length."); coerced_margin_padding_size.width = available_size.width; } if (coerced_margin_padding_size.height > available_size.height) { - platform::DebugMessage( + log::Warn( L"Measure: vertical length of padding and margin is bigger than " L"available length."); coerced_margin_padding_size.height = available_size.height; @@ -82,13 +82,13 @@ void RenderObject::OnLayoutCore(const Rect& rect) { auto coerced_content_available_size = content_available_size; if (coerced_content_available_size.width < 0) { - platform::DebugMessage( + log::Warn( L"Layout: horizontal length of padding and margin is bigger than " L"available length."); coerced_content_available_size.width = 0; } if (coerced_content_available_size.height < 0) { - platform::DebugMessage( + log::Warn( L"Layout: vertical length of padding and margin is bigger than " L"available length."); coerced_content_available_size.height = 0; -- cgit v1.2.3