border-collapse merge and improvements

David Hyatt hyatt at apple.com
Tue May 4 22:18:17 CEST 2004


Cool, I'll take a look at this.  The border collapsing code had a  
pathological problem with building up too many borders (not detecting  
properly that borders were identical).  I can't remember if i sent that  
fix to the list or not.

dave

On May 4, 2004, at 12:18 PM, Leo Savernik wrote:

> Hello,
>
> I have finally merged WebCore's border-collapse patches into KHTML.  
> While I
> basically merged the code virtually unaltered, I introduced the  
> following
> change:
>
> On the cell precedence level, cells will only paint the borders that  
> belong to
> them. This fixes an issue with colspans where a colspan would paint the
> border of an underneath cell over the whole width of the colspan  
> instead of
> only the width of the underneath cell itself [1].
>
> To make this work, I take into account the border spilling into  
> adjacent cells
> in the RenderTableSection::paint method.
>
> Though you stated that this behaviour is underspecified, I think this
> resembles what web developers expect, and Mozilla does it, too (and I  
> think
> IE, too, but I cannot verify this).
>
> The second bug fixed is a "border style shift" which happens when a  
> cell
> paints half of the dotted/dashed border of an adjacent cell, and the  
> adjacent
> cell also does, the gaps are shifted. You can reproduce the issue when  
> smooth
> scrolling over the table (maybe this cannot happen under Mac OS X, so  
> you
> haven't ever noticed it).
>
> What I did not fix is the issue that borders spilling into the margin  
> of the
> table are not redrawn when the damage rectangle does not intersect  
> with the
> table rectangle itself . I really hope you can persuade the CSS WG to  
> abolish
> spilling.
>
> I have attached a "pseudo patch". It only highlights the differences  
> between
> WebCore 125 and the patch I committed.
>
> mfg
> 	Leo
>
> [1]  
> http://selfhtml.teamone.de/css/eigenschaften/anzeige/ 
> border_collapse.htm
>
> <render_bordercollapse_2- 
> webcore125.diff>_______________________________________________
> Khtml-devel at kde.org
> https://mail.kde.org/mailman/listinfo/khtml-devel



More information about the Khtml-devel mailing list