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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 1419583002: Remove SVG glyph-orientation-horizontal and glyph-orientation-vertical (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove glyph-orientation-rounding-test Created 5 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
Index: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index deb4abd46fb584955722f835c14bde55421d73f3..3aead3788776eda87bc5b88776749a66e17d2c3d 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -318,23 +318,6 @@ FontDescription::VariantLigatures StyleBuilderConverter::convertFontVariantLigat
return FontDescription::VariantLigatures();
}
-EGlyphOrientation StyleBuilderConverter::convertGlyphOrientation(StyleResolverState&, const CSSValue& value)
-{
- const CSSPrimitiveValue& primitiveValue = toCSSPrimitiveValue(value);
- if (primitiveValue.typeWithCalcResolved() != CSSPrimitiveValue::UnitType::Degrees)
- return GO_0DEG;
-
- float angle = fabsf(fmodf(primitiveValue.getFloatValue(), 360.0f));
-
- if (angle <= 45.0f || angle > 315.0f)
- return GO_0DEG;
- if (angle > 45.0f && angle <= 135.0f)
- return GO_90DEG;
- if (angle > 135.0f && angle <= 225.0f)
- return GO_180DEG;
- return GO_270DEG;
-}
-
StyleSelfAlignmentData StyleBuilderConverter::convertSelfOrDefaultAlignmentData(StyleResolverState&, const CSSValue& value)
{
StyleSelfAlignmentData alignmentData = ComputedStyle::initialSelfAlignment();

Powered by Google App Engine
This is Rietveld 408576698