summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Layout/LayoutText.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-18 12:44:16 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-18 12:44:16 +0100
commit0d6f186397390913d36137c8891a0ea11db45aac (patch)
treea9761093958f00453a6cb1c66307145605ef51ae /Libraries/LibHTML/Layout/LayoutText.h
parent1fda417f4fc3201e8617fe28981d0e49f5ed04cc (diff)
downloadserenity-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.h4
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;
};