Changeset 287909 in webkit for trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
- Timestamp:
- Jan 11, 2022, 8:08:49 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/css/CSSComputedStyleDeclaration.cpp
r287762 r287909 1070 1070 if (position.isSpan()) { 1071 1071 list->append(cssValuePool.createIdentifierValue(CSSValueSpan)); 1072 list->append(cssValuePool.createValue(position.spanPosition(), CSSUnitType::CSS_ NUMBER));1072 list->append(cssValuePool.createValue(position.spanPosition(), CSSUnitType::CSS_INTEGER)); 1073 1073 } else 1074 list->append(cssValuePool.createValue(position.integerPosition(), CSSUnitType::CSS_ NUMBER));1074 list->append(cssValuePool.createValue(position.integerPosition(), CSSUnitType::CSS_INTEGER)); 1075 1075 1076 1076 if (!position.namedGridLine().isNull()) … … 1941 1941 for (auto& keyValue : *map) { 1942 1942 list->append(cssValuePool.createCustomIdent(keyValue.key)); 1943 doublenumber = (propertyID == CSSPropertyCounterIncrement ? keyValue.value.incrementValue : keyValue.value.resetValue).value_or(0);1944 list->append(cssValuePool.createValue(number, CSSUnitType::CSS_ NUMBER));1943 int number = (propertyID == CSSPropertyCounterIncrement ? keyValue.value.incrementValue : keyValue.value.resetValue).value_or(0); 1944 list->append(cssValuePool.createValue(number, CSSUnitType::CSS_INTEGER)); 1945 1945 } 1946 1946 return list; … … 2977 2977 return cssValuePool.createValue(style.boxFlex(), CSSUnitType::CSS_NUMBER); 2978 2978 case CSSPropertyWebkitBoxFlexGroup: 2979 return cssValuePool.createValue(style.boxFlexGroup(), CSSUnitType::CSS_ NUMBER);2979 return cssValuePool.createValue(style.boxFlexGroup(), CSSUnitType::CSS_INTEGER); 2980 2980 case CSSPropertyWebkitBoxLines: 2981 2981 return cssValuePool.createValue(style.boxLines()); 2982 2982 case CSSPropertyWebkitBoxOrdinalGroup: 2983 return cssValuePool.createValue(style.boxOrdinalGroup(), CSSUnitType::CSS_ NUMBER);2983 return cssValuePool.createValue(style.boxOrdinalGroup(), CSSUnitType::CSS_INTEGER); 2984 2984 case CSSPropertyWebkitBoxOrient: 2985 2985 return cssValuePool.createValue(style.boxOrient()); … … 3098 3098 return getCSSPropertyValuesForShorthandProperties(placeSelfShorthand()); 3099 3099 case CSSPropertyOrder: 3100 return cssValuePool.createValue(style.order(), CSSUnitType::CSS_ NUMBER);3100 return cssValuePool.createValue(style.order(), CSSUnitType::CSS_INTEGER); 3101 3101 case CSSPropertyFloat: 3102 3102 if (style.display() != DisplayType::None && style.hasOutOfFlowPosition()) … … 3250 3250 if (style.lineClamp().isNone()) 3251 3251 return cssValuePool.createIdentifierValue(CSSValueNone); 3252 return cssValuePool.createValue(style.lineClamp().value(), style.lineClamp().isPercentage() ? CSSUnitType::CSS_PERCENTAGE : CSSUnitType::CSS_ NUMBER);3252 return cssValuePool.createValue(style.lineClamp().value(), style.lineClamp().isPercentage() ? CSSUnitType::CSS_PERCENTAGE : CSSUnitType::CSS_INTEGER); 3253 3253 case CSSPropertyLineHeight: 3254 3254 return lineHeightFromStyle(style); … … 3336 3336 if (style.hasAutoOrphans()) 3337 3337 return cssValuePool.createIdentifierValue(CSSValueAuto); 3338 return cssValuePool.createValue(style.orphans(), CSSUnitType::CSS_ NUMBER);3338 return cssValuePool.createValue(style.orphans(), CSSUnitType::CSS_INTEGER); 3339 3339 case CSSPropertyOutlineColor: 3340 3340 return m_allowVisitedStyle ? cssValuePool.createColorValue(style.visitedDependentColor(CSSPropertyOutlineColor)) : currentColorOrValidColor(&style, style.outlineColor()); … … 3528 3528 if (style.hasAutoWidows()) 3529 3529 return cssValuePool.createIdentifierValue(CSSValueAuto); 3530 return cssValuePool.createValue(style.widows(), CSSUnitType::CSS_ NUMBER);3530 return cssValuePool.createValue(style.widows(), CSSUnitType::CSS_INTEGER); 3531 3531 case CSSPropertyWidth: 3532 3532 if (renderer && !renderer->isRenderOrLegacyRenderSVGModelObject()) { … … 3570 3570 if (style.hasAutoSpecifiedZIndex()) 3571 3571 return cssValuePool.createIdentifierValue(CSSValueAuto); 3572 return cssValuePool.createValue(style.specifiedZIndex(), CSSUnitType::CSS_ NUMBER);3572 return cssValuePool.createValue(style.specifiedZIndex(), CSSUnitType::CSS_INTEGER); 3573 3573 case CSSPropertyZoom: 3574 3574 return cssValuePool.createValue(style.zoom(), CSSUnitType::CSS_NUMBER);
Note:
See TracChangeset
for help on using the changeset viewer.