Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: Source/WebKit/chromium/src/WebRuntimeFeatures.cpp

Issue 14083009: Remove ENABLE_CUSTOM_ELEMENTS compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebKit/chromium/src/WebKit.cpp ('k') | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebKit.cpp ('k') | Source/bindings/scripts/CodeGeneratorV8.pm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698