Changeset 63989 in webkit
- Timestamp:
- Jul 23, 2010 11:38:22 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r63988 r63989 1 2010-07-23 Patrick Gansterer <paroga@paroga.com> 2 3 Reviewed by Adam Roben. 4 5 [WINCE] Buildfix for GraphicsContext 6 https://bugs.webkit.org/show_bug.cgi?id=42888 7 8 Use AffineTransform insted of TransformationMatrix and 9 add ColorSpace parameter to the drawBitmap methods. 10 11 * platform/graphics/GraphicsContext.h: 12 * platform/graphics/wince/GraphicsContextWince.cpp: 13 (WebCore::GraphicsContext::affineTransform): 14 (WebCore::GraphicsContext::fillRoundedRect): 15 (WebCore::GraphicsContext::drawBitmap): 16 (WebCore::GraphicsContext::drawBitmapPattern): 17 1 18 2010-07-23 Rafael Antognolli <antognolli@profusion.mobi> 2 19 -
trunk/WebCore/platform/graphics/GraphicsContext.h
r63864 r63989 308 308 #if OS(WINCE) && !PLATFORM(QT) 309 309 void setBitmap(PassRefPtr<SharedBitmap>); 310 const TransformationMatrix& affineTransform() const;311 TransformationMatrix& affineTransform();310 const AffineTransform& affineTransform() const; 311 AffineTransform& affineTransform(); 312 312 void resetAffineTransform(); 313 313 void fillRect(const FloatRect&, const Gradient*); … … 316 316 void drawFocusRect(const IntRect& rect); 317 317 void paintTextField(const IntRect& rect, unsigned state); 318 void drawBitmap(SharedBitmap*, const IntRect& dstRect, const IntRect& srcRect, Co mpositeOperator compositeOp);319 void drawBitmapPattern(SharedBitmap*, const FloatRect& tileRectIn, const AffineTransform& patternTransform, const FloatPoint& phase, Co mpositeOperator op, const FloatRect& destRect, const IntSize& origSourceSize);318 void drawBitmap(SharedBitmap*, const IntRect& dstRect, const IntRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp); 319 void drawBitmapPattern(SharedBitmap*, const FloatRect& tileRectIn, const AffineTransform& patternTransform, const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRect, const IntSize& origSourceSize); 320 320 void drawIcon(HICON icon, const IntRect& dstRect, UINT flags); 321 321 HDC getWindowsContext(const IntRect&, bool supportAlphaBlend = false, bool mayCreateBitmap = true); // The passed in rect is used to create a bitmap for compositing inside transparency layers. -
trunk/WebCore/platform/graphics/wince/GraphicsContextWince.cpp
r63976 r63989 1161 1161 } 1162 1162 1163 TransformationMatrix& GraphicsContext::affineTransform()1163 AffineTransform& GraphicsContext::affineTransform() 1164 1164 { 1165 1165 return m_data->m_transform; 1166 1166 } 1167 1167 1168 const TransformationMatrix& GraphicsContext::affineTransform() const1168 const AffineTransform& GraphicsContext::affineTransform() const 1169 1169 { 1170 1170 return m_data->m_transform; … … 1269 1269 IntRect dstRect = fillRect; 1270 1270 1271 dstRect.move(s hadowSize);1272 dstRect.inflate(s hadowBlur);1271 dstRect.move(stableRound(shadowSize.width()), stableRound(shadowSize.height())); 1272 dstRect.inflate(stableRound(shadowBlur)); 1273 1273 dstRect = m_data->mapRect(dstRect); 1274 1274 … … 1869 1869 } 1870 1870 1871 void GraphicsContext::drawBitmap(SharedBitmap* bmp, const IntRect& dstRectIn, const IntRect& srcRect, Co mpositeOperator compositeOp)1871 void GraphicsContext::drawBitmap(SharedBitmap* bmp, const IntRect& dstRectIn, const IntRect& srcRect, ColorSpace styleColorSpace, CompositeOperator compositeOp) 1872 1872 { 1873 1873 if (!m_data->m_opacity) … … 1892 1892 1893 1893 void GraphicsContext::drawBitmapPattern(SharedBitmap* bmp, const FloatRect& tileRectIn, const AffineTransform& patternTransform, 1894 const FloatPoint& phase, Co mpositeOperator op, const FloatRect& destRectIn, const IntSize& origSourceSize)1894 const FloatPoint& phase, ColorSpace styleColorSpace, CompositeOperator op, const FloatRect& destRectIn, const IntSize& origSourceSize) 1895 1895 { 1896 1896 if (!m_data->m_opacity) … … 1913 1913 transform.translate(moved.width(), moved.height()); 1914 1914 1915 bmp->drawPattern(dc, transform, tileRectIn, patternTransform, phase, op, destRectIn, origSourceSize);1915 bmp->drawPattern(dc, transform, tileRectIn, patternTransform, phase, styleColorSpace, op, destRectIn, origSourceSize); 1916 1916 1917 1917 if (!bmp->hasAlpha())
Note: See TracChangeset
for help on using the changeset viewer.