diff options
Diffstat (limited to 'WebCore/platform/graphics/gtk')
-rw-r--r-- | WebCore/platform/graphics/gtk/FontGtk.cpp | 12 | ||||
-rw-r--r-- | WebCore/platform/graphics/gtk/ImageBufferGtk.cpp | 3 |
2 files changed, 10 insertions, 5 deletions
diff --git a/WebCore/platform/graphics/gtk/FontGtk.cpp b/WebCore/platform/graphics/gtk/FontGtk.cpp index 54e18c9..eabd913 100644 --- a/WebCore/platform/graphics/gtk/FontGtk.cpp +++ b/WebCore/platform/graphics/gtk/FontGtk.cpp @@ -36,6 +36,7 @@ #include "CairoUtilities.h" #include "ContextShadow.h" #include "GraphicsContext.h" +#include "NotImplemented.h" #include "SimpleFontData.h" #include <cairo.h> #include <gdk/gdk.h> @@ -218,13 +219,13 @@ static void drawGlyphsShadow(GraphicsContext* graphicsContext, cairo_t* context, ContextShadow* shadow = graphicsContext->contextShadow(); ASSERT(shadow); - if (!(graphicsContext->textDrawingMode() & cTextFill) || shadow->m_type == ContextShadow::NoShadow) + if (!(graphicsContext->textDrawingMode() & TextModeFill) || shadow->m_type == ContextShadow::NoShadow) return; FloatPoint totalOffset(point + shadow->m_offset); // Optimize non-blurry shadows, by just drawing text without the ContextShadow. - if (shadow->m_type == ContextShadow::SolidShadow) { + if (!shadow->mustUseContextShadow(context)) { cairo_save(context); cairo_translate(context, totalOffset.x(), totalOffset.y()); @@ -300,7 +301,7 @@ void Font::drawComplexText(GraphicsContext* context, const TextRun& run, const F pango_cairo_show_layout_line(cr, layoutLine); - if (context->textDrawingMode() & cTextStroke) { + if (context->textDrawingMode() & TextModeStroke) { Color strokeColor = context->strokeColor(); strokeColor.getRGBA(red, green, blue, alpha); cairo_set_source_rgba(cr, red, green, blue, alpha); @@ -319,6 +320,11 @@ void Font::drawComplexText(GraphicsContext* context, const TextRun& run, const F cairo_restore(cr); } +void Font::drawEmphasisMarksForComplexText(GraphicsContext* /* context */, const TextRun& /* run */, const AtomicString& /* mark */, const FloatPoint& /* point */, int /* from */, int /* to */) const +{ + notImplemented(); +} + // We should create the layout with our actual context but we can't access it from here. static PangoLayout* getDefaultPangoLayout(const TextRun& run) { diff --git a/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp b/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp index 486a317..cf0470f 100644 --- a/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp +++ b/WebCore/platform/graphics/gtk/ImageBufferGtk.cpp @@ -66,9 +66,8 @@ String ImageBuffer::toDataURL(const String& mimeType, const double* quality) con Vector<char> out; base64Encode(reinterpret_cast<const char*>(buffer.get()), bufferSize, out); - out.append('\0'); - return makeString("data:", mimeType, ";base64,", out.data()); + return makeString("data:", mimeType, ";base64,", out); } } |