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

Unified Diff: sky/engine/core/dom/shadow/ShadowRoot.cpp

Issue 665613003: Remove the ability to parse HTML fragments (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/dom/shadow/ShadowRoot.cpp
diff --git a/sky/engine/core/dom/shadow/ShadowRoot.cpp b/sky/engine/core/dom/shadow/ShadowRoot.cpp
index b6fb2f78409956eb47dd25f1780ed42310e204e7..34ee6563aee925cbdb6a727bf20a914a15f9fd29 100644
--- a/sky/engine/core/dom/shadow/ShadowRoot.cpp
+++ b/sky/engine/core/dom/shadow/ShadowRoot.cpp
@@ -103,22 +103,6 @@ PassRefPtrWillBeRawPtr<Node> ShadowRoot::cloneNode(bool, ExceptionState& excepti
return nullptr;
}
-String ShadowRoot::innerHTML() const
-{
- return createMarkup(this, ChildrenOnly);
-}
-
-void ShadowRoot::setInnerHTML(const String& markup, ExceptionState& exceptionState)
-{
- if (isOrphan()) {
- exceptionState.throwDOMException(InvalidAccessError, "The ShadowRoot does not have a host.");
- return;
- }
-
- if (RefPtrWillBeRawPtr<DocumentFragment> fragment = createFragmentForInnerOuterHTML(markup, host(), "innerHTML", exceptionState))
- replaceChildrenWithFragment(this, fragment.release(), exceptionState);
-}
-
void ShadowRoot::recalcStyle(StyleRecalcChange change)
{
// ShadowRoot doesn't support custom callbacks.

Powered by Google App Engine
This is Rietveld 408576698