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

Side by Side Diff: sky/engine/core/dom/TreeScope.h

Issue 759663003: Only allow one shadowRoot. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: ojan review. Created 6 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 unified diff | Download patch
« no previous file with comments | « sky/engine/core/dom/Node.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All Rights Reserved. 2 * Copyright (C) 2011 Google Inc. All Rights Reserved.
3 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 3 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 30 matching lines...) Expand all
41 class ScopedStyleResolver; 41 class ScopedStyleResolver;
42 class Node; 42 class Node;
43 43
44 // A class which inherits both Node and TreeScope must call clearRareData() in i ts destructor 44 // A class which inherits both Node and TreeScope must call clearRareData() in i ts destructor
45 // so that the Node destructor no longer does problematic NodeList cache manipul ation in 45 // so that the Node destructor no longer does problematic NodeList cache manipul ation in
46 // the destructor. 46 // the destructor.
47 class TreeScope { 47 class TreeScope {
48 public: 48 public:
49 TreeScope* parentTreeScope() const { return m_parentTreeScope; } 49 TreeScope* parentTreeScope() const { return m_parentTreeScope; }
50 50
51 TreeScope* olderShadowRootOrParentTreeScope() const;
52 bool isInclusiveOlderSiblingShadowRootOrAncestorTreeScopeOf(const TreeScope& ) const; 51 bool isInclusiveOlderSiblingShadowRootOrAncestorTreeScopeOf(const TreeScope& ) const;
53 52
54 Element* adjustedFocusedElement() const; 53 Element* adjustedFocusedElement() const;
55 Element* getElementById(const AtomicString&) const; 54 Element* getElementById(const AtomicString&) const;
56 void addElementById(const AtomicString& elementId, Element*); 55 void addElementById(const AtomicString& elementId, Element*);
57 void removeElementById(const AtomicString& elementId, Element*); 56 void removeElementById(const AtomicString& elementId, Element*);
58 57
59 Document& document() const 58 Document& document() const
60 { 59 {
61 ASSERT(m_document); 60 ASSERT(m_document);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 }; 169 };
171 170
172 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope) 171 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(TreeScope)
173 172
174 HitTestResult hitTestInDocument(const Document*, int x, int y); 173 HitTestResult hitTestInDocument(const Document*, int x, int y);
175 TreeScope* commonTreeScope(Node*, Node*); 174 TreeScope* commonTreeScope(Node*, Node*);
176 175
177 } // namespace blink 176 } // namespace blink
178 177
179 #endif // SKY_ENGINE_CORE_DOM_TREESCOPE_H_ 178 #endif // SKY_ENGINE_CORE_DOM_TREESCOPE_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Node.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698