Title: [196703] trunk/Source/WebCore
Revision
196703
Author
eric.carl...@apple.com
Date
2016-02-17 11:17:09 -0800 (Wed, 17 Feb 2016)

Log Message

[Win] Allow ports to disable automatic text track selection
https://bugs.webkit.org/show_bug.cgi?id=154322
<rdar://problem/24623986>

Reviewed by Brent Fulgham.

* page/CaptionUserPreferencesMediaAF.cpp:
(MTEnableCaption2015BehaviorPtr): Implement for Windows.

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (196702 => 196703)


--- trunk/Source/WebCore/ChangeLog	2016-02-17 19:04:11 UTC (rev 196702)
+++ trunk/Source/WebCore/ChangeLog	2016-02-17 19:17:09 UTC (rev 196703)
@@ -1,3 +1,14 @@
+2016-02-17  Eric Carlson  <eric.carl...@apple.com>
+
+        [Win] Allow ports to disable automatic text track selection
+        https://bugs.webkit.org/show_bug.cgi?id=154322
+        <rdar://problem/24623986>
+
+        Reviewed by Brent Fulgham.
+
+        * page/CaptionUserPreferencesMediaAF.cpp:
+        (MTEnableCaption2015BehaviorPtr): Implement for Windows.
+
 2016-02-17  Gavin Barraclough  <barraclo...@apple.com>
 
         JSDOMWindow::put should not do the same thing twice

Modified: trunk/Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp (196702 => 196703)


--- trunk/Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp	2016-02-17 19:04:11 UTC (rev 196702)
+++ trunk/Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp	2016-02-17 19:17:09 UTC (rev 196703)
@@ -67,6 +67,7 @@
 #define SOFT_LINK_AVF(Lib, Name, Type) SOFT_LINK_DLL_IMPORT(Lib, Name, Type)
 #define SOFT_LINK_AVF_POINTER(Lib, Name, Type) SOFT_LINK_VARIABLE_DLL_IMPORT_OPTIONAL(Lib, Name, Type)
 #define SOFT_LINK_AVF_FRAMEWORK_IMPORT(Lib, Fun, ReturnType, Arguments, Signature) SOFT_LINK_DLL_IMPORT(Lib, Fun, ReturnType, __cdecl, Arguments, Signature)
+#define SOFT_LINK_AVF_FRAMEWORK_IMPORT_OPTIONAL(Lib, Fun, ReturnType, Arguments) SOFT_LINK_DLL_IMPORT_OPTIONAL(Lib, Fun, ReturnType, __cdecl, Arguments)
 
 // CoreText only needs to be soft-linked on Windows.
 SOFT_LINK_AVF_FRAMEWORK(CoreText)
@@ -76,8 +77,8 @@
 
 #define CTFontDescriptorCopyAttribute softLink_CTFontDescriptorCopyAttribute
 
-typedef Boolean (*MTEnableCaption2015BehaviorPtrType) ();
-static MTEnableCaption2015BehaviorPtrType MTEnableCaption2015BehaviorPtr() { return nullptr; }
+SOFT_LINK_AVF_FRAMEWORK(CoreMedia)
+SOFT_LINK_AVF_FRAMEWORK_IMPORT_OPTIONAL(CoreMedia, MTEnableCaption2015Behavior, Boolean, ())
 
 #else
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to