Bug 31792

Summary: Include "config.h" to meet Coding Style Guidelines
Product: WebKit Reporter: Laszlo Gombos <laszlo.gombos>
Component: PlatformAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, kenneth
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: All   
Attachments:
Description Flags
proposed patch none

Laszlo Gombos
Reported 2009-11-22 18:41:37 PST
Found a few places where config.h is not included as it is described in the style guide - http://webkit.org/coding/coding-style.html. Note that there are a few places (e.g. API tests for WebKit public API, *AllInOne*.cpp etc) where config.h is obviously not needed. This patch does not add config.h to those files.
Attachments
proposed patch (9.55 KB, patch)
2009-11-22 18:44 PST, Laszlo Gombos
no flags
Laszlo Gombos
Comment 1 2009-11-22 18:44:34 PST
Created attachment 43691 [details] proposed patch
Alexey Proskuryakov
Comment 2 2009-11-22 23:46:24 PST
Comment on attachment 43691 [details] proposed patch That's a lot of files without config.h! I'm worried about changes to some Windows files - seems that definitions in WebKitDLL.h might be necessary to compile subsequent headers - e.g. WebScriptObject.h. Did you verify that the Windows port builds with these changes?
Laszlo Gombos
Comment 3 2009-11-23 14:26:05 PST
Alexey, thanks for looking into this. I just verified that the (Safari) Windows port builds with these changes. It looks to me that quite many .cpp files under WebKit/win have the same include order (e.g. WebSecurityOrigin.cpp).
Kenneth Rohde Christiansen
Comment 4 2009-11-23 14:32:46 PST
Then I'm all for this patch! Let's hope things go well, so please watch the bot after you commit.
Laszlo Gombos
Comment 5 2009-11-23 20:35:33 PST
Note You need to log in before you can comment on or make changes to this bug.