2010-11-17 John Mellor <johnme@chromium.org>

        Reviewed by Darin Fisher.

        [chromium] Expose frame flattening setting in WebSettings.
        https://bugs.webkit.org/show_bug.cgi?id=49621

        * public/WebSettings.h:
        * src/WebSettingsImpl.cpp:
        (WebKit::WebSettingsImpl::setFrameFlatteningEnabled):
        * src/WebSettingsImpl.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72196 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5eb1b1af
2010-11-17 John Mellor <johnme@chromium.org>
Reviewed by Darin Fisher.
[chromium] Expose frame flattening setting in WebSettings.
https://bugs.webkit.org/show_bug.cgi?id=49621
* public/WebSettings.h:
* src/WebSettingsImpl.cpp:
(WebKit::WebSettingsImpl::setFrameFlatteningEnabled):
* src/WebSettingsImpl.h:
2010-11-17 Jonathan Backer <backer@chromium.org>
Reviewed by Kenneth Russell.
......
......@@ -82,6 +82,7 @@ public:
virtual void setXSSAuditorEnabled(bool) = 0;
virtual void setLocalStorageEnabled(bool) = 0;
virtual void setEditableLinkBehaviorNeverLive() = 0;
virtual void setFrameFlatteningEnabled(bool) = 0;
virtual void setFontRenderingModeNormal() = 0;
virtual void setShouldPaintCustomScrollbars(bool) = 0;
virtual void setAllowUniversalAccessFromFileURLs(bool) = 0;
......
......@@ -223,6 +223,11 @@ void WebSettingsImpl::setEditableLinkBehaviorNeverLive()
m_settings->setEditableLinkBehavior(WebCore::EditableLinkNeverLive);
}
void WebSettingsImpl::setFrameFlatteningEnabled(bool enabled)
{
m_settings->setFrameFlatteningEnabled(enabled);
}
void WebSettingsImpl::setFontRenderingModeNormal()
{
// FIXME: If you ever need more behaviors than this, then we should probably
......
......@@ -77,6 +77,7 @@ public:
virtual void setXSSAuditorEnabled(bool);
virtual void setLocalStorageEnabled(bool);
virtual void setEditableLinkBehaviorNeverLive();
virtual void setFrameFlatteningEnabled(bool);
virtual void setFontRenderingModeNormal();
virtual void setShouldPaintCustomScrollbars(bool);
virtual void setAllowUniversalAccessFromFileURLs(bool);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment