| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 { | 163 { |
| 164 } | 164 } |
| 165 | 165 |
| 166 void StyleResolver::dispose() | 166 void StyleResolver::dispose() |
| 167 { | 167 { |
| 168 m_matchedPropertiesCache.clear(); | 168 m_matchedPropertiesCache.clear(); |
| 169 } | 169 } |
| 170 | 170 |
| 171 void StyleResolver::initWatchedSelectorRules() | 171 void StyleResolver::initWatchedSelectorRules() |
| 172 { | 172 { |
| 173 m_watchedSelectorsRules = nullptr; |
| 173 CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*m_document); | 174 CSSSelectorWatch* watch = CSSSelectorWatch::fromIfExists(*m_document); |
| 174 if (!watch) | 175 if (!watch) |
| 175 return; | 176 return; |
| 176 const WillBeHeapVector<RefPtrWillBeMember<StyleRule>>& watchedSelectors = wa
tch->watchedCallbackSelectors(); | 177 const WillBeHeapVector<RefPtrWillBeMember<StyleRule>>& watchedSelectors = wa
tch->watchedCallbackSelectors(); |
| 177 if (!watchedSelectors.size()) | 178 if (!watchedSelectors.size()) |
| 178 return; | 179 return; |
| 179 m_watchedSelectorsRules = RuleSet::create(); | 180 m_watchedSelectorsRules = RuleSet::create(); |
| 180 for (unsigned i = 0; i < watchedSelectors.size(); ++i) | 181 for (unsigned i = 0; i < watchedSelectors.size(); ++i) |
| 181 m_watchedSelectorsRules->addStyleRule(watchedSelectors[i].get(), RuleHas
NoSpecialState); | 182 m_watchedSelectorsRules->addStyleRule(watchedSelectors[i].get(), RuleHas
NoSpecialState); |
| 182 } | 183 } |
| (...skipping 1398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1581 visitor->trace(m_uncommonAttributeRuleSet); | 1582 visitor->trace(m_uncommonAttributeRuleSet); |
| 1582 visitor->trace(m_watchedSelectorsRules); | 1583 visitor->trace(m_watchedSelectorsRules); |
| 1583 visitor->trace(m_treeBoundaryCrossingScopes); | 1584 visitor->trace(m_treeBoundaryCrossingScopes); |
| 1584 visitor->trace(m_styleSharingLists); | 1585 visitor->trace(m_styleSharingLists); |
| 1585 visitor->trace(m_pendingStyleSheets); | 1586 visitor->trace(m_pendingStyleSheets); |
| 1586 visitor->trace(m_document); | 1587 visitor->trace(m_document); |
| 1587 #endif | 1588 #endif |
| 1588 } | 1589 } |
| 1589 | 1590 |
| 1590 } // namespace blink | 1591 } // namespace blink |
| OLD | NEW |