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

Unified Diff: Source/core/css/CSSPrimitiveValueMappings.h

Issue 26588002: Remove support for -webkit-line-clamp Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Base files missing... Created 7 years, 2 months 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
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/Source/core/css/CSSPrimitiveValueMappings.h b/Source/core/css/CSSPrimitiveValueMappings.h
index e538b8fee5c16840e906177a131196e57512344c..f10fe0d936d4103dfa29d5dc76c00a7b3f87e732 100644
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -41,7 +41,6 @@
#include "core/platform/ThemeTypes.h"
#include "core/platform/graphics/Path.h"
#include "core/platform/graphics/TextRenderingMode.h"
-#include "core/rendering/style/LineClampValue.h"
#include "core/rendering/style/RenderStyleConstants.h"
#include "core/rendering/style/SVGRenderStyleDefs.h"
#include "platform/text/TextDirection.h"
@@ -118,25 +117,6 @@ template<> inline CSSPrimitiveValue::operator float() const
return 0.0f;
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(LineClampValue i)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = i.isPercentage() ? CSS_PERCENTAGE : CSS_NUMBER;
- m_value.num = static_cast<double>(i.value());
-}
-
-template<> inline CSSPrimitiveValue::operator LineClampValue() const
-{
- if (m_primitiveUnitType == CSS_NUMBER)
- return LineClampValue(clampTo<int>(m_value.num), LineClampLineCount);
-
- if (m_primitiveUnitType == CSS_PERCENTAGE)
- return LineClampValue(clampTo<int>(m_value.num), LineClampPercentage);
-
- ASSERT_NOT_REACHED();
- return LineClampValue();
-}
-
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(CSSReflectionDirection e)
: CSSValue(PrimitiveClass)
{
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698