OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(enable); | 400 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(enable); |
401 } | 401 } |
402 | 402 |
403 bool WebRuntimeFeatures::isExperimentalShadowDOMEnabled() | 403 bool WebRuntimeFeatures::isExperimentalShadowDOMEnabled() |
404 { | 404 { |
405 return RuntimeEnabledFeatures::experimentalShadowDOMEnabled(); | 405 return RuntimeEnabledFeatures::experimentalShadowDOMEnabled(); |
406 } | 406 } |
407 | 407 |
408 void WebRuntimeFeatures::enableCustomDOMElements(bool enable) | 408 void WebRuntimeFeatures::enableCustomDOMElements(bool enable) |
409 { | 409 { |
410 #if ENABLE(CUSTOM_ELEMENTS) | |
411 RuntimeEnabledFeatures::setCustomDOMElements(enable); | 410 RuntimeEnabledFeatures::setCustomDOMElements(enable); |
412 #else | |
413 UNUSED_PARAM(enable); | |
414 #endif | |
415 } | 411 } |
416 | 412 |
417 bool WebRuntimeFeatures::isCustomDOMElementsEnabled() | 413 bool WebRuntimeFeatures::isCustomDOMElementsEnabled() |
418 { | 414 { |
419 #if ENABLE(CUSTOM_ELEMENTS) | |
420 return RuntimeEnabledFeatures::customDOMElementsEnabled(); | 415 return RuntimeEnabledFeatures::customDOMElementsEnabled(); |
421 #else | |
422 return false; | |
423 #endif | |
424 } | 416 } |
425 | 417 |
426 | 418 |
427 void WebRuntimeFeatures::enableStyleScoped(bool enable) | 419 void WebRuntimeFeatures::enableStyleScoped(bool enable) |
428 { | 420 { |
429 RuntimeEnabledFeatures::setStyleScopedEnabled(enable); | 421 RuntimeEnabledFeatures::setStyleScopedEnabled(enable); |
430 } | 422 } |
431 | 423 |
432 bool WebRuntimeFeatures::isStyleScopedEnabled() | 424 bool WebRuntimeFeatures::isStyleScopedEnabled() |
433 { | 425 { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
584 { | 576 { |
585 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); | 577 RuntimeEnabledFeatures::setExperimentalWebSocketEnabled(enable); |
586 } | 578 } |
587 | 579 |
588 bool WebRuntimeFeatures::isExperimentalWebSocketEnabled() | 580 bool WebRuntimeFeatures::isExperimentalWebSocketEnabled() |
589 { | 581 { |
590 return RuntimeEnabledFeatures::experimentalWebSocketEnabled(); | 582 return RuntimeEnabledFeatures::experimentalWebSocketEnabled(); |
591 } | 583 } |
592 | 584 |
593 } // namespace WebKit | 585 } // namespace WebKit |
OLD | NEW |