Commit daabe8fd authored by Kent Tamura's avatar Kent Tamura Committed by Commit Bot

Make ContainerNode::EnsurePreInsertionValidity() public, and non-inline.

This is a preparation to fix crbug.com/732217. Range.insertNode() will use
EnsurePreInsertionValidity().

Bug: 732217
Change-Id: I3a348c8b9ea60d1b39b5a1d3b708a092abccbaab
Reviewed-on: https://chromium-review.googlesource.com/530868
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Reviewed-by: default avatarYoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#478574}
parent a41c5a95
...@@ -117,6 +117,10 @@ class CORE_EXPORT ContainerNode : public Node { ...@@ -117,6 +117,10 @@ class CORE_EXPORT ContainerNode : public Node {
ExceptionState& = ASSERT_NO_EXCEPTION); ExceptionState& = ASSERT_NO_EXCEPTION);
Node* RemoveChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION); Node* RemoveChild(Node* child, ExceptionState& = ASSERT_NO_EXCEPTION);
Node* AppendChild(Node* new_child, ExceptionState& = ASSERT_NO_EXCEPTION); Node* AppendChild(Node* new_child, ExceptionState& = ASSERT_NO_EXCEPTION);
bool EnsurePreInsertionValidity(const Node& new_child,
const Node* next,
const Node* old_child,
ExceptionState&) const;
Element* getElementById(const AtomicString& id) const; Element* getElementById(const AtomicString& id) const;
HTMLCollection* getElementsByTagName(const AtomicString&); HTMLCollection* getElementsByTagName(const AtomicString&);
...@@ -415,10 +419,6 @@ class CORE_EXPORT ContainerNode : public Node { ...@@ -415,10 +419,6 @@ class CORE_EXPORT ContainerNode : public Node {
bool RecheckNodeInsertionStructuralPrereq(const NodeVector&, bool RecheckNodeInsertionStructuralPrereq(const NodeVector&,
const Node* next, const Node* next,
ExceptionState&); ExceptionState&);
inline bool EnsurePreInsertionValidity(const Node& new_child,
const Node* next,
const Node* old_child,
ExceptionState&) const;
inline bool CheckParserAcceptChild(const Node& new_child) const; inline bool CheckParserAcceptChild(const Node& new_child) const;
inline bool ContainsConsideringHostElements(const Node&, inline bool ContainsConsideringHostElements(const Node&,
ExceptionState&) const; ExceptionState&) const;
......
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