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. | 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. |
6 * All rights reserved. | 6 * All rights reserved. |
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> | 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> |
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> | 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> |
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
10 * (http://www.torchmobile.com/) | 10 * (http://www.torchmobile.com/) |
(...skipping 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1622 const MatchedProperties* properties, | 1622 const MatchedProperties* properties, |
1623 unsigned size) { | 1623 unsigned size) { |
1624 return StringHasher::hashMemory(properties, sizeof(MatchedProperties) * size); | 1624 return StringHasher::hashMemory(properties, sizeof(MatchedProperties) * size); |
1625 } | 1625 } |
1626 | 1626 |
1627 void StyleResolver::invalidateMatchedPropertiesCache() { | 1627 void StyleResolver::invalidateMatchedPropertiesCache() { |
1628 m_matchedPropertiesCache.clear(); | 1628 m_matchedPropertiesCache.clear(); |
1629 } | 1629 } |
1630 | 1630 |
1631 void StyleResolver::notifyResizeForViewportUnits() { | 1631 void StyleResolver::notifyResizeForViewportUnits() { |
1632 document().styleEngine().updateActiveStyle(); | |
1633 m_matchedPropertiesCache.clearViewportDependent(); | 1632 m_matchedPropertiesCache.clearViewportDependent(); |
1634 } | 1633 } |
1635 | 1634 |
1636 void StyleResolver::applyMatchedPropertiesAndCustomPropertyAnimations( | 1635 void StyleResolver::applyMatchedPropertiesAndCustomPropertyAnimations( |
1637 StyleResolverState& state, | 1636 StyleResolverState& state, |
1638 const MatchResult& matchResult, | 1637 const MatchResult& matchResult, |
1639 const Element* animatingElement) { | 1638 const Element* animatingElement) { |
1640 CacheSuccess cacheSuccess = applyMatchedCache(state, matchResult); | 1639 CacheSuccess cacheSuccess = applyMatchedCache(state, matchResult); |
1641 NeedsApplyPass needsApplyPass; | 1640 NeedsApplyPass needsApplyPass; |
1642 if (!cacheSuccess.isFullCacheHit()) { | 1641 if (!cacheSuccess.isFullCacheHit()) { |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1977 DEFINE_TRACE(StyleResolver) { | 1976 DEFINE_TRACE(StyleResolver) { |
1978 visitor->trace(m_matchedPropertiesCache); | 1977 visitor->trace(m_matchedPropertiesCache); |
1979 visitor->trace(m_selectorFilter); | 1978 visitor->trace(m_selectorFilter); |
1980 visitor->trace(m_styleSharingLists); | 1979 visitor->trace(m_styleSharingLists); |
1981 visitor->trace(m_pendingStyleSheets); | 1980 visitor->trace(m_pendingStyleSheets); |
1982 visitor->trace(m_document); | 1981 visitor->trace(m_document); |
1983 visitor->trace(m_tracker); | 1982 visitor->trace(m_tracker); |
1984 } | 1983 } |
1985 | 1984 |
1986 } // namespace blink | 1985 } // namespace blink |
OLD | NEW |