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

Unified Diff: Source/core/frame/SmartClip.h

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 years, 3 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
Index: Source/core/frame/SmartClip.h
diff --git a/Source/core/frame/SmartClip.h b/Source/core/frame/SmartClip.h
index 4a6ac163de5b41789be87b18dc644f0c3d6c0307..34f8f9f3964962bf6562d65b35e0ac6442a0e8f4 100644
--- a/Source/core/frame/SmartClip.h
+++ b/Source/core/frame/SmartClip.h
@@ -33,6 +33,7 @@
#include "core/dom/Node.h"
#include "core/frame/LocalFrame.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -65,8 +66,9 @@ private:
// trying to do a poor-mans implementation of columnar
// selection followed by a copy operation.
class SmartClip {
+ STACK_ALLOCATED();
public:
- explicit SmartClip(PassRefPtr<LocalFrame>);
+ explicit SmartClip(PassRefPtrWillBeRawPtr<LocalFrame>);
SmartClipData dataForRect(const IntRect&);
@@ -80,7 +82,7 @@ private:
IntRect convertRectToWindow(const IntRect& nodeRect);
String extractTextFromNode(Node*);
- RefPtr<LocalFrame> m_frame;
+ RefPtrWillBeMember<LocalFrame> m_frame;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698