Bug 139476

Summary: Floats Don't Overhang Their Block Formatting Contex
Product: WebKit Reporter: Javier Fernandez <jfernandez>
Component: Layout and RenderingAssignee: Javier Fernandez <jfernandez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, kondapallykalyan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Javier Fernandez 2014-12-10 03:50:40 PST
Floats Don't Overhang Their Block Formatting Context Per http://www.w3.org/TR/CSS2/visuren.html#float-position: "References to [the elements] in the [rules that govern the behaviour of floats] refer only to other elements in the same block formatting context as the float."

This means we don't need to look for intruding or overhanging floats in boxes that establish a new block formatting context. I couldn't find a test where we failed this rule but we do appear to be doing unnecessary work in rebuildFloatsFromIntruding() so make sure we avoid adding floats from different block formatting contexts.
Comment 1 Javier Fernandez 2014-12-10 04:14:40 PST
Created attachment 243007 [details]
Patch
Comment 2 Dave Hyatt 2014-12-15 12:26:35 PST
Comment on attachment 243007 [details]
Patch

r=me
Comment 3 WebKit Commit Bot 2014-12-15 13:06:46 PST
Comment on attachment 243007 [details]
Patch

Clearing flags on attachment: 243007

Committed r177308: <http://trac.webkit.org/changeset/177308>
Comment 4 WebKit Commit Bot 2014-12-15 13:06:50 PST
All reviewed patches have been landed.  Closing bug.