Chromium Code Reviews| Index: Source/core/frame/FrameViewAutoSizeInfo.h |
| diff --git a/Source/core/frame/FrameViewAutoSizeInfo.h b/Source/core/frame/FrameViewAutoSizeInfo.h |
| index 62617b09a92ff267dc6d07e8237b168a81cdc3cd..2a9afb7487cb0fe016eaa6315924013aa53116f5 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> { |
|
haraken
2014/10/03 15:02:58
FINAL => final
sof
2014/10/07 11:03:36
Done.
|
| 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 |