| 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 27 matching lines...) Expand all Loading... |
| 38 #include "core/animation/KeyframeEffectModel.h" | 38 #include "core/animation/KeyframeEffectModel.h" |
| 39 #include "core/animation/StringKeyframe.h" | 39 #include "core/animation/StringKeyframe.h" |
| 40 #include "core/css/CSSStyleSheet.h" | 40 #include "core/css/CSSStyleSheet.h" |
| 41 #include "core/dom/Document.h" | 41 #include "core/dom/Document.h" |
| 42 #include "core/dom/Element.h" | 42 #include "core/dom/Element.h" |
| 43 #include "core/dom/ExceptionCode.h" | 43 #include "core/dom/ExceptionCode.h" |
| 44 #include "core/dom/NodeComputedStyle.h" | 44 #include "core/dom/NodeComputedStyle.h" |
| 45 #include "core/frame/FrameConsole.h" | 45 #include "core/frame/FrameConsole.h" |
| 46 #include "core/frame/LocalFrame.h" | 46 #include "core/frame/LocalFrame.h" |
| 47 #include "core/inspector/ConsoleMessage.h" | 47 #include "core/inspector/ConsoleMessage.h" |
| 48 #include "wtf/ASCIICType.h" | 48 #include "platform/wtf/ASCIICType.h" |
| 49 #include "wtf/HashSet.h" | 49 #include "platform/wtf/HashSet.h" |
| 50 #include "wtf/NonCopyingSort.h" | 50 #include "platform/wtf/NonCopyingSort.h" |
| 51 | 51 |
| 52 namespace blink { | 52 namespace blink { |
| 53 | 53 |
| 54 namespace { | 54 namespace { |
| 55 | 55 |
| 56 bool compareKeyframes(const RefPtr<StringKeyframe>& a, | 56 bool compareKeyframes(const RefPtr<StringKeyframe>& a, |
| 57 const RefPtr<StringKeyframe>& b) { | 57 const RefPtr<StringKeyframe>& b) { |
| 58 return a->offset() < b->offset(); | 58 return a->offset() < b->offset(); |
| 59 } | 59 } |
| 60 | 60 |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 } | 385 } |
| 386 | 386 |
| 387 std::sort(keyframes.begin(), keyframes.end(), compareKeyframes); | 387 std::sort(keyframes.begin(), keyframes.end(), compareKeyframes); |
| 388 | 388 |
| 389 DCHECK(!exceptionState.hadException()); | 389 DCHECK(!exceptionState.hadException()); |
| 390 | 390 |
| 391 return createEffectModelFromKeyframes(element, keyframes, exceptionState); | 391 return createEffectModelFromKeyframes(element, keyframes, exceptionState); |
| 392 } | 392 } |
| 393 | 393 |
| 394 } // namespace blink | 394 } // namespace blink |
| OLD | NEW |