Skip to content
  • commit-queue@webkit.org's avatar
    Add ENABLE_DIALOG_ELEMENT and skeleton files · b46a45d5
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=90521
    
    Patch by Matt Falkenhagen <falken@chromium.org> on 2012-07-09
    Reviewed by Kent Tamura.
    
    .:
    
    * Source/cmake/WebKitFeatures.cmake:
    * Source/cmakeconfig.h.cmake:
    
    Source/JavaScriptCore:
    
    * Configurations/FeatureDefines.xcconfig:
    
    Source/WebCore:
    
    This adds the ENABLE_DIALOG_ELEMENT feature flag and dummy implementation files for <dialog>. In addition, a runtime feature flag is added.
    The feature is diabled by default.
    
    No new tests, as there is no behavior change.
    
    * CMakeLists.txt:
    * Configurations/FeatureDefines.xcconfig:
    * DerivedSources.cpp:
    * DerivedSources.make:
    * DerivedSources.pri:
    * Target.pri:
    * WebCore.gypi:
    * WebCore.xcodeproj/project.pbxproj:
    * bindings/generic/RuntimeEnabledFeatures.cpp:
    (WebCore):
    * bindings/generic/RuntimeEnabledFeatures.h: Added a runtime feature flag for dialog.
    (RuntimeEnabledFeatures):
    (WebCore::RuntimeEnabledFeatures::dialogElementEnabled):
    (WebCore::RuntimeEnabledFeatures::setDialogElementEnabled):
    * dom/ContextFeatures.cpp:
    (WebCore::ContextFeatures::dialogElementEnabled):
    (WebCore):
    * dom/ContextFeatures.h: Added a per-context flag for dialog so that dialog can be disabled in HTMLTagNames.in and DOMWindow.idl when the dialog runtime feature flag is off.
    * html/HTMLDialogElement.cpp: Added.
    (WebCore):
    (WebCore::HTMLDialogElement::HTMLDialogElement):
    (WebCore::HTMLDialogElement::create):
    (WebCore::HTMLDialogElement::close):
    (WebCore::HTMLDialogElement::show):
    * html/HTMLDialogElement.h: Added.
    (WebCore):
    (HTMLDialogElement):
    * html/HTMLDialogElement.idl: Added.
    * html/HTMLElementsAllInOne.cpp:
    * html/HTMLTagNames.in:
    * page/DOMWindow.idl:
    
    Source/WebKit/chromium:
    
    * features.gypi:
    * public/WebRuntimeFeatures.h:
    (WebRuntimeFeatures):
    * src/WebRuntimeFeatures.cpp:
    (WebKit::WebRuntimeFeatures::enableDialogElement):
    (WebKit):
    (WebKit::WebRuntimeFeatures::isDialogElementEnabled):
    
    Source/WebKit/mac:
    
    * Configurations/FeatureDefines.xcconfig:
    
    Source/WebKit2:
    
    * Configurations/FeatureDefines.xcconfig:
    
    Tools:
    
    * Scripts/webkitperl/FeatureList.pm:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@122107 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    b46a45d5