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 1410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 collector.setMode(SelectorChecker::CollectingStyleRules); | 1421 collector.setMode(SelectorChecker::CollectingStyleRules); |
1422 | 1422 |
1423 MatchRequest matchRequest(m_watchedSelectorsRules.get(), true); | 1423 MatchRequest matchRequest(m_watchedSelectorsRules.get(), true); |
1424 RuleRange ruleRange = collector.matchedResult().ranges.authorRuleRange(); | 1424 RuleRange ruleRange = collector.matchedResult().ranges.authorRuleRange(); |
1425 collector.collectMatchingRules(matchRequest, ruleRange); | 1425 collector.collectMatchingRules(matchRequest, ruleRange); |
1426 collector.sortAndTransferMatchedRules(); | 1426 collector.sortAndTransferMatchedRules(); |
1427 | 1427 |
1428 RefPtrWillBeRawPtr<StyleRuleList> rules = collector.matchedStyleRuleList(); | 1428 RefPtrWillBeRawPtr<StyleRuleList> rules = collector.matchedStyleRuleList(); |
1429 if (!rules) | 1429 if (!rules) |
1430 return; | 1430 return; |
1431 for (size_t i = 0; i < rules->m_list.size(); i++) | 1431 for (size_t i = 0; i < rules->size(); i++) |
1432 state.style()->addCallbackSelector(rules->m_list[i]->selectorList().sele
ctorsText()); | 1432 state.style()->addCallbackSelector(rules->at(i)->selectorList().selector
sText()); |
1433 } | 1433 } |
1434 | 1434 |
1435 CSSPropertyValue::CSSPropertyValue(CSSPropertyID id, const StylePropertySet& pro
pertySet) | 1435 CSSPropertyValue::CSSPropertyValue(CSSPropertyID id, const StylePropertySet& pro
pertySet) |
1436 : property(id), value(propertySet.getPropertyCSSValue(id).get()) | 1436 : property(id), value(propertySet.getPropertyCSSValue(id).get()) |
1437 { } | 1437 { } |
1438 | 1438 |
1439 void StyleResolver::enableStats(StatsReportType reportType) | 1439 void StyleResolver::enableStats(StatsReportType reportType) |
1440 { | 1440 { |
1441 if (m_styleResolverStats) | 1441 if (m_styleResolverStats) |
1442 return; | 1442 return; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1515 visitor->trace(m_uncommonAttributeRuleSet); | 1515 visitor->trace(m_uncommonAttributeRuleSet); |
1516 visitor->trace(m_watchedSelectorsRules); | 1516 visitor->trace(m_watchedSelectorsRules); |
1517 visitor->trace(m_treeBoundaryCrossingRules); | 1517 visitor->trace(m_treeBoundaryCrossingRules); |
1518 visitor->trace(m_styleSharingLists); | 1518 visitor->trace(m_styleSharingLists); |
1519 visitor->trace(m_pendingStyleSheets); | 1519 visitor->trace(m_pendingStyleSheets); |
1520 visitor->trace(m_document); | 1520 visitor->trace(m_document); |
1521 #endif | 1521 #endif |
1522 } | 1522 } |
1523 | 1523 |
1524 } // namespace blink | 1524 } // namespace blink |
OLD | NEW |