Bug 87319

Summary: REGRESSION (115573): Incorrect rounding of margins for floats
Product: WebKit Reporter: Emil A Eklund <eae>
Component: Layout and RenderingAssignee: Emil A Eklund <eae>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, dglazkov, dharani, eric, leviw, rniwa, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 87338    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch
none
Archive of layout-test-results from ec2-cr-linux-04
none
Patch for landing none

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>