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

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

Issue 11846002: Merge 138131 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 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
« no previous file with comments | « LayoutTests/fast/dom/shadow/getelementbyid-shadow-expected.txt ('k') | Source/WebCore/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/Element.h
===================================================================
--- Source/WebCore/dom/Element.h (revision 139387)
+++ Source/WebCore/dom/Element.h (working copy)
@@ -826,6 +826,25 @@
return isElementNode() && toElement(this)->hasClass();
}
+inline Node::InsertionNotificationRequest Node::insertedInto(ContainerNode* insertionPoint)
+{
+ ASSERT(insertionPoint->inDocument() || isContainerNode());
+ if (insertionPoint->inDocument())
+ setFlag(InDocumentFlag);
+ if (parentOrHostNode()->isInShadowTree())
+ setFlag(IsInShadowTreeFlag);
+ return InsertionDone;
+}
+
+inline void Node::removedFrom(ContainerNode* insertionPoint)
+{
+ ASSERT(insertionPoint->inDocument() || isContainerNode());
+ if (insertionPoint->inDocument())
+ clearFlag(InDocumentFlag);
+ if (isInShadowTree() && !treeScope()->rootNode()->isShadowRoot())
+ clearFlag(IsInShadowTreeFlag);
+}
+
inline bool isShadowHost(const Node* node)
{
return node && node->isElementNode() && toElement(node)->shadow();
« no previous file with comments | « LayoutTests/fast/dom/shadow/getelementbyid-shadow-expected.txt ('k') | Source/WebCore/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698