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

Unified Diff: Source/platform/exported/WebScrollbarImpl.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/platform/exported/WebScrollbarImpl.h
diff --git a/Source/platform/exported/WebScrollbarImpl.h b/Source/platform/exported/WebScrollbarImpl.h
index 7d1d5bc838aa72878a272a8564b0f968cdea232d..e365f0bdf6788d7e9eae947f53634c57e98e39e2 100644
--- a/Source/platform/exported/WebScrollbarImpl.h
+++ b/Source/platform/exported/WebScrollbarImpl.h
@@ -26,14 +26,18 @@
#define WebScrollbarImpl_h
#include "platform/PlatformExport.h"
+#include "platform/heap/Handle.h"
#include "public/platform/WebScrollbar.h"
namespace blink {
class Scrollbar;
-class PLATFORM_EXPORT WebScrollbarImpl : public WebScrollbar {
+class PLATFORM_EXPORT WebScrollbarImpl final : public WebScrollbar {
public:
- explicit WebScrollbarImpl(Scrollbar*);
+ static WebScrollbarImpl* create(Scrollbar* scrollbar)
+ {
+ return new WebScrollbarImpl(scrollbar);
+ }
// Implement WebScrollbar methods
virtual bool isOverlay() const override;
@@ -56,7 +60,9 @@ public:
virtual void setIsAlphaLocked(bool) override;
private:
- RefPtr<Scrollbar> m_scrollbar;
+ explicit WebScrollbarImpl(Scrollbar*);
+
+ RefPtrWillBePersistent<Scrollbar> m_scrollbar;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698