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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
123 { | 123 { |
124 if (!length) | 124 if (!length) |
125 return; | 125 return; |
126 | 126 |
127 Frame* frame = document()->frame(); | 127 Frame* frame = document()->frame(); |
128 Settings* settings = frame->settings(); | 128 Settings* settings = frame->settings(); |
129 if (!frame->loader().client()->allowImage(!settings || settings->imagesEnabl ed(), document()->url())) | 129 if (!frame->loader().client()->allowImage(!settings || settings->imagesEnabl ed(), document()->url())) |
130 return; | 130 return; |
131 | 131 |
132 document()->cachedImage()->appendData(data, length); | 132 document()->cachedImage()->appendData(data, length); |
133 document()->updateStyleIfNeeded(); | |
Noel Gordon
2014/02/21 02:21:56
I think Elliot said:
| |
133 document()->imageUpdated(); | 134 document()->imageUpdated(); |
134 } | 135 } |
135 | 136 |
136 void ImageDocumentParser::finish() | 137 void ImageDocumentParser::finish() |
137 { | 138 { |
138 if (!isStopped() && document()->imageElement()) { | 139 if (!isStopped() && document()->imageElement()) { |
139 ImageResource* cachedImage = document()->cachedImage(); | 140 ImageResource* cachedImage = document()->cachedImage(); |
140 cachedImage->finish(); | 141 cachedImage->finish(); |
141 cachedImage->setResponse(document()->frame()->loader().documentLoader()- >response()); | 142 cachedImage->setResponse(document()->frame()->loader().documentLoader()- >response()); |
142 | 143 |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
382 } | 383 } |
383 | 384 |
384 bool ImageEventListener::operator==(const EventListener& listener) | 385 bool ImageEventListener::operator==(const EventListener& listener) |
385 { | 386 { |
386 if (const ImageEventListener* imageEventListener = ImageEventListener::cast( &listener)) | 387 if (const ImageEventListener* imageEventListener = ImageEventListener::cast( &listener)) |
387 return m_doc == imageEventListener->m_doc; | 388 return m_doc == imageEventListener->m_doc; |
388 return false; | 389 return false; |
389 } | 390 } |
390 | 391 |
391 } | 392 } |
OLD | NEW |