diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 14:28:48 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 14:28:48 +0000 |
commit | 47c0fef5bb322c176f16181ef3d65ed4a8c19ed6 (patch) | |
tree | 82865f2eadf5dbeaa31ed81e7a53bcedbe2fecf7 | |
parent | ec84f93404d9379d93c192da4bb5feaebe39da8b (diff) | |
download | chromium_src-47c0fef5bb322c176f16181ef3d65ed4a8c19ed6.zip chromium_src-47c0fef5bb322c176f16181ef3d65ed4a8c19ed6.tar.gz chromium_src-47c0fef5bb322c176f16181ef3d65ed4a8c19ed6.tar.bz2 |
Use #if ENABLE_feature and not #if defined(ENABLE_feature) in idl files.
Features to be disabled are still defined, but with a value of 0. Restores
local change r2804 and follows the principle of upstream WebKit r37362.
Review URL: http://codereview.chromium.org/6385
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3097 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | webkit/port/page/DOMWindow.idl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/webkit/port/page/DOMWindow.idl b/webkit/port/page/DOMWindow.idl index 6f1a15f..6626c31 100644 --- a/webkit/port/page/DOMWindow.idl +++ b/webkit/port/page/DOMWindow.idl @@ -140,14 +140,14 @@ module window { in [Optional] boolean authorOnly); attribute [Replaceable] double devicePixelRatio; -#if defined(ENABLE_OFFLINE_WEB_APPLICATIONS) +#if ENABLE_OFFLINE_WEB_APPLICATIONS readonly attribute DOMApplicationCache applicationCache; #endif -#if defined(ENABLE_DATABASE) +#if ENABLE_DATABASE Database openDatabase(in DOMString name, in DOMString version, in DOMString displayName, in unsigned long estimatedSize) raises(DOMException); #endif -#if defined(ENABLE_DOM_STORAGE) +#if ENABLE_DOM_STORAGE readonly attribute Storage sessionStorage; readonly attribute Storage localStorage; #endif @@ -316,25 +316,25 @@ module window { attribute XSLTProcessorConstructor XSLTProcessor; #endif -#if defined(ENABLE_DOM_STORAGE) +#if ENABLE_DOM_STORAGE attribute StorageConstructor Storage; attribute StorageEventConstructor StorageEvent; #endif -#if defined(ENABLE_VIDEO) +#if ENABLE_VIDEO attribute HTMLAudioElementConstructor HTMLAudioElement; attribute HTMLMediaElementConstructor HTMLMediaElement; attribute HTMLVideoElementConstructor HTMLVideoElement; attribute MediaErrorConstructor MediaError; #endif -#if defined(ENABLE_XPATH) +#if ENABLE_XPATH attribute XPathEvaluatorConstructor XPathEvaluator; attribute XPathResultConstructor XPathResult; attribute XPathExceptionConstructor XPathException; #endif -#if defined(ENABLE_SVG) +#if ENABLE_SVG attribute SVGAngleConstructor SVGAngle; attribute SVGColorConstructor SVGColor; // attribute SVGCSSRuleConstructor SVGCSSRule; @@ -353,7 +353,7 @@ module window { // attribute SVGZoomAndPanConstructor SVGZoomAndPan; #endif -#if defined(ENABLED_SVG_FILTERS) +#if ENABLE_SVG_FILTERS attribute SVGComponentTransferFunctionElementConstructor SVGComponentTransferFunctionElement; attribute SVGFEBlendElementConstructor SVGFEBlendElement; attribute SVGFEColorMatrixElementConstructor SVGFEColorMatrixElement; |