| 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 1617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 const MatchedProperties* properties, | 1628 const MatchedProperties* properties, |
| 1629 unsigned size) { | 1629 unsigned size) { |
| 1630 return StringHasher::hashMemory(properties, sizeof(MatchedProperties) * size); | 1630 return StringHasher::hashMemory(properties, sizeof(MatchedProperties) * size); |
| 1631 } | 1631 } |
| 1632 | 1632 |
| 1633 void StyleResolver::invalidateMatchedPropertiesCache() { | 1633 void StyleResolver::invalidateMatchedPropertiesCache() { |
| 1634 m_matchedPropertiesCache.clear(); | 1634 m_matchedPropertiesCache.clear(); |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 void StyleResolver::notifyResizeForViewportUnits() { | 1637 void StyleResolver::notifyResizeForViewportUnits() { |
| 1638 document().styleEngine().updateActiveStyle(); |
| 1638 m_matchedPropertiesCache.clearViewportDependent(); | 1639 m_matchedPropertiesCache.clearViewportDependent(); |
| 1639 } | 1640 } |
| 1640 | 1641 |
| 1641 void StyleResolver::applyMatchedPropertiesAndCustomPropertyAnimations( | 1642 void StyleResolver::applyMatchedPropertiesAndCustomPropertyAnimations( |
| 1642 StyleResolverState& state, | 1643 StyleResolverState& state, |
| 1643 const MatchResult& matchResult, | 1644 const MatchResult& matchResult, |
| 1644 const Element* animatingElement) { | 1645 const Element* animatingElement) { |
| 1645 CacheSuccess cacheSuccess = applyMatchedCache(state, matchResult); | 1646 CacheSuccess cacheSuccess = applyMatchedCache(state, matchResult); |
| 1646 NeedsApplyPass needsApplyPass; | 1647 NeedsApplyPass needsApplyPass; |
| 1647 if (!cacheSuccess.isFullCacheHit()) { | 1648 if (!cacheSuccess.isFullCacheHit()) { |
| (...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1982 DEFINE_TRACE(StyleResolver) { | 1983 DEFINE_TRACE(StyleResolver) { |
| 1983 visitor->trace(m_matchedPropertiesCache); | 1984 visitor->trace(m_matchedPropertiesCache); |
| 1984 visitor->trace(m_selectorFilter); | 1985 visitor->trace(m_selectorFilter); |
| 1985 visitor->trace(m_styleSharingLists); | 1986 visitor->trace(m_styleSharingLists); |
| 1986 visitor->trace(m_pendingStyleSheets); | 1987 visitor->trace(m_pendingStyleSheets); |
| 1987 visitor->trace(m_document); | 1988 visitor->trace(m_document); |
| 1988 visitor->trace(m_tracker); | 1989 visitor->trace(m_tracker); |
| 1989 } | 1990 } |
| 1990 | 1991 |
| 1991 } // namespace blink | 1992 } // namespace blink |
| OLD | NEW |