Changeset 28200 in webkit
- Timestamp:
- Nov 29, 2007, 1:53:38 PM (17 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r28193 r28200 1 2007-11-29 Anders Carlsson <andersca@apple.com> 2 3 Reviewed by Sam. 4 5 Don't install event handlers or set the zoom cursor if auto-shrink has been disabled. 6 7 * loader/ImageDocument.cpp: 8 (WebCore::ImageDocument::createDocumentStructure): 9 (WebCore::ImageDocument::imageChanged): 10 1 11 2007-11-29 Beth Dakin <bdakin@apple.com> 2 12 -
trunk/WebCore/loader/ImageDocument.cpp
r27903 r28200 160 160 body->appendChild(imageElement, ec); 161 161 162 // Add event listeners 163 RefPtr<EventListener> listener = new ImageEventListener(this); 164 addWindowEventListener("resize", listener, false); 165 m_imageElement->addEventListener("click", listener.release(), false); 162 if (shouldShrinkToFit()) { 163 // Add event listeners 164 RefPtr<EventListener> listener = new ImageEventListener(this); 165 addWindowEventListener("resize", listener, false); 166 m_imageElement->addEventListener("click", listener.release(), false); 167 } 166 168 } 167 169 … … 224 226 m_imageSizeIsKnown = true; 225 227 226 // Force resizing of the image 227 windowSizeChanged(); 228 if (shouldShrinkToFit()) { 229 // Force resizing of the image 230 windowSizeChanged(); 231 } 228 232 } 229 233
Note:
See TracChangeset
for help on using the changeset viewer.