mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 22:47:45 +00:00
LibHTML: Implement the <br> element for line breaking
The <br> element will produce a special LayoutBreak node in the layout tree, which forces a break in the line layout whenever encountered. This patch also makes LayoutBlock use the current line-height as the minimum effective height for each line box. This ensures that having multiple <br> elements in a row doesn't create 0-height line boxes.
This commit is contained in:
parent
bf79b198f6
commit
6242459c0f
9 changed files with 89 additions and 1 deletions
|
@ -15,6 +15,7 @@ LIBHTML_OBJS = \
|
|||
DOM/HTMLImageElement.o \
|
||||
DOM/HTMLLinkElement.o \
|
||||
DOM/HTMLBlinkElement.o \
|
||||
DOM/HTMLBRElement.o \
|
||||
DOM/Document.o \
|
||||
DOM/Text.o \
|
||||
DOM/DocumentType.o \
|
||||
|
@ -39,6 +40,7 @@ LIBHTML_OBJS = \
|
|||
Layout/LayoutImage.o \
|
||||
Layout/LayoutListItem.o \
|
||||
Layout/LayoutListItemMarker.o \
|
||||
Layout/LayoutBreak.o \
|
||||
Layout/BoxModelMetrics.o \
|
||||
Layout/LineBox.o \
|
||||
Layout/LineBoxFragment.o \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue