OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2010 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 private: | 89 private: |
90 ImageDocumentParser(ImageDocument* document) | 90 ImageDocumentParser(ImageDocument* document) |
91 : RawDataDocumentParser(document) | 91 : RawDataDocumentParser(document) |
92 { | 92 { |
93 } | 93 } |
94 | 94 |
95 virtual void appendBytes(DocumentWriter*, const char*, size_t); | 95 virtual void appendBytes(DocumentWriter*, const char*, size_t); |
96 virtual void finish(); | 96 virtual void finish(); |
97 }; | 97 }; |
98 | 98 |
99 class ImageDocumentElement : public HTMLImageElement { | 99 class ImageDocumentElement FINAL : public HTMLImageElement { |
100 public: | 100 public: |
101 static PassRefPtr<ImageDocumentElement> create(ImageDocument*); | 101 static PassRefPtr<ImageDocumentElement> create(ImageDocument*); |
102 | 102 |
103 private: | 103 private: |
104 ImageDocumentElement(ImageDocument* document) | 104 ImageDocumentElement(ImageDocument* document) |
105 : HTMLImageElement(imgTag, document) | 105 : HTMLImageElement(imgTag, document) |
106 , m_imageDocument(document) | 106 , m_imageDocument(document) |
107 { | 107 { |
108 } | 108 } |
109 | 109 |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 void ImageDocumentElement::didMoveToNewDocument(Document* oldDocument) | 395 void ImageDocumentElement::didMoveToNewDocument(Document* oldDocument) |
396 { | 396 { |
397 if (m_imageDocument) { | 397 if (m_imageDocument) { |
398 m_imageDocument->disconnectImageElement(); | 398 m_imageDocument->disconnectImageElement(); |
399 m_imageDocument = 0; | 399 m_imageDocument = 0; |
400 } | 400 } |
401 HTMLImageElement::didMoveToNewDocument(oldDocument); | 401 HTMLImageElement::didMoveToNewDocument(oldDocument); |
402 } | 402 } |
403 | 403 |
404 } | 404 } |
OLD | NEW |