From aaf00b3dd10c64d47611a17592267b3aad69eee8 Mon Sep 17 00:00:00 2001 From: John Reck Date: Wed, 25 May 2011 15:44:55 -0700 Subject: Ignore webkit-text-size-adjust: none Bug: 4486008 Change-Id: Iaf810878c6ed216e2431a7718de899a9e8e0d6f8 --- Source/WebCore/css/CSSStyleSelector.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'Source/WebCore/css') diff --git a/Source/WebCore/css/CSSStyleSelector.cpp b/Source/WebCore/css/CSSStyleSelector.cpp index 02cf8d3..5ff5066 100644 --- a/Source/WebCore/css/CSSStyleSelector.cpp +++ b/Source/WebCore/css/CSSStyleSelector.cpp @@ -6852,6 +6852,19 @@ void CSSStyleSelector::checkForTextSizeAdjust() { if (m_style->textSizeAdjust()) return; + + /* TODO: Remove this when a fix for webkit bug 56543 is submitted and can + * be cherry picked. + * This is a quick fix for Android to prevent sites from using + * -webkit-text-size-adjust: none; which breaks font size accessibility + * options on all platforms. The purpose of the property is to prevent + * the automatic font size changes done by platforms like iOS when the + * rotation changes. Since Android doesn't do this, we can safely ignore + * the 'none' option. + */ +#if PLATFORM(ANDROID) + return; +#endif FontDescription newFontDescription(m_style->fontDescription()); newFontDescription.setComputedSize(newFontDescription.specifiedSize()); -- cgit v1.1