Bug 132812

Summary: Make a few icon database improvements
Product: WebKit Reporter: Darin Adler <darin>
Component: WebKit Misc.Assignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, beidson, commit-queue, gordon_sheridan, japhet, sam
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch beidson: review+

Description Darin Adler 2014-05-12 00:42:01 PDT
Make a few icon database improvements
Comment 1 Darin Adler 2014-05-12 00:52:30 PDT
Created attachment 231276 [details]
Patch
Comment 2 WebKit Commit Bot 2014-05-12 00:54:04 PDT
Attachment 231276 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/WebIconDatabase.cpp:312:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
ERROR: Source/WebKit2/UIProcess/WebIconDatabase.cpp:312:  Missing space before {  [whitespace/braces] [5]
Total errors found: 2 in 10 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Darin Adler 2014-05-12 00:54:12 PDT
This takes care of a mistake I noticed after reviewing bug 132805 and quite a bit of other tidying I noticed while fixing that mistake.
Comment 4 Darin Adler 2014-05-12 10:11:15 PDT
These are mostly minor refactoring and removing unused things.
Comment 5 Darin Adler 2014-05-12 10:38:06 PDT
Brady said he’d likely review this later today.
Comment 6 Brady Eidson 2014-05-12 11:05:54 PDT
Comment on attachment 231276 [details]
Patch

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

> ERROR: Source/WebKit2/UIProcess/WebIconDatabase.cpp:312:  Place brace on its own line for function definitions.  [whitespace/braces] [4]
Stylebot is wrong about this, and the bugzilla has been filed.  But...

> ERROR: Source/WebKit2/UIProcess/WebIconDatabase.cpp:312:  Missing space before {  [whitespace/braces] [5]
Stylebot is right about this.  For c++ lambas we put a space between the close paren and the open bracket.

> Source/WebKit2/UIProcess/WebIconDatabase.cpp:311
> +    return API::Data::createWithoutCopying(reinterpret_cast<const unsigned char*>(sharedBuffer->data()), sharedBuffer->size(),

I didn't know about this - brilliant.
Comment 7 Darin Adler 2014-05-13 07:45:16 PDT
Committed r168680: <http://trac.webkit.org/changeset/168680>