mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Revert "LibWeb: Make TextNode::ChunkIterator emit an empty chunk for content:"""
This reverts commit b062a0fb7c
.
This made a calculation of pseudo-elements' height incorrect when they
had `height` set to `auto` and used other techniques (like setting
`padding-top`) to set height, as it was now also adding an empty line.
Additionally, the case didn't work for content containing whitespace
characters, so a pseudo-element with `content: " "` didn't have *this*
particular problem.
This commit is contained in:
parent
cf2c2cb4d7
commit
d4b5205482
3 changed files with 3 additions and 16 deletions
|
@ -35,7 +35,7 @@ public:
|
|||
|
||||
class ChunkIterator {
|
||||
public:
|
||||
ChunkIterator(StringView text, bool wrap_lines, bool respect_linebreaks, bool is_generated_empty_string);
|
||||
ChunkIterator(StringView text, bool wrap_lines, bool respect_linebreaks);
|
||||
Optional<Chunk> next();
|
||||
|
||||
private:
|
||||
|
@ -43,7 +43,6 @@ public:
|
|||
|
||||
bool const m_wrap_lines;
|
||||
bool const m_respect_linebreaks;
|
||||
bool m_should_emit_one_empty_chunk { false };
|
||||
Utf8View m_utf8_view;
|
||||
Utf8View::Iterator m_iterator;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue