RESOLVED FIXED 66220
[chromium] Update WebSettings to support per-script font settings
https://bugs.webkit.org/show_bug.cgi?id=66220
Summary [chromium] Update WebSettings to support per-script font settings
Matt Falkenhagen
Reported 2011-08-15 05:16:52 PDT
Update Chromium WebSettings to support the new per-script font settings (see bug 20797).
Attachments
Patch (5.89 KB, patch)
2011-08-15 05:28 PDT, Matt Falkenhagen
no flags
updated patch (6.19 KB, patch)
2011-08-15 05:39 PDT, Matt Falkenhagen
no flags
removed explicit casts (6.12 KB, patch)
2011-08-21 22:52 PDT, Matt Falkenhagen
no flags
added ICU dependency (7.07 KB, patch)
2011-08-23 04:33 PDT, Matt Falkenhagen
no flags
Matt Falkenhagen
Comment 1 2011-08-15 05:28:27 PDT
Matt Falkenhagen
Comment 2 2011-08-15 05:39:32 PDT
Created attachment 103908 [details] updated patch
Matt Falkenhagen
Comment 3 2011-08-16 17:51:12 PDT
Tony, can you review this small patch please?
Tony Chang
Comment 4 2011-08-16 18:11:11 PDT
Comment on attachment 103908 [details] updated patch View in context: https://bugs.webkit.org/attachment.cgi?id=103908&action=review > Source/WebKit/chromium/src/WebSettingsImpl.cpp:59 > + m_settings->setStandardFontFamily((String)font, script); Doesn't the conversion from WebString to String happen implicitly? If not, we should be using static_cast rather than the c-style cast.
Matt Falkenhagen
Comment 5 2011-08-21 22:52:24 PDT
Created attachment 104643 [details] removed explicit casts
WebKit Review Bot
Comment 6 2011-08-22 19:15:35 PDT
Comment on attachment 104643 [details] removed explicit casts Clearing flags on attachment: 104643 Committed r93575: <http://trac.webkit.org/changeset/93575>
WebKit Review Bot
Comment 7 2011-08-22 19:15:39 PDT
All reviewed patches have been landed. Closing bug.
Matt Falkenhagen
Comment 9 2011-08-22 23:19:36 PDT
The build failure was caused by including ICU headers needed for the UScriptCode enum used to identify scripts. I consulted a little with Kent Tamura and he brought up that it might be bad to rely on ICU types in WebSettings. Perhaps we can use a new type to hide UScriptCode (like WebString does for strings), or just use int. Darin, what do you think?
Darin Fisher (:fishd, Google)
Comment 10 2011-08-22 23:26:10 PDT
(In reply to comment #9) > The build failure was caused by including ICU headers needed for the UScriptCode enum used to identify scripts. > > I consulted a little with Kent Tamura and he brought up that it might be bad to rely on ICU types in WebSettings. Perhaps we can use a new type to hide UScriptCode (like WebString does for strings), or just use int. > > Darin, what do you think? Have you tried adding '<(chromium_src_dir)/third_party/icu/icu.gyp:icuuc' to the export_dependent_settings section of the webkit target?
Matt Falkenhagen
Comment 11 2011-08-23 04:33:42 PDT
Created attachment 104817 [details] added ICU dependency
Matt Falkenhagen
Comment 12 2011-08-23 04:42:08 PDT
Thanks, I've added the dependency in the latest patch and now it seems to be compiling on the trybots (previously I just tested locally). I'm also not sure whether the #if WEBKIT_IMPLEMENTATION part was needed (I originally was following similar header files in this directory). I've removed it in the latest patch.
Tony Chang
Comment 13 2011-08-23 10:25:04 PDT
Comment on attachment 104817 [details] added ICU dependency This built for me with ToT chrome and the ews bots passed, so let's try this again.
WebKit Review Bot
Comment 14 2011-08-23 11:30:45 PDT
Comment on attachment 104817 [details] added ICU dependency Clearing flags on attachment: 104817 Committed r93618: <http://trac.webkit.org/changeset/93618>
WebKit Review Bot
Comment 15 2011-08-23 11:30:50 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.