Changeset 86179 in webkit
- Timestamp:
- May 10, 2011 1:26:09 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r86178 r86179 1 2011-05-10 Brady Eidson <beidson@apple.com> 2 3 Reviewed by Alice Liu. 4 5 <rdar://problem/9343191> and https://bugs.webkit.org/show_bug.cgi?id=60572 6 7 No new tests - There's no way to reproduce the truly bizarre things Canon does in their app 8 that would reasonably fit in to our testing infrastructure. 9 10 Add a timer to Settings and instead of calling setLoadsImagesAutomaticallyInAllFrames right 11 away when this pref changes, call it on a 0-delay: 12 * page/Settings.cpp: 13 (WebCore::Settings::Settings): 14 (WebCore::Settings::setLoadsImagesAutomatically): 15 (WebCore::Settings::loadsImagesAutomaticallyTimerFired): 16 * page/Settings.h: 17 1 18 2011-05-10 Martin Robinson <mrobinson@igalia.com> 2 19 -
trunk/Source/WebCore/page/Settings.cpp
r85720 r86179 183 183 , m_allowDisplayOfInsecureContent(true) 184 184 , m_allowRunningOfInsecureContent(true) 185 , m_loadsImagesAutomaticallyTimer(this, &Settings::loadsImagesAutomaticallyTimerFired) 185 186 { 186 187 // A Frame may not have been created yet, so we initialize the AtomicString … … 282 283 { 283 284 m_loadsImagesAutomatically = loadsImagesAutomatically; 284 setLoadsImagesAutomaticallyInAllFrames(m_page);285 m_loadsImagesAutomaticallyTimer.startOneShot(0); 285 286 } 286 287 … … 743 744 } 744 745 746 void Settings::loadsImagesAutomaticallyTimerFired(Timer<Settings>*) 747 { 748 setLoadsImagesAutomaticallyInAllFrames(m_page); 749 } 750 745 751 } // namespace WebCore -
trunk/Source/WebCore/page/Settings.h
r85720 r86179 31 31 #include "FontRenderingMode.h" 32 32 #include "KURL.h" 33 #include "Timer.h" 33 34 #include <wtf/text/AtomicString.h> 34 35 … … 515 516 bool m_allowRunningOfInsecureContent : 1; 516 517 518 Timer<Settings> m_loadsImagesAutomaticallyTimer; 519 void loadsImagesAutomaticallyTimerFired(Timer<Settings>*); 520 517 521 #if USE(AVFOUNDATION) 518 522 static bool gAVFoundationEnabled;
Note: See TracChangeset
for help on using the changeset viewer.