Changeset 144725 in webkit
- Timestamp:
- Mar 4, 2013 10:35:55 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r144723 r144725 1 2013-03-04 Kunihiko Sakamoto <ksakamoto@chromium.org> 2 3 [Chromium] Add runtime flag for font load events 4 https://bugs.webkit.org/show_bug.cgi?id=111296 5 6 Reviewed by Kent Tamura. 7 8 Add a runtime feature flag for FontLoader interface (disabled by default), 9 and enable ENABLE_FONT_LOAD_EVENTS build flag for chromium. 10 11 * bindings/generic/RuntimeEnabledFeatures.cpp: 12 (WebCore): 13 * bindings/generic/RuntimeEnabledFeatures.h: 14 (RuntimeEnabledFeatures): 15 (WebCore::RuntimeEnabledFeatures::setFontLoadEventsEnabled): 16 (WebCore::RuntimeEnabledFeatures::fontLoadEventsEnabled): 17 1 18 2013-03-04 Brandon Jones <bajones@google.com> 2 19 -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r143865 r144725 243 243 #endif 244 244 245 #if ENABLE(FONT_LOAD_EVENTS) 246 bool RuntimeEnabledFeatures::isFontLoadEventsEnabled = false; 247 #endif 248 245 249 } // namespace WebCore -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r143865 r144725 88 88 #endif 89 89 90 #if ENABLE(FONT_LOAD_EVENTS) 91 static void setFontLoadEventsEnabled(bool isEnabled) { isFontLoadEventsEnabled = isEnabled; } 92 static bool fontLoadEventsEnabled() { return isFontLoadEventsEnabled; } 93 #else 94 static void setFontLoadEventsEnabled(bool) { } 95 static bool fontLoadEventsEnabled() { return false; } 96 #endif 97 90 98 #if ENABLE(FULLSCREEN_API) 91 99 // Mozilla version … … 397 405 #endif 398 406 407 #if ENABLE(FONT_LOAD_EVENTS) 408 static bool isFontLoadEventsEnabled; 409 #endif 410 399 411 }; 400 412 -
trunk/Source/WebKit/chromium/ChangeLog
r144712 r144725 1 2013-03-04 Kunihiko Sakamoto <ksakamoto@chromium.org> 2 3 [Chromium] Add runtime flag for font load events 4 https://bugs.webkit.org/show_bug.cgi?id=111296 5 6 Reviewed by Kent Tamura. 7 8 Add a runtime feature flag for FontLoader interface (disabled by default), 9 and enable ENABLE_FONT_LOAD_EVENTS build flag for chromium. 10 11 * features.gypi: 12 * public/WebRuntimeFeatures.h: 13 (WebRuntimeFeatures): 14 * src/WebRuntimeFeatures.cpp: 15 (WebKit::WebRuntimeFeatures::enableFontLoadEvents): 16 (WebKit): 17 (WebKit::WebRuntimeFeatures::isFontLoadEventsEnabled): 18 1 19 2013-03-04 Sheriff Bot <webkit.review.bot@gmail.com> 2 20 -
trunk/Source/WebKit/chromium/features.gypi
r144646 r144725 70 70 'ENABLE_FILE_SYSTEM=1', 71 71 'ENABLE_FILTERS=1', 72 'ENABLE_FONT_LOAD_EVENTS= 0',72 'ENABLE_FONT_LOAD_EVENTS=1', 73 73 'ENABLE_FULLSCREEN_API=1', 74 74 'ENABLE_GAMEPAD=1', -
trunk/Source/WebKit/chromium/public/WebRuntimeFeatures.h
r143865 r144725 165 165 WEBKIT_EXPORT static bool isCSSRegionsEnabled(); 166 166 167 WEBKIT_EXPORT static void enableFontLoadEvents(bool); 168 WEBKIT_EXPORT static bool isFontLoadEventsEnabled(); 169 167 170 WEBKIT_EXPORT static void enableExperimentalContentSecurityPolicyFeatures(bool); 168 171 WEBKIT_EXPORT static bool isExperimentalContentSecurityPolicyFeaturesEnabled(); -
trunk/Source/WebKit/chromium/src/WebRuntimeFeatures.cpp
r143865 r144725 711 711 } 712 712 713 void WebRuntimeFeatures::enableFontLoadEvents(bool enable) 714 { 715 RuntimeEnabledFeatures::setFontLoadEventsEnabled(enable); 716 } 717 718 bool WebRuntimeFeatures::isFontLoadEventsEnabled() 719 { 720 return RuntimeEnabledFeatures::fontLoadEventsEnabled(); 721 } 722 713 723 void WebRuntimeFeatures::enableRequestAutocomplete(bool enable) 714 724 {
Note: See TracChangeset
for help on using the changeset viewer.