Commit 52221d32 authored by hayato@chromium.org's avatar hayato@chromium.org

Unguard Shadow DOM features.

Runtime ShadowDOM flag was already set to true at r169201. This change shouldn't have any effects.

CSSSelector still uses this flag. I'll clean up CSSSelector in another patch.

BUG=336121

Review URL: https://codereview.chromium.org/206033004

git-svn-id: svn://svn.chromium.org/blink/trunk@169912 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent ebaaf24f
......@@ -1049,8 +1049,6 @@ combinator:
// FIXME: implement named combinator and replace the following /shadow/, /shadow-child/ and
// /shadow-deep/ with named combinator's implementation.
| '/' IDENT '/' maybe_space {
if (!RuntimeEnabledFeatures::shadowDOMEnabled())
YYERROR;
if ($2.equalIgnoringCase("shadow"))
$$ = CSSSelector::Shadow;
else if ($2.equalIgnoringCase("shadow-deep"))
......@@ -1905,4 +1903,3 @@ rule_error_recovery:
;
%%
......@@ -372,7 +372,6 @@ static HashMap<StringImpl*, CSSSelector::PseudoType>* nameToPseudoTypeMap()
if (!RuntimeEnabledFeatures::shadowDOMEnabled())
continue;
}
const char* str = pseudoTypeMap[i].string;
CSSSelector::PseudoType type;
type = static_cast<CSSSelector::PseudoType>(pseudoTypeMap[i].type);
......
......@@ -111,10 +111,10 @@
[RaisesException, ImplementedAs=matches, MeasureAs=ElementPrefixedMatchesSelector] boolean webkitMatchesSelector(DOMString selectors);
// Shadow DOM API
[RuntimeEnabled=ShadowDOM, Reflect, TreatNullAs=NullString, PerWorldBindings] attribute DOMString pseudo;
[RuntimeEnabled=ShadowDOM, RaisesException] ShadowRoot createShadowRoot();
[RuntimeEnabled=ShadowDOM, PerWorldBindings] readonly attribute ShadowRoot shadowRoot;
[RuntimeEnabled=ShadowDOM, PerWorldBindings] NodeList getDestinationInsertionPoints();
[Reflect, TreatNullAs=NullString, PerWorldBindings] attribute DOMString pseudo;
[RaisesException] ShadowRoot createShadowRoot();
[PerWorldBindings] readonly attribute ShadowRoot shadowRoot;
[PerWorldBindings] NodeList getDestinationInsertionPoints();
// To-be-deprecated prefixed Shadow DOM API
[ImplementedAs=createShadowRoot, RaisesException, MeasureAs=ShadowDOMPrefixedCreateShadowRoot] ShadowRoot webkitCreateShadowRoot();
......
......@@ -30,5 +30,5 @@
[MeasureAs=TextReplaceWholeText] Text replaceWholeText(DOMString content); // Removed from DOM4.
// Shadow DOM API
[RuntimeEnabled=ShadowDOM, PerWorldBindings] NodeList getDestinationInsertionPoints();
[PerWorldBindings] NodeList getDestinationInsertionPoints();
};
......@@ -29,7 +29,7 @@
] interface ShadowRoot : DocumentFragment {
readonly attribute Element activeElement;
[DeprecateAs=ShadowRootApplyAuthorStyles] attribute boolean applyAuthorStyles;
[RuntimeEnabled=ShadowDOM, ImplementedAs=olderShadowRootForBindings] readonly attribute ShadowRoot olderShadowRoot;
[ImplementedAs=olderShadowRootForBindings] readonly attribute ShadowRoot olderShadowRoot;
[TreatNullAs=NullString, CustomElementCallbacks, PerWorldBindings, ActivityLogging=SetterForIsolatedWorlds, RaisesException=Setter] attribute DOMString innerHTML;
......@@ -44,6 +44,6 @@
Element elementFromPoint([Default=Undefined] optional long x,
[Default=Undefined] optional long y);
[RuntimeEnabled=ShadowDOM] readonly attribute StyleSheetList styleSheets;
[RuntimeEnabled=ShadowDOM] readonly attribute Element host;
readonly attribute StyleSheetList styleSheets;
readonly attribute Element host;
};
......@@ -71,7 +71,7 @@
[ImplementedAs=legacyReturnValue, MeasureAs=EventReturnValue] attribute boolean returnValue;
attribute boolean cancelBubble;
[RuntimeEnabled=ShadowDOM] readonly attribute NodeList path;
readonly attribute NodeList path;
[Custom=Getter] readonly attribute DataTransfer clipboardData;
};
......@@ -131,7 +131,7 @@ void EventPath::resetWith(Node* node)
m_treeScopeEventContexts.clear();
calculatePath();
calculateAdjustedTargets();
if (RuntimeEnabledFeatures::shadowDOMEnabled() && !node->isSVGElement())
if (!node->isSVGElement())
calculateTreeScopePrePostOrderNumbers();
}
......
......@@ -233,7 +233,7 @@
// Unprefixed ShadowRoot constructor should be visible when the feature flag is enabled.
// FIXME: When it's ready to remove WebKitShadowRoot, get rid of both constructors from Window.idl and remove
// [NoInterfaceObject] from ShadowRoot interface definition.
[RuntimeEnabled=ShadowDOM] attribute ShadowRootConstructor ShadowRoot;
attribute ShadowRootConstructor ShadowRoot;
[MeasureAs=PrefixedShadowRootConstructor] attribute ShadowRootConstructor WebKitShadowRoot;
// window.toString() requires special handling in V8
......
......@@ -29,5 +29,5 @@
*/
interface HTMLShadowElement : HTMLElement {
[RuntimeEnabled=ShadowDOM] NodeList getDistributedNodes();
NodeList getDistributedNodes();
};
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment