RESOLVED FIXED Bug 124987
Nix Upstream: Adding missing nix new files to WebCore
https://bugs.webkit.org/show_bug.cgi?id=124987
Summary Nix Upstream: Adding missing nix new files to WebCore
Thiago de Barros Lacerda
Reported 2013-11-28 11:03:13 PST
Nix specific files
Attachments
Patch (30.48 KB, patch)
2013-11-28 11:05 PST, Thiago de Barros Lacerda
no flags
Patch (30.54 KB, patch)
2013-12-02 15:27 PST, Thiago de Barros Lacerda
benjamin: review+
benjamin: commit-queue-
Patch for landing (30.56 KB, patch)
2013-12-02 20:30 PST, Thiago de Barros Lacerda
no flags
Thiago de Barros Lacerda
Comment 1 2013-11-28 11:05:23 PST
Benjamin Poulain
Comment 2 2013-12-02 14:50:16 PST
Comment on attachment 218020 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=218020&action=review > Source/WebCore/platform/nix/FileSystemNix.cpp:49 > +/* On linux file names are just raw bytes, so also strings that cannot be encoded in any way > + * are valid file names. This mean that we cannot just store a file name as-is in a String > + * but we have to escape it. > + * On Windows the GLib file name encoding is always UTF-8 so we can optimize this case. */ This file is in WebCore/platform. It should use regular comment style. > Source/WebCore/platform/nix/FileSystemNix.cpp:208 > + static CString cachedPath; This needs DEFINE_STATIC_LOCAL. > Source/WebCore/platform/nix/FileSystemNix.cpp:230 > + /* No null checking needed */ Comment style. This comment does not add much. It does not explain the "why" of the code. > Source/WebCore/platform/nix/MIMETypeRegistryNix.cpp:87 > + String s = ext.lower(); > + const ExtensionMap *e = extensionMap; > + while (e->extension) { > + if (s == e->extension) > + return e->mimeType; > + ++e; > + } Name the variables, "s" and "e" is no good. > Source/WebCore/platform/nix/SharedTimerNix.cpp:45 > +void setSharedTimerFiredFunction(void (*f)()) > +{ > + sharedTimerFiredFunction = f; > +} Name "f"?
Thiago de Barros Lacerda
Comment 3 2013-12-02 15:27:59 PST
Benjamin Poulain
Comment 4 2013-12-02 15:29:53 PST
Comment on attachment 218226 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=218226&action=review LGTM. > Source/WebCore/platform/nix/FileSystemNix.cpp:137 > + Extra blank line here. > Source/WebCore/platform/nix/FileSystemNix.cpp:155 > + Ditto.
Thiago de Barros Lacerda
Comment 5 2013-12-02 20:30:10 PST
Created attachment 218261 [details] Patch for landing
WebKit Commit Bot
Comment 6 2013-12-03 06:23:08 PST
Comment on attachment 218261 [details] Patch for landing Clearing flags on attachment: 218261 Committed r160001: <http://trac.webkit.org/changeset/160001>
Note You need to log in before you can comment on or make changes to this bug.