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. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
8 * All rights reserved. | 8 * All rights reserved. |
9 * (C) 2007 Eric Seidel (eric@webkit.org) | 9 * (C) 2007 Eric Seidel (eric@webkit.org) |
10 * | 10 * |
(...skipping 2068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2079 // TODO(rune@opera.com): nextTextSibling is not set correctly when we have | 2079 // TODO(rune@opera.com): nextTextSibling is not set correctly when we have |
2080 // slotted nodes (crbug.com/648931). Also, it may be incorrect when we have | 2080 // slotted nodes (crbug.com/648931). Also, it may be incorrect when we have |
2081 // multiple shadow roots (for V0 shadow hosts). | 2081 // multiple shadow roots (for V0 shadow hosts). |
2082 root->rebuildLayoutTree(nextTextSibling); | 2082 root->rebuildLayoutTree(nextTextSibling); |
2083 } | 2083 } |
2084 } | 2084 } |
2085 | 2085 |
2086 void Element::rebuildPseudoElementLayoutTree(PseudoId pseudoId, | 2086 void Element::rebuildPseudoElementLayoutTree(PseudoId pseudoId, |
2087 Text* nextTextSibling) { | 2087 Text* nextTextSibling) { |
2088 if (PseudoElement* element = pseudoElement(pseudoId)) { | 2088 if (PseudoElement* element = pseudoElement(pseudoId)) { |
2089 if (pseudoId == PseudoIdFirstLetter && updateFirstLetter(element)) | |
2090 return; | |
2091 if (element->needsReattachLayoutTree() || | 2089 if (element->needsReattachLayoutTree() || |
2092 element->childNeedsReattachLayoutTree()) { | 2090 element->childNeedsReattachLayoutTree()) |
2093 element->rebuildLayoutTree(nextTextSibling); | 2091 element->rebuildLayoutTree(nextTextSibling); |
2094 } | |
2095 } else { | 2092 } else { |
2096 createPseudoElementIfNeeded(pseudoId); | 2093 createPseudoElementIfNeeded(pseudoId); |
2097 } | 2094 } |
2098 } | 2095 } |
2099 | 2096 |
2100 void Element::updateCallbackSelectors(const ComputedStyle* oldStyle, | 2097 void Element::updateCallbackSelectors(const ComputedStyle* oldStyle, |
2101 const ComputedStyle* newStyle) { | 2098 const ComputedStyle* newStyle) { |
2102 Vector<String> emptyVector; | 2099 Vector<String> emptyVector; |
2103 const Vector<String>& oldCallbackSelectors = | 2100 const Vector<String>& oldCallbackSelectors = |
2104 oldStyle ? oldStyle->callbackSelectors() : emptyVector; | 2101 oldStyle ? oldStyle->callbackSelectors() : emptyVector; |
(...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4292 } | 4289 } |
4293 | 4290 |
4294 DEFINE_TRACE_WRAPPERS(Element) { | 4291 DEFINE_TRACE_WRAPPERS(Element) { |
4295 if (hasRareData()) { | 4292 if (hasRareData()) { |
4296 visitor->traceWrappers(elementRareData()); | 4293 visitor->traceWrappers(elementRareData()); |
4297 } | 4294 } |
4298 ContainerNode::traceWrappers(visitor); | 4295 ContainerNode::traceWrappers(visitor); |
4299 } | 4296 } |
4300 | 4297 |
4301 } // namespace blink | 4298 } // namespace blink |
OLD | NEW |