| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 document()->imageUpdated(); | 163 document()->imageUpdated(); |
| 164 } | 164 } |
| 165 | 165 |
| 166 document()->finishedParsing(); | 166 document()->finishedParsing(); |
| 167 } | 167 } |
| 168 | 168 |
| 169 // -------- | 169 // -------- |
| 170 | 170 |
| 171 ImageDocument::ImageDocument(Frame* frame, const KURL& url) | 171 ImageDocument::ImageDocument(Frame* frame, const KURL& url) |
| 172 : HTMLDocument(frame, url) | 172 : HTMLDocument(frame, url) |
| 173 , m_imageElement(0) | |
| 174 , m_imageSizeIsKnown(false) | 173 , m_imageSizeIsKnown(false) |
| 175 , m_didShrinkImage(false) | 174 , m_didShrinkImage(false) |
| 176 , m_shouldShrinkImage(shouldShrinkToFit()) | 175 , m_shouldShrinkImage(shouldShrinkToFit()) |
| 177 { | 176 { |
| 178 setCompatibilityMode(QuirksMode); | 177 setCompatibilityMode(QuirksMode); |
| 179 lockCompatibilityMode(); | 178 lockCompatibilityMode(); |
| 180 } | 179 } |
| 181 | 180 |
| 182 PassRefPtr<DocumentParser> ImageDocument::createParser() | 181 PassRefPtr<DocumentParser> ImageDocument::createParser() |
| 183 { | 182 { |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 HTMLImageElement::didMoveToNewDocument(oldDocument); | 410 HTMLImageElement::didMoveToNewDocument(oldDocument); |
| 412 } | 411 } |
| 413 | 412 |
| 414 void ImageDocumentElement::accept(Visitor* visitor) const | 413 void ImageDocumentElement::accept(Visitor* visitor) const |
| 415 { | 414 { |
| 416 visitor->visit(m_imageDocument); | 415 visitor->visit(m_imageDocument); |
| 417 HTMLImageElement::accept(visitor); | 416 HTMLImageElement::accept(visitor); |
| 418 } | 417 } |
| 419 | 418 |
| 420 } | 419 } |
| OLD | NEW |