Hi Mozilla Developers,

I just started doing coding fore firefox/gecko and would appreciate some
pointers to get me started.

I am trying to implement page-break-after:avoid for richer print pagination
for H1 tag in firefox.

I wonder if you anyone can point me to the right directions for where to
look and maybe what I need to do in the code in firefox/gecko.

I have looked at nsBlookFrame.cpp and try to figure out the code but it is a
bit of a learning curve.

What I believe is needed here is to find out whether a frame is the last one
on the page
and at the same time the frame has page-break-after:avoid set in the display
style then if that is the case,
back track and put a page break frame right before the element (provided
that no another style attribute prevents this from happening)
So I would try to insert a page break frame until there is a frame back
enough that allows me to do that.

This is all very high level thoughts.

I appreciate if you can give me some pointers in anyway and tell me which
files I should look at first.

Thanks in advance.
Patrick
[EMAIL PROTECTED]
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout

Reply via email to