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

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

Issue 603193005: Move the Widget hierarchy to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Switch LocalFrame::m_pluginElements rep to HashSet<HTMLPlugInElement*> Created 6 years, 2 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/FrameViewAutoSizeInfo.h
diff --git a/Source/core/frame/FrameViewAutoSizeInfo.h b/Source/core/frame/FrameViewAutoSizeInfo.h
index 62617b09a92ff267dc6d07e8237b168a81cdc3cd..e77fcfbac79a59fca0303524bea2bbbe0422e5b3 100644
--- a/Source/core/frame/FrameViewAutoSizeInfo.h
+++ b/Source/core/frame/FrameViewAutoSizeInfo.h
@@ -6,6 +6,7 @@
#define FrameViewAutoSizeInfo_h
#include "platform/geometry/IntSize.h"
+#include "platform/heap/Handle.h"
#include "wtf/FastAllocBase.h"
#include "wtf/Noncopyable.h"
#include "wtf/RefPtr.h"
@@ -14,28 +15,34 @@ namespace blink {
class FrameView;
-class FrameViewAutoSizeInfo {
+class FrameViewAutoSizeInfo final : public NoBaseWillBeGarbageCollected<FrameViewAutoSizeInfo> {
WTF_MAKE_NONCOPYABLE(FrameViewAutoSizeInfo);
- WTF_MAKE_FAST_ALLOCATED;
-
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
+ DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(FrameViewAutoSizeInfo);
public:
- FrameViewAutoSizeInfo(FrameView*);
- ~FrameViewAutoSizeInfo();
+ static PassOwnPtrWillBeRawPtr<FrameViewAutoSizeInfo> create(FrameView* frameView)
+ {
+ return adoptPtrWillBeNoop(new FrameViewAutoSizeInfo(frameView));
+ }
+
void configureAutoSizeMode(const IntSize& minSize, const IntSize& maxSize);
void autoSizeIfNeeded();
+ void trace(Visitor*);
+
private:
- void removeAutoSizeMode();
+ explicit FrameViewAutoSizeInfo(FrameView*);
- RefPtr<FrameView> m_frameView;
+ RefPtrWillBeMember<FrameView> m_frameView;
- bool m_inAutoSize;
- // True if autosize has been run since m_shouldAutoSize was set.
- bool m_didRunAutosize;
// The lower bound on the size when autosizing.
IntSize m_minAutoSize;
// The upper bound on the size when autosizing.
IntSize m_maxAutoSize;
+
+ bool m_inAutoSize;
+ // True if autosize has been run since m_shouldAutoSize was set.
+ bool m_didRunAutosize;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698