Closed Bug 398101 Opened 17 years ago Closed 17 years ago

Dynamically inserting a space does not cause proper re-wrapping

Categories

(Core :: Layout: Text and Fonts, defect, P2)

x86
macOS
defect

Tracking

()

RESOLVED FIXED
mozilla1.9beta2

People

(Reporter: jruderman, Assigned: roc)

References

Details

(Keywords: testcase, Whiteboard: [dbaron-1.9:RwCt])

Attachments

(4 files)

Inserting a space text node between "b" and "c" should allow the "b" to move to the previous line, but the "b" doesn't move.
Attached file testcase
Attached file reference
Assignee: nobody → roc
Flags: blocking1.9?
This is annoyingly hard to fix.

The problem is that linebreak changes (or more generally, (re)construction of a textrun) should ensure that all frames associated with the textrun are reflowed.

This is particularly hard to ensure for frames that have already been reflowed in the current reflow pass.
... but hang on, in this case we should be dirtying the previous line independent of textrun issues.
Attached patch fixSplinter Review
Be more diligent about invalidating textruns for lines, and especially, dirtying and invalidating text runs for previous-lines that may be able to pull up content.
Attachment #283328 - Flags: superreview?(dbaron)
Attachment #283328 - Flags: review?(dbaron)
Flags: blocking1.9? → blocking1.9+
Whiteboard: [needs review]
Whiteboard: [needs review] → [needs review][dbaron-1.9:RwCt]
Comment on attachment 283328 [details] [diff] [review]
fix

r+sr=dbaron
Attachment #283328 - Flags: superreview?(dbaron)
Attachment #283328 - Flags: superreview+
Attachment #283328 - Flags: review?(dbaron)
Attachment #283328 - Flags: review+
Whiteboard: [needs review][dbaron-1.9:RwCt] → [dbaron-1.9:RwCt]
Whiteboard: [dbaron-1.9:RwCt] → [dbaron-1.9:RwCt][need landing]
Checking in layout/generic/nsBlockFrame.cpp;
/cvsroot/mozilla/layout/generic/nsBlockFrame.cpp,v  <--  nsBlockFrame.cpp
new revision: 3.885; previous revision: 3.884
done
Checking in layout/generic/nsBlockFrame.h;
/cvsroot/mozilla/layout/generic/nsBlockFrame.h,v  <--  nsBlockFrame.h
new revision: 3.256; previous revision: 3.255
done
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Whiteboard: [dbaron-1.9:RwCt][need landing] → [dbaron-1.9:RwCt]
Target Milestone: --- → mozilla1.9 M10
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: