Closed
Bug 447776
Opened 16 years ago
Closed 16 years ago
Hang with word-wrap: break-word and width: 0px
Categories
(Core :: Layout: Text and Fonts, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: martijn.martijn, Assigned: smontagu)
References
Details
(Keywords: hang, testcase)
Attachments
(2 files, 4 obsolete files)
57 bytes,
text/html
|
Details | |
6.71 KB,
patch
|
smontagu
:
review+
smontagu
:
superreview+
|
Details | Diff | Splinter Review |
See testcase, which hangs in current trunk build.
Assignee | ||
Comment 1•16 years ago
|
||
Ha, good catch. I even thought about this as a case that I needed to test and then forgot about it.
Assignee: nobody → smontagu
Status: NEW → ASSIGNED
Attachment #331177 -
Flags: superreview?(roc)
Attachment #331177 -
Flags: review?(roc)
Is this correct? If you have something like <em>hello</em>kitty there should be a break opportunity at the start of "kitty". You may need to take into account the start-of-line information that nsTextFrameThebes has.
Assignee | ||
Comment 4•16 years ago
|
||
Like so?
Attachment #331177 -
Attachment is obsolete: true
Attachment #331207 -
Flags: superreview?(roc)
Attachment #331207 -
Flags: review?(roc)
Attachment #331177 -
Flags: superreview?(roc)
Attachment #331177 -
Flags: review?(roc)
Actually I think you just need to check aSuppressInitialBreak which is already passed in.
Comment 6•16 years ago
|
||
FYI: See https://bugzilla.mozilla.org/show_bug.cgi?id=447884#c13
Assignee | ||
Comment 7•16 years ago
|
||
Attachment #331207 -
Attachment is obsolete: true
Attachment #331257 -
Flags: superreview?(roc)
Attachment #331257 -
Flags: review?(roc)
Attachment #331207 -
Flags: superreview?(roc)
Attachment #331207 -
Flags: review?(roc)
Comment on attachment 331257 [details] [diff] [review] Fix v.3 You should be able to rearrange the code so that the (!aSuppressInitialBreak || i > aStart) condition only appears once. I think I'd set lineBreakHere and wordWrapping to their values ignoring that condition, and then do if (aSuppressInitialBreak && i == aStart) { lineBreakHere = wordWrapping = PR_FALSE; }
Attachment #331257 -
Flags: superreview?(roc)
Attachment #331257 -
Flags: superreview+
Attachment #331257 -
Flags: review?(roc)
Attachment #331257 -
Flags: review+
Assignee | ||
Comment 9•16 years ago
|
||
Or how about putting the whole first section of the loop (up to the end of the |if (lineBreak || hyphenation || wordWrapping { ... } | block) inside |if (!aSuppressInitialBreak || i > aStart)| ? We're not going to set a hyphenation break at the beginning of the line either.
You don't want if (i >= bufferStart + bufferLength) in that condition. Otherwise I guess you're right.
Assignee | ||
Comment 11•16 years ago
|
||
I couldn't figure out how to do a diff ignoring whitespace with hg :(
Attachment #331257 -
Attachment is obsolete: true
Attachment #331263 -
Flags: superreview?(roc)
Attachment #331263 -
Flags: review?(roc)
Attachment #331263 -
Flags: superreview?(roc)
Attachment #331263 -
Flags: superreview+
Attachment #331263 -
Flags: review?(roc)
Attachment #331263 -
Flags: review+
Assignee | ||
Comment 12•16 years ago
|
||
This blocks critical bug 447884, and I'm unlikely to have a block of free time long enough to check in for the next day or two, so marking checkin-needed.
Keywords: checkin-needed
Assignee | ||
Comment 13•16 years ago
|
||
Attachment #331263 -
Attachment is obsolete: true
Attachment #331470 -
Flags: superreview+
Attachment #331470 -
Flags: review+
Comment 14•16 years ago
|
||
Comment on attachment 331470 [details] [diff] [review] Adds the testcase from here and bug 447783 as crashtests (checked in) http://hg.mozilla.org/mozilla-central/index.cgi/rev/7429393f48c1
Attachment #331470 -
Attachment description: Adds the testcase from here and bug 447783 as crashtests → Adds the testcase from here and bug 447783 as crashtests (checked in)
Keywords: checkin-needed
Comment 15•16 years ago
|
||
Verified fixed Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1a2pre) Gecko/2008072710 Minefield/3.1a2pre. Checked the dependent bug and other sites that I knew where causing crashes due to this bug. All is good.
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•