diff options
author | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-15 16:08:57 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2012-10-15 16:08:57 +0200 |
commit | 5466563f4b5b6b86523e3f89bb7f77e5b5270c78 (patch) | |
tree | 8caccf7cd03a15207cde3ba282c88bf132482a91 /Source/WebCore/page/Settings.cpp | |
parent | 33b26980cb24288b5a9f2590ccf32a949281bb79 (diff) | |
download | qtwebkit-5466563f4b5b6b86523e3f89bb7f77e5b5270c78.tar.gz |
Imported WebKit commit 0dc6cd75e1d4836eaffbb520be96fac4847cc9d2 (http://svn.webkit.org/repository/webkit/trunk@131300)
WebKit update which introduces the QtWebKitWidgets module that contains the WK1
widgets based API. (In fact it renames QtWebKit to QtWebKitWidgets while we're
working on completing the entire split as part of
https://bugs.webkit.org/show_bug.cgi?id=99314
Diffstat (limited to 'Source/WebCore/page/Settings.cpp')
-rw-r--r-- | Source/WebCore/page/Settings.cpp | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/Source/WebCore/page/Settings.cpp b/Source/WebCore/page/Settings.cpp index 30666c561..9876af5c7 100644 --- a/Source/WebCore/page/Settings.cpp +++ b/Source/WebCore/page/Settings.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. + * Copyright (C) 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -62,7 +62,7 @@ static inline void setGenericFontFamilyMap(ScriptFontFamilyMap& fontMap, const A if (it == fontMap.end()) return; fontMap.remove(it); - } else if (it != fontMap.end() && it->second == family) + } else if (it != fontMap.end() && it->value == family) return; else fontMap.set(static_cast<int>(script), family); @@ -75,7 +75,7 @@ static inline const AtomicString& getGenericFontFamilyForScript(const ScriptFont { ScriptFontFamilyMap::const_iterator it = fontMap.find(static_cast<int>(script)); if (it != fontMap.end()) - return it->second; + return it->value; if (script != USCRIPT_COMMON) return getGenericFontFamilyForScript(fontMap, USCRIPT_COMMON); return emptyAtom; @@ -293,6 +293,8 @@ Settings::Settings(Page* page) , m_windowFocusRestricted(true) , m_diagnosticLoggingEnabled(false) , m_scrollingPerformanceLoggingEnabled(false) + , m_applyPageScaleFactorInCompositor(false) + , m_plugInSnapshottingEnabled(false) , m_setImageLoadingSettingsTimer(this, &Settings::imageLoadingSettingsTimerFired) , m_incrementalRenderingSuppressionTimeoutInSeconds(defaultIncrementalRenderingSuppressionTimeoutInSeconds) { @@ -681,6 +683,26 @@ double Settings::minDOMTimerInterval() return m_page->minimumTimerInterval(); } +void Settings::setDefaultDOMTimerAlignmentInterval(double interval) +{ + DOMTimer::setDefaultTimerAlignmentInterval(interval); +} + +double Settings::defaultDOMTimerAlignmentInterval() +{ + return DOMTimer::defaultTimerAlignmentInterval(); +} + +void Settings::setDOMTimerAlignmentInterval(double interval) +{ + m_page->setTimerAlignmentInterval(interval); +} + +double Settings::domTimerAlignmentInterval() const +{ + return m_page->timerAlignmentInterval(); +} + void Settings::setUsesPageCache(bool usesPageCache) { if (m_usesPageCache == usesPageCache) |