OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
4 * Copyright (C) 2012 Google Inc. All rights reserved. | 4 * Copyright (C) 2012 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 | 298 |
299 unsigned rulesSize = m_authorStyle->m_regionSelectorsAndRuleSets.size(); | 299 unsigned rulesSize = m_authorStyle->m_regionSelectorsAndRuleSets.size(); |
300 for (unsigned i = 0; i < rulesSize; ++i) { | 300 for (unsigned i = 0; i < rulesSize; ++i) { |
301 ASSERT(m_authorStyle->m_regionSelectorsAndRuleSets.at(i).ruleSet.get()); | 301 ASSERT(m_authorStyle->m_regionSelectorsAndRuleSets.at(i).ruleSet.get()); |
302 if (checkRegionSelector(m_authorStyle->m_regionSelectorsAndRuleSets.at(i
).selector, regionElement)) | 302 if (checkRegionSelector(m_authorStyle->m_regionSelectorsAndRuleSets.at(i
).selector, regionElement)) |
303 return true; | 303 return true; |
304 } | 304 } |
305 return false; | 305 return false; |
306 } | 306 } |
307 | 307 |
308 const StyleRuleKeyframes* ScopedStyleResolver::keyframeStylesForAnimation(const
AtomicStringImpl* animationName) | 308 const StyleRuleKeyframes* ScopedStyleResolver::keyframeStylesForAnimation(const
StringImpl* animationName) |
309 { | 309 { |
310 if (m_keyframesRuleMap.isEmpty()) | 310 if (m_keyframesRuleMap.isEmpty()) |
311 return 0; | 311 return 0; |
312 | 312 |
313 m_keyframesRuleMap.checkConsistency(); | 313 m_keyframesRuleMap.checkConsistency(); |
314 | 314 |
315 KeyframesRuleMap::iterator it = m_keyframesRuleMap.find(animationName); | 315 KeyframesRuleMap::iterator it = m_keyframesRuleMap.find(animationName); |
316 if (it == m_keyframesRuleMap.end()) | 316 if (it == m_keyframesRuleMap.end()) |
317 return 0; | 317 return 0; |
318 | 318 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 collector.matchPageRules(m_authorStyle.get()); | 388 collector.matchPageRules(m_authorStyle.get()); |
389 } | 389 } |
390 | 390 |
391 void ScopedStyleResolver::collectViewportRulesTo(StyleResolver* resolver) const | 391 void ScopedStyleResolver::collectViewportRulesTo(StyleResolver* resolver) const |
392 { | 392 { |
393 if (m_authorStyle) | 393 if (m_authorStyle) |
394 resolver->collectViewportRules(m_authorStyle.get()); | 394 resolver->collectViewportRules(m_authorStyle.get()); |
395 } | 395 } |
396 | 396 |
397 } // namespace WebCore | 397 } // namespace WebCore |
OLD | NEW |