[webkit-dev] style warning of includes/alphabetical sorting in FontPlatformDataChromiumWin.cpp
Koji Ishii
kojiishi at gmail.com
Mon Aug 13 14:10:13 PDT 2012
Thanks for the prompt reply. These 3 <> includes are currently in
trunk. Can you please confirm:
1. Should I fix style errors in the original when I change their
neighbors (and therefore check-webkit-style complains)?
2. The following order passes the style, but it mixes Windows headers
into WebKit's. Are we ok with this?
#include "config.h"
#include "FontPlatformData.h"
#include "HWndDC.h"
#include "PlatformSupport.h"
#include "SharedBuffer.h"
#include "SkTypeface_win.h"
#include "SkiaFontWin.h"
#include <mlang.h>
#include <objidl.h>
#include <windows.h>
#include <wtf/StdLibExtras.h>
2012/8/14 Ryosuke Niwa <rniwa at webkit.org>:
> #include <~> need to appear below #include "".
>
> On Mon, Aug 13, 2012 at 1:52 PM, Koji Ishii <kojiishi at gmail.com> wrote:
>>
>> I've got a style warning while preparing a patch for bug 51450:
>> Alphabetical sorting problem. [build/include_order] [4]
>> at
>> Source/WebCore/platform/graphics/chromium/FontPlatformDataChromiumWin.cpp
>>
>> Could someone please advice me if I should re-order the includes, or
>> ignore this warning? The 3 headers are Windows headers, separating
>> them (i.e., ignore style warning) looks good to me, but I'd be happy
>> to follow what webkit-dev says.
>>
>> #include "config.h"
>> #include "FontPlatformData.h"
>>
>> #include <windows.h>
>> #include <objidl.h>
>> #include <mlang.h>
>>
>> +#include "FontCache.h"
>> #include "HWndDC.h"
>> #include "PlatformSupport.h"
>> #include "SkTypeface_win.h"
>> #include "SkiaFontWin.h"
>> #include <wtf/StdLibExtras.h>
>>
>> Regards,
>> Koji
>> _______________________________________________
>> webkit-dev mailing list
>> webkit-dev at lists.webkit.org
>> http://lists.webkit.org/mailman/listinfo/webkit-dev
>
>
More information about the webkit-dev
mailing list