[Webkit-unassigned] [Bug 96768] [GTK] Don't use the C API internally in WebKitWebContext

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 5 11:01:28 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=96768





--- Comment #7 from Martin Robinson <mrobinson at webkit.org>  2012-10-05 11:01:57 PST ---
(From update of attachment 166480)
View in context: https://bugs.webkit.org/attachment.cgi?id=166480&action=review

Looks good, but seems to violate one of the rules of the style guide. I don't see this as a huge issue, but it would be nice to follow the rule if it isn't too hard.

> Source/WebKit2/UIProcess/API/gtk/WebKitWebContextPrivate.h:36
> +using namespace WebKit;

The style guide doesn't seem to like namespace declarations in the global scope in headers, since it leaks into implementation files: http://www.webkit.org/coding/coding-style.html (number 1 for "using" Statements).

There are a couple things you can do to make your life easier here though:

1. Put the private methods in the WebKit namespace.
2. Use WebKit:: in the header and put using WebKit at the top of the files that include this file.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list