Closed
Bug 237343
Opened 21 years ago
Closed 21 years ago
Text not redrawn when uncovered by horizontal scrolling
Categories
(Core :: Web Painting, defect, P2)
Tracking
()
RESOLVED
FIXED
People
(Reporter: stephen.moehle, Assigned: roc)
References
()
Details
(Keywords: regression)
Attachments
(2 files, 1 obsolete file)
734 bytes,
text/html
|
Details | |
1.02 KB,
patch
|
dbaron
:
review+
dbaron
:
superreview+
brendan
:
approval1.7b+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040312
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7b) Gecko/20040312
At the above URL, the text on the right edge of the center column is not redrawn
properly when the window is horizontally scrolled right and the text is unconvered.
The problem first appeared in the 2004-03-08-08 Linux nightly build. The
2004-03-07-08 build is OK.
I do not have reduced test case as my attempts to make one did not exhibit the
problem.
Reproducible: Always
Steps to Reproduce:
1. Go to the URL.
2. Make the browser window about 350 pixels wide so that the text on right edge
of the center column is not visible.
3. Scroll right until the text is uncovered.
Actual Results:
The text is not completely redrawn, and parts are missing.
Expected Results:
Redraw the uncovered text.
Selecting the affected area with the mouse or covering it with another window,
etc. will cause the text to be properly redrawn.
Reporter | ||
Comment 1•21 years ago
|
||
The key to the bug is the "text-align:justify;" paragraph style. Without it,
there is no problem. Make the browser window narrow enough to show the
horizontal scroll bar, scroll right, and the text on the right edge will not be
redrawn properly.
Updated•21 years ago
|
Assignee: nobody → roc
Component: Layout → Layout: View Rendering
QA Contact: core.layout → ian
Assignee | ||
Comment 2•21 years ago
|
||
Something to do with line->CombinedArea not being adjusted for justified lines,
I'll bet.
Assignee | ||
Comment 3•21 years ago
|
||
You don't need the table to show this bug.
Assignee | ||
Updated•21 years ago
|
Attachment #143777 -
Attachment is obsolete: true
Assignee | ||
Comment 4•21 years ago
|
||
... and you don't need scrolling either. Just load the testcase. Mouse over the
last word on each line. you'll notice that the cursor sometimes changes from the
I-beam to an arrow even though you're still over text. This is because we've
decided your cursor is outside the line, even though it isn't.
Assignee | ||
Comment 5•21 years ago
|
||
The problem is that when ApplyFrameJustification widens the frame and the
pfd->mBounds, it neglects to also update pfd->mCombinedArea. So do that.
Assignee | ||
Comment 6•21 years ago
|
||
Comment on attachment 143844 [details] [diff] [review]
fix
another simple layout fix.
This bug has existed forever, but got exposed when we started using the line
combinedAreas more.
Attachment #143844 -
Flags: superreview?(dbaron)
Attachment #143844 -
Flags: review?(dbaron)
Attachment #143844 -
Flags: approval1.7b?
Comment on attachment 143844 [details] [diff] [review]
fix
It's worth commenting that this is safe because mCombinedArea is recomputed for
everything other than text frames in nsLineLayout::RelativePositionFrames.
Otherwise this wouldn't be sufficient if a relatively positioned image were
moved relative to its parent by justification.
Attachment #143844 -
Flags: superreview?(dbaron)
Attachment #143844 -
Flags: superreview+
Attachment #143844 -
Flags: review?(dbaron)
Attachment #143844 -
Flags: review+
s/everything other than text frames/everything other than leaf frames/
Assignee | ||
Comment 9•21 years ago
|
||
Note to choffman/drivers: the risk of regression is exceedingly small (adding to
the combinedArea can't do much bad other than slow us down by repainting more)
and I can land this tonight if it's approved :-)
Updated•21 years ago
|
Attachment #143844 -
Flags: approval1.7b? → approval1.7b+
Comment 10•21 years ago
|
||
Comment on attachment 143844 [details] [diff] [review]
fix
a=brendan@mozilla.org for 1.7b, I forgot to note.
/be
Assignee | ||
Comment 11•21 years ago
|
||
checked in.
David: thanks for that comment. actually I think there is a nasty bug related to
this: what if the frame that we're widening is relatively positioned and has
absolute children using the 'right' property to offset from the frame's right
edge? I think we'll have to reflow those children again!
Right now, however, you can't see this bug because our handling of 'right' and
'bottom' for absolute children of relative inlines is just totally broken :-)
(bug 224832).
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•6 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•