1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

LibHTML: Insert a new linebox for every newline in "white-space: pre"

This commit is contained in:
Andreas Kling 2019-12-18 12:44:16 +01:00
parent 1fda417f4f
commit 0d6f186397
2 changed files with 13 additions and 18 deletions

View file

@ -25,10 +25,10 @@ public:
const StyleProperties& style() const { return parent()->style(); }
private:
void split_preformatted_into_lines(LayoutBlock& container);
template<typename Callback>
void for_each_word(Callback) const;
template<typename Callback>
void for_each_source_line(Callback) const;
String m_text_for_rendering;
};