mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:17:42 +00:00
LibWeb: Rename LayoutNode::style() => specified_style()
Let's make way for a slightly-more-cooked style() that will eventually replace the raw specified_style() for layout and paint purposes.
This commit is contained in:
parent
90edaabc4b
commit
5e83a97fa2
17 changed files with 53 additions and 53 deletions
|
@ -65,7 +65,7 @@ void LineBox::trim_trailing_whitespace()
|
|||
return;
|
||||
auto& last_fragment = m_fragments.last();
|
||||
|
||||
int space_width = last_fragment.layout_node().style().font().glyph_width(' ');
|
||||
int space_width = last_fragment.layout_node().specified_style().font().glyph_width(' ');
|
||||
while (last_fragment.length() && isspace(last_text[last_fragment.length() - 1])) {
|
||||
last_fragment.m_length -= 1;
|
||||
last_fragment.set_width(last_fragment.width() - space_width);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue