Changeset 118098 in webkit
- Timestamp:
- May 22, 2012 7:03:09 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r118096 r118098 1 2012-05-22 MORITA Hajime <morrita@google.com> 2 3 <shadow> and <content> should be hidden behind ContextEnabledFeatures 4 https://bugs.webkit.org/show_bug.cgi?id=87063 5 6 This change repalces "runtimeConditional" tag definition property 7 with new "contextConditional" property, which refers 8 ContextEnabledFeatures instead of RuntimeEnabledFeatures. 9 10 Reviewed by Dimitri Glazkov. 11 12 No new tests. DRT cannot test this. No behaviour change on DRT. 13 14 * dom/make_names.pl: 15 (defaultTagPropertyHash): 16 (printConstructorInterior): 17 (printFactoryCppFile): 18 (printWrapperFunctions): 19 (printWrapperFactoryCppFile): 20 * html/HTMLTagNames.in: 21 1 22 2012-05-22 Kent Tamura <tkent@chromium.org> 2 23 -
trunk/Source/WebCore/dom/make_names.pl
r117371 r118098 187 187 'wrapperOnlyIfMediaIsAvailable' => 0, 188 188 'conditional' => 0, 189 ' runtimeConditional' => 0189 'contextConditional' => 0 190 190 ); 191 191 } … … 376 376 } 377 377 378 my $ runtimeConditional = $enabledTags{$tagName}{runtimeConditional};379 if ($ runtimeConditional) {378 my $contextConditional = $enabledTags{$tagName}{contextConditional}; 379 if ($contextConditional) { 380 380 print F <<END 381 if (! RuntimeEnabledFeatures::${runtimeConditional}Enabled())381 if (!ContextEnabledFeatures::${contextConditional}Enabled(document->domWindow())) 382 382 return 0; 383 383 END … … 805 805 print F <<END 806 806 807 #include " RuntimeEnabledFeatures.h"807 #include "ContextEnabledFeatures.h" 808 808 809 809 #if ENABLE(DASHBOARD_SUPPORT) || ENABLE(VIDEO) … … 1009 1009 END 1010 1010 ; 1011 } elsif ($enabledTags{$tagName}{ runtimeConditional}) {1012 my $ runtimeConditional = $enabledTags{$tagName}{runtimeConditional};1011 } elsif ($enabledTags{$tagName}{contextConditional}) { 1012 my $contextConditional = $enabledTags{$tagName}{contextConditional}; 1013 1013 print F <<END 1014 1014 static JSDOMWrapper* create${JSInterfaceName}Wrapper(ExecState* exec, JSDOMGlobalObject* globalObject, PassRefPtr<$parameters{namespace}Element> element) 1015 1015 { 1016 if (! RuntimeEnabledFeatures::${runtimeConditional}Enabled()) {1016 if (!ContextEnabledFeatures::${contextConditional}Enabled(element->document()->domWindow())) { 1017 1017 ASSERT(!element || element->is$parameters{fallbackInterfaceName}()); 1018 1018 return CREATE_DOM_WRAPPER(exec, globalObject, $parameters{fallbackInterfaceName}, element.get()); … … 1046 1046 END 1047 1047 ; 1048 } elsif ($enabledTags{$tagName}{ runtimeConditional}) {1049 my $ runtimeConditional = $enabledTags{$tagName}{runtimeConditional};1048 } elsif ($enabledTags{$tagName}{contextConditional}) { 1049 my $contextConditional = $enabledTags{$tagName}{contextConditional}; 1050 1050 print F <<END 1051 1051 static v8::Handle<v8::Value> create${JSInterfaceName}Wrapper($parameters{namespace}Element* element, v8::Isolate* isolate) 1052 1052 { 1053 if (! RuntimeEnabledFeatures::${runtimeConditional}Enabled())1053 if (!ContextEnabledFeatures::${contextConditional}Enabled(element->document()->domWindow())) 1054 1054 return V8$parameters{fallbackInterfaceName}::wrap(to$parameters{fallbackInterfaceName}(element), isolate); 1055 1055 return toV8(static_cast<${JSInterfaceName}*>(element), isolate); … … 1112 1112 print F <<END 1113 1113 1114 #include " RuntimeEnabledFeatures.h"1114 #include "ContextEnabledFeatures.h" 1115 1115 1116 1116 #if ENABLE(VIDEO) -
trunk/Source/WebCore/html/HTMLTagNames.in
r116384 r118098 32 32 colgroup interfaceName=HTMLTableColElement 33 33 command interfaceName=HTMLElement 34 content interfaceName=HTMLContentElement, conditional=SHADOW_DOM, runtimeConditional=shadowDOM34 content interfaceName=HTMLContentElement, conditional=SHADOW_DOM, contextConditional=shadowDOM 35 35 webkitShadowContent interfaceName=HTMLElement, noConstructor 36 36 datalist interfaceName=HTMLDataListElement, conditional=DATALIST … … 96 96 option 97 97 output constructorNeedsFormElement 98 shadow interfaceName=HTMLShadowElement, conditional=SHADOW_DOM, runtimeConditional=shadowDOM98 shadow interfaceName=HTMLShadowElement, conditional=SHADOW_DOM, contextConditional=shadowDOM 99 99 p interfaceName=HTMLParagraphElement 100 100 param
Note: See TracChangeset
for help on using the changeset viewer.