| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved. |
| 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 const FloatRect& srcRect, | 479 const FloatRect& srcRect, |
| 480 RespectImageOrientationEnum, | 480 RespectImageOrientationEnum, |
| 481 ImageClampingMode, | 481 ImageClampingMode, |
| 482 const KURL& url) { | 482 const KURL& url) { |
| 483 { | 483 { |
| 484 PaintCanvasAutoRestore ar(canvas, false); | 484 PaintCanvasAutoRestore ar(canvas, false); |
| 485 if (drawNeedsLayer(flags)) { | 485 if (drawNeedsLayer(flags)) { |
| 486 SkRect layerRect = dstRect; | 486 SkRect layerRect = dstRect; |
| 487 canvas->saveLayer(&layerRect, &flags); | 487 canvas->saveLayer(&layerRect, &flags); |
| 488 } | 488 } |
| 489 | |
| 490 canvas->drawPicture(paintRecordForCurrentFrame(srcRect, dstRect, url)); | 489 canvas->drawPicture(paintRecordForCurrentFrame(srcRect, dstRect, url)); |
| 491 } | 490 } |
| 492 | 491 |
| 493 // Start any (SMIL) animations if needed. This will restart or continue | 492 // Start any (SMIL) animations if needed. This will restart or continue |
| 494 // animations if preceded by calls to resetAnimation or stopAnimation | 493 // animations if preceded by calls to resetAnimation or stopAnimation |
| 495 // respectively. | 494 // respectively. |
| 496 startAnimation(); | 495 startAnimation(); |
| 497 } | 496 } |
| 498 | 497 |
| 499 LayoutReplaced* SVGImage::embeddedReplacedContent() const { | 498 LayoutReplaced* SVGImage::embeddedReplacedContent() const { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 714 } | 713 } |
| 715 | 714 |
| 716 return m_page ? SizeAvailable : SizeUnavailable; | 715 return m_page ? SizeAvailable : SizeUnavailable; |
| 717 } | 716 } |
| 718 | 717 |
| 719 String SVGImage::filenameExtension() const { | 718 String SVGImage::filenameExtension() const { |
| 720 return "svg"; | 719 return "svg"; |
| 721 } | 720 } |
| 722 | 721 |
| 723 } // namespace blink | 722 } // namespace blink |
| OLD | NEW |