Meta: Update debugging stuff
This commit is contained in:
parent
d9b835cea3
commit
04a602bb3b
1 changed files with 5 additions and 2 deletions
|
@ -988,6 +988,9 @@ U0 @apply_attribute_values_to_node(@html_dom_node* node)
|
||||||
node->textAlign = CSS_TEXT_ALIGN_CENTER;
|
node->textAlign = CSS_TEXT_ALIGN_CENTER;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JsonArray* text_align_values = Json.Parse("[\"left\",\"center\",\"right\"]", erythros_mem_task);
|
||||||
|
JsonArray* display_values = Json.Parse("[\"none\",\"block\",\"inline\",\"inline-block\"]", erythros_mem_task);
|
||||||
|
|
||||||
U0 @render_node_list(@html_dom_node* node, HtmlRenderer* renderer)
|
U0 @render_node_list(@html_dom_node* node, HtmlRenderer* renderer)
|
||||||
{
|
{
|
||||||
if (!node || !renderer)
|
if (!node || !renderer)
|
||||||
|
@ -1014,8 +1017,8 @@ U0 @render_node_list(@html_dom_node* node, HtmlRenderer* renderer)
|
||||||
if (renderer->debug && StrICmp(node->tagName, "InternalTextNode")) {
|
if (renderer->debug && StrICmp(node->tagName, "InternalTextNode")) {
|
||||||
for (i = 0; i < renderer->indent; i++)
|
for (i = 0; i < renderer->indent; i++)
|
||||||
" ";
|
" ";
|
||||||
"<%s> textAlign: %d, width: %d, height: %d, bg: #0x%06x, color: #0x%06x, fontFamily: '%s', fontSize: %d, fontWeight: %d, display: %d\n",
|
"<%s> class: '%s', textAlign: %s, width: %d, height: %d, bg: #0x%06x, color: #0x%06x, fontFamily: '%s', fontSize: %d, fontWeight: %d, display: %s\n", node->tagName, T(node->attributes->@("class"), node->attributes->@("class"), ""),
|
||||||
node->tagName, node->textAlign, node->width, node->height, node->backgroundColor, node->color, node->fontFamily, node->fontSize, node->fontWeight, node->display;
|
text_align_values->@(node->textAlign), node->width, node->height, node->backgroundColor, node->color, node->fontFamily, node->fontSize, node->fontWeight, display_values->@(node->display);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Insert a block widget for the element's opening tag
|
// Insert a block widget for the element's opening tag
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue