Title: [208115] trunk/Source/WebCore
Revision
208115
Author
[email protected]
Date
2016-10-29 14:42:15 -0700 (Sat, 29 Oct 2016)

Log Message

[CSS Parser] Disable -webkit-text-size-adjust when the context says to.
https://bugs.webkit.org/show_bug.cgi?id=164191

Reviewed by Dean Jackson.

* css/parser/CSSPropertyParser.cpp:
(WebCore::CSSPropertyParser::parseSingleValue):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (208114 => 208115)


--- trunk/Source/WebCore/ChangeLog	2016-10-29 21:25:48 UTC (rev 208114)
+++ trunk/Source/WebCore/ChangeLog	2016-10-29 21:42:15 UTC (rev 208115)
@@ -1,5 +1,15 @@
 2016-10-29  Dave Hyatt  <[email protected]>
 
+        [CSS Parser] Disable -webkit-text-size-adjust when the context says to.
+        https://bugs.webkit.org/show_bug.cgi?id=164191
+
+        Reviewed by Dean Jackson.
+
+        * css/parser/CSSPropertyParser.cpp:
+        (WebCore::CSSPropertyParser::parseSingleValue):
+
+2016-10-29  Dave Hyatt  <[email protected]>
+
         [CSS Parser] Match old parser's image-rendering values
         https://bugs.webkit.org/show_bug.cgi?id=164190
 

Modified: trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp (208114 => 208115)


--- trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-10-29 21:25:48 UTC (rev 208114)
+++ trunk/Source/WebCore/css/parser/CSSPropertyParser.cpp	2016-10-29 21:42:15 UTC (rev 208115)
@@ -3295,6 +3295,14 @@
         return consumeTabSize(m_range, m_context.mode);
 #if ENABLE(TEXT_AUTOSIZING)
     case CSSPropertyWebkitTextSizeAdjust:
+        // FIXME: Support toggling the validation of this property via a runtime setting that is independent of
+        // whether isTextAutosizingEnabled() is true. We want to enable this property on iOS, when simulating
+        // a iOS device in Safari's responsive design mode and when optionally enabled in DRT/WTR. Otherwise,
+        // this property should be disabled by default.
+#if !PLATFORM(IOS)
+        if (!m_context.textAutosizingEnabled)
+            return nullptr;
+#endif
         return consumeTextSizeAdjust(m_range, m_context.mode);
 #endif
     case CSSPropertyFontSize:
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to