Changeset 3526

Show
Ignore:
Timestamp:
01/31/03 13:13:29 (6 years ago)
Author:
darin
Message:

Reviewed by me, Dave wrote the code.

  • fixed 3162013 -- Safari collapses margins through bottom borders (affects top of zeldman.com)
  • khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren): Don't collapse if we have any bottom border or padding.
Location:
trunk/WebCore
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog-2003-10-25

    r3525 r3526  
     12003-01-31  Darin Adler  <darin@apple.com> 
     2 
     3        Reviewed by me, Dave wrote the code. 
     4 
     5        - fixed 3162013 -- Safari collapses margins through bottom borders (affects top of zeldman.com) 
     6 
     7        * khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren): 
     8        Don't collapse if we have any bottom border or padding. 
     9 
    1102003-01-31  Darin Adler  <darin@apple.com> 
    211 
  • trunk/WebCore/ChangeLog-2005-08-23

    r3525 r3526  
     12003-01-31  Darin Adler  <darin@apple.com> 
     2 
     3        Reviewed by me, Dave wrote the code. 
     4 
     5        - fixed 3162013 -- Safari collapses margins through bottom borders (affects top of zeldman.com) 
     6 
     7        * khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren): 
     8        Don't collapse if we have any bottom border or padding. 
     9 
    1102003-01-31  Darin Adler  <darin@apple.com> 
    211 
  • trunk/WebCore/khtml/rendering/render_flow.cpp

    r3509 r3526  
    745745     
    746746    // If any height other than auto is specified in CSS, then we don't collapse our bottom 
    747     // margins with our children's margins.  To do otherwise would be to risk odd visual 
     747    // margins with our children's margins. To do otherwise would be to risk odd visual 
    748748    // effects when the children overflow out of the parent block and yet still collapse 
    749     // with it. 
    750     if (canCollapseWithChildren && !autoHeight) 
     749    // with it. We also don't collapse if we had any bottom border/padding (represented by 
     750    // |toAdd|. 
     751    if (canCollapseWithChildren && (toAdd || !autoHeight)) 
    751752        canCollapseWithChildren = false; 
    752753