Changeset 94874 in webkit


Ignore:
Timestamp:
Sep 9, 2011 2:40:04 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Rename FontGtk.cpp to FontPango.cpp
https://bugs.webkit.org/show_bug.cgi?id=66323

Patch by Rafael Antognolli <antognolli@profusion.mobi> on 2011-09-09
Reviewed by Martin Robinson.

This file will be used by the EFL port too, and since it's not GTK
specific anymore, rename it to something better.

No new functionality so no new tests.

  • GNUmakefile.list.am:
  • platform/graphics/pango/FontPango.cpp: Renamed from Source/WebCore/platform/graphics/gtk/FontGtk.cpp.
Location:
trunk/Source/WebCore
Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r94869 r94874  
     12011-09-09  Rafael Antognolli  <antognolli@profusion.mobi>
     2
     3        Rename FontGtk.cpp to FontPango.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=66323
     5
     6        Reviewed by Martin Robinson.
     7
     8        This file will be used by the EFL port too, and since it's not GTK
     9        specific anymore, rename it to something better.
     10
     11        No new functionality so no new tests.
     12
     13        * GNUmakefile.list.am:
     14        * platform/graphics/pango/FontPango.cpp: Renamed from Source/WebCore/platform/graphics/gtk/FontGtk.cpp.
     15
    1162011-09-09  Adam Klein  <adamk@chromium.org>
    217
  • trunk/Source/WebCore/GNUmakefile.list.am

    r94828 r94874  
    39603960        Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.h \
    39613961        Source/WebCore/platform/graphics/gtk/ColorGtk.cpp \
    3962         Source/WebCore/platform/graphics/gtk/FontGtk.cpp \
    39633962        Source/WebCore/platform/graphics/gtk/GdkCairoUtilities.cpp \
    39643963        Source/WebCore/platform/graphics/gtk/GdkCairoUtilities.h \
     
    40864085        Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp
    40874086webcoregtk_sources += \
     4087        Source/WebCore/platform/graphics/pango/FontPango.cpp \
    40884088        Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp
    40894089endif # END USE_FREETYPE
     
    41004100        Source/WebCore/platform/graphics/pango/GlyphPageTreeNodePango.cpp \
    41014101        Source/WebCore/platform/graphics/pango/SimpleFontDataPango.cpp
     4102webcoregtk_sources += \
     4103        Source/WebCore/platform/graphics/pango/FontPango.cpp
    41024104endif # END USE_PANGO
    41034105
  • trunk/Source/WebCore/platform/graphics/pango/FontPango.cpp

    r94873 r94874  
    335335{
    336336    static PangoFontMap* map = pango_cairo_font_map_get_default();
    337 #if PANGO_VERSION_CHECK(1,21,5)
     337#if PANGO_VERSION_CHECK(1, 21, 5)
    338338    static PangoContext* pangoContext = pango_font_map_create_context(map);
    339339#else
     
    353353#endif
    354354
    355     if (run.length() == 0)
     355    if (!run.length())
    356356        return 0.0f;
    357357
     
    424424
    425425    PangoLayoutLine* layoutLine = pango_layout_get_line_readonly(layout, 0);
    426     int x_pos;
    427 
    428     x_pos = 0;
     426    int xPos;
     427
     428    xPos = 0;
    429429    if (from < layoutLine->length)
    430         pango_layout_line_index_to_x(layoutLine, from, FALSE, &x_pos);
    431     float beforeWidth = PANGO_PIXELS_FLOOR(x_pos);
    432 
    433     x_pos = 0;
     430        pango_layout_line_index_to_x(layoutLine, from, FALSE, &xPos);
     431    float beforeWidth = PANGO_PIXELS_FLOOR(xPos);
     432
     433    xPos = 0;
    434434    if (run.ltr() || to < layoutLine->length)
    435         pango_layout_line_index_to_x(layoutLine, to, FALSE, &x_pos);
    436     float afterWidth = PANGO_PIXELS(x_pos);
     435        pango_layout_line_index_to_x(layoutLine, to, FALSE, &xPos);
     436    float afterWidth = PANGO_PIXELS(xPos);
    437437
    438438    g_free(utf8);
Note: See TracChangeset for help on using the changeset viewer.