mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Make InlineLevelIterator not enter into inline-block boxes
The purpose of "entering" a box is to collect box model metrics that apply to content fragments within the box. However, inline-blocks are special, in that their inner content does not directly participate in the inline formatting context outside it.
This commit is contained in:
parent
3ca26c7a7a
commit
c8892f64f5
1 changed files with 1 additions and 1 deletions
|
@ -106,7 +106,7 @@ void InlineLevelIterator::compute_next()
|
|||
|
||||
void InlineLevelIterator::skip_to_next()
|
||||
{
|
||||
if (m_next_node && is<Layout::NodeWithStyleAndBoxModelMetrics>(*m_next_node))
|
||||
if (m_next_node && is<Layout::NodeWithStyleAndBoxModelMetrics>(*m_next_node) && !m_next_node->is_inline_block())
|
||||
enter_node_with_box_model_metrics(static_cast<Layout::NodeWithStyleAndBoxModelMetrics const&>(*m_next_node));
|
||||
|
||||
m_current_node = m_next_node;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue