| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 9 * | 9 * |
| 10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
| (...skipping 2812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2823 // document tree and figure out when to destroy the computed style for s
uch elements. | 2823 // document tree and figure out when to destroy the computed style for s
uch elements. |
| 2824 return nullptr; | 2824 return nullptr; |
| 2825 } | 2825 } |
| 2826 | 2826 |
| 2827 // FIXME: Find and use the layoutObject from the pseudo element instead of t
he actual element so that the 'length' | 2827 // FIXME: Find and use the layoutObject from the pseudo element instead of t
he actual element so that the 'length' |
| 2828 // properties, which are only known by the layoutObject because it did the l
ayout, will be correct and so that the | 2828 // properties, which are only known by the layoutObject because it did the l
ayout, will be correct and so that the |
| 2829 // values returned for the ":selection" pseudo-element will be correct. | 2829 // values returned for the ":selection" pseudo-element will be correct. |
| 2830 ComputedStyle* elementStyle = mutableComputedStyle(); | 2830 ComputedStyle* elementStyle = mutableComputedStyle(); |
| 2831 if (!elementStyle) { | 2831 if (!elementStyle) { |
| 2832 ElementRareData& rareData = ensureElementRareData(); | 2832 ElementRareData& rareData = ensureElementRareData(); |
| 2833 if (!rareData.ensureComputedStyle()) | 2833 if (!rareData.computedStyle()) |
| 2834 rareData.setComputedStyle(document().styleForElementIgnoringPendingS
tylesheets(this)); | 2834 rareData.setComputedStyle(document().styleForElementIgnoringPendingS
tylesheets(this)); |
| 2835 elementStyle = rareData.ensureComputedStyle(); | 2835 elementStyle = rareData.computedStyle(); |
| 2836 } | 2836 } |
| 2837 | 2837 |
| 2838 if (!pseudoElementSpecifier) | 2838 if (!pseudoElementSpecifier) |
| 2839 return elementStyle; | 2839 return elementStyle; |
| 2840 | 2840 |
| 2841 if (ComputedStyle* pseudoElementStyle = elementStyle->getCachedPseudoStyle(p
seudoElementSpecifier)) | 2841 if (ComputedStyle* pseudoElementStyle = elementStyle->getCachedPseudoStyle(p
seudoElementSpecifier)) |
| 2842 return pseudoElementStyle; | 2842 return pseudoElementStyle; |
| 2843 | 2843 |
| 2844 RefPtr<ComputedStyle> result = document().ensureStyleResolver().pseudoStyleF
orElement(this, PseudoStyleRequest(pseudoElementSpecifier, PseudoStyleRequest::F
orComputedStyle), elementStyle); | 2844 RefPtr<ComputedStyle> result = document().ensureStyleResolver().pseudoStyleF
orElement(this, PseudoStyleRequest(pseudoElementSpecifier, PseudoStyleRequest::F
orComputedStyle), elementStyle); |
| 2845 DCHECK(result); | 2845 DCHECK(result); |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3745 | 3745 |
| 3746 DEFINE_TRACE_WRAPPERS(Element) | 3746 DEFINE_TRACE_WRAPPERS(Element) |
| 3747 { | 3747 { |
| 3748 if (hasRareData()) { | 3748 if (hasRareData()) { |
| 3749 visitor->traceWrappers(elementRareData()); | 3749 visitor->traceWrappers(elementRareData()); |
| 3750 } | 3750 } |
| 3751 ContainerNode::traceWrappers(visitor); | 3751 ContainerNode::traceWrappers(visitor); |
| 3752 } | 3752 } |
| 3753 | 3753 |
| 3754 } // namespace blink | 3754 } // namespace blink |
| OLD | NEW |