2011-06-23 Jungshik Shin <jshin@chromium.org>
authorjshin@chromium.org <jshin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Jun 2011 18:23:32 +0000 (18:23 +0000)
committerjshin@chromium.org <jshin@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 23 Jun 2011 18:23:32 +0000 (18:23 +0000)
commitcbe91aa7668ff69edb4f745d00dc24c43149235e
treee248c3a23e007bc93f1ff212ac44a54c344adb66
parent359a973b56d67cec1ae6c9294614205ae37bc599
2011-06-23  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-06-23  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-06-23  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@89594 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