Bug 66220 - [chromium] Update WebSettings to support per-script font settings
Summary: [chromium] Update WebSettings to support per-script font settings
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Text (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 66744
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-15 05:16 PDT by Matt Falkenhagen
Modified: 2011-08-23 11:30 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.89 KB, patch)
2011-08-15 05:28 PDT, Matt Falkenhagen
no flags Details | Formatted Diff | Diff
updated patch (6.19 KB, patch)
2011-08-15 05:39 PDT, Matt Falkenhagen
no flags Details | Formatted Diff | Diff
removed explicit casts (6.12 KB, patch)
2011-08-21 22:52 PDT, Matt Falkenhagen
no flags Details | Formatted Diff | Diff
added ICU dependency (7.07 KB, patch)
2011-08-23 04:33 PDT, Matt Falkenhagen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Falkenhagen 2011-08-15 05:16:52 PDT
Update Chromium WebSettings to support the new per-script font settings (see bug 20797).
Comment 1 Matt Falkenhagen 2011-08-15 05:28:27 PDT
Created attachment 103907 [details]
Patch
Comment 2 Matt Falkenhagen 2011-08-15 05:39:32 PDT
Created attachment 103908 [details]
updated patch
Comment 3 Matt Falkenhagen 2011-08-16 17:51:12 PDT
Tony, can you review this small patch please?
Comment 4 Tony Chang 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.
Comment 5 Matt Falkenhagen 2011-08-21 22:52:24 PDT
Created attachment 104643 [details]
removed explicit casts
Comment 6 WebKit Review Bot 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>
Comment 7 WebKit Review Bot 2011-08-22 19:15:39 PDT
All reviewed patches have been landed.  Closing bug.
Comment 9 Matt Falkenhagen 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?
Comment 10 Darin Fisher (:fishd, Google) 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?
Comment 11 Matt Falkenhagen 2011-08-23 04:33:42 PDT
Created attachment 104817 [details]
added ICU dependency
Comment 12 Matt Falkenhagen 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.
Comment 13 Tony Chang 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.
Comment 14 WebKit Review Bot 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>
Comment 15 WebKit Review Bot 2011-08-23 11:30:50 PDT
All reviewed patches have been landed.  Closing bug.