Skip to content
  • tkent@chromium.org's avatar
    Adjust usage of ENABLE flags to enable whole content · c271a5fc
    tkent@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=109270
    
    Reviewed by Eric Seidel.
    
    Our common usage of ENABLE flags to enable whole content of files is:
    
    For .cpp files:
      #include "config.h"
      #if ENABLE(FOOBAR)
      #include "FooBar.h"
    
    For .h files:
      #ifndef FooBar_h
      #define FooBar_h
      #if ENABLE(FOOBAR)
    
    Fix files which have uncommon usage, and fix CodeGeneratorV8.pm so that
    it generates the common pattern. Note that CodeGeneratorJS.pm already
    generates code in this order.
    
    * bindings/scripts/CodeGeneratorV8.pm:
    (GenerateHeaderContentHeader):
    (GenerateImplementationContentHeader):
    * bindings/scripts/test/V8/V8TestCallback.cpp:
    * bindings/scripts/test/V8/V8TestCallback.h:
    * bindings/scripts/test/V8/V8TestInterface.cpp:
    * bindings/scripts/test/V8/V8TestInterface.h:
    * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.cpp:
    * bindings/scripts/test/V8/V8TestSerializedScriptValueInterface.h:
    * html/BaseMultipleFieldsDateAndTimeInputType.h:
    * html/ColorInputType.cpp:
    * html/ColorInputType.h:
    * html/DateInputType.cpp:
    * html/DateTimeInputType.cpp:
    * html/DateTimeInputType.h:
    * html/DateTimeLocalInputType.cpp:
    * html/HTMLAudioElement.cpp:
    * html/HTMLAudioElement.h:
    * html/HTMLDataListElement.cpp:
    * html/HTMLDialogElement.cpp:
    * html/HTMLDialogElement.h:
    * html/HTMLMediaElement.cpp:
    * html/HTMLMediaElement.h:
    * html/HTMLMeterElement.cpp:
    * html/HTMLProgressElement.cpp:
    * html/HTMLSourceElement.cpp:
    * html/HTMLSourceElement.h:
    * html/HTMLTrackElement.cpp:
    * html/HTMLTrackElement.h:
    * html/HTMLVideoElement.cpp:
    * html/HTMLVideoElement.h:
    * html/MonthInputType.cpp:
    * html/TimeInputType.cpp:
    * html/WeekInputType.cpp:
    * html/shadow/DateTimeFieldElement.h:
    * html/shadow/DetailsMarkerControl.cpp:
    * html/shadow/MeterShadowElement.cpp:
    * html/shadow/ProgressShadowElement.cpp:
    * rendering/RenderDetailsMarker.cpp:
    * rendering/RenderInputSpeech.cpp:
    * rendering/RenderMeter.cpp:
    * rendering/RenderProgress.cpp:
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@142248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c271a5fc