| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 PassRefPtr<SkImage> imageForCurrentFrame() override; | 70 PassRefPtr<SkImage> imageForCurrentFrame() override; |
| 71 | 71 |
| 72 // Returns the SVG image document's frame. | 72 // Returns the SVG image document's frame. |
| 73 FrameView* frameView() const; | 73 FrameView* frameView() const; |
| 74 | 74 |
| 75 // Does the SVG image/document contain any animations? | 75 // Does the SVG image/document contain any animations? |
| 76 bool hasAnimations() const; | 76 bool hasAnimations() const; |
| 77 | 77 |
| 78 void updateUseCounters(Document&) const; | 78 void updateUseCounters(Document&) const; |
| 79 | 79 |
| 80 FloatSize concreteObjectSize(const FloatSize&) const; | 80 // The defaultObjectSize is assumed to be unzoomed, i.e. it should |
| 81 // not have the effective zoom level applied. The returned size is |
| 82 // thus also independent of current zoom level. |
| 83 FloatSize concreteObjectSize(const FloatSize& defaultObjectSize) const; |
| 81 | 84 |
| 82 // DisplayItemClient methods. | 85 // DisplayItemClient methods. |
| 83 String debugName() const final { return "SVGImage"; } | 86 String debugName() const final { return "SVGImage"; } |
| 84 LayoutRect visualRect() const override; | 87 LayoutRect visualRect() const override; |
| 85 | 88 |
| 86 private: | 89 private: |
| 87 friend class AXLayoutObject; | 90 friend class AXLayoutObject; |
| 88 friend class SVGImageChromeClient; | 91 friend class SVGImageChromeClient; |
| 89 friend class SVGImageForContainer; | 92 friend class SVGImageForContainer; |
| 90 | 93 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 m_image->setImageObserver(m_observer); | 146 m_image->setImageObserver(m_observer); |
| 144 } | 147 } |
| 145 private: | 148 private: |
| 146 Image* m_image; | 149 Image* m_image; |
| 147 RawPtrWillBeMember<ImageObserver> m_observer; | 150 RawPtrWillBeMember<ImageObserver> m_observer; |
| 148 }; | 151 }; |
| 149 | 152 |
| 150 } // namespace blink | 153 } // namespace blink |
| 151 | 154 |
| 152 #endif // SVGImage_h | 155 #endif // SVGImage_h |
| OLD | NEW |