WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
167871
Read stroke width of subtitles from MediaAccessibility framework.
https://bugs.webkit.org/show_bug.cgi?id=167871
Summary
Read stroke width of subtitles from MediaAccessibility framework.
Per Arne Vollan
Reported
2017-02-06 01:19:54 PST
We can receive MACaptionFontAttributeStrokeWidth embedded in the CTFontDescriptor.
Attachments
Patch
(6.34 KB, patch)
2017-02-06 02:21 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Patch
(5.76 KB, patch)
2017-02-06 03:46 PST
,
Per Arne Vollan
bfulgham
: review+
bfulgham
: commit-queue-
Details
Formatted Diff
Diff
Patch
(5.90 KB, patch)
2017-02-07 03:40 PST
,
Per Arne Vollan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Per Arne Vollan
Comment 1
2017-02-06 02:21:45 PST
Created
attachment 300699
[details]
Patch
Per Arne Vollan
Comment 2
2017-02-06 03:46:33 PST
Created
attachment 300705
[details]
Patch
Brent Fulgham
Comment 3
2017-02-06 10:12:20 PST
Comment on
attachment 300705
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=300705&action=review
> Source/WebCore/ChangeLog:4 > +
https://bugs.webkit.org/show_bug.cgi?id=167871
Can you include the relevant Radar here, please?
> Source/WebCore/ChangeLog:12 > + (WebCore::CaptionUserPreferencesMediaAF::captionsTextEdgeCSS):
You can delete this line. "prepare-ChangeLog" misunderstood the whitespace change and though 'captionsTextEdgeCSS' was updated, too.
> Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:393 > + if (!MACaptionFontAttributeStrokeWidth)
We should build a test system for this, possibly as a TestWebKitAPI test where you set the MACaptionFontAttributeStrokeWidth and confirm that the resulting rendering is correct. I'm fine with you doing this as a separate patch dealing with macOS and Windows.
> Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:396 > + RetainPtr<CTFontDescriptorRef> font = adoptCF(MACaptionAppearanceCopyFontDescriptorForStyle(kMACaptionAppearanceDomainUser, nullptr, kMACaptionAppearanceFontStyleDefault));
Could this be auto?
> Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:400 > + RetainPtr<CFTypeRef> strokeWidthAttribute = adoptCF(CTFontDescriptorCopyAttribute(font.get(), MACaptionFontAttributeStrokeWidth));
Ditto auto?
Per Arne Vollan
Comment 4
2017-02-07 03:28:05 PST
(In reply to
comment #3
)
> Comment on
attachment 300705
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=300705&action=review
> > > Source/WebCore/ChangeLog:4 > > +
https://bugs.webkit.org/show_bug.cgi?id=167871
> > Can you include the relevant Radar here, please? > > > Source/WebCore/ChangeLog:12 > > + (WebCore::CaptionUserPreferencesMediaAF::captionsTextEdgeCSS): > > You can delete this line. "prepare-ChangeLog" misunderstood the whitespace > change and though 'captionsTextEdgeCSS' was updated, too. > > > Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:393 > > + if (!MACaptionFontAttributeStrokeWidth) > > We should build a test system for this, possibly as a TestWebKitAPI test > where you set the MACaptionFontAttributeStrokeWidth and confirm that the > resulting rendering is correct. > > I'm fine with you doing this as a separate patch dealing with macOS and > Windows. > > > Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:396 > > + RetainPtr<CTFontDescriptorRef> font = adoptCF(MACaptionAppearanceCopyFontDescriptorForStyle(kMACaptionAppearanceDomainUser, nullptr, kMACaptionAppearanceFontStyleDefault)); > > Could this be auto? > > > Source/WebCore/page/CaptionUserPreferencesMediaAF.cpp:400 > > + RetainPtr<CFTypeRef> strokeWidthAttribute = adoptCF(CTFontDescriptorCopyAttribute(font.get(), MACaptionFontAttributeStrokeWidth)); > > Ditto auto?
Thanks for reviewing :) I will update the patch.
Per Arne Vollan
Comment 5
2017-02-07 03:40:47 PST
Created
attachment 300799
[details]
Patch
Per Arne Vollan
Comment 6
2017-02-07 03:44:54 PST
<
rdar://problem/29265906
>
Per Arne Vollan
Comment 7
2017-02-07 05:11:48 PST
Committed <
https://trac.webkit.org/changeset/211803
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug