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

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

Issue 643893002: Store [-webkit-]perspective-origin as a LengthPoint. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase (again). 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 8811df2b07978d5f6030fa448185038de9d88e73..cfe1c1a3f1580a3c324669c5676760de50530925 100644
--- a/Source/core/css/resolver/StyleBuilderCustom.cpp
+++ b/Source/core/css/resolver/StyleBuilderCustom.cpp
@@ -612,61 +612,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyTransformOrigin(StyleResolverSt
state.style()->setTransformOriginZ(StyleBuilderConverter::convertComputedLength<float>(state, primitiveValue));
}
-void StyleBuilderFunctions::applyInitialCSSPropertyPerspectiveOrigin(StyleResolverState& state)
-{
- applyInitialCSSPropertyWebkitPerspectiveOriginX(state);
- applyInitialCSSPropertyWebkitPerspectiveOriginY(state);
-}
-
-void StyleBuilderFunctions::applyInheritCSSPropertyPerspectiveOrigin(StyleResolverState& state)
-{
- applyInheritCSSPropertyWebkitPerspectiveOriginX(state);
- applyInheritCSSPropertyWebkitPerspectiveOriginY(state);
-}
-
-void StyleBuilderFunctions::applyValueCSSPropertyPerspectiveOrigin(StyleResolverState& state, CSSValue* value)
-{
- CSSValueList* list = toCSSValueList(value);
- ASSERT(list->length() == 2);
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(list->item(0));
- if (primitiveValue->isValueID()) {
- switch (primitiveValue->getValueID()) {
- case CSSValueLeft:
- state.style()->setPerspectiveOriginX(Length(0, Percent));
- break;
- case CSSValueRight:
- state.style()->setPerspectiveOriginX(Length(100, Percent));
- break;
- case CSSValueCenter:
- state.style()->setPerspectiveOriginX(Length(50, Percent));
- break;
- default:
- ASSERT_NOT_REACHED();
- }
- } else {
- state.style()->setPerspectiveOriginX(StyleBuilderConverter::convertLength(state, primitiveValue));
- }
-
- primitiveValue = toCSSPrimitiveValue(list->item(1));
- if (primitiveValue->isValueID()) {
- switch (primitiveValue->getValueID()) {
- case CSSValueTop:
- state.style()->setPerspectiveOriginY(Length(0, Percent));
- break;
- case CSSValueBottom:
- state.style()->setPerspectiveOriginY(Length(100, Percent));
- break;
- case CSSValueCenter:
- state.style()->setPerspectiveOriginY(Length(50, Percent));
- break;
- default:
- ASSERT_NOT_REACHED();
- }
- } else {
- state.style()->setPerspectiveOriginY(StyleBuilderConverter::convertLength(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