RESOLVED FIXED 118595
[EFL][GTK][Qt] New test: fast/regions/autoheight-correct-region-for-lines-2.html fails after r152572.
https://bugs.webkit.org/show_bug.cgi?id=118595
Summary [EFL][GTK][Qt] New test: fast/regions/autoheight-correct-region-for-lines-2.h...
Gábor Ábrahám
Reported 2013-07-12 04:33:52 PDT
After r152572 new fast/regions/autoheight-correct-region-for-lines-2.html ref test fails on EFL, GTK and Qt ports. Link to image diff: http://build.webkit.sed.hu/results/x86-64%20Linux%20Qt%20Release/r152572%20(52260)/fast/regions/autoheight-correct-region-for-lines-2-diffs.html It looks like the problem is the same at all port. Could you check it please?
Attachments
The actual picture (144 bytes, text/plain)
2013-07-12 06:47 PDT, Gábor Ábrahám
no flags
Actual (5.58 KB, image/png)
2013-07-12 06:59 PDT, Gábor Ábrahám
no flags
Patch (3.26 KB, patch)
2013-09-05 11:51 PDT, Javier Fernandez
no flags
Gábor Ábrahám
Comment 2 2013-07-12 06:47:57 PDT
Created attachment 206538 [details] The actual picture
Gábor Ábrahám
Comment 3 2013-07-12 06:59:57 PDT
Created attachment 206541 [details] Actual I will skip this test on Qt now, and upload the actual picture here, finally.
Andrei Bucur
Comment 4 2013-07-15 01:32:15 PDT
Thanks for the report, we'll take a look at it.
Javier Fernandez
Comment 5 2013-07-16 02:13:18 PDT
I can work on this bug, if nobody tells me otherwise.
Javier Fernandez
Comment 6 2013-07-29 11:32:45 PDT
After looking into this issue for a while, I've found out that the issue is related to an arithmetic overflow when computing the logic height. The maxHeight property is defined in the test as a huge value, which is handled as a Length instance based on a float type. I've found out that the flag SATURATED_LAYOUT_ARITHMETIC is not enabled by default in the WebKitGtk+ port, so when calling to the LayoutUnit(float), it does not apply the clampTo<float> template function. Just enabling the SATURATED_LAYOUT_ARITHMETIC flag makes the test to pass, at least for the WebkitGtk+ port, but I'm still doing some further investigations to understand why this is happening, whether is a Region related issue or a more general issue, Besides, I want to understand how the combination of both, SATURATED_LAYOUT_ARITHMETIC and SUBPIXEL_LAYOUT actually works and which cases each of them handle.
Javier Fernandez
Comment 7 2013-07-30 14:25:19 PDT
This is clearly a bug not related to Regions at all, since the actual issue was reported in the bug #119273. A simple fix would be just to set a lower value for the max-height property (like 20000000px, big enough, I would say). Of course it's also possible to wait for the bug #119273 fix, but notice that the max-height value has noting to do with the purpose of the test, besides allowing the region to adjust its auto-height properly.
Javier Fernandez
Comment 8 2013-09-05 11:51:51 PDT
Ryosuke Niwa
Comment 9 2013-09-09 11:50:51 PDT
Comment on attachment 210642 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=210642&action=review > LayoutTests/fast/regions/autoheight-correct-region-for-lines-2.html:20 > - max-height: 2000000000px; > + max-height: 20000000px; I'm not sure if it's such a good idea to workaround this bug in the test. This test was valuable in that it caught one case in which enabling subpixel layout without saturated arithmetic would result in a bug. Do we have a test in LayoutTests/fast/sub-pixel that catches the same bug? If not, please add one if you decide to "fix" the test.
Javier Fernandez
Comment 10 2013-09-10 01:13:37 PDT
(In reply to comment #9) > (From update of attachment 210642 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=210642&action=review > > > LayoutTests/fast/regions/autoheight-correct-region-for-lines-2.html:20 > > - max-height: 2000000000px; > > + max-height: 20000000px; > > I'm not sure if it's such a good idea to workaround this bug in the test. > This test was valuable in that it caught one case in which enabling subpixel layout without saturated arithmetic would result in a bug. > Do we have a test in LayoutTests/fast/sub-pixel that catches the same bug? If not, please add one if you decide to "fix" the test. I share the concerns as well, but on the other hand, that was not the purpose of the tests. I've filed a new one specifically for this issue at bug #119273, which also provides the corresponding test. My idea would be to close this bug and track the arithmetic overflow issue in the specific bug. Besides, the fix for bug #119273 would imply, as discussed in the mailing list, merging the 2 flags so that SATURATED_LAYOUT_ARITHMETIC would be enabled whenever SUBPIXEL_LAYOUT is. Anyway, I've been talking about this with Mihnea Ovidenie so perhaps we should wait to get some feedback from him. Also, we could wait until bug #119273 is fixed to take the final decision.
Ryosuke Niwa
Comment 11 2013-09-10 09:58:50 PDT
I'm simply concerned about losing the test coverage even for temporarily.
Javier Fernandez
Comment 12 2014-02-03 12:00:07 PST
This bug should be fixed now, at least in the WebKitGtk+ port, now that the SATURATED_LAYOUT_ARITHMETIC is enabled (bug 119273).
Michael Catanzaro
Comment 13 2015-12-22 06:50:59 PST
Comment on attachment 210642 [details] Patch We no longer have failure expectations for this bug, so I guess it is obsolete.
Note You need to log in before you can comment on or make changes to this bug.