2011-07-01 Jungshik Shin <jshin@chromium.org>
authorjshin@chromium.org <jshin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2011 19:23:21 +0000 (19:23 +0000)
committerjshin@chromium.org <jshin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 1 Jul 2011 19:23:21 +0000 (19:23 +0000)
commit47620ce24a8b71b65748a1968213a73fd564ce7e
treeb0bfc9679a75b7040551fd848b1a0c7a0cd08281
parente438439b9392cae44aa3cf615ea5852695bf55d2
2011-07-01  Jungshik Shin  <jshin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Add ScriptCodesFromICU.h to wtf/unicode and make necessary changes in
        build files for ports not using ICU.
        Add icu/unicode/uscript.h for ports using ICU. It's taken from
        ICU 3.6 (the version used on Mac OS 10.5)

        http://bugs.webkit.org/show_bug.cgi?id=20797

        * GNUmakefile.list.am:
        * JavaScriptCore.gypi:
        * icu/unicode/uscript.h: Added for UScriptCode enum.
        * wtf/unicode/ScriptCodesFromICU.h: UScriptCode enum added.
        * wtf/unicode/icu/UnicodeIcu.h:
        * wtf/unicode/brew/UnicodeBrew.h:
        * wtf/unicode/glib/UnicodeGLib.h:
        * wtf/unicode/qt4/UnicodeQt4.h:
        * wtf/unicode/wince/UnicodeWinCE.h:
2011-07-01  Jungshik Shin  <jshin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Add uscript.h to icu/unicode to get JavaScriptGlue get built. The same
        file was added to JavaScriptCore/icu/unicode.

        http://bugs.webkit.org/show_bug.cgi?id=20797

        * icu/unicode/uscript.h: Added.
2011-07-01  Jungshik Shin  <jshin@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Allow generic font family settings per script code.
        https://bugs.webkit.org/show_bug.cgi?id=20797

        Make generic font family getters/setters accept an additional
        argument (script code). It has a default value so that if an embedder
        does not have/want a per-script font family setting, call-sites
        don't have to be changed.
        This is to prepare for fixing bug 10874 (font selection is not
        language-dependent) and bug 18085.

        uscript.h has been updated to that of ICU 3.6 (the version of ICU on
        Mac OS 10.5)

        There should be no change in layout and no new layout test
        is added.

        * WebCore.exp.in:
        * icu/unicode/uscript.h: updated to ICU 4.6
        * page/Settings.cpp:
        (WebCore::setGenericFontFamilyMap): helper to set generic family per script
        (WebCore::getGenericFontFamilyForScript): helper function used by getters for fooFontFamily.
        (WebCore::Settings::standardFontFamily):
        (WebCore::Settings::setStandardFontFamily):
        (WebCore::Settings::fixedFontFamily):
        (WebCore::Settings::setFixedFontFamily):
        (WebCore::Settings::serifFontFamily):
        (WebCore::Settings::setSerifFontFamily):
        (WebCore::Settings::sansSerifFontFamily):
        (WebCore::Settings::setSansSerifFontFamily):
        (WebCore::Settings::cursiveFontFamily):
        (WebCore::Settings::setCursiveFontFamily):
        (WebCore::Settings::fantasyFontFamily):
        (WebCore::Settings::setFantasyFontFamily):
        * page/Settings.h: setter and getter for FooFontFamily have a new optional argument, scriptCode.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@90259 268f45cc-cd09-0410-ab3c-d52691b4dbfc
17 files changed:
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/GNUmakefile.list.am
Source/JavaScriptCore/JavaScriptCore.gypi
Source/JavaScriptCore/icu/unicode/uscript.h [new file with mode: 0644]
Source/JavaScriptCore/wtf/unicode/ScriptCodesFromICU.h [new file with mode: 0644]
Source/JavaScriptCore/wtf/unicode/brew/UnicodeBrew.h
Source/JavaScriptCore/wtf/unicode/glib/UnicodeGLib.h
Source/JavaScriptCore/wtf/unicode/icu/UnicodeIcu.h
Source/JavaScriptCore/wtf/unicode/qt4/UnicodeQt4.h
Source/JavaScriptCore/wtf/unicode/wince/UnicodeWinCE.h
Source/JavaScriptGlue/ChangeLog
Source/JavaScriptGlue/icu/unicode/uscript.h [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/icu/unicode/uscript.h
Source/WebCore/page/Settings.cpp
Source/WebCore/page/Settings.h