[Webkit-unassigned] [Bug 113853] Add API in QWebSettings for setting the CSS media type

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 8 05:24:23 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=113853





--- Comment #10 from Jose Lejin PJ <jose.lejin at gmail.com>  2013-04-08 05:22:37 PST ---
(In reply to comment #9)
> (In reply to comment #8)
> "print" is already handled by QtWebKit since it can know better when it is getting printed than the application can itself. Also, the media type is then not confined to the scope of a navigated page, but rather in the scope of a layout done in preparation to render in a printing QPainter.
> 
> So let's assume that this feature only applies to handheld, projector, tv, etc. media styles.
> I think that in this case, the media type won't change between navigations, and requiring the application to reset it on every page load would be a very cumbersome API.

OK. We will return current media type set in FrameLoaderClientQt::overrideMediaType() by reading from WebCore::Settings. The value need to be set in  Settings::setMediaTypeOverride(const String& mediaTypeOverride) since recalc style automatically happens if user changes style after page loads also.

I will upload the new patch.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list