Bug 40472

Summary: [Qt] In Carbon event model, NPP_SetWindow is called too often
Product: WebKit Reporter: qt-info
Component: Plug-insAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: andersca, benjamin, vestbo
Priority: P3 Keywords: Qt, QtTriaged
Version: 420+   
Hardware: Mac (Intel)   
OS: OS X 10.6   

qt-info
Reported 2010-06-11 05:17:54 PDT
In the Carbon event model, NPP_SetWindow is called for every redraw. It should be called only when the window geometry has changed. There is an easy workaround: Check for equality of the NPP_SetWindow parameters and the parameters from the previous call before recomputing anything. In PluginViewMac.cpp, there is a call to setNPWindowIfNeeded() inside the paint(...) function. I believe this may be the culprit. Basically, I'm seeing a call to NPP_SetWindow (with the same parameters each time) before each update event, which is completely unnecessary and different from every other browser I'm supporting so far. (Bug reported against Qt version 4.6.2)
Attachments
Note You need to log in before you can comment on or make changes to this bug.