Bug 129111 - Get rid of the unused 'immediate' parameters from repaint related functions
Summary: Get rid of the unused 'immediate' parameters from repaint related functions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Renata Hodovan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-20 10:54 PST by Renata Hodovan
Modified: 2014-02-24 10:59 PST (History)
17 users (show)

See Also:


Attachments
Proposed patch (54.36 KB, patch)
2014-02-20 11:17 PST, Renata Hodovan
simon.fraser: review+
Details | Formatted Diff | Diff
Proposed patch (60.90 KB, patch)
2014-02-20 15:36 PST, Renata Hodovan
no flags Details | Formatted Diff | Diff
Proposed patch (61.67 KB, patch)
2014-02-24 07:05 PST, Renata Hodovan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Renata Hodovan 2014-02-20 10:54:29 PST
The 'immediate' parameter is needlessly passed around, so it should be removed (as the fixme says it in WebCore::RenderView::repaintViewRectangle).
Comment 1 Renata Hodovan 2014-02-20 11:17:17 PST
Created attachment 224775 [details]
Proposed patch
Comment 2 Simon Fraser (smfr) 2014-02-20 11:28:50 PST
Comment on attachment 224775 [details]
Proposed patch

Nice.
Comment 3 Renata Hodovan 2014-02-20 15:36:46 PST
Created attachment 224803 [details]
Proposed patch

@simon.fraser: thank you for the review. Unfortunately, the mac and wk2 builds failed after you set the r+ flag. To make sure I don't mess up the build of any ports, I upload an updated patch again.
In the update, there were two 'non-trivial' modifications. WebChromeClient::invalidateRootView() does depend on the immediate argument and ScrollView::scrollContents() calls it both ways. The other case is WebChromeClient::invalidateRootView() which is almost always called with immediate set to false, but ScrollView::paintOverhangAreas() and ScrollView::removePanScrollIcon() call it with true. In this patch I considered it as false and eliminated the related code. However, I'm not familiar with these ports, so I'd like to ask for a second round of review. :)
Comment 4 Renata Hodovan 2014-02-24 07:05:05 PST
Created attachment 225064 [details]
Proposed patch

Updating WebCore.exp.in to fix the mac builds.
Comment 5 WebKit Commit Bot 2014-02-24 10:59:56 PST
Comment on attachment 225064 [details]
Proposed patch

Clearing flags on attachment: 225064

Committed r164594: <http://trac.webkit.org/changeset/164594>
Comment 6 WebKit Commit Bot 2014-02-24 10:59:59 PST
All reviewed patches have been landed.  Closing bug.