Improved whitespace rendering performance on wrapped lines, now it has the same cost than non-wrapped lines.

Fixed: Debugger gutter not drawing its background.
Fixed: horizontal scrollbar sometimes being visible on wrapped documents.
Updated CSS Specification documentation.
This commit is contained in:
Martín Lucas Golini
2025-02-27 19:26:08 -03:00
parent a08148bc57
commit a91fde6dfd
6 changed files with 282 additions and 120 deletions

View File

@@ -1427,6 +1427,12 @@ void DebuggerPlugin::drawLineNumbersBefore( UICodeEditor* editor,
Float lineOffset = editor->getLineOffset();
Float offset = editor->getGutterLocalStartOffset( this );
p.setColor( Color( editor->getLineNumberBackgroundColor() ).blendAlpha( editor->getAlpha() ) );
p.drawRectangle( Rectf( { screenStart.x - editor->getPluginsGutterSpace() + offset,
screenStart.y + editor->getPluginsTopSpace() },
Sizef( gutterSpace, editor->getPixelsSize().getHeight() -
editor->getPluginsTopSpace() ) ) );
if ( editor->getDocument().hasFilepath() ) {
auto docIt = mBreakpoints.find( editor->getDocument().getFilePath() );
if ( docIt != mBreakpoints.end() && !docIt->second.empty() ) {