Question about layout debug output -- "line"

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Question about layout debug output -- "line"

Aaron Leventhal-3
What are the lowercase items called "line"? I don't see it
when I do frame->GetFirstChild(nsnull) from the block/body item.

Block(body)(1)@035FF490 {120,120,8820,600} [state=00000010]
sc=035FF264(i=2,b=0)<
   line 035FFC18: count=1
state=inline,clean,prevmarginclean,not impacted,not
wrapped,before:nobr,after:linebr[0x5100] {0,0,330,300} <
    Inline(span)(0)@035FFA04 next=035FFC48
next-continuation=035FFC48 {0,7,330,285} [content=0359ED50]
[sc=035FF990]<
      Text(0)@035FFA8C[0,4,T]  next=035FFB1C {0,0,330,285}
[state=41600020] sc=035FFA3C pst=:-moz-non-element<
        "\nabc"
      >
      Frame(br)(1)@035FFB1C {330,225,0,0} [state=00000020]
[content=035AEBF0]
    >
  >

_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: Question about layout debug output -- "line"

James Ross
Aaron Leventhal wrote:

> What are the lowercase items called "line"? I don't see it when I do
> frame->GetFirstChild(nsnull) from the block/body item.
>
> Block(body)(1)@035FF490 {120,120,8820,600} [state=00000010]
> sc=035FF264(i=2,b=0)<
>   line 035FFC18: count=1 state=inline,clean,prevmarginclean,not
> impacted,not wrapped,before:nobr,after:linebr[0x5100] {0,0,330,300} <
>    Inline(span)(0)@035FFA04 next=035FFC48 next-continuation=035FFC48
> {0,7,330,285} [content=0359ED50] [sc=035FF990]<
>      Text(0)@035FFA8C[0,4,T]  next=035FFB1C {0,0,330,285}
> [state=41600020] sc=035FFA3C pst=:-moz-non-element<
>        "\nabc"
>      >
>      Frame(br)(1)@035FFB1C {330,225,0,0} [state=00000020]
> [content=035AEBF0]
>    >
>  >

As far as I know, it's the linebox used to contain everything on a
single line:

http://lxr.mozilla.org/seamonkey/source/layout/generic/nsLineBox.cpp#206

--
James Ross <[hidden email]>
ChatZilla Developer
_______________________________________________
dev-tech-layout mailing list
[hidden email]
https://lists.mozilla.org/listinfo/dev-tech-layout
Reply | Threaded
Open this post in threaded view
|

Re: Question about layout debug output -- "line"

Boris Zbarsky
In reply to this post by Aaron Leventhal-3
Aaron Leventhal wrote:
> What are the lowercase items called "line"? I don't see it when I do
> frame->GetFirstChild(nsnull) from the block/body item.

Those more or less correspond to CSS line boxes.  They're nsLineBox objecs in
Gecko.  They aren't nsIFrames.

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