summaryrefslogtreecommitdiff
path: root/Libraries/LibThread/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-29 00:09:32 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-29 00:39:51 +0200
commit706fc3d1aa4647e2c7c2a454cbca4e8646097f0e (patch)
tree57160479dcc296ef0d7b79d5b7077ed9ab61e447 /Libraries/LibThread/CMakeLists.txt
parent2762e3d80a935f1fc2cedeec11a19a19e477a1d8 (diff)
downloadserenity-706fc3d1aa4647e2c7c2a454cbca4e8646097f0e.zip
LibWeb: Paint the text selection :^)
Text selection currently works at the LayoutNode level. The root of the layout tree has a LayoutRange selection() which in turn has two LayoutPosition objects: start() and end(). A LayoutPosition is a LayoutNode + a text offset into that node. We handle the selection painting in LayoutText::paint_fragment(), after the normal painting is finished. The basic mechanism is that each LayoutFragment is queried for its selection_rect(), and if a non-empty rect is returned, we clip to it and paint the text once more.
Diffstat (limited to 'Libraries/LibThread/CMakeLists.txt')
0 files changed, 0 insertions, 0 deletions