RESOLVED FIXED Bug 13864
REGRESSION: Uninitialized value in RenderBlock::calcInlinePrefWidths()
https://bugs.webkit.org/show_bug.cgi?id=13864
Summary REGRESSION: Uninitialized value in RenderBlock::calcInlinePrefWidths()
Eli Fidler
Reported 2007-05-24 13:44:28 PDT
For text blocks that are just whitespace and stripFrontSpaces=true, when checking if the block should be considered for breaking, beginWS and endWS are used, but are uninitialized (RenderBlock.cpp:3741). They don't get initialized in RenderText::trimmedPrefWidths() since it returns early. I'm not sure if such blocks should be considered for breaking, so I don't know what values to initialize beginWS and endWS to.
Attachments
All-whitespace text test case (577 bytes, text/html)
2007-08-17 08:25 PDT, mitz
no flags
Patch (1.56 KB, patch)
2008-08-24 01:35 PDT, mitz
sam: review+
Dave Hyatt
Comment 1 2007-05-24 16:02:27 PDT
Confirming. This is a regression from newly-added code.
mitz
Comment 2 2007-08-17 08:25:19 PDT
Created attachment 16009 [details] All-whitespace text test case I think the code in RenderBlock::calcInlinePrefWidths is wrong anyway as demonstrated by this test case.
Adele Peterson
Comment 3 2007-08-30 14:38:39 PDT
Adele Peterson
Comment 4 2007-08-30 14:40:09 PDT
What kind of effects could we see on real-world sites from this bug?
mitz
Comment 5 2007-12-12 23:50:59 PST
*** Bug 16414 has been marked as a duplicate of this bug. ***
Ariya Hidayat
Comment 6 2008-05-15 12:14:53 PDT
*** Bug 19083 has been marked as a duplicate of this bug. ***
Mark Rowe (bdash)
Comment 7 2008-07-28 08:22:43 PDT
*** Bug 20194 has been marked as a duplicate of this bug. ***
mitz
Comment 8 2008-08-24 01:35:50 PDT
mitz
Comment 9 2008-08-24 02:19:03 PDT
Note You need to log in before you can comment on or make changes to this bug.