Changeset 86179 in webkit


Ignore:
Timestamp:
May 10, 2011 1:26:09 PM (13 years ago)
Author:
beidson@apple.com
Message:

<rdar://problem/9343191> and https://bugs.webkit.org/show_bug.cgi?id=60572

Reviewed by Alice Liu.

No new tests - There's no way to reproduce the truly bizarre things Canon does in their app
that would reasonably fit in to our testing infrastructure.

Add a timer to Settings and instead of calling setLoadsImagesAutomaticallyInAllFrames right
away when this pref changes, call it on a 0-delay:

  • page/Settings.cpp:

(WebCore::Settings::Settings):
(WebCore::Settings::setLoadsImagesAutomatically):
(WebCore::Settings::loadsImagesAutomaticallyTimerFired):

  • page/Settings.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r86178 r86179  
     12011-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
    1182011-05-10  Martin Robinson  <mrobinson@igalia.com>
    219
  • trunk/Source/WebCore/page/Settings.cpp

    r85720 r86179  
    183183    , m_allowDisplayOfInsecureContent(true)
    184184    , m_allowRunningOfInsecureContent(true)
     185    , m_loadsImagesAutomaticallyTimer(this, &Settings::loadsImagesAutomaticallyTimerFired)
    185186{
    186187    // A Frame may not have been created yet, so we initialize the AtomicString
     
    282283{
    283284    m_loadsImagesAutomatically = loadsImagesAutomatically;
    284     setLoadsImagesAutomaticallyInAllFrames(m_page);
     285    m_loadsImagesAutomaticallyTimer.startOneShot(0);
    285286}
    286287
     
    743744}
    744745
     746void Settings::loadsImagesAutomaticallyTimerFired(Timer<Settings>*)
     747{
     748    setLoadsImagesAutomaticallyInAllFrames(m_page);
     749}
     750
    745751} // namespace WebCore
  • trunk/Source/WebCore/page/Settings.h

    r85720 r86179  
    3131#include "FontRenderingMode.h"
    3232#include "KURL.h"
     33#include "Timer.h"
    3334#include <wtf/text/AtomicString.h>
    3435
     
    515516        bool m_allowRunningOfInsecureContent : 1;
    516517
     518        Timer<Settings> m_loadsImagesAutomaticallyTimer;
     519        void loadsImagesAutomaticallyTimerFired(Timer<Settings>*);
     520
    517521#if USE(AVFOUNDATION)
    518522        static bool gAVFoundationEnabled;
Note: See TracChangeset for help on using the changeset viewer.