• tony@chromium.org's avatar
    Move default DOM Timer values into Settings · 784b4519
    tony@chromium.org authored
    Reviewed by Kenneth Russell.
    Move the global values for defaultMinDOMTimerInterval and defaultDOMTimerAlignmentInterval into
    the Settings object. This is more consistent with other global settings and allows us to remove
    the setters on the DOMTimer object.
    No new tests, this is a refactor.
    * page/DOMTimer.cpp: Remove globals.
    * page/DOMTimer.h:
    (WebCore::DOMTimer::defaultMinTimerInterval): Call through to Settings
    (WebCore::DOMTimer::defaultTimerAlignmentInterval): Call through to Settings.
    (DOMTimer): Remove setters.
    * page/Settings.cpp:
    (WebCore::Settings::setDefaultMinDOMTimerInterval): Use a global in Settings.
    (WebCore::Settings::setDefaultDOMTimerAlignmentInterval): Use a global in Settings.
    * page/Settings.h:
    (WebCore::Settings::defaultMinDOMTimerInterval): Inline the getter.
    (WebCore::Settings::defaultDOMTimerAlignmentInterval): Inline the getter.
    (Settings): Add globals.
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@132538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
DOMTimer.h 3.38 KB