| 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) 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 void updateUseCounters(Document&) const; | 73 void updateUseCounters(Document&) const; |
| 74 | 74 |
| 75 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 75 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } |
| 76 String debugName() const { return "SVGImage"; } | 76 String debugName() const { return "SVGImage"; } |
| 77 | 77 |
| 78 private: | 78 private: |
| 79 friend class AXLayoutObject; | 79 friend class AXLayoutObject; |
| 80 friend class SVGImageChromeClient; | 80 friend class SVGImageChromeClient; |
| 81 friend class SVGImageForContainer; | 81 friend class SVGImageForContainer; |
| 82 | 82 |
| 83 virtual ~SVGImage(); | 83 ~SVGImage() override; |
| 84 | |
| 85 | 84 |
| 86 String filenameExtension() const override; | 85 String filenameExtension() const override; |
| 87 | 86 |
| 88 void setContainerSize(const IntSize&) override; | 87 void setContainerSize(const IntSize&) override; |
| 89 IntSize containerSize() const; | 88 IntSize containerSize() const; |
| 90 bool usesContainerSize() const override { return true; } | 89 bool usesContainerSize() const override { return true; } |
| 91 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei
ght, FloatSize& intrinsicRatio) override; | 90 void computeIntrinsicDimensions(Length& intrinsicWidth, Length& intrinsicHei
ght, FloatSize& intrinsicRatio) override; |
| 92 | 91 |
| 93 bool dataChanged(bool allDataReceived) override; | 92 bool dataChanged(bool allDataReceived) override; |
| 94 | 93 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 m_image->setImageObserver(m_observer); | 127 m_image->setImageObserver(m_observer); |
| 129 } | 128 } |
| 130 private: | 129 private: |
| 131 Image* m_image; | 130 Image* m_image; |
| 132 ImageObserver* m_observer; | 131 ImageObserver* m_observer; |
| 133 }; | 132 }; |
| 134 | 133 |
| 135 } | 134 } |
| 136 | 135 |
| 137 #endif // SVGImage_h | 136 #endif // SVGImage_h |
| OLD | NEW |