| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2008, 2010 Apple Inc. All rights reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 int naturalWidth() const; | 50 int naturalWidth() const; |
| 51 int naturalHeight() const; | 51 int naturalHeight() const; |
| 52 const AtomicString& currentSrc() const; | 52 const AtomicString& currentSrc() const; |
| 53 | 53 |
| 54 bool isServerMap() const; | 54 bool isServerMap() const; |
| 55 | 55 |
| 56 const AtomicString& altText() const; | 56 const AtomicString& altText() const; |
| 57 | 57 |
| 58 CompositeOperator compositeOperator() const { return m_compositeOperator; } | 58 CompositeOperator compositeOperator() const { return m_compositeOperator; } |
| 59 | 59 |
| 60 ImageResource* cachedImage() const { return m_imageLoader.image(); } | 60 ImageResource* cachedImage() const { return imageLoader().image(); } |
| 61 void setImageResource(ImageResource* i) { m_imageLoader.setImage(i); }; | 61 void setImageResource(ImageResource* i) { imageLoader().setImage(i); }; |
| 62 | 62 |
| 63 void setLoadManually(bool loadManually) { m_imageLoader.setLoadManually(load
Manually); } | 63 void setLoadManually(bool loadManually) { imageLoader().setLoadManually(load
Manually); } |
| 64 | 64 |
| 65 const AtomicString& alt() const; | 65 const AtomicString& alt() const; |
| 66 | 66 |
| 67 void setHeight(int); | 67 void setHeight(int); |
| 68 | 68 |
| 69 KURL src() const; | 69 KURL src() const; |
| 70 void setSrc(const String&); | 70 void setSrc(const String&); |
| 71 | 71 |
| 72 void setWidth(int); | 72 void setWidth(int); |
| 73 void updateCurrentSrc(); | 73 void updateCurrentSrc(); |
| 74 | 74 |
| 75 int x() const; | 75 int x() const; |
| 76 int y() const; | 76 int y() const; |
| 77 | 77 |
| 78 bool complete() const; | 78 bool complete() const; |
| 79 | 79 |
| 80 bool hasPendingActivity() const { return m_imageLoader.hasPendingActivity();
} | 80 bool hasPendingActivity() const { return imageLoader().hasPendingActivity();
} |
| 81 | 81 |
| 82 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } | 82 virtual bool canContainRangeEndPoint() const OVERRIDE { return false; } |
| 83 | 83 |
| 84 void addClient(ImageLoaderClient* client) { m_imageLoader.addClient(client);
} | 84 void addClient(ImageLoaderClient* client) { imageLoader().addClient(client);
} |
| 85 void removeClient(ImageLoaderClient* client) { m_imageLoader.removeClient(cl
ient); } | 85 void removeClient(ImageLoaderClient* client) { imageLoader().removeClient(cl
ient); } |
| 86 | 86 |
| 87 virtual const AtomicString imageSourceURL() const OVERRIDE; | 87 virtual const AtomicString imageSourceURL() const OVERRIDE; |
| 88 | 88 |
| 89 virtual HTMLFormElement* formOwner() const OVERRIDE; | 89 virtual HTMLFormElement* formOwner() const OVERRIDE; |
| 90 void formRemovedFromTree(const Node& formRoot); | 90 void formRemovedFromTree(const Node& formRoot); |
| 91 | 91 |
| 92 // CanvasImageSourceImplementations | 92 // CanvasImageSourceImplementations |
| 93 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const; | 93 virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageMode, SourceIma
geStatus*) const; |
| 94 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE; | 94 virtual bool wouldTaintOrigin(SecurityOrigin*) const OVERRIDE; |
| 95 virtual FloatSize sourceSize() const OVERRIDE; | 95 virtual FloatSize sourceSize() const OVERRIDE; |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; | 128 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; |
| 129 virtual void removedFrom(ContainerNode*) OVERRIDE; | 129 virtual void removedFrom(ContainerNode*) OVERRIDE; |
| 130 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } | 130 virtual bool shouldRegisterAsNamedItem() const OVERRIDE { return true; } |
| 131 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true;
} | 131 virtual bool shouldRegisterAsExtraNamedItem() const OVERRIDE { return true;
} |
| 132 virtual bool isInteractiveContent() const OVERRIDE; | 132 virtual bool isInteractiveContent() const OVERRIDE; |
| 133 virtual Image* imageContents() OVERRIDE; | 133 virtual Image* imageContents() OVERRIDE; |
| 134 | 134 |
| 135 void resetFormOwner(); | 135 void resetFormOwner(); |
| 136 ImageCandidate findBestFitImageFromPictureParent(); | 136 ImageCandidate findBestFitImageFromPictureParent(); |
| 137 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); | 137 void setBestFitURLAndDPRFromImageCandidate(const ImageCandidate&); |
| 138 HTMLImageLoader& imageLoader() const { return *m_imageLoader; } |
| 138 | 139 |
| 139 HTMLImageLoader m_imageLoader; | 140 OwnPtrWillBeMember<HTMLImageLoader> m_imageLoader; |
| 140 #if ENABLE(OILPAN) | 141 #if ENABLE(OILPAN) |
| 141 Member<HTMLFormElement> m_form; | 142 Member<HTMLFormElement> m_form; |
| 142 #else | 143 #else |
| 143 WeakPtr<HTMLFormElement> m_form; | 144 WeakPtr<HTMLFormElement> m_form; |
| 144 #endif | 145 #endif |
| 145 CompositeOperator m_compositeOperator; | 146 CompositeOperator m_compositeOperator; |
| 146 AtomicString m_bestFitImageURL; | 147 AtomicString m_bestFitImageURL; |
| 147 AtomicString m_currentSrc; | 148 AtomicString m_currentSrc; |
| 148 float m_imageDevicePixelRatio; | 149 float m_imageDevicePixelRatio; |
| 149 bool m_formWasSetByParser; | 150 bool m_formWasSetByParser; |
| 150 bool m_elementCreatedByParser; | 151 bool m_elementCreatedByParser; |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 } //namespace | 154 } //namespace |
| 154 | 155 |
| 155 #endif | 156 #endif |
| OLD | NEW |