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

Unified Diff: Source/core/dom/shadow/ElementShadow.h

Issue 59113007: Utilize PassRefPtr and C++ refs in more places in ShadowRoot code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/shadow/ElementShadow.h
diff --git a/Source/core/dom/shadow/ElementShadow.h b/Source/core/dom/shadow/ElementShadow.h
index bab1c2382d34533346ec0fa07d2412f9ee555e30..6953a0599ba26866b946f7de79ebe40a42025a0e 100644
--- a/Source/core/dom/shadow/ElementShadow.h
+++ b/Source/core/dom/shadow/ElementShadow.h
@@ -35,6 +35,7 @@
#include "wtf/HashMap.h"
#include "wtf/Noncopyable.h"
#include "wtf/PassOwnPtr.h"
+#include "wtf/PassRefPtr.h"
#include "wtf/Vector.h"
namespace WebCore {
@@ -50,7 +51,7 @@ public:
ShadowRoot* oldestShadowRoot() const { return m_shadowRoots.tail(); }
ElementShadow* containingShadow() const;
- ShadowRoot* addShadowRoot(Element& shadowHost, ShadowRoot::ShadowRootType);
+ PassRefPtr<ShadowRoot> addShadowRoot(Element& shadowHost, ShadowRoot::ShadowRootType);
eseidel 2013/11/06 01:11:17 add methods generally take a PassRefPtr<>, not ret
adamk 2013/11/06 02:01:39 It creates a shadow root and adds it to the shadow
bool applyAuthorStyles() const { return m_applyAuthorStyles; }
bool didAffectApplyAuthorStyles();

Powered by Google App Engine
This is Rietveld 408576698