On Oct 27, 2:33 pm, Boris Zbarsky <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Can you please tell me what does firefox 3 or 2 use to paint an image
> > and draw borders of table or blocks (e.g. div tags)?
>
> Seehttp://lxr.mozilla.org/seamonkey/source/layout/base/nsCSSRendering.cpp
>
> -Boris

Thank you.  I have built my private firefox 2.0.0.8 build and put
printf in
void nsCSSRendering::DrawLine (nsIRenderingContext& aContext,
                               nscoord aX1, nscoord aY1, nscoord aX2,
nscoord aY2,
                               nsRect* aGap)

And i try to load it with a simple test page, 1 table with 2 cells:

<html>

<body>
<table border=1>
<td>
a
</td>

<td>
b
</td>

</table>
</body>

</html>

But the output of the line are like these, 55 lines (55 calls to
DrawLine()):
line: 0 315 7104 315
line: 0 0 0 330
line: 0 0 7104 0
line: 7089 0 7089 330
line: 0 0 0 300
line: 0 315 2226 315
line: 0 0 0 330
line: 0 0 2226 0
line: 2211 0 2211 330
line: 0 420 495 420
line: 0 0 0 435
line: 0 0 495 0
line: 480 0 480 435
line: 0 330 180 330
line: 0 0 0 345
line: 0 0 180 0
line: 165 0 165 345
line: 0 330 195 330
line: 0 0 0 345
line: 0 0 195 0
line: 180 0 180 345
line: 0 420 495 420
line: 0 0 0 435
line: 0 0 495 0
line: 480 0 480 435
line: 0 330 180 330
line: 0 0 0 345
line: 0 0 180 0
line: 165 0 165 345
line: 0 330 195 330
line: 0 0 0 345
line: 0 0 195 0
line: 180 0 180 345
line: 0 315 7104 315
line: 0 0 0 330
line: 0 0 7104 0
line: 7089 0 7089 330
line: 0 0 0 300
line: 0 315 2226 315
line: 0 0 0 330
line: 0 0 2226 0
line: 2211 0 2211 330
line: 0 420 495 420
line: 0 0 0 435
line: 0 0 495 0
line: 480 0 480 435
line: 0 330 180 330
line: 0 0 0 345
line: 0 0 180 0
line: 165 0 165 345
line: 0 330 195 330
line: 0 0 0 345
line: 0 0 195 0
line: 180 0 180 345

My question is why nsCSSRendering::DrawLine() is being called so many
times?

Thank you for any ideas.

_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to