Changeset 133808 in webkit


Ignore:
Timestamp:
Nov 7, 2012 2:48:24 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Update BB10 form theme.
https://bugs.webkit.org/show_bug.cgi?id=100760

Patch by Tiancheng Jiang <tijiang@rim.com> on 2012-11-07
Reviewed by Rob Buis.

RIM PR 236997
Internally Reviewed by Jakob Petsovits.

Set font family to fix DRT test fast/forms/input-type-text-min-width.html

  • platform/blackberry/RenderThemeBlackBerry.cpp:

(WebCore::RenderThemeBlackBerry::defaultGUIFont):
(WebCore):
(WebCore::RenderThemeBlackBerry::systemFont):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r133807 r133808  
     12012-11-07  Tiancheng Jiang  <tijiang@rim.com>
     2
     3        [BlackBerry] Update BB10 form theme.
     4        https://bugs.webkit.org/show_bug.cgi?id=100760
     5
     6        Reviewed by Rob Buis.
     7
     8        RIM PR 236997
     9        Internally Reviewed by Jakob Petsovits.
     10
     11        Set font family to fix DRT test fast/forms/input-type-text-min-width.html
     12
     13        * platform/blackberry/RenderThemeBlackBerry.cpp:
     14        (WebCore::RenderThemeBlackBerry::defaultGUIFont):
     15        (WebCore):
     16        (WebCore::RenderThemeBlackBerry::systemFont):
     17
    1182012-11-07  Beth Dakin  <bdakin@apple.com>
    219
  • trunk/Source/WebCore/platform/blackberry/RenderThemeBlackBerry.cpp

    r133632 r133808  
    130130float RenderThemeBlackBerry::defaultFontSize = 16;
    131131
     132const String& RenderThemeBlackBerry::defaultGUIFont()
     133{
     134    DEFINE_STATIC_LOCAL(String, fontFace, (ASCIILiteral("Slate Pro")));
     135    return fontFace;
     136}
     137
    132138static PassRefPtr<Gradient> createLinearGradient(RGBA32 top, RGBA32 bottom, const IntPoint& a, const IntPoint& b)
    133139{
     
    283289    }
    284290
     291    fontDescription.firstFamily().setFamily(defaultGUIFont());
    285292    fontDescription.setSpecifiedSize(fontSize);
    286293    fontDescription.setIsAbsoluteSize(true);
    287     fontDescription.setGenericFamily(FontDescription::SansSerifFamily);
     294    fontDescription.setGenericFamily(FontDescription::NoFamily);
    288295    fontDescription.setWeight(FontWeightNormal);
    289296    fontDescription.setItalic(false);
Note: See TracChangeset for help on using the changeset viewer.