Bug 55365

Summary: REGRESSION (r79040): WebKit2: Large portions of pages with plugins paint black
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Plug-insAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, simon.fraser, webkit.review.bot
Priority: P2 Keywords: InRadar, PlatformOnly, Regression
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
URL: http://dictionary.reference.com/browse/miffy
Attachments:
Description Flags
Pass the right dirty rect to Plugin::paint andersca: review+

Description Adam Roben (:aroben) 2011-02-28 05:19:33 PST
To reproduce (in a build with the fix for bug 55364):

1. Launch MiniBrowser
2. Go to http://dictionary.reference.com/browse/miffy

Most of the page is black.
Comment 1 Adam Roben (:aroben) 2011-02-28 05:19:41 PST
<rdar://problem/9031089>
Comment 2 Adam Roben (:aroben) 2011-02-28 05:21:38 PST
Created attachment 84043 [details]
Pass the right dirty rect to Plugin::paint
Comment 3 WebKit Review Bot 2011-02-28 05:24:17 PST
Attachment 84043 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/plat..." exit_code: 1

Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win/WindowlessPaintRectCoordinates.cpp:40:  The parameter name "saved" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Adam Roben (:aroben) 2011-02-28 05:25:43 PST
Comment on attachment 84043 [details]
Pass the right dirty rect to Plugin::paint

View in context: https://bugs.webkit.org/attachment.cgi?id=84043&action=review

>> Tools/DumpRenderTree/TestNetscapePlugIn/Tests/win/WindowlessPaintRectCoordinates.cpp:40
>> +    virtual NPError NPP_New(NPMIMEType pluginType, uint16_t mode, int16_t argc, char *argn[], char *argv[], NPSavedData *saved);
> 
> The parameter name "saved" adds no information, so it should be removed.  [readability/parameter_name] [5]

Fixed. Also removed "pluginType", and fixed * placement.
Comment 5 Adam Roben (:aroben) 2011-02-28 07:33:21 PST
Committed r79863: <http://trac.webkit.org/changeset/79863>
Comment 6 Simon Fraser (smfr) 2011-02-28 08:30:47 PST
Thanks for fixing and all the testing work, Adam!