Text is overlapping with "Plug-in Missing" text.
authorDivakar <divakar.a@samsung.com>
Tue, 24 Sep 2013 07:41:44 +0000 (13:11 +0530)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 25 Sep 2013 05:30:38 +0000 (05:30 +0000)
[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

Source/WebCore/rendering/RenderEmbeddedObject.cpp

index aac073f..76674bf 100644 (file)
@@ -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();