Bug 610737: Use EXTEND_PAD for drawing native themes. r=jmuizelaar a=blocking-betaN
authorBas Schouten <bschouten@mozilla.com>
Fri, 19 Nov 2010 19:51:33 +0100
changeset 57919 8714ad3e0704fe4a0cb033984b80b4f20309d08c
parent 57918 3ae93548e27a134626dd619522d98a4d2d83ccbc
child 57921 0830d8f979362796ce55b64f72910ec0edf1be32
push id1
push usershaver@mozilla.com
push dateTue, 04 Jan 2011 17:58:04 +0000
reviewersjmuizelaar, blocking-betaN
bugs610737
milestone2.0b8pre
Bug 610737: Use EXTEND_PAD for drawing native themes. r=jmuizelaar a=blocking-betaN
gfx/thebes/gfxWindowsNativeDrawing.cpp
--- a/gfx/thebes/gfxWindowsNativeDrawing.cpp
+++ b/gfx/thebes/gfxWindowsNativeDrawing.cpp
@@ -302,16 +302,17 @@ gfxWindowsNativeDrawing::PaintToContext(
 
         gfxMatrix m;
         m.Scale(mScale.width, mScale.height);
         pat->SetMatrix(m);
 
         if (mNativeDrawFlags & DO_NEAREST_NEIGHBOR_FILTERING)
             pat->SetFilter(gfxPattern::FILTER_FAST);
 
+        pat->SetExtend(gfxPattern::EXTEND_PAD);
         mContext->SetPattern(pat);
         mContext->Fill();
         mContext->Restore();
 
         mRenderState = RENDER_STATE_DONE;
     } else {
         NS_ERROR("Invalid RenderState in gfxWindowsNativeDrawing::PaintToContext");
     }