Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) | 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) |
| 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) | 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) |
| 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
| 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) |
| 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. | 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. |
| 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| (...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1076 void StyleResolver::applyAnimatedProperties(StyleResolverState& state, const Ani mationEffect::CompositableValueMap& compositableValues) | 1076 void StyleResolver::applyAnimatedProperties(StyleResolverState& state, const Ani mationEffect::CompositableValueMap& compositableValues) |
| 1077 { | 1077 { |
| 1078 ASSERT(RuntimeEnabledFeatures::webAnimationsCSSEnabled()); | 1078 ASSERT(RuntimeEnabledFeatures::webAnimationsCSSEnabled()); |
| 1079 ASSERT(pass != VariableDefinitions); | 1079 ASSERT(pass != VariableDefinitions); |
| 1080 ASSERT(pass != AnimationProperties); | 1080 ASSERT(pass != AnimationProperties); |
| 1081 | 1081 |
| 1082 for (AnimationEffect::CompositableValueMap::const_iterator iter = compositab leValues.begin(); iter != compositableValues.end(); ++iter) { | 1082 for (AnimationEffect::CompositableValueMap::const_iterator iter = compositab leValues.begin(); iter != compositableValues.end(); ++iter) { |
| 1083 CSSPropertyID property = iter->key; | 1083 CSSPropertyID property = iter->key; |
| 1084 if (!isPropertyForPass<pass>(property)) | 1084 if (!isPropertyForPass<pass>(property)) |
| 1085 continue; | 1085 continue; |
| 1086 ASSERT_WITH_MESSAGE(!iter->value->dependsOnUnderlyingValue(), "Web Anima tions not yet implemented: An interface for compositing onto the underlying valu e."); | 1086 RELEASE_ASSERT_WITH_MESSAGE(!iter->value->dependsOnUnderlyingValue(), "W eb Animations not yet implemented: An interface for compositing onto the underly ing value."); |
|
Steve Block
2013/12/06 03:27:27
I don't think we want to do this. This is used by
rjwright
2013/12/07 11:09:06
Done.
| |
| 1087 RefPtr<AnimatableValue> animatableValue = iter->value->compositeOnto(0); | 1087 RefPtr<AnimatableValue> animatableValue = iter->value->compositeOnto(0); |
| 1088 AnimatedStyleBuilder::applyProperty(property, state, animatableValue.get ()); | 1088 AnimatedStyleBuilder::applyProperty(property, state, animatableValue.get ()); |
| 1089 } | 1089 } |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 // http://dev.w3.org/csswg/css3-regions/#the-at-region-style-rule | 1092 // http://dev.w3.org/csswg/css3-regions/#the-at-region-style-rule |
| 1093 // FIXME: add incremental support for other region styling properties. | 1093 // FIXME: add incremental support for other region styling properties. |
| 1094 static inline bool isValidRegionStyleProperty(CSSPropertyID id) | 1094 static inline bool isValidRegionStyleProperty(CSSPropertyID id) |
| 1095 { | 1095 { |
| 1096 switch (id) { | 1096 switch (id) { |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1423 bool StyleResolver::affectedByViewportChange() const | 1423 bool StyleResolver::affectedByViewportChange() const |
| 1424 { | 1424 { |
| 1425 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { | 1425 for (unsigned i = 0; i < m_viewportDependentMediaQueryResults.size(); ++i) { |
| 1426 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio n) != m_viewportDependentMediaQueryResults[i]->m_result) | 1426 if (m_medium->eval(&m_viewportDependentMediaQueryResults[i]->m_expressio n) != m_viewportDependentMediaQueryResults[i]->m_result) |
| 1427 return true; | 1427 return true; |
| 1428 } | 1428 } |
| 1429 return false; | 1429 return false; |
| 1430 } | 1430 } |
| 1431 | 1431 |
| 1432 } // namespace WebCore | 1432 } // namespace WebCore |
| OLD | NEW |