Changeset 94874 in webkit
- Timestamp:
- Sep 9, 2011 2:40:04 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r94869 r94874 1 2011-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 1 16 2011-09-09 Adam Klein <adamk@chromium.org> 2 17 -
trunk/Source/WebCore/GNUmakefile.list.am
r94828 r94874 3960 3960 Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.h \ 3961 3961 Source/WebCore/platform/graphics/gtk/ColorGtk.cpp \ 3962 Source/WebCore/platform/graphics/gtk/FontGtk.cpp \3963 3962 Source/WebCore/platform/graphics/gtk/GdkCairoUtilities.cpp \ 3964 3963 Source/WebCore/platform/graphics/gtk/GdkCairoUtilities.h \ … … 4086 4085 Source/WebCore/platform/graphics/freetype/SimpleFontDataFreeType.cpp 4087 4086 webcoregtk_sources += \ 4087 Source/WebCore/platform/graphics/pango/FontPango.cpp \ 4088 4088 Source/WebCore/platform/graphics/freetype/FontPlatformDataFreeType.cpp 4089 4089 endif # END USE_FREETYPE … … 4100 4100 Source/WebCore/platform/graphics/pango/GlyphPageTreeNodePango.cpp \ 4101 4101 Source/WebCore/platform/graphics/pango/SimpleFontDataPango.cpp 4102 webcoregtk_sources += \ 4103 Source/WebCore/platform/graphics/pango/FontPango.cpp 4102 4104 endif # END USE_PANGO 4103 4105 -
trunk/Source/WebCore/platform/graphics/pango/FontPango.cpp
r94873 r94874 335 335 { 336 336 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) 338 338 static PangoContext* pangoContext = pango_font_map_create_context(map); 339 339 #else … … 353 353 #endif 354 354 355 if ( run.length() == 0)355 if (!run.length()) 356 356 return 0.0f; 357 357 … … 424 424 425 425 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; 429 429 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; 434 434 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); 437 437 438 438 g_free(utf8);
Note: See TracChangeset
for help on using the changeset viewer.