diff options
Diffstat (limited to 'WebKit/wx/WebFrame.cpp')
-rw-r--r-- | WebKit/wx/WebFrame.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebKit/wx/WebFrame.cpp b/WebKit/wx/WebFrame.cpp index 3a556d5..1c2eebd 100644 --- a/WebKit/wx/WebFrame.cpp +++ b/WebKit/wx/WebFrame.cpp @@ -373,7 +373,7 @@ void wxWebFrame::IncreaseTextSize() { if (CanIncreaseTextSize()) { m_textMagnifier = m_textMagnifier*TextSizeMultiplierRatio; - m_impl->frame->view()->setZoomFactor(m_textMagnifier, WebCore::ZoomTextOnly); + m_impl->frame->setTextZoomFactor(m_textMagnifier); } } @@ -390,15 +390,15 @@ void wxWebFrame::DecreaseTextSize() { if (CanDecreaseTextSize()) { m_textMagnifier = m_textMagnifier/TextSizeMultiplierRatio; - m_impl->frame->view()->setZoomFactor(m_textMagnifier, WebCore::ZoomTextOnly); + m_impl->frame->setTextZoomFactor(m_textMagnifier); } } void wxWebFrame::ResetTextSize() { m_textMagnifier = 1.0; - if (m_impl->frame && m_impl->frame->view()) - m_impl->frame->view()->setZoomFactor(m_textMagnifier, WebCore::ZoomTextOnly); + if (m_impl->frame) + m_impl->frame->setTextZoomFactor(m_textMagnifier); } void wxWebFrame::MakeEditable(bool enable) |