Bug 21328 - Make invalidation of widgets more cross-platform
Summary: Make invalidation of widgets more cross-platform
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Dave Hyatt
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-02 23:40 PDT by Dave Hyatt
Modified: 2008-10-03 00:06 PDT (History)
0 users

See Also:


Attachments
Patch (31.95 KB, patch)
2008-10-02 23:45 PDT, Dave Hyatt
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dave Hyatt 2008-10-02 23:40:56 PDT
Make invalidation of widgets more cross-platform
Comment 1 Dave Hyatt 2008-10-02 23:45:01 PDT
Created attachment 24041 [details]
Patch
Comment 2 Sam Weinig 2008-10-03 00:00:55 PDT
Comment on attachment 24041 [details]
Patch

Couple of nits.

+    ::InvalidateRect(m_popup, &r,false);
Missing space.

+/*
 void Widget::invalidateRect(const IntRect& r)
Please remove this commented out code.

+    // Do windowless plugin invalidation.
+    invalidateWindowlessPluginRect(rect);
The comment doesn't really add anything here.


+    PluginWidget(NSView *view = 0)
+    : Widget(view)
The initializer list should be indented more.

+        [platformWidget() setNeedsDisplayInRect: rect];
Extra space.

-    : Widget(view)
+    : PluginWidget(view)
Initialize list issue again.

r=me!
Comment 3 Dave Hyatt 2008-10-03 00:06:49 PDT
Fixed in r37223.