| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #include "config.h" | 31 #include "config.h" |
| 32 #include "core/animation/EffectInput.h" | 32 #include "core/animation/EffectInput.h" |
| 33 | 33 |
| 34 #include "bindings/v8/Dictionary.h" | 34 #include "bindings/v8/Dictionary.h" |
| 35 #include "core/animation/AnimationHelpers.h" | 35 #include "core/animation/AnimationHelpers.h" |
| 36 #include "core/animation/KeyframeEffectModel.h" | 36 #include "core/animation/KeyframeEffectModel.h" |
| 37 #include "core/animation/StringKeyframe.h" | 37 #include "core/animation/StringKeyframe.h" |
| 38 #include "core/css/parser/BisonCSSParser.h" | 38 #include "core/css/parser/BisonCSSParser.h" |
| 39 #include "core/css/resolver/CSSToStyleMap.h" |
| 39 #include "core/css/resolver/StyleResolver.h" | 40 #include "core/css/resolver/StyleResolver.h" |
| 40 #include "core/dom/Element.h" | 41 #include "core/dom/Element.h" |
| 41 #include "wtf/NonCopyingSort.h" | 42 #include "wtf/NonCopyingSort.h" |
| 42 | 43 |
| 43 namespace WebCore { | 44 namespace WebCore { |
| 44 | 45 |
| 45 // FIXME: Remove this once we've removed the dependency on Element. | 46 // FIXME: Remove this once we've removed the dependency on Element. |
| 46 static bool checkDocumentAndRenderer(Element* element) | 47 static bool checkDocumentAndRenderer(Element* element) |
| 47 { | 48 { |
| 48 if (!element || !element->inActiveDocument()) | 49 if (!element || !element->inActiveDocument()) |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 if (!keyframeEffectModel->isReplaceOnly()) { | 129 if (!keyframeEffectModel->isReplaceOnly()) { |
| 129 exceptionState.throwDOMException(NotSupportedError, "Partial keyframes a
re not supported."); | 130 exceptionState.throwDOMException(NotSupportedError, "Partial keyframes a
re not supported."); |
| 130 return nullptr; | 131 return nullptr; |
| 131 } | 132 } |
| 132 keyframeEffectModel->forceConversionsToAnimatableValues(element); | 133 keyframeEffectModel->forceConversionsToAnimatableValues(element); |
| 133 | 134 |
| 134 return keyframeEffectModel; | 135 return keyframeEffectModel; |
| 135 } | 136 } |
| 136 | 137 |
| 137 } // namespace WebCore | 138 } // namespace WebCore |
| OLD | NEW |