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

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

Issue 1715513002: Move background related shorthands into CSSPropertyParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase tests Created 4 years, 10 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 75fd9d032217e858a2eae9df47831782764d8f0f..6558564e33b8e4f1d3493968474e72a9caf0dba3 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -706,25 +706,6 @@ float StyleBuilderConverter::convertPerspective(StyleResolverState& state, const
return convertPerspectiveLength(state, primitiveValue);
}
-template <CSSValueID cssValueFor0, CSSValueID cssValueFor100>
-static Length convertOriginLength(StyleResolverState& state, const CSSPrimitiveValue& primitiveValue)
-{
- if (primitiveValue.isValueID()) {
- switch (primitiveValue.getValueID()) {
- case cssValueFor0:
- return Length(0, Percent);
- case cssValueFor100:
- return Length(100, Percent);
- case CSSValueCenter:
- return Length(50, Percent);
- default:
- ASSERT_NOT_REACHED();
- }
- }
-
- return StyleBuilderConverter::convertLength(state, primitiveValue);
-}
-
EPaintOrder StyleBuilderConverter::convertPaintOrder(StyleResolverState&, const CSSValue& cssPaintOrder)
{
if (cssPaintOrder.isValueList()) {

Powered by Google App Engine
This is Rietveld 408576698