Bug 563748

Summary: [StyledText] redraw() does not refresh top partial visible line
Product: [Eclipse Project] Platform Reporter: Paul Pazderski <paul-eclipse>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3    
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: All   
See Also: https://git.eclipse.org/r/163884
https://git.eclipse.org/r/c/platform/eclipse.platform.swt/+/163884
Whiteboard:
Attachments:
Description Flags
Test snippet demonstration
none
Test Snippet none

Description Paul Pazderski CLA 2020-05-30 07:55:27 EDT
Created attachment 283102 [details]
Test snippet demonstration

In a StyledText using LineStyleListener for styling and calling redraw() does not update the top line if only partial visible.

Find attached a Snippet and gif to demonstrate the issue.

I found this problem initial in Console view which use LineStyleListener and redraw() to notify style changes. If a link is added and happens to be partial visible on the top boarder it will not be updated and is not recognizable as link for the user. Due to layout caching this wrong styling can persist for longer and survive some kinds of scrolling.
Comment 1 Paul Pazderski CLA 2020-05-30 07:57:16 EDT
Created attachment 283103 [details]
Test Snippet
Comment 2 Eclipse Genie CLA 2020-05-30 07:58:40 EDT
New Gerrit change created: https://git.eclipse.org/r/163884