Bug 114396

Summary: [Windows, WinCairo] FeatureDefines.h Overriding Settings in VS Property Sheets
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebCore Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: aroben, benjamin, cmarcelo, commit-queue, kevino, paroga, roger_fong
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows 7   
Attachments:
Description Flags
Patch dino: review+

Brent Fulgham
Reported 2013-04-10 17:09:43 PDT
The FeatureDefines.h file forces certain features to be active, regardless of the FeatureDefines.prop contents. This may be a historical issue, from a time when the property sheet did not exist and was not used to control feature activations. I think it is confusing (and wrong) for this header file to force any of the features to be turned on, if those features are defined and handled in the property sheet.
Attachments
Patch (1.11 KB, patch)
2013-06-13 10:40 PDT, Brent Fulgham
dino: review+
Brent Fulgham
Comment 1 2013-04-10 17:12:07 PDT
On the Apple Windows target, ENABLE_VIEW_MODE_CSS_MEDIA is included in compiler's command line output, e.g, /D "ENABLE_VIEW_MODE_CSS_MEDIA" because it is marked as "active" in the FeatureDefines.props file. On the WInCairo build, we have ENABLE_VIEW_MODE_CSS_MEDIA turned off at the moment (in the FeatureDefinesCairo.props file). Unfortunately, FeatureDefines.h silently flips it back on. I think the various defines for OS(WINDOWS) in the FeatureDefines.h file that automatically activate certain features should be removed, unless the GTK-Windows, WinCE, wxWidgets, or some other port needs them.
Patrick R. Gansterer
Comment 2 2013-04-10 21:00:20 PDT
(In reply to comment #1) > I think the various defines for OS(WINDOWS) in the FeatureDefines.h file that automatically activate certain features should be removed, unless the GTK-Windows, WinCE, wxWidgets, or some other port needs them. No needs in the WinCE port.
Brent Fulgham
Comment 3 2013-06-13 10:40:48 PDT
Brent Fulgham
Comment 4 2013-06-13 10:41:32 PDT
I misunderstood how this file is being used. I think the right solution here is to add a default case for WinCairo that sets the ENABLE_VIEW_MODE_CSS_MEDIA flag to 0 for the WinCairo port.
Brent Fulgham
Comment 5 2013-06-13 10:48:30 PDT
Note You need to log in before you can comment on or make changes to this bug.