[webkit-qt] Frame render doesn't support content rendering not clipped to viewport.

Simon Hausmann simon.hausmann at nokia.com
Tue Jan 18 23:51:54 PST 2011


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


More information about the webkit-qt mailing list