webengine/osswebengine/WebKit/s60/webview/WebScrollbarDrawer.cpp
branchRCL_3
changeset 73 a1a5d4e727e8
parent 13 10e98eab6f85
child 91 30342f40acbf
equal deleted inserted replaced
71:4bd5176e1bc8 73:a1a5d4e727e8
   485 void WebScrollbarDrawer::drawThumb(CBitmapContext* gc, TRect& rect)
   485 void WebScrollbarDrawer::drawThumb(CBitmapContext* gc, TRect& rect)
   486 {
   486 {
   487   TRect r(TPoint(0, 0), rect.Size());
   487   TRect r(TPoint(0, 0), rect.Size());
   488   gc->SetBrushStyle(CGraphicsContext::ESolidBrush);
   488   gc->SetBrushStyle(CGraphicsContext::ESolidBrush);
   489   gc->SetPenStyle(CGraphicsContext::ESolidPen);
   489   gc->SetPenStyle(CGraphicsContext::ESolidPen);
       
   490 // Current platform API has some problem in drawing the border of
       
   491 // the rounded rect.Once it is fixed in platform this code can be reverted back.
       
   492 #ifdef BRDO_MULTITOUCH_ENABLED_FF
       
   493   gc->SetPenSize(TSize(4,4));
       
   494 #else
   490   gc->SetPenSize(TSize(2,2));
   495   gc->SetPenSize(TSize(2,2));
       
   496 #endif  
   491   gc->SetPenColor(TRgb(242, 242, 242));
   497   gc->SetPenColor(TRgb(242, 242, 242));
   492   gc->SetBrushColor(TRgb(10, 10, 10));
   498   gc->SetBrushColor(TRgb(10, 10, 10));
       
   499 #ifdef BRDO_MULTITOUCH_ENABLED_FF
       
   500   gc->DrawRect(r);
       
   501 #endif  
   493   gc->DrawRoundRect(r, TSize(7, 7));
   502   gc->DrawRoundRect(r, TSize(7, 7));
   494  
   503  
   495 }
   504 }
   496 
   505 
   497 
   506 
   505   gc->SetBrushStyle(CGraphicsContext::ESolidBrush);
   514   gc->SetBrushStyle(CGraphicsContext::ESolidBrush);
   506   gc->SetPenStyle(CGraphicsContext::ESolidPen);
   515   gc->SetPenStyle(CGraphicsContext::ESolidPen);
   507   gc->SetBrushColor(brushMaskColor);
   516   gc->SetBrushColor(brushMaskColor);
   508   gc->SetPenSize(TSize(2,2));
   517   gc->SetPenSize(TSize(2,2));
   509   gc->SetPenColor(TRgb(5, 5, 5));
   518   gc->SetPenColor(TRgb(5, 5, 5));
       
   519 #ifdef BRDO_MULTITOUCH_ENABLED_FF
       
   520   gc->DrawRect(r);
       
   521 #endif
   510   gc->DrawRoundRect(r, TSize(7, 7));
   522   gc->DrawRoundRect(r, TSize(7, 7));
   511 }
   523 }
   512 
   524