[webkit-qt] Main frame contentsSize, iframes and frame flattening with QGraphicsWebView

Kalle Vahlman kalle.vahlman at gmail.com
Wed Aug 11 03:03:52 PDT 2010


Hi

I've been investigating a problem related to the contentsSize of main frames
of QWebPages. After some digging and testing I've come to the conclusion
that the main frame contentsSize is not being updated properly.

I've attached the test case I have, it's simply a QGraphicsWebView with
resizesToContents, tiled backing store and frame flattening enabled. The
page loaded (inline) to it has a longish "fullscreen" iframe in it.

The expectation I have is that the main frame contentsSize would (due to
frame flattening) be expanded to include the iframe too. However, this
doesn't happen and the main frame reports the original geometry set to the
QGraphicsWebView. However, if I toggle zoomFactor to 1.1 and back to 1.0 the
contentsSize *is* updated to include the iframe too. This leads me to
believe that the frame flattening isn't resulting in initial notify of the
change in contentsSize.

I tried to see where that notification is usually sent but got lost quickly
after FrameView...

If someone could try reproducing this and maybe comment on whether my
expectation is correct or not, I would greatly appreciate that.

-- 
Kalle Vahlman, zuh at iki.fi
Powered by http://movial.com
Interesting stuff at http://sandbox.movial.com
See also http://syslog.movial.fi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100811/f61b6a14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cffbugview.h
Type: text/x-chdr
Size: 314 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100811/f61b6a14/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cffbugview.cpp
Type: text/x-c++src
Size: 4072 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-qt/attachments/20100811/f61b6a14/attachment-0001.bin>


More information about the webkit-qt mailing list