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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 ASSERT(shadowRoot->host()); | 274 ASSERT(shadowRoot->host()); |
275 m_styleTree.pushStyleCache(shadowRoot, shadowRoot->host()); | 275 m_styleTree.pushStyleCache(shadowRoot, shadowRoot->host()); |
276 } | 276 } |
277 | 277 |
278 void StyleResolver::popParentShadowRoot(const ShadowRoot* shadowRoot) | 278 void StyleResolver::popParentShadowRoot(const ShadowRoot* shadowRoot) |
279 { | 279 { |
280 ASSERT(shadowRoot->host()); | 280 ASSERT(shadowRoot->host()); |
281 m_styleTree.popStyleCache(shadowRoot); | 281 m_styleTree.popStyleCache(shadowRoot); |
282 } | 282 } |
283 | 283 |
284 // This is a simplified style setting function for keyframe styles | |
285 void StyleResolver::addKeyframeStyle(PassRefPtr<StyleRuleKeyframes> rule) | |
286 { | |
287 AtomicString s(rule->name()); | |
288 m_keyframesRuleMap.set(s.impl(), rule); | |
289 } | |
290 | |
291 StyleResolver::~StyleResolver() | 284 StyleResolver::~StyleResolver() |
292 { | 285 { |
293 m_fontSelector->clearDocument(); | 286 m_fontSelector->clearDocument(); |
294 m_viewportStyleResolver->clearDocument(); | 287 m_viewportStyleResolver->clearDocument(); |
295 } | 288 } |
296 | 289 |
297 inline void StyleResolver::matchShadowDistributedRules(ElementRuleCollector& col
lector, bool includeEmptyRules) | 290 inline void StyleResolver::matchShadowDistributedRules(ElementRuleCollector& col
lector, bool includeEmptyRules) |
298 { | 291 { |
299 // FIXME: Determine tree position. | 292 // FIXME: Determine tree position. |
300 CascadeScope cascadeScope = ignoreCascadeScope; | 293 CascadeScope cascadeScope = ignoreCascadeScope; |
(...skipping 1234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1535 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties
SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa
che); | 1528 m_matchedPropertiesSearches, m_matchedPropertiesHit, m_matchedProperties
SharedInheritedHit, m_matchedPropertiesToCache, m_matchedPropertiesEnteredIntoCa
che); |
1536 | 1529 |
1537 fprintf(stderr, "Total:\n"); | 1530 fprintf(stderr, "Total:\n"); |
1538 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS
tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing, | 1531 printStyleStats(m_totalSearches, m_totalElementsEligibleForSharing, m_totalS
tylesShared, m_totalSearchFoundSiblingForSharing, m_totalSearchesMissedSharing, |
1539 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa
tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch
edPropertiesEnteredIntoCache); | 1532 m_totalMatchedPropertiesSearches, m_totalMatchedPropertiesHit, m_totalMa
tchedPropertiesSharedInheritedHit, m_totalMatchedPropertiesToCache, m_totalMatch
edPropertiesEnteredIntoCache); |
1540 fprintf(stderr, "-----------------------------------------------------------
---------------------\n"); | 1533 fprintf(stderr, "-----------------------------------------------------------
---------------------\n"); |
1541 } | 1534 } |
1542 #endif | 1535 #endif |
1543 | 1536 |
1544 } // namespace WebCore | 1537 } // namespace WebCore |
OLD | NEW |