Changeset 245440 in webkit
- Timestamp:
- May 17, 2019, 3:14:44 AM (7 years ago)
- Location:
- releases/WebKitGTK/webkit-2.24
- Files:
-
- 2 added
- 18 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/text/trailing-word-detection-expected.txt (added)
-
LayoutTests/fast/text/trailing-word-detection.html (added)
-
LayoutTests/platform/gtk/TestExpectations (modified) (1 diff)
-
LayoutTests/platform/win/TestExpectations (modified) (1 diff)
-
PerformanceTests/ChangeLog (modified) (1 diff)
-
PerformanceTests/MotionMark/resources/debug-runner/motionmark.css (modified) (1 diff)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/PAL/ChangeLog (modified) (1 diff)
-
Source/WebCore/css/CSSComputedStyleDeclaration.cpp (modified) (1 diff)
-
Source/WebCore/css/CSSPrimitiveValueMappings.h (modified) (1 diff)
-
Source/WebCore/css/CSSProperties.json (modified) (1 diff)
-
Source/WebCore/css/CSSValueKeywords.in (modified) (1 diff)
-
Source/WebCore/css/parser/CSSParserFastPaths.cpp (modified) (2 diffs)
-
Source/WebCore/rendering/style/RenderStyle.h (modified) (3 diffs)
-
Source/WebCore/rendering/style/RenderStyleConstants.h (modified) (1 diff)
-
Source/WebKit/ChangeLog (modified) (1 diff)
-
Source/WebKitLegacy/mac/ChangeLog (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.24/LayoutTests/ChangeLog
r245439 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 * fast/text/trailing-word-detection-expected.txt: Added. 9 * fast/text/trailing-word-detection.html: Added. 10 * platform/gtk/TestExpectations: 11 * platform/win/TestExpectations: 12 1 13 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 14 -
releases/WebKitGTK/webkit-2.24/LayoutTests/platform/gtk/TestExpectations
r245439 r245440 3202 3202 webkit.org/b/160248 fast/text/combining-mark-paint.html [ ImageOnlyFailure ] 3203 3203 webkit.org/b/160248 fast/text/synthetic-bold-transformed.html [ ImageOnlyFailure ] 3204 webkit.org/b/160248 fast/text/trailing-word-detection.html [ Failure ] 3204 3205 3205 3206 webkit.org/b/160249 fast/shrink-wrap/rect-shrink-wrap.html [ ImageOnlyFailure ] -
releases/WebKitGTK/webkit-2.24/LayoutTests/platform/win/TestExpectations
r245439 r245440 2978 2978 fast/text/combining-mark-paint.html [ ImageOnlyFailure ] 2979 2979 fast/text/synthetic-bold-transformed.html [ ImageOnlyFailure ] 2980 fast/text/trailing-word-detection.html [ Failure ] 2980 2981 2981 2982 # TestRunner::addChromeInputField() and focusWebView() not implemented -
releases/WebKitGTK/webkit-2.24/PerformanceTests/ChangeLog
r241193 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 * MotionMark/resources/debug-runner/motionmark.css: 9 (#intro .start-benchmark p): 10 1 11 2019-02-08 Saam barati <sbarati@apple.com> 2 12 -
releases/WebKitGTK/webkit-2.24/PerformanceTests/MotionMark/resources/debug-runner/motionmark.css
r233147 r245440 210 210 color: hsl(11, 72%, 50%); 211 211 margin-bottom: 1em; 212 -apple-trailing-word: -apple-partially-balanced;213 212 } 214 213 -
releases/WebKitGTK/webkit-2.24/Source/JavaScriptCore/ChangeLog
r245439 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 11 -
releases/WebKitGTK/webkit-2.24/Source/WebCore/ChangeLog
r245439 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 This is an unreviewed partial revert of r243819. Turns out there are some websites 9 which use this property to do browser detection. So, we need to continue to parse 10 the property, but we don't need the property to do anything. 11 12 Test: fast/text/trailing-word-detection.html 13 14 * Configurations/FeatureDefines.xcconfig: 15 * css/CSSComputedStyleDeclaration.cpp: 16 (WebCore::ComputedStyleExtractor::valueForPropertyinStyle): 17 * css/CSSPrimitiveValueMappings.h: 18 (WebCore::CSSPrimitiveValue::CSSPrimitiveValue): 19 (WebCore::CSSPrimitiveValue::operator TrailingWord const): 20 * css/CSSProperties.json: 21 * css/CSSValueKeywords.in: 22 * css/parser/CSSParserFastPaths.cpp: 23 (WebCore::CSSParserFastPaths::isValidKeywordPropertyAndValue): 24 (WebCore::CSSParserFastPaths::isKeywordPropertyID): 25 * rendering/style/RenderStyle.h: 26 (WebCore::RenderStyle::trailingWord const): 27 (WebCore::RenderStyle::setTrailingWord): 28 (WebCore::RenderStyle::initialTrailingWord): 29 * rendering/style/RenderStyleConstants.h: 30 1 31 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 32 -
releases/WebKitGTK/webkit-2.24/Source/WebCore/PAL/ChangeLog
r245439 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 11 -
releases/WebKitGTK/webkit-2.24/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r245439 r245440 4030 4030 #endif 4031 4031 4032 #if ENABLE(CSS_TRAILING_WORD) 4033 case CSSPropertyAppleTrailingWord: 4034 return cssValuePool.createValue(style.trailingWord()); 4035 #endif 4036 4032 4037 #if ENABLE(APPLE_PAY) 4033 4038 case CSSPropertyApplePayButtonStyle: -
releases/WebKitGTK/webkit-2.24/Source/WebCore/css/CSSPrimitiveValueMappings.h
r245439 r245440 5406 5406 #endif 5407 5407 5408 #if ENABLE(CSS_TRAILING_WORD) 5409 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(TrailingWord e) 5410 : CSSValue(PrimitiveClass) 5411 { 5412 m_primitiveUnitType = CSS_VALUE_ID; 5413 switch (e) { 5414 case TrailingWord::Auto: 5415 m_value.valueID = CSSValueAuto; 5416 break; 5417 case TrailingWord::PartiallyBalanced: 5418 m_value.valueID = CSSValueWebkitPartiallyBalanced; 5419 break; 5420 default: 5421 ASSERT_NOT_REACHED(); 5422 break; 5423 } 5424 } 5425 5426 template<> inline CSSPrimitiveValue::operator TrailingWord() const 5427 { 5428 ASSERT(isValueID()); 5429 switch (m_value.valueID) { 5430 case CSSValueAuto: 5431 return TrailingWord::Auto; 5432 case CSSValueWebkitPartiallyBalanced: 5433 return TrailingWord::PartiallyBalanced; 5434 default: 5435 break; 5436 } 5437 ASSERT_NOT_REACHED(); 5438 return TrailingWord::Auto; 5439 } 5440 #endif 5441 5408 5442 #if ENABLE(APPLE_PAY) 5409 5443 template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ApplePayButtonStyle e) -
releases/WebKitGTK/webkit-2.24/Source/WebCore/css/CSSProperties.json
r245439 r245440 6955 6955 "status": "non-standard" 6956 6956 }, 6957 "-apple-trailing-word": { 6958 "inherited": true, 6959 "values": [ 6960 "auto", 6961 "-webkit-partially-balanced" 6962 ], 6963 "codegen-properties": { 6964 "name-for-methods": "TrailingWord", 6965 "enable-if": "ENABLE_CSS_TRAILING_WORD" 6966 }, 6967 "status": { 6968 "status": "non-standard", 6969 "comment": "Needed for feature-detecting the Safari browser. Implementation has no effect." 6970 } 6971 }, 6957 6972 "-apple-pay-button-style": { 6958 6973 "codegen-properties": { -
releases/WebKitGTK/webkit-2.24/Source/WebCore/css/CSSValueKeywords.in
r245439 r245440 1324 1324 from-intrinsic 1325 1325 1326 #if defined(ENABLE_CSS_TRAILING_WORD) && ENABLE_CSS_TRAILING_WORD 1327 // -apple-trailing-word 1328 -webkit-partially-balanced 1329 #endif 1330 1326 1331 #if defined(ENABLE_APPLE_PAY) && ENABLE_APPLE_PAY 1327 1332 // -apple-pay-button-style -
releases/WebKitGTK/webkit-2.24/Source/WebCore/css/parser/CSSParserFastPaths.cpp
r245439 r245440 763 763 case CSSPropertyWebkitBorderFit: 764 764 return valueID == CSSValueBorder || valueID == CSSValueLines; 765 #if ENABLE(CSS_TRAILING_WORD) 766 case CSSPropertyAppleTrailingWord: // auto | -apple-partially-balanced 767 return valueID == CSSValueAuto || valueID == CSSValueWebkitPartiallyBalanced; 768 #endif 765 769 #if ENABLE(APPLE_PAY) 766 770 case CSSPropertyApplePayButtonStyle: // white | white-outline | black … … 931 935 // case CSSPropertyTextOrientation: 932 936 // case CSSPropertyUserSelect: 937 #if ENABLE(CSS_TRAILING_WORD) 938 case CSSPropertyAppleTrailingWord: 939 #endif 933 940 #if ENABLE(CSS_COMPOSITING) 934 941 case CSSPropertyIsolation: -
releases/WebKitGTK/webkit-2.24/Source/WebCore/rendering/style/RenderStyle.h
r245439 r245440 800 800 bool shouldPlaceBlockDirectionScrollbarOnLeft() const; 801 801 802 #if ENABLE(CSS_TRAILING_WORD) 803 TrailingWord trailingWord() const { return TrailingWord::Auto; } 804 #endif 805 802 806 #if ENABLE(APPLE_PAY) 803 807 ApplePayButtonStyle applePayButtonStyle() const { return static_cast<ApplePayButtonStyle>(m_rareNonInheritedData->applePayButtonStyle); } … … 1255 1259 1256 1260 void setTextSecurity(TextSecurity security) { SET_VAR(m_rareInheritedData, textSecurity, static_cast<unsigned>(security)); } 1261 1262 #if ENABLE(CSS_TRAILING_WORD) 1263 void setTrailingWord(TrailingWord) { } 1264 #endif 1257 1265 1258 1266 #if ENABLE(APPLE_PAY) … … 1623 1631 #endif 1624 1632 1633 #if ENABLE(CSS_TRAILING_WORD) 1634 static TrailingWord initialTrailingWord() { return TrailingWord::Auto; } 1635 #endif 1636 1625 1637 #if ENABLE(APPLE_PAY) 1626 1638 static ApplePayButtonStyle initialApplePayButtonStyle() { return ApplePayButtonStyle::Black; } -
releases/WebKitGTK/webkit-2.24/Source/WebCore/rendering/style/RenderStyleConstants.h
r245439 r245440 1109 1109 #endif 1110 1110 1111 #if ENABLE(CSS_TRAILING_WORD) 1112 enum class TrailingWord : uint8_t { 1113 Auto, 1114 PartiallyBalanced 1115 }; 1116 #endif 1117 1111 1118 #if ENABLE(APPLE_PAY) 1112 1119 enum class ApplePayButtonStyle : uint8_t { -
releases/WebKitGTK/webkit-2.24/Source/WebKit/ChangeLog
r245439 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 11 -
releases/WebKitGTK/webkit-2.24/Source/WebKitLegacy/mac/ChangeLog
r245439 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 * Configurations/FeatureDefines.xcconfig: 9 1 10 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 11 -
releases/WebKitGTK/webkit-2.24/Tools/ChangeLog
r245439 r245440 1 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 3 -apple-trailing-word is needed for browser detection 4 https://bugs.webkit.org/show_bug.cgi?id=196575 5 6 Unreviewed. 7 8 * TestWebKitAPI/Configurations/FeatureDefines.xcconfig: 9 1 10 2019-04-03 Myles C. Maxfield <mmaxfield@apple.com> 2 11
Note:
See TracChangeset
for help on using the changeset viewer.