From: Divakar Date: Tue, 24 Sep 2013 07:41:44 +0000 (+0530) Subject: Text is overlapping with "Plug-in Missing" text. X-Git-Tag: 2.2.1_release~188 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c00fe88377e7105684dc964e440e13fa1d2924b9;p=framework%2Fweb%2Fwebkit-efl.git Text is overlapping with "Plug-in Missing" text. [Title] Text is overlapping with "Plug-in Missing" text when plug-in is not available. [Issue#] N_SE-52566 [Problem] As we are drawing transparent background for 'Plug-in Missing' text, it shows overlapped. [Solution] Drawing background without transparency. Change-Id: If739d904917e830c1b02d84a0b9d569b45d6edd9 --- diff --git a/Source/WebCore/rendering/RenderEmbeddedObject.cpp b/Source/WebCore/rendering/RenderEmbeddedObject.cpp index aac073f..76674bf 100644 --- a/Source/WebCore/rendering/RenderEmbeddedObject.cpp +++ b/Source/WebCore/rendering/RenderEmbeddedObject.cpp @@ -184,13 +184,13 @@ void RenderEmbeddedObject::paintReplaced(PaintInfo& paintInfo, const LayoutPoint GraphicsContextStateSaver stateSaver(*context); context->clip(contentRect); - context->setAlpha(m_unavailablePluginIndicatorIsPressed ? replacementTextPressedRoundedRectOpacity : replacementTextRoundedRectOpacity); - context->setFillColor(m_unavailablePluginIndicatorIsPressed ? replacementTextRoundedRectPressedColor() : Color::white, style()->colorSpace()); - context->fillPath(path); - #if ENABLE(TIZEN_PAINT_MISSING_PLUGIN_RECT) context->setFillColor(Color::gray, style()->colorSpace()); context->fillRect(contentRect); +#else + context->setAlpha(m_unavailablePluginIndicatorIsPressed ? replacementTextPressedRoundedRectOpacity : replacementTextRoundedRectOpacity); + context->setFillColor(m_unavailablePluginIndicatorIsPressed ? replacementTextRoundedRectPressedColor() : Color::white, style()->colorSpace()); + context->fillPath(path); #endif const FontMetrics& fontMetrics = font.fontMetrics();