equal
deleted
inserted
replaced
323 } |
323 } |
324 |
324 |
325 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dst, const FloatRect& src, CompositeOperator op) |
325 void BitmapImage::draw(GraphicsContext* ctxt, const FloatRect& dst, const FloatRect& src, CompositeOperator op) |
326 { |
326 { |
327 WebCoreGraphicsContext* context = ctxt->platformContext(); |
327 WebCoreGraphicsContext* context = ctxt->platformContext(); |
|
328 if (!context) { |
|
329 return; |
|
330 } |
328 |
331 |
329 CMaskedBitmap* bm = frameAtIndex(m_currentFrame); |
332 CMaskedBitmap* bm = frameAtIndex(m_currentFrame); |
330 if (!bm) // If it's too early we won't have an BitmapImage yet. |
333 if (!bm) // If it's too early we won't have an BitmapImage yet. |
331 return; |
334 return; |
332 |
335 |