Bug 114348 - Replace ENABLE_CSS_* preprocessor statements in IDL files with Conditional attribute
Summary: Replace ENABLE_CSS_* preprocessor statements in IDL files with Conditional at...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Patrick R. Gansterer
URL:
Keywords:
Depends on:
Blocks: 67400
  Show dependency treegraph
 
Reported: 2013-04-10 03:50 PDT by Patrick R. Gansterer
Modified: 2013-04-10 08:45 PDT (History)
3 users (show)

See Also:


Attachments
Patch (3.89 KB, patch)
2013-04-10 03:52 PDT, Patrick R. Gansterer
ggaren: review-
buildbot: commit-queue-
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-04-10 03:50:26 PDT
Replace ENABLE_CSS_* preprocessor statements in IDL files with Conditional attribute
Comment 1 Patrick R. Gansterer 2013-04-10 03:52:46 PDT
Created attachment 197239 [details]
Patch
Comment 2 Build Bot 2013-04-10 04:45:55 PDT
Comment on attachment 197239 [details]
Patch

Attachment 197239 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-commit-queue.appspot.com/results/17634134
Comment 3 Build Bot 2013-04-10 05:04:18 PDT
Comment on attachment 197239 [details]
Patch

Attachment 197239 [details] did not pass mac-ews (mac):
Output: http://webkit-commit-queue.appspot.com/results/17712016
Comment 4 Geoffrey Garen 2013-04-10 08:45:39 PDT
I believe the problem here is that DOM*.h is public API, and ENABLE(XXX) macros don't work in public API:

ERROR: '/Volumes/Data/EWS/WebKit/WebKitBuild/Release/WebKit.framework/Versions/A/Headers/DOMCSSRule.h:45' included forbidden macro 'ENABLE' => '#if ENABLE(CSS3_CONDITIONAL_RULES)'
ERROR: '/Volumes/Data/EWS/WebKit/WebKitBuild/Release/WebKit.framework/Versions/A/Headers/DOMCSSRule.h:48' included forbidden macro 'ENABLE' => '#if ENABLE(CSS_DEVICE_ADAPTATION)'
ERROR: '/Volumes/Data/EWS/WebKit/WebKitBuild/Release/WebKit.framework/Versions/A/Headers/DOMCSSRule.h:51' included forbidden macro 'ENABLE' => '#if ENABLE(CSS_REGIONS)'
ERROR: '/Volumes/Data/EWS/WebKit/WebKitBuild/Release/WebKit.framework/Versions/A/Headers/DOMCSSRule.h:54' included forbidden macro 'ENABLE' => '#if ENABLE(CSS_SHADERS)'
Command /bin/sh failed with exit code 1


** BUILD FAILED **


The following build commands failed:
	PhaseScriptExecution "Check For Inappropriate Macros in External Headers" /Volumes/Data/EWS/WebKit/WebKitBuild/WebKit.build/Release/WebKit.build/Script-A55DEAA516703F9F003DB841.sh