Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(68)

Unified Diff: sky/engine/core/css/CSSComputedStyleDeclaration.cpp

Issue 761283002: Remove webkit-line-clamp (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sky/engine/core/css/CSSComputedStyleDeclaration.cpp
diff --git a/sky/engine/core/css/CSSComputedStyleDeclaration.cpp b/sky/engine/core/css/CSSComputedStyleDeclaration.cpp
index 205232119de4403fd92f75f51ba4ed1c598abb54..97ce7a1d0f576c3647f8c18fa8a28670210e933d 100644
--- a/sky/engine/core/css/CSSComputedStyleDeclaration.cpp
+++ b/sky/engine/core/css/CSSComputedStyleDeclaration.cpp
@@ -229,7 +229,6 @@ static const CSSPropertyID staticComputableProperties[] = {
CSSPropertyWebkitHyphenateCharacter,
CSSPropertyWebkitLineBoxContain,
CSSPropertyWebkitLineBreak,
- CSSPropertyWebkitLineClamp,
CSSPropertyWebkitLocale,
CSSPropertyWebkitMarginBeforeCollapse,
CSSPropertyWebkitMarginAfterCollapse,
@@ -1574,10 +1573,6 @@ PassRefPtr<CSSValue> CSSComputedStyleDeclaration::getPropertyCSSValue(CSSPropert
if (!style->letterSpacing())
return cssValuePool().createIdentifierValue(CSSValueNormal);
return pixelValue(style->letterSpacing(), *style);
- case CSSPropertyWebkitLineClamp:
- if (style->lineClamp().isNone())
- return cssValuePool().createIdentifierValue(CSSValueNone);
- return cssValuePool().createValue(style->lineClamp().value(), style->lineClamp().isPercentage() ? CSSPrimitiveValue::CSS_PERCENTAGE : CSSPrimitiveValue::CSS_NUMBER);
case CSSPropertyLineHeight:
return valueForLineHeight(*style);
case CSSPropertyListStyleImage:

Powered by Google App Engine
This is Rietveld 408576698