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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(enable); | 352 RuntimeEnabledFeatures::setExperimentalShadowDOMEnabled(enable); |
353 } | 353 } |
354 | 354 |
355 bool WebRuntimeFeatures::isExperimentalShadowDOMEnabled() | 355 bool WebRuntimeFeatures::isExperimentalShadowDOMEnabled() |
356 { | 356 { |
357 return RuntimeEnabledFeatures::experimentalShadowDOMEnabled(); | 357 return RuntimeEnabledFeatures::experimentalShadowDOMEnabled(); |
358 } | 358 } |
359 | 359 |
360 void WebRuntimeFeatures::enableCustomDOMElements(bool enable) | 360 void WebRuntimeFeatures::enableCustomDOMElements(bool enable) |
361 { | 361 { |
362 #if ENABLE(CUSTOM_ELEMENTS) | |
363 RuntimeEnabledFeatures::setCustomDOMElements(enable); | 362 RuntimeEnabledFeatures::setCustomDOMElements(enable); |
364 #else | |
365 UNUSED_PARAM(enable); | |
366 #endif | |
367 } | 363 } |
368 | 364 |
369 bool WebRuntimeFeatures::isCustomDOMElementsEnabled() | 365 bool WebRuntimeFeatures::isCustomDOMElementsEnabled() |
370 { | 366 { |
371 #if ENABLE(CUSTOM_ELEMENTS) | |
372 return RuntimeEnabledFeatures::customDOMElementsEnabled(); | 367 return RuntimeEnabledFeatures::customDOMElementsEnabled(); |
373 #else | |
374 return false; | |
375 #endif | |
376 } | 368 } |
377 | 369 |
378 | 370 |
379 void WebRuntimeFeatures::enableStyleScoped(bool enable) | 371 void WebRuntimeFeatures::enableStyleScoped(bool enable) |
380 { | 372 { |
381 RuntimeEnabledFeatures::setStyleScopedEnabled(enable); | 373 RuntimeEnabledFeatures::setStyleScopedEnabled(enable); |
382 } | 374 } |
383 | 375 |
384 bool WebRuntimeFeatures::isStyleScopedEnabled() | 376 bool WebRuntimeFeatures::isStyleScopedEnabled() |
385 { | 377 { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
556 { | 548 { |
557 RuntimeEnabledFeatures::setIMEAPIEnabled(enable); | 549 RuntimeEnabledFeatures::setIMEAPIEnabled(enable); |
558 } | 550 } |
559 | 551 |
560 bool WebRuntimeFeatures::isIMEAPIEnabled() | 552 bool WebRuntimeFeatures::isIMEAPIEnabled() |
561 { | 553 { |
562 return RuntimeEnabledFeatures::imeAPIEnabled(); | 554 return RuntimeEnabledFeatures::imeAPIEnabled(); |
563 } | 555 } |
564 | 556 |
565 } // namespace WebKit | 557 } // namespace WebKit |
OLD | NEW |