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

Unified Diff: sky/engine/core/css/resolver/StyleBuilderCustom.cpp

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/engine/core/css/resolver/StyleAdjuster.cpp ('k') | sky/engine/core/css/resolver/StyleResolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/resolver/StyleBuilderCustom.cpp
diff --git a/sky/engine/core/css/resolver/StyleBuilderCustom.cpp b/sky/engine/core/css/resolver/StyleBuilderCustom.cpp
index 659e186bce5636d620f2b2c9912bdf8e956537f1..21b2f50f72fcf2e09036503d2b20cdce9c61c777 100644
--- a/sky/engine/core/css/resolver/StyleBuilderCustom.cpp
+++ b/sky/engine/core/css/resolver/StyleBuilderCustom.cpp
@@ -527,40 +527,6 @@ void StyleBuilderFunctions::applyValueCSSPropertyWebkitTextEmphasisStyle(StyleRe
}
}
-void StyleBuilderFunctions::applyInitialCSSPropertyWillChange(StyleResolverState& state)
-{
- state.style()->setWillChangeContents(false);
- state.style()->setWillChangeProperties(Vector<CSSPropertyID>());
- state.style()->setSubtreeWillChangeContents(state.parentStyle()->subtreeWillChangeContents());
-}
-
-void StyleBuilderFunctions::applyInheritCSSPropertyWillChange(StyleResolverState& state)
-{
- state.style()->setWillChangeContents(state.parentStyle()->willChangeContents());
- state.style()->setWillChangeProperties(state.parentStyle()->willChangeProperties());
- state.style()->setSubtreeWillChangeContents(state.parentStyle()->subtreeWillChangeContents());
-}
-
-void StyleBuilderFunctions::applyValueCSSPropertyWillChange(StyleResolverState& state, CSSValue* value)
-{
- ASSERT(value->isValueList());
- bool willChangeContents = false;
- Vector<CSSPropertyID> willChangeProperties;
-
- for (CSSValueListIterator i(value); i.hasMore(); i.advance()) {
- CSSPrimitiveValue* primitiveValue = toCSSPrimitiveValue(i.value());
- if (CSSPropertyID propertyID = primitiveValue->getPropertyID())
- willChangeProperties.append(propertyID);
- else if (primitiveValue->getValueID() == CSSValueContents)
- willChangeContents = true;
- else
- ASSERT_NOT_REACHED();
- }
- state.style()->setWillChangeContents(willChangeContents);
- state.style()->setWillChangeProperties(willChangeProperties);
- state.style()->setSubtreeWillChangeContents(willChangeContents || state.parentStyle()->subtreeWillChangeContents());
-}
-
void StyleBuilderFunctions::applyInitialCSSPropertyFont(StyleResolverState&)
{
ASSERT_NOT_REACHED();
« no previous file with comments | « sky/engine/core/css/resolver/StyleAdjuster.cpp ('k') | sky/engine/core/css/resolver/StyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698