| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 virtual bool isVideoElement() const { return false; } | 61 virtual bool isVideoElement() const { return false; } |
| 62 virtual bool isCanvasElement() const { return false; } | 62 virtual bool isCanvasElement() const { return false; } |
| 63 | 63 |
| 64 // Adjusts the source and destination rectangles for cases where the actual | 64 // Adjusts the source and destination rectangles for cases where the actual |
| 65 // source image is a subregion of the image returned by getSourceImageForCan
vas. | 65 // source image is a subregion of the image returned by getSourceImageForCan
vas. |
| 66 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const {
} | 66 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const {
} |
| 67 | 67 |
| 68 virtual FloatSize sourceSize() const = 0; | 68 virtual FloatSize sourceSize() const = 0; |
| 69 virtual FloatSize defaultDestinationSize() const { return sourceSize(); } | 69 virtual FloatSize defaultDestinationSize() const { return sourceSize(); } |
| 70 virtual const KURL& sourceURL() const { return blankURL(); } | 70 virtual const KURL& sourceURL() const { return blankURL(); } |
| 71 virtual bool isOpaque() const { return false; } |
| 71 | 72 |
| 72 protected: | 73 protected: |
| 73 virtual ~CanvasImageSource() { } | 74 virtual ~CanvasImageSource() { } |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace blink | 77 } // namespace blink |
| 77 | 78 |
| 78 #endif | 79 #endif |
| OLD | NEW |