Changeset 201090 in webkit
- Timestamp:
- May 18, 2016, 12:06:27 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 14 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text-autosizing/ios/line-height-text-autosizing.html (modified) (2 diffs)
-
LayoutTests/fast/text-autosizing/ios/percent-adjust-length-line-height.html (modified) (2 diffs)
-
LayoutTests/fast/text-autosizing/ios/percent-adjust-number-line-height.html (modified) (2 diffs)
-
LayoutTests/fast/text-autosizing/ios/percent-adjust-percent-line-height.html (modified) (2 diffs)
-
LayoutTests/fast/text-autosizing/mac (added)
-
LayoutTests/fast/text-autosizing/mac/text-size-adjust-text-zoom-expected.html (added)
-
LayoutTests/fast/text-autosizing/mac/text-size-adjust-text-zoom.html (added)
-
LayoutTests/platform/mac-wk2/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/mac/TestExpectations (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSParser.cpp (modified) (5 diffs)
-
Source/WebCore/css/CSSParser.h (modified) (1 diff)
-
Source/WebCore/css/CSSParserMode.h (modified) (1 diff)
-
Source/WebCore/testing/InternalSettings.cpp (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/mac/DumpRenderTree.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r201087 r201090 1 2016-05-18 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r200534) Command-+ no longer zooms pages 4 https://bugs.webkit.org/show_bug.cgi?id=157826 5 rdar://problem/26334636 6 7 Reviewed by Dean Jackson. 8 9 Need to call internals.settings.setTextAutosizingEnabled(true) earlier in some tests. 10 11 * fast/text-autosizing/ios/line-height-text-autosizing.html: 12 * fast/text-autosizing/ios/percent-adjust-length-line-height.html: 13 * fast/text-autosizing/ios/percent-adjust-number-line-height.html: 14 * fast/text-autosizing/ios/percent-adjust-percent-line-height.html: 15 * fast/text-autosizing/mac/text-size-adjust-text-zoom-expected.html: Added. 16 * fast/text-autosizing/mac/text-size-adjust-text-zoom.html: Added. 17 * platform/mac-wk2/TestExpectations: 18 * platform/mac/TestExpectations: 19 1 20 2016-05-18 Joanmarie Diggs <jdiggs@igalia.com> 2 21 -
trunk/LayoutTests/fast/text-autosizing/ios/line-height-text-autosizing.html
r200534 r201090 2 2 <html> 3 3 <head> 4 <script> 5 if (window.internals) { 6 internals.settings.setTextAutosizingEnabled(true); 7 internals.settings.setTextAutosizingWindowSizeOverride(320, 480); 8 } 9 </script> 4 10 <script src="../../../resources/js-test-pre.js"></script> 5 11 <style> … … 12 18 } 13 19 </style> 14 <script>15 if (window.internals) {16 window.internals.settings.setTextAutosizingEnabled(true);17 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);18 }19 </script>20 20 </head> 21 21 <boby> -
trunk/LayoutTests/fast/text-autosizing/ios/percent-adjust-length-line-height.html
r200589 r201090 3 3 <meta name="viewport" content="user-scalable=no, width=320"> 4 4 <title><rdar://problem/6646628> Text Autosizing: Overlapping text in message</title> 5 <script> 6 if (window.internals) { 7 internals.settings.setTextAutosizingEnabled(true); 8 internals.settings.setTextAutosizingWindowSizeOverride(320, 480); 9 } 10 </script> 5 11 <style> 6 12 body { … … 13 19 </style> 14 20 <script src="../../../resources/js-test-pre.js"></script> 15 <script>16 if (window.internals) {17 window.internals.settings.setTextAutosizingEnabled(true);18 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);19 }20 </script>21 21 </head> 22 22 <body> -
trunk/LayoutTests/fast/text-autosizing/ios/percent-adjust-number-line-height.html
r200589 r201090 3 3 <meta name="viewport" content="user-scalable=no, width=320"> 4 4 <title><rdar://problem/6646628> Text Autosizing: Overlapping text in message</title> 5 <script> 6 if (window.internals) { 7 internals.settings.setTextAutosizingEnabled(true); 8 internals.settings.setTextAutosizingWindowSizeOverride(320, 480); 9 } 10 </script> 5 11 <style> 6 12 #expected { … … 16 22 </style> 17 23 <script src="../../../resources/js-test-pre.js"></script> 18 <script>19 if (window.internals) {20 window.internals.settings.setTextAutosizingEnabled(true);21 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);22 }23 </script>24 24 </head> 25 25 <body> -
trunk/LayoutTests/fast/text-autosizing/ios/percent-adjust-percent-line-height.html
r200589 r201090 3 3 <meta name="viewport" content="user-scalable=no, width=320"> 4 4 <title><rdar://problem/12607898> incorrect behavior of -webkit-text-size-adjust in UIWebView on iOS6</title> 5 <script> 6 if (window.internals) { 7 internals.settings.setTextAutosizingEnabled(true); 8 internals.settings.setTextAutosizingWindowSizeOverride(320, 480); 9 } 10 </script> 5 11 <style> 6 12 #expected { … … 16 22 </style> 17 23 <script src="../../../resources/js-test-pre.js"></script> 18 <script>19 if (window.internals) {20 window.internals.settings.setTextAutosizingEnabled(true);21 window.internals.settings.setTextAutosizingWindowSizeOverride(320, 480);22 }23 </script>24 24 </head> 25 25 <body> -
trunk/LayoutTests/platform/mac-wk2/TestExpectations
r200579 r201090 10 10 11 11 fast/text-autosizing/ios [ Pass ] 12 fast/text-autosizing/mac [ Pass ] 12 13 13 14 fast/events/cancelled-force-click-link-navigation.html [ Pass ] -
trunk/LayoutTests/platform/mac/TestExpectations
r200879 r201090 18 18 19 19 fast/text-autosizing/ios [ Pass ] 20 fast/text-autosizing/mac [ Pass ] 20 21 21 22 #////////////////////////////////////////////////////////////////////////////////////////// -
trunk/Source/WebCore/ChangeLog
r201088 r201090 1 2016-05-18 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r200534) Command-+ no longer zooms pages 4 https://bugs.webkit.org/show_bug.cgi?id=157826 5 rdar://problem/26334636 6 7 Reviewed by Dean Jackson. 8 9 When text autosizing was enabled on Mac, we started to parse and respect 10 -webkit-text-size-adjust. Fix by cutting this off in CSSParser if the feature 11 is disabled. 12 13 Also fix InternalSettings to reset page and text zoom, since WebKit1 aliases 14 the zoom levels causing DRT to fail to reset them between tests. 15 16 Test: fast/text-autosizing/mac/text-size-adjust-text-zoom.html 17 18 * css/CSSParser.cpp: 19 (WebCore::CSSParserContext::CSSParserContext): 20 (WebCore::isValidKeywordPropertyAndValue): 21 (WebCore::CSSParser::parseValue): 22 (WebCore::CSSParser::isTextAutosizingEnabled): 23 * css/CSSParser.h: 24 * css/CSSParserMode.h: 25 * testing/InternalSettings.cpp: 26 (WebCore::InternalSettings::resetToConsistentState): 27 1 28 2016-05-18 Dave Hyatt <hyatt@apple.com> 2 29 -
trunk/Source/WebCore/css/CSSParser.cpp
r201036 r201090 246 246 : baseURL(baseURL) 247 247 , mode(mode) 248 , isHTMLDocument(false)249 248 #if ENABLE(CSS_GRID_LAYOUT) 250 249 , cssGridLayoutEnabled(RuntimeEnabledFeatures::sharedFeatures().isCSSGridLayoutEnabled()) 251 250 #endif 252 , needsSiteSpecificQuirks(false)253 , enforcesCSSMIMETypeInNoQuirksMode(true)254 , useLegacyBackgroundSizeShorthandBehavior(false)255 251 { 256 252 #if PLATFORM(IOS) … … 270 266 , cssGridLayoutEnabled(document.isCSSGridLayoutEnabled()) 271 267 #endif 272 , needsSiteSpecificQuirks(document.settings() ? document.settings()->needsSiteSpecificQuirks() : false) 273 , enforcesCSSMIMETypeInNoQuirksMode(!document.settings() || document.settings()->enforceCSSMIMETypeInNoQuirksMode()) 274 , useLegacyBackgroundSizeShorthandBehavior(document.settings() ? document.settings()->useLegacyBackgroundSizeShorthandBehavior() : false) 275 { 268 { 269 if (Settings* settings = document.settings()) { 270 needsSiteSpecificQuirks = settings->needsSiteSpecificQuirks(); 271 enforcesCSSMIMETypeInNoQuirksMode = settings->enforceCSSMIMETypeInNoQuirksMode(); 272 useLegacyBackgroundSizeShorthandBehavior = settings->useLegacyBackgroundSizeShorthandBehavior(); 273 #if ENABLE(IOS_TEXT_AUTOSIZING) 274 textAutosizingEnabled = settings->textAutosizingEnabled(); 275 WTFLogAlways("CSSParserContext %p CSSParserContext textAutosizingEnabled=%d", this, textAutosizingEnabled); 276 #endif 277 } 278 276 279 #if PLATFORM(IOS) 277 280 // FIXME: Force the site specific quirk below to work on iOS. Investigating other site specific quirks … … 971 974 #if ENABLE(IOS_TEXT_AUTOSIZING) 972 975 case CSSPropertyWebkitTextSizeAdjust: 976 if (!parserContext.textAutosizingEnabled) 977 return false; 978 973 979 if (valueID == CSSValueAuto || valueID == CSSValueNone) 974 980 return true; … … 2914 2920 #if ENABLE(IOS_TEXT_AUTOSIZING) 2915 2921 case CSSPropertyWebkitTextSizeAdjust: 2922 if (!isTextAutosizingEnabled()) 2923 return false; 2924 2916 2925 if (id == CSSValueAuto || id == CSSValueNone) 2917 2926 validPrimitive = true; … … 10246 10255 #endif 10247 10256 10257 #if ENABLE(IOS_TEXT_AUTOSIZING) 10258 bool CSSParser::isTextAutosizingEnabled() const 10259 { 10260 return m_context.textAutosizingEnabled; 10261 } 10262 #endif 10263 10248 10264 #if ENABLE(CSS_GRID_LAYOUT) 10249 10265 bool CSSParser::isCSSGridLayoutEnabled() const -
trunk/Source/WebCore/css/CSSParser.h
r201000 r201090 205 205 bool parseColumnsShorthand(bool important); 206 206 207 #if ENABLE(IOS_TEXT_AUTOSIZING) 208 bool isTextAutosizingEnabled() const; 209 #endif 210 207 211 #if ENABLE(CSS_GRID_LAYOUT) 208 212 bool isCSSGridLayoutEnabled() const; -
trunk/Source/WebCore/css/CSSParserMode.h
r200524 r201090 63 63 URL baseURL; 64 64 String charset; 65 CSSParserMode mode ;66 bool isHTMLDocument ;65 CSSParserMode mode { CSSStrictMode }; 66 bool isHTMLDocument { false }; 67 67 #if ENABLE(CSS_GRID_LAYOUT) 68 bool cssGridLayoutEnabled ;68 bool cssGridLayoutEnabled { false }; 69 69 #endif 70 bool needsSiteSpecificQuirks; 71 bool enforcesCSSMIMETypeInNoQuirksMode; 72 bool useLegacyBackgroundSizeShorthandBehavior; 70 #if ENABLE(IOS_TEXT_AUTOSIZING) 71 bool textAutosizingEnabled { false }; 72 #endif 73 bool needsSiteSpecificQuirks { false }; 74 bool enforcesCSSMIMETypeInNoQuirksMode { true }; 75 bool useLegacyBackgroundSizeShorthandBehavior { false }; 73 76 }; 74 77 -
trunk/Source/WebCore/testing/InternalSettings.cpp
r200534 r201090 227 227 void InternalSettings::resetToConsistentState() 228 228 { 229 page()->setPageScaleFactor(1, IntPoint(0, 0)); 229 page()->setPageScaleFactor(1, { 0, 0 }); 230 page()->mainFrame().setPageAndTextZoomFactors(1, 1); 230 231 page()->setCanStartMedia(true); 231 232 page()->settings().setForcePendingWebGLPolicy(false); 232 233 #if ENABLE(WIRELESS_PLAYBACK_TARGET) 233 m_page->settings().setAllowsAirPlayForMediaPlayback(false);234 page()->settings().setAllowsAirPlayForMediaPlayback(false); 234 235 #endif 235 236 -
trunk/Tools/ChangeLog
r201087 r201090 1 2016-05-18 Simon Fraser <simon.fraser@apple.com> 2 3 REGRESSION (r200534) Command-+ no longer zooms pages 4 https://bugs.webkit.org/show_bug.cgi?id=157826 5 rdar://problem/26334636 6 7 Reviewed by Dean Jackson. 8 9 * DumpRenderTree/mac/DumpRenderTree.mm: 10 (resetWebPreferencesToConsistentValues): Remove ENABLE() #ifdefs that do nothing (see http://webkit.org/b/157828). 11 1 12 2016-05-18 Joanmarie Diggs <jdiggs@igalia.com> 2 13 -
trunk/Tools/DumpRenderTree/mac/DumpRenderTree.mm
r200534 r201090 954 954 #endif 955 955 956 #if ENABLE(IOS_TEXT_AUTOSIZING)957 956 [preferences _setTextAutosizingEnabled:NO]; 958 #endif959 957 960 958 // The back/forward cache is causing problems due to layouts during transition from one page to another. … … 972 970 #endif 973 971 974 #if ENABLE(WEB_AUDIO)975 972 [preferences setWebAudioEnabled:YES]; 976 #endif977 978 #if ENABLE(MEDIA_SOURCE)979 973 [preferences setMediaSourceEnabled:YES]; 980 #endif981 974 982 975 [preferences setShadowDOMEnabled:YES];
Note:
See TracChangeset
for help on using the changeset viewer.