In the attached test case, the squares on the first line should be aligned with their counterparts on the third line. They are not, because RenderBlock::computeInlineDirectionPositionsForLine() counts only ' ', '\t' and '\n' as spaces, whereas WidthIterator also counts no-break space as a space (using Font::treatAsSpace()).
Created attachment 79809 [details] Test case
Created attachment 79813 [details] Count no-break space as a space when distributing justification padding to text boxes on a line
Fixed in <http://trac.webkit.org/projects/webkit/changeset/76414>.
Is this bug related to https://bugs.webkit.org/show_bug.cgi?id=38902 ?
(In reply to comment #4) > Is this bug related to https://bugs.webkit.org/show_bug.cgi?id=38902 ? Hardly.
http://trac.webkit.org/changeset/76414 might have broken Qt Linux Release The following tests are not passing: fast/text/justify-nbsp.html
This test also seems to be failing on Snow Leopard, Leopard, Chromium, etc... http://build.webkit.org/results/SnowLeopard%20Intel%20Release%20(Tests)/r76414%20(24072)/fast/text/justify-nbsp-pretty-diff.html http://build.webkit.org/results/Leopard%20Intel%20Release%20(Tests)/r76414%20(26985)/fast/text/justify-nbsp-pretty-diff.html http://test-results.appspot.com/dashboards/flakiness_dashboard.html#showExpectations=true&master=ChromiumWebkit&tests=fast%2Ftext%2Fjustify-nbsp.html
Sorry about that. I think I accidentally checked in a contenteditable version of the test with result from a non-editable version or vice versa.
Committed revision 76421.