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

Unified Diff: Source/core/dom/Element.h

Issue 105693009: Move insertAdjacentHTML to Element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Correct base. Should not include patches it depends on. Created 7 years 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
« no previous file with comments | « LayoutTests/fast/dynamic/insertAdjacentHTML-svg-expected.txt ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.h
diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
index 2ff1f47f7e2b8123da0183888c329ed76967bc23..32c299eb1f73900dfea181261875e9f83db6d21f 100644
--- a/Source/core/dom/Element.h
+++ b/Source/core/dom/Element.h
@@ -82,11 +82,6 @@ public:
static PassRefPtr<Element> create(const QualifiedName&, Document*);
virtual ~Element();
- String innerHTML() const;
- String outerHTML() const;
- void setInnerHTML(const String&, ExceptionState&);
- void setOuterHTML(const String&, ExceptionState&);
-
DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecopy);
DEFINE_ATTRIBUTE_EVENT_LISTENER(beforecut);
DEFINE_ATTRIBUTE_EVENT_LISTENER(beforepaste);
@@ -398,6 +393,11 @@ public:
String innerText();
String outerText();
+ String innerHTML() const;
+ String outerHTML() const;
+ void setInnerHTML(const String&, ExceptionState&);
+ void setOuterHTML(const String&, ExceptionState&);
+ void insertAdjacentHTML(const String& where, const String& html, ExceptionState&);
String textFromChildren();
@@ -563,6 +563,8 @@ protected:
PassRefPtr<RenderStyle> originalStyleForRenderer();
+ Node* insertAdjacent(const String& where, Node* newChild, ExceptionState&);
+
private:
void styleAttributeChanged(const AtomicString& newStyleString, AttributeModificationReason);
« no previous file with comments | « LayoutTests/fast/dynamic/insertAdjacentHTML-svg-expected.txt ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698