summaryrefslogtreecommitdiffstats
path: root/WebKit/android
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2009-10-07 17:03:05 +0100
committerLeon Clarke <leonclarke@google.com>2009-10-09 14:34:43 +0100
commit71680282c782ad9c007fed7b54ce6f2e51b764de (patch)
tree6e505e61b7333cdb1ac8296702d793710b2b0ee9 /WebKit/android
parentcb964215003240df4826e49f411f9a84ac582725 (diff)
downloadexternal_webkit-71680282c782ad9c007fed7b54ce6f2e51b764de.zip
external_webkit-71680282c782ad9c007fed7b54ce6f2e51b764de.tar.gz
external_webkit-71680282c782ad9c007fed7b54ce6f2e51b764de.tar.bz2
Draw a background color under the combo box
Diffstat (limited to 'WebKit/android')
-rw-r--r--WebKit/android/RenderSkinCombo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/WebKit/android/RenderSkinCombo.cpp b/WebKit/android/RenderSkinCombo.cpp
index 870c13e..5f7efb7 100644
--- a/WebKit/android/RenderSkinCombo.cpp
+++ b/WebKit/android/RenderSkinCombo.cpp
@@ -29,6 +29,7 @@
#include "Document.h"
#include "Element.h"
#include "Node.h"
+#include "RenderStyle.h"
#include "SkCanvas.h"
#include "SkNinePatch.h"
@@ -65,6 +66,13 @@ bool RenderSkinCombo::Draw(SkCanvas* canvas, Node* element, int x, int y, int wi
height = (s_margin<<1) + 1;
}
SkRect bounds;
+
+ bounds.set(SkIntToScalar(x+1), SkIntToScalar(y+1), SkIntToScalar(x + width-1), SkIntToScalar(y + height-1));
+ RenderStyle* style = element->renderStyle();
+ SkPaint paint;
+ paint.setColor(style->backgroundColor().rgb());
+ canvas->drawRect(bounds, paint);
+
bounds.set(SkIntToScalar(x), SkIntToScalar(y), SkIntToScalar(x + width), SkIntToScalar(y + height));
SkNinePatch::DrawNine(canvas, bounds, s_bitmap[state], s_mar);
return false;