| 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 if (Element* parent = element->parentElement()) { | 700 if (Element* parent = element->parentElement()) { |
| 701 if (ComputedStyle* styleOfShadowHost = parent->mutableComputedStyle()) | 701 if (ComputedStyle* styleOfShadowHost = parent->mutableComputedStyle()) |
| 702 state.style()->setUserModify(styleOfShadowHost->userModify()); | 702 state.style()->setUserModify(styleOfShadowHost->userModify()); |
| 703 } | 703 } |
| 704 } | 704 } |
| 705 | 705 |
| 706 if (element->isLink()) { | 706 if (element->isLink()) { |
| 707 state.style()->setIsLink(); | 707 state.style()->setIsLink(); |
| 708 EInsideLink linkState = state.elementLinkState(); | 708 EInsideLink linkState = state.elementLinkState(); |
| 709 if (linkState != EInsideLink::kNotInsideLink) { | 709 if (linkState != EInsideLink::kNotInsideLink) { |
| 710 bool forceVisited = false; | 710 bool forceVisited = |
| 711 probe::forcePseudoState(element, CSSSelector::PseudoVisited, | 711 probe::forcePseudoState(element, CSSSelector::PseudoVisited); |
| 712 &forceVisited); | |
| 713 if (forceVisited) | 712 if (forceVisited) |
| 714 linkState = EInsideLink::kInsideVisitedLink; | 713 linkState = EInsideLink::kInsideVisitedLink; |
| 715 } | 714 } |
| 716 state.style()->setInsideLink(linkState); | 715 state.style()->setInsideLink(linkState); |
| 717 } | 716 } |
| 718 | 717 |
| 719 if (!baseComputedStyle) { | 718 if (!baseComputedStyle) { |
| 720 document().styleEngine().ensureUAStyleForElement(*element); | 719 document().styleEngine().ensureUAStyleForElement(*element); |
| 721 | 720 |
| 722 ElementRuleCollector collector(state.elementContext(), m_selectorFilter, | 721 ElementRuleCollector collector(state.elementContext(), m_selectorFilter, |
| (...skipping 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1983 | 1982 |
| 1984 DEFINE_TRACE(StyleResolver) { | 1983 DEFINE_TRACE(StyleResolver) { |
| 1985 visitor->trace(m_matchedPropertiesCache); | 1984 visitor->trace(m_matchedPropertiesCache); |
| 1986 visitor->trace(m_selectorFilter); | 1985 visitor->trace(m_selectorFilter); |
| 1987 visitor->trace(m_styleSharingLists); | 1986 visitor->trace(m_styleSharingLists); |
| 1988 visitor->trace(m_document); | 1987 visitor->trace(m_document); |
| 1989 visitor->trace(m_tracker); | 1988 visitor->trace(m_tracker); |
| 1990 } | 1989 } |
| 1991 | 1990 |
| 1992 } // namespace blink | 1991 } // namespace blink |
| OLD | NEW |