| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class ImageResource; | 33 class ImageResource; |
| 34 class HTMLImageElement; | 34 class HTMLImageElement; |
| 35 | 35 |
| 36 class ImageDocument FINAL : public HTMLDocument { | 36 class ImageDocument FINAL : public HTMLDocument { |
| 37 public: | 37 public: |
| 38 static PassRefPtrWillBeRawPtr<ImageDocument> create(const DocumentInit& init
ializer = DocumentInit()) | 38 static PassRefPtrWillBeRawPtr<ImageDocument> create(const DocumentInit& init
ializer = DocumentInit()) |
| 39 { | 39 { |
| 40 return adoptRefWillBeRefCountedGarbageCollected(new ImageDocument(initia
lizer)); | 40 return adoptRefWillBeNoop(new ImageDocument(initializer)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 ImageResource* cachedImage(); | 43 ImageResource* cachedImage(); |
| 44 HTMLImageElement* imageElement() const { return m_imageElement.get(); } | 44 HTMLImageElement* imageElement() const { return m_imageElement.get(); } |
| 45 | 45 |
| 46 void windowSizeChanged(); | 46 void windowSizeChanged(); |
| 47 void imageUpdated(); | 47 void imageUpdated(); |
| 48 void imageClicked(int x, int y); | 48 void imageClicked(int x, int y); |
| 49 | 49 |
| 50 virtual void trace(Visitor*) OVERRIDE; | 50 virtual void trace(Visitor*) OVERRIDE; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 74 | 74 |
| 75 // Whether the image should be shrunk or not | 75 // Whether the image should be shrunk or not |
| 76 bool m_shouldShrinkImage; | 76 bool m_shouldShrinkImage; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); | 79 DEFINE_DOCUMENT_TYPE_CASTS(ImageDocument); |
| 80 | 80 |
| 81 } | 81 } |
| 82 | 82 |
| 83 #endif // ImageDocument_h | 83 #endif // ImageDocument_h |
| OLD | NEW |