On Wednesday, January 19, 2011 03:41:58 AM Ostapenko Viatcheslav (Nokia-MS/Boston) wrote: [...] > >In short, my opinion on the problem is: > >-conceptually, the frame is the viewport on the document > > No, it's not. > Viewport is window (or part of window) where part of frame contents visible. > Frame is a special element of the document.
No, Benjamin is right. A QWebFrame is a WebCore::Frame, which has a FrameView, which in turn has a viewport (frame rect). That's the design. > >That is why I think such use cases - rendering the full content - should > >be addressed by QWebElement::render() > > QWebElement::render would be good if it get clipping region to avoid > traversing full render tree in case of partial render. > Might be parameter enabling paint of all layers would be useful also. Yeah, so why not add an overload to QWebElement? void QWebElement::render(QPainter* painter, const QRect& clipRect); Simon _______________________________________________ webkit-qt mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-qt
