Re: [webkit-dev] How does Zooming Work?

2009-10-07 Thread Alex Milowski
On Tue, Oct 6, 2009 at 9:09 PM, Dan Bernstein m...@apple.com wrote: On Oct 6, 2009, at 8:49 PM, Alex Milowski wrote: What exactly happens during a zoom (command +/-) ? Depends on the flavor of zoom (“full-page” zoom vs. text-only zoom), but in both cases, a full style recalculation for the

Re: [webkit-dev] How does Zooming Work?

2009-10-07 Thread Alex Milowski
After chatting with David Hyatt, the answer seems to be, in my own words, smack your fingers with a ruler. My current layout() method leaves with the RenderMathRow instance and some of its descendants needing layout. That's a violation of the API contract for layout(). I should make sure I

[webkit-dev] How does Zooming Work?

2009-10-06 Thread Alex Milowski
What exactly happens during a zoom (command +/-) ? I have code that works well but layout doesn't seem to happen after a zoom in/out operation. If I then resize the window, that forces a layout for the zoomed size and things adjust themselves appropriately (because layout() eventually gets

Re: [webkit-dev] How does Zooming Work?

2009-10-06 Thread Dan Bernstein
On Oct 6, 2009, at 8:49 PM, Alex Milowski wrote: What exactly happens during a zoom (command +/-) ? Depends on the flavor of zoom (“full-page” zoom vs. text-only zoom), but in both cases, a full style recalculation for the document is forced. I have code that works well but layout