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 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 bool forceVisited = InspectorInstrumentation::forcePseudoState(eleme
nt, CSSSelector::PseudoVisited); | 595 bool forceVisited = InspectorInstrumentation::forcePseudoState(eleme
nt, CSSSelector::PseudoVisited); |
596 if (forceVisited) | 596 if (forceVisited) |
597 linkState = InsideVisitedLink; | 597 linkState = InsideVisitedLink; |
598 } | 598 } |
599 state.style()->setInsideLink(linkState); | 599 state.style()->setInsideLink(linkState); |
600 } | 600 } |
601 | 601 |
602 if (!baseComputedStyle) { | 602 if (!baseComputedStyle) { |
603 | 603 |
604 bool needsCollection = false; | 604 bool needsCollection = false; |
605 CSSDefaultStyleSheets::instance().ensureDefaultStyleSheetsForElement(ele
ment, needsCollection); | 605 CSSDefaultStyleSheets::instance().ensureDefaultStyleSheetsForElement(*el
ement, needsCollection); |
606 if (needsCollection) | 606 if (needsCollection) |
607 collectFeatures(); | 607 collectFeatures(); |
608 | 608 |
609 ElementRuleCollector collector(state.elementContext(), m_selectorFilter,
state.style()); | 609 ElementRuleCollector collector(state.elementContext(), m_selectorFilter,
state.style()); |
610 | 610 |
611 matchAllRules(state, collector, matchingBehavior != MatchAllRulesExcludi
ngSMIL); | 611 matchAllRules(state, collector, matchingBehavior != MatchAllRulesExcludi
ngSMIL); |
612 | 612 |
613 if (element->computedStyle() && element->computedStyle()->textAutosizing
Multiplier() != state.style()->textAutosizingMultiplier()) { | 613 if (element->computedStyle() && element->computedStyle()->textAutosizing
Multiplier() != state.style()->textAutosizingMultiplier()) { |
614 // Preserve the text autosizing multiplier on style recalc. Autosize
r will update it during layout if needed. | 614 // Preserve the text autosizing multiplier on style recalc. Autosize
r will update it during layout if needed. |
615 // NOTE: this must occur before applyMatchedProperties for correct c
omputation of font-relative lengths. | 615 // NOTE: this must occur before applyMatchedProperties for correct c
omputation of font-relative lengths. |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1499 visitor->trace(m_watchedSelectorsRules); | 1499 visitor->trace(m_watchedSelectorsRules); |
1500 visitor->trace(m_treeBoundaryCrossingRules); | 1500 visitor->trace(m_treeBoundaryCrossingRules); |
1501 visitor->trace(m_styleResourceLoader); | 1501 visitor->trace(m_styleResourceLoader); |
1502 visitor->trace(m_styleSharingLists); | 1502 visitor->trace(m_styleSharingLists); |
1503 visitor->trace(m_pendingStyleSheets); | 1503 visitor->trace(m_pendingStyleSheets); |
1504 visitor->trace(m_document); | 1504 visitor->trace(m_document); |
1505 #endif | 1505 #endif |
1506 } | 1506 } |
1507 | 1507 |
1508 } // namespace blink | 1508 } // namespace blink |
OLD | NEW |