| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 for (size_t i = 0; animationData && i < animationData->nameList().size(); ++
i) { | 967 for (size_t i = 0; animationData && i < animationData->nameList().size(); ++
i) { |
| 968 AtomicString animationName(animationData->nameList()[i]); | 968 AtomicString animationName(animationData->nameList()[i]); |
| 969 if (animationName == CSSAnimationData::initialName()) | 969 if (animationName == CSSAnimationData::initialName()) |
| 970 continue; | 970 continue; |
| 971 StyleRuleKeyframes* keyframesRule = styleResolver.findKeyframesRule(elem
ent, animationName); | 971 StyleRuleKeyframes* keyframesRule = styleResolver.findKeyframesRule(elem
ent, animationName); |
| 972 if (!keyframesRule) | 972 if (!keyframesRule) |
| 973 continue; | 973 continue; |
| 974 | 974 |
| 975 // Find CSSOM wrapper. | 975 // Find CSSOM wrapper. |
| 976 CSSKeyframesRule* cssKeyframesRule = nullptr; | 976 CSSKeyframesRule* cssKeyframesRule = nullptr; |
| 977 for (auto& styleSheet : *m_documentToCSSStyleSheets.get(ownerDocument))
{ | 977 for (CSSStyleSheet* styleSheet : *m_documentToCSSStyleSheets.get(ownerDo
cument)) { |
| 978 ASSERT(styleSheet->ownerNode()); | 978 ASSERT(styleSheet->ownerNode()); |
| 979 RuleSet& ruleSet = styleSheet->contents()->ruleSet(); | 979 RuleSet& ruleSet = styleSheet->contents()->ruleSet(); |
| 980 for (auto& rule : ruleSet.keyframesRules()) { | 980 for (auto& rule : ruleSet.keyframesRules()) { |
| 981 if (rule->name().impl() == animationName) | 981 if (rule->name().impl() == animationName) |
| 982 cssKeyframesRule = findKeyframesRule(styleSheet, keyframesRu
le); | 982 cssKeyframesRule = findKeyframesRule(styleSheet, keyframesRu
le); |
| 983 } | 983 } |
| 984 } | 984 } |
| 985 if (!cssKeyframesRule) | 985 if (!cssKeyframesRule) |
| 986 continue; | 986 continue; |
| 987 | 987 |
| (...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2046 visitor->trace(m_documentToCSSStyleSheets); | 2046 visitor->trace(m_documentToCSSStyleSheets); |
| 2047 visitor->trace(m_invalidatedDocuments); | 2047 visitor->trace(m_invalidatedDocuments); |
| 2048 visitor->trace(m_nodeToInspectorStyleSheet); | 2048 visitor->trace(m_nodeToInspectorStyleSheet); |
| 2049 visitor->trace(m_documentToViaInspectorStyleSheet); | 2049 visitor->trace(m_documentToViaInspectorStyleSheet); |
| 2050 #endif | 2050 #endif |
| 2051 visitor->trace(m_inspectorUserAgentStyleSheet); | 2051 visitor->trace(m_inspectorUserAgentStyleSheet); |
| 2052 InspectorBaseAgent::trace(visitor); | 2052 InspectorBaseAgent::trace(visitor); |
| 2053 } | 2053 } |
| 2054 | 2054 |
| 2055 } // namespace blink | 2055 } // namespace blink |
| OLD | NEW |