Bug 87319 - REGRESSION (115573): Incorrect rounding of margins for floats
Summary: REGRESSION (115573): Incorrect rounding of margins for floats
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Emil A Eklund
URL:
Keywords: InRadar
Depends on: 87338
Blocks:
  Show dependency treegraph
 
Reported: 2012-05-23 16:31 PDT by Emil A Eklund
Modified: 2012-05-24 17:15 PDT (History)
7 users (show)

See Also:


Attachments
Patch (4.35 KB, patch)
2012-05-23 16:58 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff
Patch (4.60 KB, patch)
2012-05-24 12:04 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ec2-cr-linux-04 (550.31 KB, application/zip)
2012-05-24 14:32 PDT, WebKit Review Bot
no flags Details
Patch for landing (18.73 KB, patch)
2012-05-24 16:45 PDT, Emil A Eklund
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Emil A Eklund 2012-05-23 16:31:52 PDT
Due to differences in rounding triggered by the switch of Length::value to floating point we round margins differently for floating elements and their parent container causing unwanted wrapping on certain sites and zoom levels.

Downstream chromium bug report: http://code.google.com/p/chromium/issues/detail?id=128310
Comment 1 Emil A Eklund 2012-05-23 16:58:40 PDT
Created attachment 143683 [details]
Patch
Comment 2 Eric Seidel (no email) 2012-05-23 17:13:27 PDT
Comment on attachment 143683 [details]
Patch

LGTM.
Comment 3 Emil A Eklund 2012-05-23 17:17:34 PDT
Thanks for the quick review Eric!
Comment 4 WebKit Review Bot 2012-05-23 18:30:23 PDT
Comment on attachment 143683 [details]
Patch

Clearing flags on attachment: 143683

Committed r118297: <http://trac.webkit.org/changeset/118297>
Comment 5 WebKit Review Bot 2012-05-23 18:30:28 PDT
All reviewed patches have been landed.  Closing bug.
Comment 6 WebKit Review Bot 2012-05-23 20:39:40 PDT
Re-opened since this is blocked by 87338
Comment 7 Emil A Eklund 2012-05-24 12:04:17 PDT
Created attachment 143868 [details]
Patch
Comment 8 Emil A Eklund 2012-05-24 12:06:09 PDT
Would you mind taking another look Eric? It's basically the same change as before but with a slightly different reference html file.
Comment 9 Alexey Proskuryakov 2012-05-24 13:44:57 PDT
<rdar://problem/11527746>
Comment 10 Eric Seidel (no email) 2012-05-24 13:54:58 PDT
Comment on attachment 143868 [details]
Patch

LGTM.
Comment 11 WebKit Review Bot 2012-05-24 14:32:25 PDT
Comment on attachment 143868 [details]
Patch

Attachment 143868 [details] did not pass chromium-ews (chromium-xvfb):
Output: http://queues.webkit.org/results/12805252

New failing tests:
fast/block/float/floats-with-margin-should-not-wrap.html
Comment 12 WebKit Review Bot 2012-05-24 14:32:29 PDT
Created attachment 143895 [details]
Archive of layout-test-results from ec2-cr-linux-04

The attached test failures were seen while running run-webkit-tests on the chromium-ews.
Bot: ec2-cr-linux-04  Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'>  Platform: Linux-2.6.35-28-virtual-x86_64-with-Ubuntu-10.10-maverick
Comment 13 Emil A Eklund 2012-05-24 16:45:17 PDT
Created attachment 143924 [details]
Patch for landing
Comment 14 Emil A Eklund 2012-05-24 17:15:49 PDT
Committed r118448: <http://trac.webkit.org/changeset/118448>