[Webkit-unassigned] [Bug 113639] assignToHTMLImageElement no longer exists in Qt5

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Mar 30 05:02:10 PDT 2013


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





--- Comment #2 from Kristof Provost <kristof at sigsegv.be>  2013-03-30 05:00:21 PST ---
QWebKit allows developers to export QImage objects to Javascript and use Javascript to assign the QImage to an <img/> element.
This is documented in http://qt-project.org/doc/qt-5.0/qtwebkit/qtwebkit-bridge.html

The problem is that the documentation no longer matches reality. The (Javascript) function was indeed called assignToHTMLImageElement in Qt 4.8, but in Qt5 it's simply 'assignTo'.

The responsible code can be found in qtwebkit/Source/WebCore/bridge/qt/qt_pixmapruntime.cpp (QtPixmapRuntime::getClassRef()).

I feel very strongly that there was no good reason to change the function name so rather than updating the documentation to reflect the code the code should simply be changed back to expose the old name, or to allow both. It should be trivial to allow both assignTo and assignToHTMLImageElement to be used.

See also https://bugreports.qt-project.org/browse/QTBUG-30208

-- 
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