Hello,

> The best way, imo, is to not mess with the frame tree at all and instead 
> add the hackery to nsFrame::DisplayBorderBackgroundOutline: create an 
> nsDisplayItem that does what you want and add it in there as needed.
I see. That's easier for sure.

> Do you really want to output a frame (and change layout in the process 
> in cases like tables), or do you just want to draw something but not 
> have it affect the CSSOM?
No, I don't really want it to affect anything. By reading the source code, I 
figured out that frames are constructed from DOM elements and it was natural to 
create another frame for particular DOM element, which will do all necessary 
logic. Another option was to patch some existing frame and trigger necessary 
logic when converting html links. I though that adding new frame type with my 
custom logic is "cleaner" approach. 

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

Reply via email to