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

Side by Side Diff: Source/core/dom/shadow/ElementShadow.h

Issue 49153006: Have ContainerNodeAlgorithms deal with references instead of pointers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 WTF_MAKE_NONCOPYABLE(ElementShadow); WTF_MAKE_FAST_ALLOCATED; 44 WTF_MAKE_NONCOPYABLE(ElementShadow); WTF_MAKE_FAST_ALLOCATED;
45 public: 45 public:
46 static PassOwnPtr<ElementShadow> create(); 46 static PassOwnPtr<ElementShadow> create();
47 ~ElementShadow(); 47 ~ElementShadow();
48 48
49 Element* host() const; 49 Element* host() const;
50 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); } 50 ShadowRoot* youngestShadowRoot() const { return m_shadowRoots.head(); }
51 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); } 51 ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); }
52 ElementShadow* containingShadow() const; 52 ElementShadow* containingShadow() const;
53 53
54 ShadowRoot* addShadowRoot(Element* shadowHost, ShadowRoot::ShadowRootType); 54 ShadowRoot* addShadowRoot(Element& shadowHost, ShadowRoot::ShadowRootType);
55 55
56 bool applyAuthorStyles() const { return m_applyAuthorStyles; } 56 bool applyAuthorStyles() const { return m_applyAuthorStyles; }
57 bool didAffectApplyAuthorStyles(); 57 bool didAffectApplyAuthorStyles();
58 bool containsActiveStyles() const; 58 bool containsActiveStyles() const;
59 59
60 void attach(const Node::AttachContext&); 60 void attach(const Node::AttachContext&);
61 void detach(const Node::AttachContext&); 61 void detach(const Node::AttachContext&);
62 62
63 void removeAllEventListeners(); 63 void removeAllEventListeners();
64 64
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 return 0; 130 return 0;
131 if (Node* parent = node->parentNode()) 131 if (Node* parent = node->parentNode())
132 if (parent->isElementNode()) 132 if (parent->isElementNode())
133 return toElement(parent)->shadow(); 133 return toElement(parent)->shadow();
134 return 0; 134 return 0;
135 } 135 }
136 136
137 } // namespace 137 } // namespace
138 138
139 #endif 139 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698