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

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

Issue 1134173002: Get rid of TreeBoundaryCrossingRules. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Missing important UA rules. Created 5 years, 7 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 | « Source/core/dom/StyleEngine.cpp ('k') | Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/TreeScope.h
diff --git a/Source/core/dom/TreeScope.h b/Source/core/dom/TreeScope.h
index 1bfcdf91861bd05cc0b548b98cc7eebc3ba2422e..9c08a3a75cc62a7568c8c31d07838cbbf20b097d 100644
--- a/Source/core/dom/TreeScope.h
+++ b/Source/core/dom/TreeScope.h
@@ -141,6 +141,10 @@ public:
ScopedStyleResolver& ensureScopedStyleResolver();
void clearScopedStyleResolver();
+ TreeScope* composedParent();
+
+ static TreeScope* treeScopeInComposedTree(const Node&);
+
protected:
TreeScope(ContainerNode&, Document&);
TreeScope(Document&);
@@ -152,6 +156,7 @@ protected:
void setDocument(Document& document) { m_document = &document; }
void setParentTreeScope(TreeScope&);
+ void clearComposedParent() { m_composedParent = nullptr; }
#if !ENABLE(OILPAN)
bool hasGuardRefCount() const { return m_guardRefCount; }
@@ -179,6 +184,7 @@ private:
RawPtrWillBeMember<ContainerNode> m_rootNode;
RawPtrWillBeMember<Document> m_document;
RawPtrWillBeMember<TreeScope> m_parentTreeScope;
+ RawPtrWillBeMember<TreeScope> m_composedParent;
#if !ENABLE(OILPAN)
int m_guardRefCount;
« no previous file with comments | « Source/core/dom/StyleEngine.cpp ('k') | Source/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698