mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-09 20:52:54 +00:00
LibHTML: Rename ComputedStyle to BoxModelMetrics
There was nothing left in ComputedStyle except the box model metrics, so this patch gives it a more representative name. Note that style information is fetched directly from StyleProperties, which is basically the CSS property name/value pairs that apply to an element.
This commit is contained in:
parent
7bc9310170
commit
9c0e9a1a20
Notes:
sideshowbarker
2024-07-19 11:49:23 +09:00
Author: https://github.com/awesomekling
Commit: 9c0e9a1a20
7 changed files with 44 additions and 44 deletions
|
@ -62,23 +62,23 @@ void dump_tree(const LayoutNode& layout_node)
|
|||
|
||||
// Dump the horizontal box properties
|
||||
dbgprintf(" [%d+%d+%d %d %d+%d+%d]",
|
||||
layout_node.style().margin().left.to_px(),
|
||||
layout_node.style().border().left.to_px(),
|
||||
layout_node.style().padding().left.to_px(),
|
||||
layout_node.box_model().margin().left.to_px(),
|
||||
layout_node.box_model().border().left.to_px(),
|
||||
layout_node.box_model().padding().left.to_px(),
|
||||
layout_node.rect().width(),
|
||||
layout_node.style().padding().right.to_px(),
|
||||
layout_node.style().border().right.to_px(),
|
||||
layout_node.style().margin().right.to_px());
|
||||
layout_node.box_model().padding().right.to_px(),
|
||||
layout_node.box_model().border().right.to_px(),
|
||||
layout_node.box_model().margin().right.to_px());
|
||||
|
||||
// And the vertical box properties
|
||||
dbgprintf(" [%d+%d+%d %d %d+%d+%d]",
|
||||
layout_node.style().margin().top.to_px(),
|
||||
layout_node.style().border().top.to_px(),
|
||||
layout_node.style().padding().top.to_px(),
|
||||
layout_node.box_model().margin().top.to_px(),
|
||||
layout_node.box_model().border().top.to_px(),
|
||||
layout_node.box_model().padding().top.to_px(),
|
||||
layout_node.rect().height(),
|
||||
layout_node.style().padding().bottom.to_px(),
|
||||
layout_node.style().border().bottom.to_px(),
|
||||
layout_node.style().margin().bottom.to_px());
|
||||
layout_node.box_model().padding().bottom.to_px(),
|
||||
layout_node.box_model().border().bottom.to_px(),
|
||||
layout_node.box_model().margin().bottom.to_px());
|
||||
|
||||
dbgprintf("\n");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue