Bug 116138 - Introduce USE(WINGDI) for the Windows port
Summary: Introduce USE(WINGDI) for the Windows port
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Patrick R. Gansterer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-14 22:52 PDT by Patrick R. Gansterer
Modified: 2013-06-14 15:49 PDT (History)
7 users (show)

See Also:


Attachments
Patch (12.77 KB, patch)
2013-05-14 22:53 PDT, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff
Patch (12.73 KB, patch)
2013-05-14 23:20 PDT, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff
Patch (12.73 KB, patch)
2013-05-14 23:30 PDT, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 2013-05-14 22:52:48 PDT
Introduce USE(WINGDI) for the Windows port
Comment 1 Patrick R. Gansterer 2013-05-14 22:53:45 PDT
Created attachment 201793 [details]
Patch
Comment 2 Patrick R. Gansterer 2013-05-14 23:20:11 PDT
Created attachment 201795 [details]
Patch
Comment 3 WebKit Commit Bot 2013-05-14 23:21:40 PDT
Attachment 201795 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Platform.h', u'Source/WebCore/ChangeLog', u'Source/WebCore/config.h', u'Source/WebCore/platform/graphics/BitmapImage.h', u'Source/WebCore/platform/graphics/FontPlatformData.h', u'Source/WebCore/platform/graphics/GlyphBuffer.h', u'Source/WebCore/platform/graphics/Gradient.h', u'Source/WebCore/platform/graphics/GraphicsContext.cpp', u'Source/WebCore/platform/graphics/GraphicsContext.h', u'Source/WebCore/platform/graphics/ImageBufferData.h', u'Source/WebCore/platform/graphics/NativeImagePtr.h', u'Source/WebCore/platform/graphics/Path.h', u'Source/WebCore/platform/graphics/Pattern.h', u'Source/WebCore/plugins/win/PluginViewWin.cpp', u'Source/cmake/OptionsWinCE.cmake']" exit_code: 1
Source/WebCore/config.h:36:  Do not add platform specific code in WebCore outside of platform.  [build/webcore_platform_layering_violation] [5]
Total errors found: 1 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Benjamin Poulain 2013-05-14 23:27:51 PDT
Comment on attachment 201795 [details]
Patch

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

> ChangeLog:9
> +        compile the GDI based Windwos port on WinNT too.

Typo: Windwos
Comment 5 Patrick R. Gansterer 2013-05-14 23:30:12 PDT
Created attachment 201796 [details]
Patch
Comment 6 WebKit Commit Bot 2013-05-14 23:32:34 PDT
Attachment 201796 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'ChangeLog', u'Source/WTF/ChangeLog', u'Source/WTF/wtf/Platform.h', u'Source/WebCore/ChangeLog', u'Source/WebCore/config.h', u'Source/WebCore/platform/graphics/BitmapImage.h', u'Source/WebCore/platform/graphics/FontPlatformData.h', u'Source/WebCore/platform/graphics/GlyphBuffer.h', u'Source/WebCore/platform/graphics/Gradient.h', u'Source/WebCore/platform/graphics/GraphicsContext.cpp', u'Source/WebCore/platform/graphics/GraphicsContext.h', u'Source/WebCore/platform/graphics/ImageBufferData.h', u'Source/WebCore/platform/graphics/NativeImagePtr.h', u'Source/WebCore/platform/graphics/Path.h', u'Source/WebCore/platform/graphics/Pattern.h', u'Source/WebCore/plugins/win/PluginViewWin.cpp', u'Source/cmake/OptionsWinCE.cmake']" exit_code: 1
Source/WebCore/config.h:36:  Do not add platform specific code in WebCore outside of platform.  [build/webcore_platform_layering_violation] [5]
Total errors found: 1 in 17 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 7 Brent Fulgham 2013-05-15 08:01:50 PDT
Comment on attachment 201796 [details]
Patch

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

>> Source/WebCore/config.h:36
>> +#if PLATFORM(WIN) && !USE(WINGDI)
> 
> Do not add platform specific code in WebCore outside of platform.  [build/webcore_platform_layering_violation] [5]

Changing this to OS(WIN) might satisfy the style bot.
Comment 8 Patrick R. Gansterer 2013-05-15 10:39:44 PDT
Comment on attachment 201796 [details]
Patch

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

>>> Source/WebCore/config.h:36
>>> +#if PLATFORM(WIN) && !USE(WINGDI)
>> 
>> Do not add platform specific code in WebCore outside of platform.  [build/webcore_platform_layering_violation] [5]
> 
> Changing this to OS(WIN) might satisfy the style bot.

that would be wrong and out of scope of thid change
Comment 9 Patrick R. Gansterer 2013-05-20 10:56:20 PDT
ping?
Comment 10 Brent Fulgham 2013-06-14 15:43:55 PDT
Comment on attachment 201796 [details]
Patch

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

This looks fine to me.  One nuance is that the WinCairo port does use GDI for some drawing routines.  I would not want us to accidentally start guarding those routines (none of which are touched in this patch) with USE(WINGDI) because that would break the WinCairo build.

>>>> Source/WebCore/config.h:36
>>>> +#if PLATFORM(WIN) && !USE(WINGDI)
>>> 
>>> Do not add platform specific code in WebCore outside of platform.  [build/webcore_platform_layering_violation] [5]
>> 
>> Changing this to OS(WIN) might satisfy the style bot.
> 
> that would be wrong and out of scope of thid change

Oh -- right.  And I see that it's actually complaining about the existing PLATFORM(WIN) guard, not the USE(WINGDI).
Comment 11 WebKit Commit Bot 2013-06-14 15:49:30 PDT
Comment on attachment 201796 [details]
Patch

Clearing flags on attachment: 201796

Committed r151610: <http://trac.webkit.org/changeset/151610>
Comment 12 WebKit Commit Bot 2013-06-14 15:49:33 PDT
All reviewed patches have been landed.  Closing bug.