Index: Source/core/html/shadow/MediaControls.cpp |
diff --git a/Source/core/html/shadow/MediaControls.cpp b/Source/core/html/shadow/MediaControls.cpp |
index a5e5b17f191fc9f20d1333e4ef55e106e9602295..6c637b501bb2f9c087b8488cae820e12120cf9af 100644 |
--- a/Source/core/html/shadow/MediaControls.cpp |
+++ b/Source/core/html/shadow/MediaControls.cpp |
@@ -69,8 +69,10 @@ static bool preferHiddenVolumeControls(const Document& document) |
class MediaControls::BatchedControlUpdate { |
WTF_MAKE_NONCOPYABLE(BatchedControlUpdate); |
+ STACK_ALLOCATED(); |
public: |
- BatchedControlUpdate(MediaControls* controls) : m_controls(controls) |
+ explicit BatchedControlUpdate(MediaControls* controls) |
+ : m_controls(controls) |
{ |
ASSERT(isMainThread()); |
ASSERT(s_batchDepth >= 0); |
@@ -85,7 +87,7 @@ public: |
} |
private: |
- MediaControls* m_controls; |
+ RawPtrWillBeMember<MediaControls> m_controls; |
static int s_batchDepth; |
}; |