WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 118645
[WK2][GTK] Enable asynchronous spell checking by default
https://bugs.webkit.org/show_bug.cgi?id=118645
Summary
[WK2][GTK] Enable asynchronous spell checking by default
Kwang Yul Seo
Reported
2013-07-13 02:23:46 PDT
Asynchronous spell checking is disabled by default (
Bug 81042
). It means all requests of checking the string are sent synchronously. Once requestCheckingOfString method is added (
Bug 118644
), we can perform spelling checking asynchronously. We should enable it by default for GTK to use non blocking API.
Attachments
Patch
(15.91 KB, patch)
2015-05-04 18:34 PDT
,
Martin Robinson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Martin Robinson
Comment 1
2015-05-04 18:34:16 PDT
Created
attachment 252361
[details]
Patch
Martin Robinson
Comment 2
2015-05-04 19:32:01 PDT
Whoops. Uploaded this patch to the wrong bug.
Darin Adler
Comment 3
2015-05-05 08:45:11 PDT
Comment on
attachment 252361
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=252361&action=review
> Source/WebCore/platform/graphics/Font.cpp:338 > +#if PLATFORM(COCOA) || USE(CAIRO)
This is such a mysterious combination. It would be nice to have some named thing that makes it clear what these have in common. Perhaps they are the only platforms that support synthetic obliquing?
> Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:147 > + ASSERT(m_pattern);
The right way to do this in modern WebKit coding style is to change the argument from FcPattern* to FcPattern&.
Martin Robinson
Comment 4
2015-05-05 08:51:57 PDT
(In reply to
comment #3
)
> Comment on
attachment 252361
[details]
> Patch
Thanks for the review! I have to admit though that uploading the patch here was a mistake. It should have gone to
https://bugs.webkit.org/show_bug.cgi?id=144612
originally.
> > View in context: >
https://bugs.webkit.org/attachment.cgi?id=252361&action=review
> > > Source/WebCore/platform/graphics/Font.cpp:338 > > +#if PLATFORM(COCOA) || USE(CAIRO) > > This is such a mysterious combination. It would be nice to have some named > thing that makes it clear what these have in common. Perhaps they are the > only platforms that support synthetic obliquing?
As far as I can tell, the original #ifdef was due to the fact that other platforms did not support creating explicitly non-synthetic-oblique fonts. It may be worth simply stubbing out the implementation on Windows and removing the #ifdef. I'll try that in a followup patch.
> > > Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp:147 > > + ASSERT(m_pattern); > > The right way to do this in modern WebKit coding style is to change the > argument from FcPattern* to FcPattern&.
Is that still an option given that FcPattern* is an opaque pointer?
Martin Robinson
Comment 5
2015-05-05 09:00:38 PDT
(In reply to
comment #4
)
> (In reply to
comment #3
) > > Comment on
attachment 252361
[details]
> > Patch > > Thanks for the review! I have to admit though that uploading the patch here > was a mistake. It should have gone to >
https://bugs.webkit.org/show_bug.cgi?id=144612
originally.
Hopefully you don't mind if I simply land the version with the correct ChangeLog? Sorry for the mixup.
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