Changeset 147977 in webkit
- Timestamp:
- Apr 8, 2013, 7:43:24 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r147975 r147977 1 2013-04-08 Dean Jackson <dino@apple.com> 2 3 Don't try to remove a non-existent snapshot 4 https://bugs.webkit.org/show_bug.cgi?id=114226 5 <rdar://problem/13604480> 6 7 Reviewed by Darin Adler. 8 9 We don't need to trigger the timer to remove a snapshot 10 if there was never a snapshot displayed. 11 12 * html/HTMLPlugInImageElement.cpp: 13 (WebCore::HTMLPlugInImageElement::setDisplayState): Detect if we're moving from the DisplayingSnapshot state. 14 (WebCore::HTMLPlugInImageElement::removeSnapshotTimerFired): Guard against a missing renderer. 15 1 16 2013-04-08 Patrick Gansterer <paroga@webkit.org> 2 17 -
trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp
r147693 r147977 94 94 void HTMLPlugInImageElement::setDisplayState(DisplayState state) 95 95 { 96 #if PLATFORM(MAC) 97 if (state == RestartingWithPendingMouseClick || state == Restarting) { 98 m_restartedPlugin = true; 99 if (displayState() == DisplayingSnapshot) 100 m_removeSnapshotTimer.startOneShot(removeSnapshotTimerDelay); 101 } 102 #endif 103 96 104 HTMLPlugInElement::setDisplayState(state); 97 if (displayState() == DisplayingSnapshot) 105 106 if (state == DisplayingSnapshot) 98 107 m_swapRendererTimer.startOneShot(0); 99 100 #if PLATFORM(MAC)101 if (displayState() == RestartingWithPendingMouseClick || displayState() == Restarting) {102 m_restartedPlugin = true;103 m_removeSnapshotTimer.startOneShot(removeSnapshotTimerDelay);104 }105 #endif106 108 } 107 109 … … 416 418 m_snapshotImage = nullptr; 417 419 m_restartedPlugin = false; 418 renderer()->repaint(); 420 if (renderer()) 421 renderer()->repaint(); 419 422 } 420 423
Note:
See TracChangeset
for help on using the changeset viewer.