Index: Source/core/html/shadow/MediaControlElementTypes.h |
diff --git a/Source/core/html/shadow/MediaControlElementTypes.h b/Source/core/html/shadow/MediaControlElementTypes.h |
index 538395a68972872d8f4edb6422fbf56cc0694621..e5f33e71589b29bdb5914f46aa690b5131726759 100644 |
--- a/Source/core/html/shadow/MediaControlElementTypes.h |
+++ b/Source/core/html/shadow/MediaControlElementTypes.h |
@@ -92,7 +92,11 @@ public: |
protected: |
MediaControlElement(MediaControls&, MediaControlElementType, HTMLElement*); |
- MediaControls& mediaControls() const { return m_mediaControls; } |
+ MediaControls& mediaControls() const |
+ { |
+ ASSERT(m_mediaControls); |
+ return *m_mediaControls; |
+ } |
HTMLMediaElement& mediaElement() const; |
void setDisplayType(MediaControlElementType); |
@@ -102,7 +106,7 @@ private: |
// if and only if we're wanted and we fit. |
void updateShownState(); |
- MediaControls& m_mediaControls; |
+ RawPtrWillBeMember<MediaControls> m_mediaControls; |
sof
2015/08/07 05:13:23
Notice that the removal of raw pointer effort does
|
MediaControlElementType m_displayType; |
RawPtrWillBeMember<HTMLElement> m_element; |
bool m_isWanted : 1; |