Changeset 114101 in webkit
- Timestamp:
- Apr 13, 2012 2:15:27 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r114098 r114101 1 2012-04-13 Kent Tamura <tkent@chromium.org> 2 3 Add a runtime flag for <input type=date> 4 https://bugs.webkit.org/show_bug.cgi?id=83853 5 6 Reviewed by Adam Barth. 7 8 * bindings/generic/RuntimeEnabledFeatures.cpp: 9 * bindings/generic/RuntimeEnabledFeatures.h: 10 (WebCore::RuntimeEnabledFeatures::inputTypeDateEnabled): Added. 11 (WebCore::RuntimeEnabledFeatures::setInputTypeDateEnabled): Added. 12 * html/InputType.cpp: 13 (WebCore::createInputTypeFactoryMap): 14 Don't register type=date if !RuntimeEnabledFeatures::inputTypeDateEnabled() 15 1 16 2012-04-13 Adam Barth <abarth@webkit.org> 2 17 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r114020 r114101 198 198 #endif 199 199 200 #if ENABLE(INPUT_TYPE_DATE) 201 bool RuntimeEnabledFeatures::isInputTypeDateEnabled = true; 202 #endif 203 200 204 } // namespace WebCore -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r114020 r114101 229 229 #endif 230 230 231 #if ENABLE(INPUT_TYPE_DATE) 232 static bool inputTypeDateEnabled() { return isInputTypeDateEnabled; } 233 static void setInputTypeDateEnabled(bool isEnabled) { isInputTypeDateEnabled = isEnabled; } 234 #endif 235 231 236 private: 232 237 // Never instantiate. … … 301 306 static bool isStyleScopedEnabled; 302 307 #endif 308 309 #if ENABLE(INPUT_TYPE_DATE) 310 static bool isInputTypeDateEnabled; 311 #endif 303 312 }; 304 313 -
trunk/Source/WebCore/html/InputType.cpp
r113972 r114101 56 56 #include "RenderObject.h" 57 57 #include "ResetInputType.h" 58 #include "RuntimeEnabledFeatures.h" 58 59 #include "SearchInputType.h" 59 60 #include "ShadowRoot.h" … … 87 88 #endif 88 89 #if ENABLE(INPUT_TYPE_DATE) 89 map->add(InputTypeNames::date(), DateInputType::create); 90 if (RuntimeEnabledFeatures::inputTypeDateEnabled()) 91 map->add(InputTypeNames::date(), DateInputType::create); 90 92 #endif 91 93 #if ENABLE(INPUT_TYPE_DATETIME) -
trunk/Source/WebKit/chromium/ChangeLog
r114094 r114101 1 2012-04-13 Kent Tamura <tkent@chromium.org> 2 3 Add a runtime flag for <input type=date> 4 https://bugs.webkit.org/show_bug.cgi?id=83853 5 6 Reviewed by Adam Barth. 7 8 * public/WebRuntimeFeatures.h: 9 (WebRuntimeFeatures): Add enableInputTypeDate() and isInputTypeDateEnabled(). 10 * src/WebRuntimeFeatures.cpp: 11 (WebKit::WebRuntimeFeatures::enableInputTypeDate): Added. 12 (WebKit::WebRuntimeFeatures::isInputTypeDateEnabled): Added. 13 1 14 2012-04-13 Sheriff Bot <webkit.review.bot@gmail.com> 2 15 -
trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h
r113736 r114101 134 134 WEBKIT_EXPORT static bool isStyleScopedEnabled(); 135 135 136 WEBKIT_EXPORT static void enableInputTypeDate(bool); 137 WEBKIT_EXPORT static bool isInputTypeDateEnabled(); 138 136 139 private: 137 140 WebRuntimeFeatures(); -
trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
r113875 r114101 503 503 } 504 504 505 void WebRuntimeFeatures::enableInputTypeDate(bool enable) 506 { 507 #if ENABLE(INPUT_TYPE_DATE) 508 RuntimeEnabledFeatures::setInputTypeDateEnabled(enable); 509 #else 510 UNUSED_PARAM(enable); 511 #endif 512 } 513 514 bool WebRuntimeFeatures::isInputTypeDateEnabled() 515 { 516 #if ENABLE(INPUT_TYPE_DATE) 517 return RuntimeEnabledFeatures::inputTypeDateEnabled(); 518 #else 519 return false; 520 #endif 521 } 505 522 506 523 } // namespace WebKit
Note: See TracChangeset
for help on using the changeset viewer.