Bug 171831

Summary: Modernize WebKit2 code
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Alex Christensen 2017-05-08 14:45:57 PDT
Modernize WebKit2 code
Comment 1 Alex Christensen 2017-05-08 14:49:23 PDT
Created attachment 309416 [details]
Patch
Comment 2 Chris Dumez 2017-05-08 14:54:33 PDT
Comment on attachment 309416 [details]
Patch

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

r=me

> Source/WebKit2/UIProcess/WebPageProxy.cpp:3045
> +    Function<void(CallbackBase::Error)> didForceRepaintCallback = [this, callback = WTFMove(callback)](CallbackBase::Error error) mutable {

Could use auto no ?
Comment 3 Simon Fraser (smfr) 2017-05-08 14:55:02 PDT
Comment on attachment 309416 [details]
Patch

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

> Source/WebKit2/ChangeLog:3
> +        Modernize WebKit2 code

Modernize how? A bit more detail would be nice.
Comment 4 Alex Christensen 2017-05-08 16:12:50 PDT
Created attachment 309434 [details]
Patch
Comment 5 Alex Christensen 2017-05-08 16:13:46 PDT
(In reply to Chris Dumez from comment #2)
> Comment on attachment 309416 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=309416&action=review
> 
> r=me
> 
> > Source/WebKit2/UIProcess/WebPageProxy.cpp:3045
> > +    Function<void(CallbackBase::Error)> didForceRepaintCallback = [this, callback = WTFMove(callback)](CallbackBase::Error error) mutable {
> 
> Could use auto no ?
No, for some reason that causes a compiler error.  Something about constructors and lambdas and copies.
Comment 6 Alex Christensen 2017-05-08 17:24:57 PDT
Created attachment 309445 [details]
Patch
Comment 7 Alex Christensen 2017-05-08 19:23:02 PDT
http://trac.webkit.org/r216473