| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 if (!image_) | 83 if (!image_) |
| 84 return; | 84 return; |
| 85 | 85 |
| 86 image_->LoadCompleted(); | 86 image_->LoadCompleted(); |
| 87 } | 87 } |
| 88 | 88 |
| 89 // Cleared manually by SVGImage's destructor when |image_| is destructed. | 89 // Cleared manually by SVGImage's destructor when |image_| is destructed. |
| 90 SVGImage* image_; | 90 SVGImage* image_; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 SVGImage::SVGImage(ImageObserver* observer) | 93 SVGImage::SVGImage(ImageObserver* observer, bool is_multipart) |
| 94 : Image(observer), | 94 : Image(observer, is_multipart), |
| 95 paint_controller_(PaintController::Create()), | 95 paint_controller_(PaintController::Create()), |
| 96 has_pending_timeline_rewind_(false) {} | 96 has_pending_timeline_rewind_(false) {} |
| 97 | 97 |
| 98 SVGImage::~SVGImage() { | 98 SVGImage::~SVGImage() { |
| 99 if (frame_client_) | 99 if (frame_client_) |
| 100 frame_client_->ClearImage(); | 100 frame_client_->ClearImage(); |
| 101 | 101 |
| 102 if (page_) { | 102 if (page_) { |
| 103 // Store m_page in a local variable, clearing m_page, so that | 103 // Store m_page in a local variable, clearing m_page, so that |
| 104 // SVGImageChromeClient knows we're destructed. | 104 // SVGImageChromeClient knows we're destructed. |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 | 785 |
| 786 NOTREACHED(); | 786 NOTREACHED(); |
| 787 return kSizeAvailable; | 787 return kSizeAvailable; |
| 788 } | 788 } |
| 789 | 789 |
| 790 String SVGImage::FilenameExtension() const { | 790 String SVGImage::FilenameExtension() const { |
| 791 return "svg"; | 791 return "svg"; |
| 792 } | 792 } |
| 793 | 793 |
| 794 } // namespace blink | 794 } // namespace blink |
| OLD | NEW |