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

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

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 ShadowRoot* olderShadowRoot() const { return next(); } 114 ShadowRoot* olderShadowRoot() const { return next(); }
115 115
116 String innerHTML() const; 116 String innerHTML() const;
117 void setInnerHTML(const String&, ExceptionState&); 117 void setInnerHTML(const String&, ExceptionState&);
118 118
119 PassRefPtr<Node> cloneNode(bool, ExceptionState&); 119 PassRefPtr<Node> cloneNode(bool, ExceptionState&);
120 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod e(true, exceptionState); } 120 PassRefPtr<Node> cloneNode(ExceptionState& exceptionState) { return cloneNod e(true, exceptionState); }
121 121
122 StyleSheetList* styleSheets(); 122 StyleSheetList* styleSheets();
123 123
124 virtual void trace(Visitor* visitor) OVERRIDE
125 {
126 TreeScope::trace(visitor);
127 DocumentFragment::trace(visitor);
128 }
129
124 private: 130 private:
125 ShadowRoot(Document&, ShadowRootType); 131 ShadowRoot(Document&, ShadowRootType);
126 virtual ~ShadowRoot(); 132 virtual ~ShadowRoot();
127 133
128 virtual void dispose() OVERRIDE; 134 virtual void dispose() OVERRIDE;
129 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE; 135 virtual void childrenChanged(bool changedByParser, Node* beforeChange, Node* afterChange, int childCountDelta) OVERRIDE;
130 136
131 ShadowRootRareData* ensureShadowRootRareData(); 137 ShadowRootRareData* ensureShadowRootRareData();
132 138
133 void addChildShadowRoot(); 139 void addChildShadowRoot();
(...skipping 19 matching lines...) Expand all
153 { 159 {
154 return adjustedFocusedElement(); 160 return adjustedFocusedElement();
155 } 161 }
156 162
157 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot()); 163 DEFINE_NODE_TYPE_CASTS(ShadowRoot, isShadowRoot());
158 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot()); 164 DEFINE_TYPE_CASTS(ShadowRoot, TreeScope, treeScope, treeScope->rootNode().isShad owRoot(), treeScope.rootNode().isShadowRoot());
159 165
160 } // namespace 166 } // namespace
161 167
162 #endif 168 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698