Closed
Bug 24497
Opened 25 years ago
Closed 25 years ago
1st click to input field blinks its background
Categories
(Core :: Layout: Form Controls, defect, P3)
Tracking
()
M16
People
(Reporter: Marko.Macek, Assigned: buster)
References
Details
The first time I click in input field (one line), the background is redrawn
(black or system default color) and then the widget is properly drawn. This
happens when at top of the page.
If the page is scrolled, the same thing happens, but doesnt take page scroll
position into account (drawing below the input field).
100% reproducible under Linux and Windows on 01-18,01-19 builds
Updated•25 years ago
|
Assignee: trudelle → karnaze
Component: XP Toolkit/Widgets → HTML Form Controls
QA Contact: paulmac → ckritzer
Comment 1•25 years ago
|
||
That's not an XPToolkit widget. Changing component to HTML Form Controls,
reassigning, cc beppe in case it is an Editor problem.
Comment 3•25 years ago
|
||
I am not sure there is much you can do about this steve, but here it is.
Assignee: rods → buster
| Reporter | ||
Comment 4•25 years ago
|
||
I am not sure if it is a widget problem. But it does occur also for URL bar, not
just content widgets.
It seems to me like a 'first-refresh' problem with repainting or double
buffering (a guess).
| Reporter | ||
Comment 6•25 years ago
|
||
When I open-in-new-window, the browser area also gets repainted: first in
default system color (while loading), then in black (short blink), then the page
background color is shown. So this seems like a repaint bug.
Comment 7•25 years ago
|
||
For those who are wondering, the reason this occurs. This for single line text
field we install the "editor" on the first click (focus) and this means a
webshell is created and we actually are changing the display. That is why it
flickers.
Comment 8•25 years ago
|
||
This diff fixes it on windows:
Index: nsGfxTextControlFrame.cpp
===================================================================
RCS file: /cvsroot/mozilla/layout/html/forms/src/nsGfxTextControlFrame.cpp,v
retrieving revision 3.122
diff -r3.122 nsGfxTextControlFrame.cpp
1556c1556,1560
< webShellWin->SetVisibility(PR_TRUE);
---
> PRInt32 type;
> GetType(&type);
> if ((PR_FALSE==IsSingleLineTextControl()) || (NS_FORM_INPUT_PASSWORD ==
type)) {
> webShellWin->SetVisibility(PR_TRUE);
> }
2190a2195
> webShellWin->SetVisibility(PR_TRUE);
It still flashes on Mac & Linux, I think because it is waiting for a paint
message.
| Reporter | ||
Comment 9•25 years ago
|
||
The blinking also occurs when opening a new window. The patch will not fix it.
Should I file a new bug?
| Assignee | ||
Comment 10•25 years ago
|
||
as a reminder to Rod, we discussed using the view manager's batching methods to
shut down painting during the webshell creation process. that might fix this
problem on other platforms.
| Assignee | ||
Comment 11•25 years ago
|
||
To Marko.Macek@gmx.net:
The paint problems on opening a new browser window are totally unrelated to this
bug. Please do submit a separate bug report. And thanks for your help!
| Assignee | ||
Comment 12•25 years ago
|
||
*** Bug 24209 has been marked as a duplicate of this bug. ***
| Reporter | ||
Comment 13•25 years ago
|
||
Recently the background color drawn during blink has changed. But the blinking
is still visible when the browser view is not at top-left.
| Assignee | ||
Comment 14•25 years ago
|
||
this is primarily a performance issue, duping to my placeholder bug for text
control perf.
*** This bug has been marked as a duplicate of 25947 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•