diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-18 12:44:16 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-18 12:44:16 +0100 |
commit | 0d6f186397390913d36137c8891a0ea11db45aac (patch) | |
tree | a9761093958f00453a6cb1c66307145605ef51ae /Libraries/LibHTML/Layout/LayoutText.h | |
parent | 1fda417f4fc3201e8617fe28981d0e49f5ed04cc (diff) | |
download | serenity-0d6f186397390913d36137c8891a0ea11db45aac.zip |
LibHTML: Insert a new linebox for every newline in "white-space: pre"
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutText.h')
-rw-r--r-- | Libraries/LibHTML/Layout/LayoutText.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutText.h b/Libraries/LibHTML/Layout/LayoutText.h index 312824682e..ebbfaa4a85 100644 --- a/Libraries/LibHTML/Layout/LayoutText.h +++ b/Libraries/LibHTML/Layout/LayoutText.h @@ -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; }; |