On Friday 2006-06-02 01:25 +0300, Henri Sivonen wrote:
> Right now the code lives (for my convenience) in my private copy of 
> layout/inspector/src/inDOMUtils.cpp. I wouldn't be too surprised if it 
> was eventually placed somewhere else.
> 
> The idea is to implement the algorithm from 
> https://bugzilla.mozilla.org/show_bug.cgi?id=31961
> in C++.

Something like this should probably live on nsIMarkupDocumentViewer /
nsDocumentViewer.

> I am assuming it always exists for elements that have a defined and 
> non-null contentDocument property and are neither display: none; nor 
> visibility: hidden;.

visibility:hidden isn't particularly interesting and you probably don't
want to treat it specially.

> The idea is to check if an element that has a contentDocument is "small" 
> in the sense that its width or height is less than 130px. (This 
> heuristic should catch most ad <iframe>s.)

Why not just zoom each document independently?

-David

-- 
L. David Baron                                <URL: http://dbaron.org/ >
           Technical Lead, Layout & CSS, Mozilla Corporation

Attachment: pgpSUzcOgqos6.pgp
Description: PGP signature

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

Reply via email to