| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 // The defaultObjectSize is assumed to be unzoomed, i.e. it should | 80 // The defaultObjectSize is assumed to be unzoomed, i.e. it should |
| 81 // not have the effective zoom level applied. The returned size is | 81 // not have the effective zoom level applied. The returned size is |
| 82 // thus also independent of current zoom level. | 82 // thus also independent of current zoom level. |
| 83 FloatSize concreteObjectSize(const FloatSize& defaultObjectSize) const; | 83 FloatSize concreteObjectSize(const FloatSize& defaultObjectSize) const; |
| 84 | 84 |
| 85 // DisplayItemClient methods. | 85 // DisplayItemClient methods. |
| 86 String debugName() const final { return "SVGImage"; } | 86 String debugName() const final { return "SVGImage"; } |
| 87 LayoutRect visualRect() const override; | 87 LayoutRect visualRect() const override; |
| 88 | 88 |
| 89 bool hasIntrinsicDimensions() const; |
| 90 |
| 89 private: | 91 private: |
| 90 friend class AXLayoutObject; | 92 friend class AXLayoutObject; |
| 91 friend class SVGImageChromeClient; | 93 friend class SVGImageChromeClient; |
| 92 friend class SVGImageForContainer; | 94 friend class SVGImageForContainer; |
| 93 | 95 |
| 94 ~SVGImage() override; | 96 ~SVGImage() override; |
| 95 | 97 |
| 96 String filenameExtension() const override; | 98 String filenameExtension() const override; |
| 97 | 99 |
| 98 IntSize containerSize() const; | 100 IntSize containerSize() const; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 m_image->setImageObserver(m_observer); | 148 m_image->setImageObserver(m_observer); |
| 147 } | 149 } |
| 148 private: | 150 private: |
| 149 Image* m_image; | 151 Image* m_image; |
| 150 Member<ImageObserver> m_observer; | 152 Member<ImageObserver> m_observer; |
| 151 }; | 153 }; |
| 152 | 154 |
| 153 } // namespace blink | 155 } // namespace blink |
| 154 | 156 |
| 155 #endif // SVGImage_h | 157 #endif // SVGImage_h |
| OLD | NEW |