Title: [171287] trunk/Source/WebCore
Revision
171287
Author
[email protected]
Date
2014-07-20 19:34:09 -0700 (Sun, 20 Jul 2014)

Log Message

HTMLMediaElement should registerWithDocument on iOS
https://bugs.webkit.org/show_bug.cgi?id=135084
<rdar://problem/17702531>

Reviewed by Andreas Kling.

Otherwise it won't know when the visibility changes!

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::registerWithDocument):
(WebCore::HTMLMediaElement::unregisterWithDocument):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (171286 => 171287)


--- trunk/Source/WebCore/ChangeLog	2014-07-21 02:30:24 UTC (rev 171286)
+++ trunk/Source/WebCore/ChangeLog	2014-07-21 02:34:09 UTC (rev 171287)
@@ -1,3 +1,17 @@
+2014-07-18  Gavin Barraclough  <[email protected]>
+
+        HTMLMediaElement should registerWithDocument on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=135084
+        <rdar://problem/17702531>
+
+        Reviewed by Andreas Kling.
+
+        Otherwise it won't know when the visibility changes!
+
+        * html/HTMLMediaElement.cpp:
+        (WebCore::HTMLMediaElement::registerWithDocument):
+        (WebCore::HTMLMediaElement::unregisterWithDocument):
+
 2014-07-20  Jeremy Jones  <[email protected]>
 
         Decrease flicker when enter and exit fullscreen.

Modified: trunk/Source/WebCore/html/HTMLMediaElement.cpp (171286 => 171287)


--- trunk/Source/WebCore/html/HTMLMediaElement.cpp	2014-07-21 02:30:24 UTC (rev 171286)
+++ trunk/Source/WebCore/html/HTMLMediaElement.cpp	2014-07-21 02:34:09 UTC (rev 171287)
@@ -429,9 +429,10 @@
 #if !PLATFORM(IOS)
     document.registerForMediaVolumeCallbacks(this);
     document.registerForPrivateBrowsingStateChangedCallbacks(this);
-    document.registerForVisibilityStateChangedCallbacks(this);
 #endif
 
+    document.registerForVisibilityStateChangedCallbacks(this);
+
 #if ENABLE(VIDEO_TRACK)
     document.registerForCaptionPreferencesChangedCallbacks(this);
 #endif
@@ -452,9 +453,10 @@
 #if !PLATFORM(IOS)
     document.unregisterForMediaVolumeCallbacks(this);
     document.unregisterForPrivateBrowsingStateChangedCallbacks(this);
-    document.unregisterForVisibilityStateChangedCallbacks(this);
 #endif
 
+    document.unregisterForVisibilityStateChangedCallbacks(this);
+
 #if ENABLE(VIDEO_TRACK)
     document.unregisterForCaptionPreferencesChangedCallbacks(this);
 #endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to