| Summary: | [painting] Painting problems with mark occurrences highlighting | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | John Arthorne <john.arthorne> | ||||||||||||
| Component: | SWT | Assignee: | Felipe Heidrich <eclipse.felipe> | ||||||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||||||
| Severity: | major | ||||||||||||||
| Priority: | P3 | CC: | daniel_megert, deepakazad, eclipse.felipe, markus.kell.r, remy.suen | ||||||||||||
| Version: | 3.7 | ||||||||||||||
| Target Milestone: | 3.7 M4 | ||||||||||||||
| Hardware: | PC | ||||||||||||||
| OS: | Windows XP | ||||||||||||||
| Whiteboard: | |||||||||||||||
| Attachments: |
|
||||||||||||||
|
Description
John Arthorne
Created attachment 182246 [details]
Screen shot
Created attachment 182247 [details]
Mark occurrence preference settings
I can actually reproduce this quite easily with the steps outlined above: - Select a field in a class with multiple pages of content - Scroll down by dragging the scrollbar until the field appears. Scrolling fast or slow doesn't matter. In fact it looks even worse when you scroll to it closer. I'll take a look... This looks like an SWT bug when (re-)drawing TextStyle.borderStyle. I could easier reproduce by: 1. open a class (e.g. StyledText) 2. scroll down via scroll bar thumb 3. select a variable that appears often in the method 4. scroll up, so that they disappear 5. scroll down again ==> cheese This is a major regression introduced in 3.7 M3.
Very simple steps:
1. paste the snippet listed below
2. select the method declaration in the editor
3. scroll (it doesn't matter whether via mouse wheel, scroll bar or key board, but via scroll bar it cheese is biggest)
==> cheese
--- %< ---
public class Cheese {
void cheese() {
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
cheese();
}
}
--- %< ---
Created attachment 182377 [details] patch Naive me, introduced this bug fixing Bug 305672. It is okay to reduce the drawing rect in the width using the clip, but not for the height. Fixed in HEAD > 2010-11-04 Please verify. Thank you Created attachment 182406 [details]
horizontal cheese
Solid borders are looking good now, but dashed and dotted borders still show some cheese when scrolling horizontally. I guess the horizontal clipping needs to be aligned to the length of the drawn pattern.
oh, now I remember why I started fixing bug 305672 and stopped - reducing the rect to correct phase in the dot/dash pattern is not fun. Lets try again. Created attachment 182422 [details]
patch
Fixed in HEAD > 2010-NOV-04 Thanks, verified in HEAD. |