Changeset 128583 in webkit


Ignore:
Timestamp:
Sep 14, 2012 4:11:17 AM (12 years ago)
Author:
keishi@webkit.org
Message:

Add runtime flag that enables lang attribute for form controls in LayoutTests
https://bugs.webkit.org/show_bug.cgi?id=96636

Reviewed by Kent Tamura.

.:

  • Source/autotools/symbols.filter:

Source/WebCore:

Lang attribute support for form controls will be incomplete and just for LayoutTests.

No new tests. No behavior change.

  • WebCore.exp.in:
  • bindings/generic/RuntimeEnabledFeatures.cpp:

(WebCore):

  • bindings/generic/RuntimeEnabledFeatures.h:

(WebCore::RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled):
(WebCore::RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled):
(RuntimeEnabledFeatures):

  • testing/InternalSettings.cpp:

(WebCore::InternalSettings::Backup::Backup):
(WebCore::InternalSettings::Backup::restoreTo):
(WebCore::InternalSettings::setLangAttributeAwareFormControlUIEnabled):
(WebCore):

  • testing/InternalSettings.h:

(Backup):
(InternalSettings):

  • testing/InternalSettings.idl:

Source/WebKit2:

  • win/WebKit2.def:
  • win/WebKit2CFLite.def:
Location:
trunk
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r128470 r128583  
     12012-09-14  Keishi Hattori  <keishi@webkit.org>
     2
     3        Add runtime flag that enables lang attribute for form controls in LayoutTests
     4        https://bugs.webkit.org/show_bug.cgi?id=96636
     5
     6        Reviewed by Kent Tamura.
     7
     8        * Source/autotools/symbols.filter:
     9
    1102012-09-13  Raphael Kubo da Costa  <raphael.kubo.da.costa@intel.com>
    211
  • trunk/Source/WebCore/ChangeLog

    r128582 r128583  
     12012-09-14  Keishi Hattori  <keishi@webkit.org>
     2
     3        Add runtime flag that enables lang attribute for form controls in LayoutTests
     4        https://bugs.webkit.org/show_bug.cgi?id=96636
     5
     6        Reviewed by Kent Tamura.
     7
     8        Lang attribute support for form controls will be incomplete and just for LayoutTests.
     9
     10        No new tests. No behavior change.
     11
     12        * WebCore.exp.in:
     13        * bindings/generic/RuntimeEnabledFeatures.cpp:
     14        (WebCore):
     15        * bindings/generic/RuntimeEnabledFeatures.h:
     16        (WebCore::RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled):
     17        (WebCore::RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled):
     18        (RuntimeEnabledFeatures):
     19        * testing/InternalSettings.cpp:
     20        (WebCore::InternalSettings::Backup::Backup):
     21        (WebCore::InternalSettings::Backup::restoreTo):
     22        (WebCore::InternalSettings::setLangAttributeAwareFormControlUIEnabled):
     23        (WebCore):
     24        * testing/InternalSettings.h:
     25        (Backup):
     26        (InternalSettings):
     27        * testing/InternalSettings.idl:
     28
    1292012-09-14  Keishi Hattori  <keishi@webkit.org>
    230
  • trunk/Source/WebCore/WebCore.exp.in

    r128559 r128583  
    562562__ZN7WebCore21setPlatformStrategiesEPNS_18PlatformStrategiesE
    563563__ZN7WebCore22RuntimeEnabledFeatures22isCSSExclusionsEnabledE
     564__ZN7WebCore22RuntimeEnabledFeatures40isLangAttributeAwareFormControlUIEnabledE
    564565__ZN7WebCore22ScriptExecutionContext26canSuspendActiveDOMObjectsEv
    565566__ZN7WebCore22URLWithUserTypedStringEP8NSStringP5NSURL
  • trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp

    r127674 r128583  
    5656bool RuntimeEnabledFeatures::isSpeechInputEnabled = true;
    5757bool RuntimeEnabledFeatures::isCSSExclusionsEnabled = false;
     58bool RuntimeEnabledFeatures::isLangAttributeAwareFormControlUIEnabled = false;
    5859
    5960#if ENABLE(SCRIPTED_SPEECH)
  • trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h

    r127674 r128583  
    261261#endif
    262262
     263    static bool langAttributeAwareFormControlUIEnabled() { return isLangAttributeAwareFormControlUIEnabled; }
     264    // The lang attribute support is incomplete and should only be turned on for tests.
     265    static void setLangAttributeAwareFormControlUIEnabled(bool isEnabled) { isLangAttributeAwareFormControlUIEnabled = isEnabled; }
     266
    263267private:
    264268    // Never instantiate.
     
    278282    static bool isSpeechInputEnabled;
    279283    static bool isCSSExclusionsEnabled;
     284    static bool isLangAttributeAwareFormControlUIEnabled;
    280285#if ENABLE(SCRIPTED_SPEECH)
    281286    static bool isScriptedSpeechEnabled;
  • trunk/Source/WebCore/testing/InternalSettings.cpp

    r128210 r128583  
    9999    , m_canStartMedia(page->canStartMedia())
    100100    , m_originalMockScrollbarsEnabled(settings->mockScrollbarsEnabled())
     101    , m_langAttributeAwareFormControlUIEnabled(RuntimeEnabledFeatures::langAttributeAwareFormControlUIEnabled())
    101102{
    102103}
     
    132133    page->setCanStartMedia(m_canStartMedia);
    133134    settings->setMockScrollbarsEnabled(m_originalMockScrollbarsEnabled);
     135    RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled(m_langAttributeAwareFormControlUIEnabled);
    134136}
    135137
     
    645647}
    646648
    647 }
     649void InternalSettings::setLangAttributeAwareFormControlUIEnabled(bool enabled)
     650{
     651    RuntimeEnabledFeatures::setLangAttributeAwareFormControlUIEnabled(enabled);
     652}
     653
     654}
  • trunk/Source/WebCore/testing/InternalSettings.h

    r128210 r128583  
    8181        bool m_canStartMedia;
    8282        bool m_originalMockScrollbarsEnabled;
     83        bool m_langAttributeAwareFormControlUIEnabled;
    8384    };
    8485
     
    144145    void setMemoryInfoEnabled(bool, ExceptionCode&);
    145146    void setStorageBlockingPolicy(const String&, ExceptionCode&);
     147    void setLangAttributeAwareFormControlUIEnabled(bool);
    146148private:
    147149    explicit InternalSettings(Page*);
  • trunk/Source/WebCore/testing/InternalSettings.idl

    r127956 r128583  
    6969        void setWindowFocusRestricted(in boolean restricted) raises(DOMException);
    7070        void setDialogElementEnabled(in boolean enabled) raises(DOMException);
     71        void setLangAttributeAwareFormControlUIEnabled(in boolean enabled);
    7172
    7273        void setPagination(in DOMString mode, in long gap, in [Optional] long pageLength) raises(DOMException);
  • trunk/Source/WebKit2/ChangeLog

    r128567 r128583  
     12012-09-14  Keishi Hattori  <keishi@webkit.org>
     2
     3        Add runtime flag that enables lang attribute for form controls in LayoutTests
     4        https://bugs.webkit.org/show_bug.cgi?id=96636
     5
     6        Reviewed by Kent Tamura.
     7
     8        * win/WebKit2.def:
     9        * win/WebKit2CFLite.def:
     10
    1112012-09-14  Grzegorz Czajkowski  <g.czajkowski@samsung.com>
    212
  • trunk/Source/WebKit2/win/WebKit2.def

    r128403 r128583  
    187187        ?isActiveInsertionPoint@WebCore@@YA_NPBVNode@1@@Z
    188188        ?isCSSExclusionsEnabled@RuntimeEnabledFeatures@WebCore@@0_NA
     189        ?isLangAttributeAwareFormControlUIEnabled@RuntimeEnabledFeatures@WebCore@@0_NA
    189190        ?isPreloaded@CachedResourceLoader@WebCore@@QBE_NABVString@WTF@@@Z
    190191        ?jsArray@WebCore@@YA?AVJSValue@JSC@@PAVExecState@3@PAVJSDOMGlobalObject@1@V?$PassRefPtr@VDOMStringList@WebCore@@@WTF@@@Z
  • trunk/Source/WebKit2/win/WebKit2CFLite.def

    r128523 r128583  
    180180        ?isActiveInsertionPoint@WebCore@@YA_NPBVNode@1@@Z
    181181        ?isCSSExclusionsEnabled@RuntimeEnabledFeatures@WebCore@@0_NA
     182        ?isLangAttributeAwareFormControlUIEnabled@RuntimeEnabledFeatures@WebCore@@0_NA
    182183        ?isPreloaded@CachedResourceLoader@WebCore@@QBE_NABVString@WTF@@@Z
    183184        ?jsArray@WebCore@@YA?AVJSValue@JSC@@PAVExecState@3@PAVJSDOMGlobalObject@1@V?$PassRefPtr@VDOMStringList@WebCore@@@WTF@@@Z
  • trunk/Source/autotools/symbols.filter

    r128403 r128583  
    162162_ZN7WebCore22RuntimeEnabledFeatures18isShadowDOMEnabledE;
    163163_ZN7WebCore22RuntimeEnabledFeatures22isCSSExclusionsEnabledE;
     164_ZN7WebCore22RuntimeEnabledFeatures40isLangAttributeAwareFormControlUIEnabledE;
    164165_ZN7WebCore22RuntimeEnabledFeatures22isDialogElementEnabledE;
    165166_ZN7WebCore22RuntimeEnabledFeatures37isAuthorShadowDOMForAnyElementEnabledE;
Note: See TracChangeset for help on using the changeset viewer.