Changeset 160920 in webkit
- Timestamp:
- Dec 20, 2013, 12:49:23 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r160916 r160920 1 2013-12-20 Antti Koivisto <antti@apple.com> 2 3 http/tests/misc/object-image-error.html asserts 4 https://bugs.webkit.org/show_bug.cgi?id=126074 5 6 Reviewed by Andreas Kling. 7 8 * html/HTMLPlugInImageElement.cpp: 9 (WebCore::HTMLPlugInImageElement::didAttachRenderers): 10 (WebCore::HTMLPlugInImageElement::updateWidgetCallback): 11 (WebCore::HTMLPlugInImageElement::startLoadingImage): 12 (WebCore::HTMLPlugInImageElement::startLoadingImageCallback): 13 * html/HTMLPlugInImageElement.h: 14 15 Start image load from post-attach so we don't re-enter attach when image load fails synchronously. 16 1 17 2013-12-20 Antti Koivisto <antti@apple.com> 2 18 -
trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp
r160733 r160920 253 253 if (!renderer() || useFallbackContent()) 254 254 return; 255 if (!m_imageLoader) 256 m_imageLoader = adoptPtr(new HTMLImageLoader(this));257 m_imageLoader->updateFromElement();255 256 // Image load might complete synchronously and cause us to re-enter attach. 257 queuePostAttachCallback(&HTMLPlugInImageElement::startLoadingImageCallback, this); 258 258 } 259 259 … … 335 335 } 336 336 337 void HTMLPlugInImageElement::updateWidgetCallback(Node* n, unsigned) 338 { 339 toHTMLPlugInImageElement(n)->updateWidgetIfNecessary(); 337 void HTMLPlugInImageElement::updateWidgetCallback(Node* node, unsigned) 338 { 339 toHTMLPlugInImageElement(node)->updateWidgetIfNecessary(); 340 } 341 342 void HTMLPlugInImageElement::startLoadingImage() 343 { 344 if (!m_imageLoader) 345 m_imageLoader = adoptPtr(new HTMLImageLoader(this)); 346 m_imageLoader->updateFromElement(); 347 } 348 349 void HTMLPlugInImageElement::startLoadingImageCallback(Node* node, unsigned) 350 { 351 toHTMLPlugInImageElement(node)->startLoadingImage(); 340 352 } 341 353 -
trunk/Source/WebCore/html/HTMLPlugInImageElement.h
r160733 r160920 114 114 URL m_loadedUrl; 115 115 116 static void updateWidgetCallback(Node*, unsigned = 0); 116 static void updateWidgetCallback(Node*, unsigned); 117 static void startLoadingImageCallback(Node*, unsigned); 118 117 119 virtual void didAttachRenderers() OVERRIDE; 118 120 virtual void willDetachRenderers() OVERRIDE; … … 140 142 141 143 void updateWidgetIfNecessary(); 144 void startLoadingImage(); 142 145 143 146 virtual void updateSnapshot(PassRefPtr<Image>) OVERRIDE;
Note:
See TracChangeset
for help on using the changeset viewer.