| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 if (Element* parent = element->parentElement()) { | 693 if (Element* parent = element->parentElement()) { |
| 694 if (ComputedStyle* styleOfShadowHost = parent->mutableComputedStyle()) | 694 if (ComputedStyle* styleOfShadowHost = parent->mutableComputedStyle()) |
| 695 state.style()->setUserModify(styleOfShadowHost->userModify()); | 695 state.style()->setUserModify(styleOfShadowHost->userModify()); |
| 696 } | 696 } |
| 697 } | 697 } |
| 698 | 698 |
| 699 if (element->isLink()) { | 699 if (element->isLink()) { |
| 700 state.style()->setIsLink(); | 700 state.style()->setIsLink(); |
| 701 EInsideLink linkState = state.elementLinkState(); | 701 EInsideLink linkState = state.elementLinkState(); |
| 702 if (linkState != EInsideLink::kNotInsideLink) { | 702 if (linkState != EInsideLink::kNotInsideLink) { |
| 703 bool forceVisited = InspectorInstrumentation::forcePseudoState( | 703 bool forceVisited = |
| 704 element, CSSSelector::PseudoVisited); | 704 probe::forcePseudoState(element, CSSSelector::PseudoVisited); |
| 705 if (forceVisited) | 705 if (forceVisited) |
| 706 linkState = EInsideLink::kInsideVisitedLink; | 706 linkState = EInsideLink::kInsideVisitedLink; |
| 707 } | 707 } |
| 708 state.style()->setInsideLink(linkState); | 708 state.style()->setInsideLink(linkState); |
| 709 } | 709 } |
| 710 | 710 |
| 711 if (!baseComputedStyle) { | 711 if (!baseComputedStyle) { |
| 712 document().styleEngine().ensureUAStyleForElement(*element); | 712 document().styleEngine().ensureUAStyleForElement(*element); |
| 713 | 713 |
| 714 ElementRuleCollector collector(state.elementContext(), m_selectorFilter, | 714 ElementRuleCollector collector(state.elementContext(), m_selectorFilter, |
| (...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1945 | 1945 |
| 1946 DEFINE_TRACE(StyleResolver) { | 1946 DEFINE_TRACE(StyleResolver) { |
| 1947 visitor->trace(m_matchedPropertiesCache); | 1947 visitor->trace(m_matchedPropertiesCache); |
| 1948 visitor->trace(m_selectorFilter); | 1948 visitor->trace(m_selectorFilter); |
| 1949 visitor->trace(m_styleSharingLists); | 1949 visitor->trace(m_styleSharingLists); |
| 1950 visitor->trace(m_document); | 1950 visitor->trace(m_document); |
| 1951 visitor->trace(m_tracker); | 1951 visitor->trace(m_tracker); |
| 1952 } | 1952 } |
| 1953 | 1953 |
| 1954 } // namespace blink | 1954 } // namespace blink |
| OLD | NEW |