Chromium Code Reviews| 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 1887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1898 PassRefPtr<ComputedStyle> Element::propagateInheritedProperties( | 1898 PassRefPtr<ComputedStyle> Element::propagateInheritedProperties( |
| 1899 StyleRecalcChange change) { | 1899 StyleRecalcChange change) { |
| 1900 if (change != IndependentInherit) | 1900 if (change != IndependentInherit) |
| 1901 return nullptr; | 1901 return nullptr; |
| 1902 if (isPseudoElement()) | 1902 if (isPseudoElement()) |
| 1903 return nullptr; | 1903 return nullptr; |
| 1904 if (needsStyleRecalc()) | 1904 if (needsStyleRecalc()) |
| 1905 return nullptr; | 1905 return nullptr; |
| 1906 if (hasAnimations()) | 1906 if (hasAnimations()) |
| 1907 return nullptr; | 1907 return nullptr; |
| 1908 if (isPseudoElement()) | |
|
meade_UTC10
2016/12/08 23:22:15
What's this for? Could you please add why you need
| |
| 1909 return nullptr; | |
| 1908 const ComputedStyle* parentStyle = parentComputedStyle(); | 1910 const ComputedStyle* parentStyle = parentComputedStyle(); |
| 1909 DCHECK(parentStyle); | 1911 DCHECK(parentStyle); |
| 1910 const ComputedStyle* style = computedStyle(); | 1912 const ComputedStyle* style = computedStyle(); |
| 1911 if (!style || style->animations() || style->transitions()) | 1913 if (!style || style->animations() || style->transitions()) |
| 1912 return nullptr; | 1914 return nullptr; |
| 1913 RefPtr<ComputedStyle> newStyle = ComputedStyle::clone(*style); | 1915 RefPtr<ComputedStyle> newStyle = ComputedStyle::clone(*style); |
| 1914 newStyle->propagateIndependentInheritedProperties(*parentStyle); | 1916 newStyle->propagateIndependentInheritedProperties(*parentStyle); |
| 1915 INCREMENT_STYLE_STATS_COUNTER(document().styleEngine(), | 1917 INCREMENT_STYLE_STATS_COUNTER(document().styleEngine(), |
| 1916 independentInheritedStylesPropagated, 1); | 1918 independentInheritedStylesPropagated, 1); |
| 1917 return newStyle; | 1919 return newStyle; |
| (...skipping 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4089 } | 4091 } |
| 4090 | 4092 |
| 4091 DEFINE_TRACE_WRAPPERS(Element) { | 4093 DEFINE_TRACE_WRAPPERS(Element) { |
| 4092 if (hasRareData()) { | 4094 if (hasRareData()) { |
| 4093 visitor->traceWrappers(elementRareData()); | 4095 visitor->traceWrappers(elementRareData()); |
| 4094 } | 4096 } |
| 4095 ContainerNode::traceWrappers(visitor); | 4097 ContainerNode::traceWrappers(visitor); |
| 4096 } | 4098 } |
| 4097 | 4099 |
| 4098 } // namespace blink | 4100 } // namespace blink |
| OLD | NEW |