| Differences between
and this patch
- a/Source/WebCore/platform/graphics/cairo/CairoOperations.cpp +9 lines
Lines 819-824 void drawGlyphs(PlatformContextCairo& platformContext, const FillSource& fillSou a/Source/WebCore/platform/graphics/cairo/CairoOperations.cpp_sec1
819
        drawGlyphsToContext(cr, scaledFont, syntheticBoldOffset, glyphs);
819
        drawGlyphsToContext(cr, scaledFont, syntheticBoldOffset, glyphs);
820
    }
820
    }
821
821
822
    // Draw baseline for debugging
823
    cairo_save(cr);
824
    cairo_set_source_rgba(cr, 1, 0, 0, .4);
825
    cairo_set_line_width(cr, 1);
826
    cairo_move_to(cr, point.x(), point.y());
827
    cairo_line_to(cr, xOffset, point.y());
828
    cairo_stroke(cr);
829
    cairo_restore(cr);
830
822
    // Prevent running into a long computation within cairo. If the stroke width is
831
    // Prevent running into a long computation within cairo. If the stroke width is
823
    // twice the size of the width of the text we will not ask cairo to stroke
832
    // twice the size of the width of the text we will not ask cairo to stroke
824
    // the text as even one single stroke would cover the full wdth of the text.
833
    // the text as even one single stroke would cover the full wdth of the text.
- a/Source/WebCore/platform/graphics/cairo/FontCairo.cpp +1 lines
Lines 64-69 void FontCascade::drawGlyphs(GraphicsContext& context, const Font& font, const G a/Source/WebCore/platform/graphics/cairo/FontCairo.cpp_sec1
64
        for (size_t i = 0; i < numGlyphs; ++i) {
64
        for (size_t i = 0; i < numGlyphs; ++i) {
65
            glyphs[i] = { glyphsData[i], xOffset, yOffset };
65
            glyphs[i] = { glyphsData[i], xOffset, yOffset };
66
            xOffset += advances[i].width();
66
            xOffset += advances[i].width();
67
            yOffset -= advances[i].height();
67
        }
68
        }
68
    }
69
    }
69
70
- a/Source/WebCore/platform/graphics/cairo/GraphicsContextImplCairo.cpp +1 lines
Lines 242-247 void GraphicsContextImplCairo::drawGlyphs(const Font& font, const GlyphBuffer& g a/Source/WebCore/platform/graphics/cairo/GraphicsContextImplCairo.cpp_sec1
242
        for (size_t i = 0; i < numGlyphs; ++i) {
242
        for (size_t i = 0; i < numGlyphs; ++i) {
243
            glyphs[i] = { glyphsData[i], xOffset, yOffset };
243
            glyphs[i] = { glyphsData[i], xOffset, yOffset };
244
            xOffset += advances[i].width();
244
            xOffset += advances[i].width();
245
            yOffset -= advances[i].height();
245
        }
246
        }
246
    }
247
    }
247
248

Return to Bug 161493