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

Unified Diff: Source/core/css/resolver/StyleBuilderCustom.cpp

Issue 644953003: Store [-webkit-]transform-origin as a TransformOrigin. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Almost forgot: drop unused ctor. (+ rebase). Created 6 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/resolver/StyleBuilderConverter.cpp ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleBuilderCustom.cpp
diff --git a/Source/core/css/resolver/StyleBuilderCustom.cpp b/Source/core/css/resolver/StyleBuilderCustom.cpp
index cfe1c1a3f1580a3c324669c5676760de50530925..3749e4e294ccbf3fc2895eff8e6b1d5a7f4a1a14 100644
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -552,66 +552,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyTransform(StyleResolverState& s
state.style()->setTransform(operations);
}
-void StyleBuilderFunctions::applyInitialCSSPropertyTransformOrigin(StyleResolverState& state)
-{
- applyInitialCSSPropertyWebkitTransformOriginX(state);
- applyInitialCSSPropertyWebkitTransformOriginY(state);
- applyInitialCSSPropertyWebkitTransformOriginZ(state);
-}
-
-void StyleBuilderFunctions::applyInheritCSSPropertyTransformOrigin(StyleResolverState& state)
-{
- applyInheritCSSPropertyWebkitTransformOriginX(state);
- applyInheritCSSPropertyWebkitTransformOriginY(state);
- applyInheritCSSPropertyWebkitTransformOriginZ(state);
-}
-
-void StyleBuilderFunctions::applyValueCSSPropertyTransformOrigin(StyleResolverState& state, CSSValue* value)
-{
- CSSValueList* list = toCSSValueList(value);
- ASSERT(list->length() == 3);
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(list->item(0));
- if (primitiveValue->isValueID()) {
- switch (primitiveValue->getValueID()) {
- case CSSValueLeft:
- state.style()->setTransformOriginX(Length(0, Percent));
- break;
- case CSSValueRight:
- state.style()->setTransformOriginX(Length(100, Percent));
- break;
- case CSSValueCenter:
- state.style()->setTransformOriginX(Length(50, Percent));
- break;
- default:
- ASSERT_NOT_REACHED();
- }
- } else {
- state.style()->setTransformOriginX(StyleBuilderConverter::convertLength(state, primitiveValue));
- }
-
- primitiveValue = toCSSPrimitiveValue(list->item(1));
- if (primitiveValue->isValueID()) {
- switch (primitiveValue->getValueID()) {
- case CSSValueTop:
- state.style()->setTransformOriginY(Length(0, Percent));
- break;
- case CSSValueBottom:
- state.style()->setTransformOriginY(Length(100, Percent));
- break;
- case CSSValueCenter:
- state.style()->setTransformOriginY(Length(50, Percent));
- break;
- default:
- ASSERT_NOT_REACHED();
- }
- } else {
- state.style()->setTransformOriginY(StyleBuilderConverter::convertLength(state, primitiveValue));
- }
-
- primitiveValue = toCSSPrimitiveValue(list->item(2));
- state.style()->setTransformOriginZ(StyleBuilderConverter::convertComputedLength<float>(state, primitiveValue));
-}
-
void StyleBuilderFunctions::applyInheritCSSPropertyVerticalAlign(StyleResolverState& state)
{
EVerticalAlign verticalAlign = state.parentStyle()->verticalAlign();
« no previous file with comments | « Source/core/css/resolver/StyleBuilderConverter.cpp ('k') | Source/core/rendering/style/RenderStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698